/* Ballast: The Horizon. Dark only. No web fonts, no framework. */
:root {
  --ground: #120E17; --raised: #1E1824; --hairline: #352C3D;
  --ember: #FF9D6C; --mist: #BFD9D3; --mauve: #A79BB3; --gold: #FFD08A;
  --text: #F6EFE9; --text-2: #BBB0BF;
  --gutter: 16px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.62 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ember); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--mist); outline-offset: 2px; border-radius: 3px; }
p, li { color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--raised); color: var(--text); padding: 10px 14px; z-index: 5; }
.skip:focus { left: 8px; top: 8px; }
.small { font-size: .875rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 .35rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--hairline); }
.head-row { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font: 500 1.25rem var(--serif); }
.brand img { display: block; width: 32px; height: 32px; border-radius: 7px; }
.head-badge { display: block; line-height: 0; }
.head-badge img { display: block; width: 120px; height: 40px; }
.site-nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* Type */
h1, h2, h3, .cta-title, .foot-title { font-family: var(--serif); font-weight: 500; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.012em; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 4.6vw, 1.9rem); line-height: 1.2; margin: 2.75rem 0 .75rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.6rem 0 .35rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .45rem; }

/* Article layout */
.band { height: 88px; overflow: hidden; line-height: 0; background: var(--ground); }
.band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.prose { max-width: 720px; padding-top: 22px; padding-bottom: 56px; }
.crumbs { font-size: .9rem; color: var(--text-2); margin: 0 0 .75rem; }
.crumbs span { color: var(--text-2); }
.byline { font-size: .9rem; margin-bottom: 1.25rem; }
.answer { color: var(--text); font-size: 1.125rem; line-height: 1.55; }
.disclosure { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem .85rem; font-size: .975rem; }
.toc { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px 6px; margin: 1.5rem 0 1.25rem; font-size: .975rem; }
.toc ol { margin: .4rem 0 .5rem; }
.toc li { margin-bottom: .55rem; line-height: 1.35; }
.note { border-left: 2px solid var(--mist); padding: .25rem 0 .25rem .85rem; }
.sources { font-size: .925rem; }
.sources li { margin-bottom: .5rem; }
.help { margin-top: 2.75rem; border-top: 1px solid var(--hairline); }

/* Tables */
.table-wrap { margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; color: var(--text-2); font-size: .9rem; padding-bottom: .6rem; }
th, td { border-bottom: 1px solid var(--hairline); padding: .65rem .6rem .65rem 0; text-align: left; vertical-align: top; color: var(--text-2); }
th { color: var(--text); font-weight: 600; }
thead th { border-bottom-color: var(--mauve); }
td ul { margin: 0; }
@media (max-width: 719px) {
  table.stack, .stack tbody, .stack tr, .stack th, .stack td, .stack caption { display: block; width: 100%; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stack tr { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--raised); }
  .stack th, .stack td { border: 0; padding: .15rem 0; }
  .stack tbody th { font: 500 1.1rem var(--serif); margin-bottom: .2rem; }
  .stack td[data-label]::before { content: attr(data-label); display: block; color: var(--mauve); font-size: .8rem; margin-top: .45rem; }
}

/* App Store call to action: official badge beside the icon */
.store { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin: .25rem 0; }
.store .icon { display: block; width: 56px; height: 56px; border-radius: 13px; }
.store .badge { display: block; width: 135px; height: 45px; }
.cta { background: var(--raised); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 16px; margin: 2.25rem 0; }
.cta-title { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .4rem; }
.cta p { margin-bottom: .75rem; }
.facts { border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; margin: 2rem 0; }
.facts h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.facts p:last-child { margin-bottom: 0; }

/* Word badges, never padlocks */
.tag { display: inline-block; font: 600 .7rem var(--sans); letter-spacing: .07em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--hairline); color: var(--text-2); vertical-align: 2px; margin-left: 2px; }
.tag-pro { color: var(--gold); border-color: var(--gold); }

