/* FTL marketing. Perspective (full-bleed landscape, editorial serif, space)
   alternates with precision (ruled statements, tabular figures). */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --parchment: #f6f3eb;
  --paper: #fcfaf5;
  --midnight: #13212b;
  --green: #153e33;
  --atlantic: #3e6485;
  --brass: #b38a4c;
  --sage: #bac8ac;
  --stone: #d8d1c3;
  --terracotta: #b45e4a;
  /* Roles */
  --ink: var(--midnight);
  --muted: #4b575c;
  --rule: var(--stone);
  --brass-text: #7d5c26;
  --terracotta-text: #9a4936;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-act: clamp(4rem, 7.5vw, 7rem);
  --measure: 80rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 93.75%; -webkit-text-size-adjust: 100%; }
body {
  max-width: 2440px; margin: 0 auto; background: var(--parchment); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--atlantic); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--ink); color: var(--parchment); }
.skip:focus { top: 0.5rem; }
.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.028em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(2rem, 3.2vw, 2.85rem); }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 36em; }
.note { font-size: 0.875rem; color: var(--muted); }
code { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }

/* Actions */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.2rem;
  background: var(--green); color: var(--parchment); border: 1px solid var(--green); border-radius: 3px;
  font-weight: 550; font-size: 1rem; text-decoration: none;
}
.btn:hover { background: #0f2f27; }
.btn-light { background: var(--parchment); color: var(--green); border-color: var(--parchment); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 0.4rem 1rem; font-size: 0.9375rem; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 550; text-decoration-color: var(--brass); }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; align-items: center; margin: 0; }

/* Header */
.site-header { display: flex; align-items: center; gap: 1rem 2rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font: 550 1.375rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 1.2rem; height: 1.2rem; fill: currentColor; flex: none; }
.nav { display: none; gap: 1.75rem; margin-left: auto; }
.nav a, .header-signin { font-size: 0.9375rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .header-signin:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.header-signin { display: none; }
.mobile-nav { margin-left: auto; position: relative; }
.mobile-nav summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; font-size: 0.9375rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-links { position: absolute; right: 0; top: 100%; z-index: 5; width: 13rem; background: var(--paper); border: 1px solid var(--stone); padding: 0.5rem 1rem; }
.mobile-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (min-width: 60rem) {
  .nav, .header-signin { display: flex; }
  .mobile-nav { display: none; }
}

/* Act I: the Observatory */
.vista { display: block; width: 100%; object-fit: cover; background: #86a9dd; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(32rem, 33.4vw, 56rem); background: #a9bfe6; }
/* Anchored right and slightly over-wide, so the copy has open sky on the left. */
.vista-hero { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 120%; max-width: none; height: 100%; object-position: 100% 45%; }
.hero-copy { padding-block: clamp(2.75rem, 3.6vw, 5rem) 2rem; }
/* Morning haze keeps small type legible where the sky meets the hills. */
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 34% 62% at 26% 44%, rgb(246 243 235 / 0.42), rgb(246 243 235 / 0.24) 55%, transparent); }
.hero-copy h1 { font-size: clamp(2.6rem, 4vw, 4.5rem); letter-spacing: -0.035em; line-height: 1; }
.hero-copy h1 span { display: block; }
.hero-descriptor { font: 500 clamp(1.2rem, 1.6vw, 1.5rem)/1.3 var(--serif); letter-spacing: -0.01em; margin: 0.9rem 0 0.6rem; }
.hero-support { max-width: 24rem; font-weight: 450; margin: 0 0 1.25rem; }
.hero .actions { gap: 0.75rem; }
.hero .btn-light { color: var(--ink); }
@media (max-width: 74.99rem) { .vista-hero { width: 100%; object-position: 71% 50%; } }
@media (max-width: 47.99rem) {
  .hero { min-height: 40rem; }
  .hero::before { background: linear-gradient(rgb(246 243 235 / 0.25) 35%, transparent 60%); }
  .vista-hero { width: 100%; object-position: 51% 50%; }
}

