/* Steller public site. The look follows the app (app/globals.css): its paper and ink colours, Space Grotesk and
   DM Sans, the soft "steller" wordmark and text-over-underline buttons. Fonts are served from this site
   (fonts/, SIL Open Font License), so the site makes no third-party requests. No scripts. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Metric-matched fallbacks (as the app's build uses), so text barely moves when the web fonts arrive. */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); ascent-override: 89.71%; descent-override: 26.62%; line-gap-override: 0%; size-adjust: 109.69%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"); ascent-override: 94.9%; descent-override: 29.66%; line-gap-override: 0%; size-adjust: 104.53%; }

:root {
  --ink: #17211d; --muted: #6b7770; --soft: #f2f3ed; --paper: #fbfbf8; --line: #dfe3da;
  --bar: rgb(251 251 248 / 0.78); --warn: #8a4f1c; --warn-bg: #fbf1e6;
  --display: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --text: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
  --wide: 1080px; --gutter: 24px; --header: 56px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0ef; --muted: #a9adaa; --soft: #202321; --paper: #121514; --line: #353a37;
    --bar: rgb(18 21 20 / 0.74); --warn: #e3b07e; --warn-bg: #2b2118;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* The soft wordmark, as on the app's projects page: tight tracking, a faint blur and a red/blue fringe. */
.wordmark {
  color: var(--ink); display: inline-block; filter: blur(0.25px); font: 700 28px/1 var(--display);
  letter-spacing: -0.09em; margin-left: -0.031em; text-decoration: none; user-select: none; white-space: nowrap;
  text-shadow: -1px 0 rgb(255 40 40 / 0.45), 1px 0 rgb(0 150 255 / 0.45), 0 0 0.07em color-mix(in srgb, var(--ink) 24%, transparent);
}
.wordmark:hover { color: var(--ink); }

/* A thin translucent bar that stays on top while the page scrolls under it. */
.header {
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  background: var(--bar); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  position: sticky; top: 0; z-index: 10;
}
.bar { align-items: center; display: flex; height: var(--header); justify-content: space-between; margin: 0 auto; max-width: var(--wide); padding: 0 var(--gutter); }
.header nav { display: flex; gap: 28px; }
.header nav a { font: 700 14px/1 var(--display); letter-spacing: -0.01em; padding: 10px 0; text-decoration: none; }

/* Buttons are bold text over an ink underline, as in the app. */
.cta { box-shadow: inset 0 -3px 0 currentColor; display: inline-block; font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; padding: 0 0 7px; text-decoration: none; transition: color 0.2s ease; }

/* Home: one centred column of large type, then pricing. */
.hero { margin: 0 auto; max-width: 980px; padding: clamp(80px, 16vh, 168px) var(--gutter) clamp(72px, 12vh, 136px); text-align: center; }
.hero h1 { font-size: clamp(52px, 10vw, 112px); letter-spacing: -0.065em; line-height: 0.95; }
.lead { color: var(--muted); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.45; margin: 28px auto 0; max-width: 32em; }
.actions { margin-top: 44px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.pricing { border-top: 1px solid var(--line); margin: 0 auto; max-width: var(--wide); padding: clamp(72px, 13vh, 144px) var(--gutter); scroll-margin-top: var(--header); }
.pricing > .lead, .eyebrow, .price, .section-title, .closing { text-align: center; }
.eyebrow { color: var(--muted); font: 700 13px/1 var(--display); letter-spacing: 0.14em; margin-bottom: 20px; text-transform: uppercase; }
.price { font-size: clamp(44px, 8vw, 88px); letter-spacing: -0.055em; line-height: 1; }
.price small { color: var(--muted); font-size: 0.42em; letter-spacing: -0.03em; }

.trio { display: grid; gap: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(64px, 10vh, 112px) 0; text-align: center; }
.trio h3 { font-size: 22px; letter-spacing: -0.035em; margin-bottom: 10px; }
.trio p { color: var(--muted); font-size: 16px; margin: 0 auto; max-width: 22em; }

.section-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.045em; margin-bottom: 28px; }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 auto; max-width: 760px; padding: 0; }
.amounts li { font: 700 clamp(32px, 5vw, 52px)/1 var(--display); letter-spacing: -0.05em; padding: 22px 0; text-align: center; }
.amounts li + li { border-left: 1px solid var(--line); }
.fine { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 26px auto 0; max-width: 46em; text-align: center; }

.examples { display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(64px, 10vh, 112px) auto; max-width: 940px; text-align: center; }
.examples dt { font: 700 clamp(28px, 3.6vw, 40px)/1.1 var(--display); letter-spacing: -0.045em; }
.examples dt small { color: var(--muted); display: block; font: 500 13px/1.4 var(--text); letter-spacing: 0; margin-bottom: 6px; }
.examples dd { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

.details { border-top: 1px solid var(--line); display: grid; gap: 56px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 980px; padding-top: 56px; }
.details h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 8px; }
.details ul { list-style: none; margin: 0 0 36px; padding: 0; }
.details ul:last-child { margin-bottom: 0; }
.details li { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.55; padding: 12px 0; }
.details li strong { color: var(--ink); font-weight: 600; }
.closing { margin-top: clamp(64px, 10vh, 112px); }
.closing .fine { margin-top: 20px; }

/* Legal pages: a narrow reading column. */
.page { margin: 0 auto; max-width: 740px; padding: clamp(56px, 10vh, 104px) var(--gutter) 96px; }
.page h1 { font-size: clamp(38px, 5.5vw, 56px); letter-spacing: -0.055em; line-height: 1.02; margin-bottom: 14px; }
.page h2 { font-size: 22px; letter-spacing: -0.035em; margin: 52px 0 14px; }
.page h3 { font-size: 18px; letter-spacing: -0.02em; margin: 30px 0 8px; }
.page p + p, .page p + ul, .page ul + p, .page table + p { margin-top: 14px; }
.page ul { margin: 0; padding-left: 1.15em; }
.page li + li { margin-top: 10px; }
.page li::marker { color: var(--muted); }
table { border-collapse: collapse; display: block; font-size: 15px; margin: 8px 0 18px; overflow-x: auto; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 16px 11px 0; text-align: left; vertical-align: top; }
th { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
thead th { color: var(--muted); font-size: 13px; }

/* Draft markers, for pages before they are published (scripts/check-site.mjs refuses them). */
.draft { background: var(--warn-bg); border: 2px solid var(--warn); color: var(--warn); font-weight: 600; margin: 0 0 32px; padding: 10px 14px; }
.q { background: var(--warn-bg); color: var(--warn); display: inline; font-size: 0.92em; padding: 0 4px; }
.placeholder { background: var(--soft); border: 1px dashed var(--line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; padding: 0 4px; }

.footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 10px 22px; margin: 0 auto; max-width: var(--wide); padding: 28px var(--gutter) 48px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .lang { margin-left: auto; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .trio, .details { gap: 36px; grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amounts li:nth-child(3) { border-left: 0; }
  .amounts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .examples { gap: 36px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header nav { gap: 22px; }
  .wordmark { font-size: 26px; }
}