/* Home */
.hero { position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; padding-top: 34px; padding-bottom: 10px; }
.hero h1 { font-size: clamp(2.65rem, 10.4vw, 5rem); line-height: 1.03; max-width: 13ch; margin-bottom: .75rem; }
.promise { font: 400 clamp(1.25rem, 4.6vw, 1.75rem)/1.25 var(--serif); color: var(--gold); margin: 0 0 1rem; }
.hero-lede { color: var(--text); font-size: 1.1rem; max-width: 36rem; }
.hero-meta { font-size: .9rem; margin: .5rem 0 0; }
.hero-scene { position: relative; overflow: hidden; line-height: 0; height: 250px; margin-top: 8px; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: #120E17; }
.hero-toggle { position: absolute; right: 12px; bottom: 12px; min-width: 64px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--hairline); background: rgba(18, 14, 23, .78); color: var(--text); font-family: inherit; font-size: .9rem; font-weight: 500; line-height: 1; cursor: pointer; }
.hero-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.horizon, .swell { position: absolute; bottom: 0; display: block; height: 100%; max-width: none; }
.horizon { left: 0; width: 100%; }
.swell { left: -48px; width: calc(100% + 96px); }
@media (prefers-reduced-motion: no-preference) {
  .swell { animation: swell-drift 19s ease-in-out infinite alternate; will-change: transform; }
  .swell-1 { animation-duration: 15s; animation-direction: alternate-reverse; }
  .swell-2 { animation-duration: 12s; }
  .swell-3 { animation-duration: 9.5s; animation-direction: alternate-reverse; }
}
@keyframes swell-drift { from { transform: translate3d(-34px, 2px, 0); } to { transform: translate3d(34px, -3px, 0); } }
.section { padding-top: 46px; padding-bottom: 6px; }
.section > h2:first-child, .kicker + h2 { margin-top: 0; }
.kicker { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve); margin: 0 0 .4rem; font-weight: 600; }
.lede { font-size: 1.08rem; max-width: 42rem; }
.pillar { border-top: 1px solid var(--hairline); padding: 26px 0 8px; }
.pillar h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 0 0 .5rem; line-height: 1.15; }
.pillar .say { color: var(--text); font-size: 1.08rem; }
.panel { border-radius: 14px; overflow: hidden; line-height: 0; border: 1px solid var(--hairline); margin: 0 0 18px; aspect-ratio: 16 / 9; background: var(--raised); }
.panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.shot { margin: 0 auto 18px; max-width: 280px; }
.shot img { display: block; width: 100%; border-radius: 30px; border: 1px solid var(--hairline); }
.two { display: grid; gap: 0 28px; }
.compare-table th:first-child, .compare-table td:first-child { width: 50%; }
.compare-table td { padding-right: 16px; }
.guides { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.guides li { margin: 0; }
.guides a { display: block; height: 100%; border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; text-decoration: none; background: var(--raised); }
.guides a:hover { border-color: var(--mauve); }
.guides strong { display: block; font: 500 1.1rem/1.3 var(--serif); margin-bottom: .2rem; }
.guides span { color: var(--text-2); font-size: .94rem; line-height: 1.45; display: block; }
.closing { text-align: left; padding-bottom: 48px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hairline); padding: 28px 0 34px; font-size: .925rem; }
.foot-grid { display: grid; gap: 22px; }
.foot-title { font-size: 1.05rem; margin: 0 0 .5rem; }
.site-foot a { display: inline-block; padding: 3px 0; }
.foot-note p { margin-bottom: .6rem; }

/* Urge plan tool */
.tool { background: var(--raised); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; margin: 1.5rem 0; }
.tool fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.tool legend, .tool label { display: block; color: var(--text); font-weight: 600; margin-bottom: .4rem; padding: 0; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 22px; color: var(--text-2); }
.chip input:checked + span { background: var(--mist); border-color: var(--mist); color: var(--ground); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--mist); outline-offset: 2px; }
.tool input[type=text], .tool textarea { width: 100%; font: 17px/1.4 var(--sans); color: var(--text); background: var(--ground); border: 1px solid var(--hairline); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
.tool textarea { min-height: 88px; resize: vertical; }
.field { margin-bottom: 1rem; }
.starters { display: grid; gap: 6px; margin-top: 8px; }
.starters button { text-align: left; }
button { font: 500 1rem var(--sans); min-height: 44px; border-radius: 10px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--hairline); background: transparent; color: var(--text); }
button:hover { border-color: var(--mauve); }
button.primary { background: var(--ember); border-color: var(--ember); color: #1B1015; font-weight: 600; }
.starters button { font-size: .94rem; color: var(--text-2); line-height: 1.35; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.check { display: flex !important; gap: 10px; align-items: center; min-height: 44px; font-weight: 400 !important; color: var(--text-2) !important; }
.check input { width: 20px; height: 20px; accent-color: var(--ember); flex: none; }
.sheet { margin: 1.5rem 0; }
.sheet h2 { margin-top: 0; }
.card-plan { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.card-plan p { margin: 0 0 .4rem; color: var(--text); }
.card-plan .if, .card-plan .then { font: 400 1.2rem/1.35 var(--serif); }
.card-plan .why { color: var(--text-2); font-size: .94rem; }
.card-plan .rm { font-size: .9rem; margin-top: .4rem; }
.blank-line { display: block; border-bottom: 1px solid var(--mauve); height: 2.1rem; }
.status { min-height: 1.5em; color: var(--mist); font-size: .94rem; margin: .5rem 0 0; }

@media (min-width: 720px) {
  .head-row { grid-template-columns: auto 1fr auto; gap: 8px 28px; }
  .site-nav { grid-column: 2; grid-row: 1; }
  .hero-copy { padding-top: 64px; }
  .hero-scene { height: 340px; margin-top: 12px; }
  .band { height: 120px; }
  .prose { padding-top: 30px; }
  .pillar { display: grid; grid-template-columns: 5fr 7fr; gap: 0 40px; padding-top: 34px; align-items: start; }
  .pillar .panel, .pillar .shot { grid-column: 1; grid-row: 1 / span 6; }
  .pillar > :not(.panel):not(.shot) { grid-column: 2; }
  .two { grid-template-columns: 1fr 1fr; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 2fr; }
  .cta, .tool { padding: 22px; }
}
@media (min-width: 1040px) {
  .hero-scene { height: 420px; margin-top: 16px; }
  .guides { grid-template-columns: repeat(3, 1fr); }
}
@media print {
  :root { --text: #000; --text-2: #222; --hairline: #999; --mauve: #666; }
  html, body { background: #fff; color: #000; }
  .site-head, .site-foot, .band, .skip, main > :not(.sheet), .no-print { display: none !important; }
  main.prose { max-width: none; padding: 0; }
  .card-plan { break-inside: avoid; border-color: #999; }
  .card-plan p { color: #000; }
  .blank-line { border-color: #666; }
}
@media (scripting: none) { #builder, #print-btn { display: none; } }