/* Acts: copy in a left rail, the graphic unboxed beside it, hairlines between. */
.act { display: grid; gap: 2.25rem; padding-block: clamp(3rem, 5vw, 4.75rem); }
.acts > .act + .act { position: relative; }
.acts > .act + .act::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }
.act-copy h1, .act-copy h2 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.08; }
.act-copy .lede { font-size: 1.05rem; margin: 1rem 0 0; }
.act-copy .actions { margin-top: 1.25rem; }
.act-body { min-width: 0; }
@media (min-width: 64rem) {
  .act { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 0; }
  .act-copy { position: sticky; top: 2.5rem; align-self: start; padding-right: 2.5rem; }
  .act-body { border-left: 1px solid var(--rule); padding-left: 3rem; }
}
.certainty { display: grid; gap: 1.25rem; margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.93rem; }
.certainty dt { font-weight: 600; }
.certainty dd { margin: 0.2rem 0 0; color: var(--muted); }
@media (min-width: 48rem) { .certainty { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Platform */
.platform { background: var(--green); color: var(--parchment); }
.platform .lede { color: #d5ddcd; }
.platform .act-body { border-left-color: rgb(186 200 172 / 0.3); }
.platform :focus-visible { outline-color: var(--sage); }
.example { border-top: 1px solid rgb(186 200 172 / 0.4); margin-top: 2rem; padding-top: 1.5rem; display: grid; gap: 1.5rem; }
.example > * { min-width: 0; }
.example pre { margin: 0; overflow-x: auto; font: 400 0.8125rem/1.6 var(--mono); }
.example pre code { font-size: inherit; overflow-wrap: normal; }
.code-dim { color: var(--sage); }
.example-label { font-size: 0.84rem; font-weight: 500; color: #c3d0c1; margin: 0 0 0.6rem; }
@media (min-width: 48rem) { .example { grid-template-columns: 1.2fr 1fr; gap: 2rem; } }

/* Act VI: the resolution */
.closing { position: relative; display: grid; min-height: clamp(40rem, 40vw, 50rem); isolation: isolate; overflow: hidden; background: #eda882; }
.closing .vista { position: absolute; inset: 0; height: 100%; object-position: 47.2% 100%; z-index: -1; }
.closing-copy { text-align: center; padding-top: clamp(2.5rem, 3vw, 3.5rem); }
.closing h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); letter-spacing: -0.035em; }
.closing-line { font: 400 1.25rem/1.3 var(--serif); margin: 0.75rem 0 1.5rem; }
.closing .actions { justify-content: center; }
.closing .note { color: var(--ink); max-width: 34em; margin: 1rem auto 0; }

/* Footer */
.strip { height: clamp(8rem, 19.8vw, 22rem); object-position: 47.2% 50%; }
.site-footer { background: var(--midnight); color: var(--parchment); padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
.site-footer :focus-visible { outline-color: var(--sage); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-about { grid-column: 1 / -1; }
.footer-about p { color: #c3cac9; max-width: 20em; margin-top: 0.75rem; }
.footer-head { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: #c3cac9; text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--parchment); text-decoration: underline; }
.footer-legal { margin: 3rem 0 0; font-size: 0.875rem; color: #a9b3b4; }
@media (min-width: 60rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
}

/* Secondary pages */
.page-head { padding-block: clamp(3rem, 5.5vw, 5rem) clamp(2rem, 3.5vw, 3.25rem); }
.page-head h1 { max-width: 15em; }
.page-head .lede { margin-top: 1.5rem; }
.page-section > h2, .prose h2, .split-copy h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.12; }
.page-section > h2 + * { margin-top: 1.25rem; }
.split { display: grid; gap: 2rem; }
.split-copy p { color: var(--muted); margin-top: 1rem; }
.prose { max-width: 42rem; }
.prose h2 { margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose li + li { margin-top: 0.5rem; }
.prose-large { font: 400 clamp(1.2rem, 1.7vw, 1.4rem)/1.5 var(--serif); letter-spacing: -0.01em; max-width: 27em; }
.prose-large p { margin-bottom: 1.2em; }
.facts { margin: 0; border-bottom: 1px solid var(--stone); }
.facts > div { border-top: 1px solid var(--stone); padding: 1.5rem 0; display: grid; gap: 0.4rem 3rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); max-width: 44rem; }
@media (min-width: 60rem) { .facts > div { grid-template-columns: 15rem 1fr; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-bottom: 1px solid var(--stone); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); border-top: 1px solid var(--stone); padding: 1.5rem 0; }
.steps li::before { content: counter(s); font: 400 1.5rem/1.2 var(--serif); color: var(--brass-text); }
.steps p { color: var(--muted); max-width: 44rem; }
.code-block { background: var(--midnight); color: var(--parchment); padding: 1.5rem; margin: 0; overflow-x: auto; font: 400 0.875rem/1.7 var(--mono); min-width: 0; }
.code-block code { font-size: inherit; overflow-wrap: normal; }
.log-month { padding-bottom: 4rem; }
.log-month > h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 1.5rem; }
.log-entry { display: grid; gap: 0.4rem 3rem; border-top: 1px solid var(--stone); padding: 1.5rem 0; }
.log-entry time { font: 400 0.875rem/1.6 var(--mono); color: var(--muted); }
.log-entry p { color: var(--muted); max-width: 44rem; }
@media (min-width: 60rem) { .log-entry { grid-template-columns: 9rem 1fr; } }

.page-head .actions { margin-top: 2rem; }
.facts + .prose { margin-top: clamp(3rem, 5vw, 4.5rem); }
.facts + .note { margin-top: 1.5rem; }

/* Secondary sections share the acts' rail. */
main > .page-section { position: relative; padding-block: clamp(2.5rem, 4vw, 3.75rem); }
main > .page-section::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }
.platform + .page-section::before { border-top: 0; }
@media (min-width: 64rem) {
  .page-section:has(> h2), .split { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 0; align-items: start; }
  .page-section > h2 { grid-row: 1 / span 6; padding-right: 2.5rem; }
  .page-section:has(> h2) > :not(h2) { grid-column: 2; margin-left: 3rem; }
  .page-section > h2 + * { margin-top: 0; }
  .split-copy { padding-right: 2.5rem; position: sticky; top: 2.5rem; }
  .split > .code-block { margin-left: 3rem; }
  .split > .dv { border-left: 1px solid var(--rule); padding-left: 3rem; }
  .facts > div:first-child, .steps li:first-child { border-top: 0; padding-top: 0; }
}

/* Product embeds: real ftl-web components, mounted into shadow roots by
   embed/ftl-embed.js. The fallback paragraph shows until then (and without
   JavaScript). Heights are reserved so the page does not shift when they draw. */
.embed { display: block; min-width: 0; }
.embed + .embed { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.embed-fallback { max-width: 34em; color: var(--muted); }
.embed-trip { background: var(--parchment); color: var(--ink); padding: 1.5rem 1.5rem 1.25rem; border-radius: 3px; }
.embed-trip .embed-fallback { color: var(--ink); }
.embed-hero { min-height: 41rem; }
.embed-cash { min-height: 55rem; }
.embed-annual { min-height: 102rem; }
.embed-withholding { min-height: 74rem; }
.embed-trip { min-height: 20rem; }
@media (min-width: 37.5rem) {
  .embed-hero { min-height: 37rem; }
  .embed-cash { min-height: 46rem; }
  .embed-annual { min-height: 72rem; }
  .embed-withholding { min-height: 49rem; }
  .embed-trip { min-height: 18.5rem; }
}
@media (min-width: 64rem) { .embed-hero { min-height: 36rem; } }
