/* ModRaptor public pages (home, pricing, docs, terms, privacy). No framework. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #1b1512;
  --ink-2: #251b14;
  --ink-3: #34261b;
  --line-dark: #503a29;
  --paper: #f5ecd7;
  --paper-2: #eadcbd;
  --line: #d9c8a3;
  --text: #211811;
  --muted: #5e5140;
  --on-dark: #f6efe3;
  --on-dark-muted: #c2b3a0;
  --amber: #f99b1c;
  --amber-hi: #ffb448;
  --amber-deep: #d97700;
  --amber-ink: #2a1800;
  --leaf: #a4ce3d;
  --link: #0b6b4f;
  --sky-0: #0b1a2b;
  /* the sky follows the visitor's clock (assets/sky.js sets data-sky on <html>); these are sunset, the default */
  --s1: #ffcf78; --s2: #f6a544; --s3: #c9713f; --s4: #74566a; --s5: #2f4a62; --s6: #14304a;
  --sky-glow: rgba(255, 214, 130, .75);
  --sky-ink: #f6efe3; --sky-ink-2: #dfe6ea; --sky-accent: #f99b1c; --sky-mod: #a4ce3d;
  --sky-shadow: rgba(11, 26, 43, .55); --sky-hover: rgba(255, 255, 255, .12);
  --sky-ghost: rgba(11, 26, 43, .35); --sky-ghost-line: rgba(246, 239, 227, .45);
  --cloud: #b9cbd9; --cloud-a: 1; --stars: 0;
  --ground: #2c2929;
  --soil: #5a2d16;
  --soil-deep: #3a2013;
  --clay: #ead6ab;
  --bedrock: #411e0f;
  --layer: var(--paper);
  --fossil: #decba2;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .88em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.eyebrow { font: 600 .82rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 1rem; }
.lede { font-size: 1.18rem; max-width: 38em; }

.previewbar { background: var(--amber); color: var(--amber-ink); font-size: .9rem; text-align: center; padding: 6px 16px; }
.previewbar a { color: inherit; font-weight: 600; margin-left: .6em; }

/* buttons */
.btn { display: inline-block; font: 700 1rem/1 var(--body); padding: .85em 1.25em; border-radius: 10px; border: 2px solid var(--amber); background: var(--amber); color: var(--amber-ink); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--amber-hi); border-color: var(--amber-hi); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-small { padding: .6em .95em; font-size: .93rem; }
.btn-big { padding: 1em 1.5em; font-size: 1.05rem; }
.btn-ghost { background: var(--sky-ghost); color: var(--sky-ink); border-color: var(--sky-ghost-line); }
.btn-ghost:hover { background: var(--sky-hover); border-color: var(--sky-ink); }

/* header: the top of the sky; the badge hangs a little below it */
.top { background: var(--sky-0); color: var(--sky-ink); position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--sky-mod); text-decoration: none; font: 800 1.7rem/1 var(--display); letter-spacing: -0.02em; }
/* the badge sits inside the bar, and the wordmark and the menu are centred on it */
.brand img { width: 64px; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.brand b { color: var(--sky-accent); font-weight: 800; }
.page-home .brand img { display: none; }   /* the home page shows the raptor large in the hero */
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a:not(.btn) { color: var(--sky-ink); text-decoration: none; padding: .5em .75em; border-radius: 8px; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--sky-hover); }
.nav .btn { margin-left: 6px; }

/* the sky: sunset by default; day and night below. Volcano and ferns in silhouette at the horizon */
.hero, .pagehead {
  position: relative; color: var(--sky-ink); overflow: hidden;
  background:
    url("/assets/scene/horizon.svg") center bottom / max(1436px, 100%) auto no-repeat,
    radial-gradient(520px 230px at 36% 100%, var(--sky-glow), transparent 72%),
    linear-gradient(to top, var(--s1) 0, var(--s2) 46px, var(--s3) 120px, var(--s4) 215px, var(--s5) 320px, var(--s6) 470px, var(--sky-0) 100%);
}
/* stars, night only */
.hero::before, .pagehead::before {
  content: ""; position: absolute; inset: 0 0 150px 0; z-index: 0; pointer-events: none; opacity: var(--stars);
  background:
    radial-gradient(1.3px 1.3px at 34px 42px, #fff 55%, transparent 60%) 0 0 / 233px 187px,
    radial-gradient(1px 1px at 120px 96px, #dfe9ff 55%, transparent 60%) 0 0 / 177px 211px,
    radial-gradient(1.6px 1.6px at 210px 30px, #fff 55%, transparent 60%) 0 0 / 311px 263px,
    radial-gradient(1px 1px at 60px 150px, #cfdcff 55%, transparent 60%) 0 0 / 139px 173px;
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent);
}
/* day: a deep noon blue, so the ink, the wordmark and the accent stay the light ones dusk and night use */
html[data-sky="day"] {
  --sky-0: #134b8f; --s1: #ffd88c; --s2: #fde8bb; --s3: #a8d2ec; --s4: #4590d2; --s5: #2a74be; --s6: #1d61aa;
  --sky-glow: rgba(255, 244, 214, .8);
  --sky-accent: #ffb547; --sky-mod: #b4dc4a;
  --sky-shadow: rgba(8, 30, 62, .5);
  --cloud: #fff; --cloud-a: 2.5;
}
html[data-sky="night"] {
  --sky-0: #050b16; --s1: #a2574a; --s2: #6b3f55; --s3: #36305a; --s4: #1b2745; --s5: #0f1b33; --s6: #081222;
  --sky-glow: rgba(255, 140, 80, .5);
  --cloud-a: .6; --stars: .9;
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 58px; padding-bottom: 230px; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); text-shadow: 0 2px 18px var(--sky-shadow); }
.hero h1 span { color: var(--sky-accent); display: block; }
.hero .eyebrow, .pagehead .eyebrow { color: var(--sky-accent); }
html[data-sky="day"] .hero .eyebrow, html[data-sky="day"] .pagehead .eyebrow { color: var(--sky-ink); }   /* small text on the blue: the light ink reads better than amber */
.hero .lede { color: var(--sky-ink-2); text-shadow: 0 1px 12px var(--sky-shadow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 0; }

/* sky life */
.skylife { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.skylife i { position: absolute; display: block; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cloud { --m: url("/assets/scene/cloud.svg"); background: var(--cloud); opacity: calc(.11 * var(--cloud-a)); width: 260px; aspect-ratio: 300 / 110; }
.cloud-1 { left: 4%; top: 30px; }
.cloud-2 { left: 58%; top: 12px; width: 190px; opacity: calc(.09 * var(--cloud-a)); }
.cloud-3 { left: 82%; top: 150px; width: 320px; opacity: calc(.08 * var(--cloud-a)); }
.ptero { --m: url("/assets/scene/ptero.svg"); background: #0b1620; width: 64px; aspect-ratio: 240 / 100; }
.ptero-1 { left: 44%; top: 84px; }
.ptero-2 { left: 50%; top: 122px; width: 38px; opacity: .8; }

/* the raptor, and under it a console that plays one request after another: sent, reviewed, answered */
.stage { display: flex; flex-direction: column; align-items: center; gap: 18px; justify-self: center; width: 100%; max-width: 470px; }
.stage-raptor { width: min(300px, 62%); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.term { width: 100%; background: #101720; color: #d6e2ea; border: 1px solid #2b3a4a; border-radius: 12px; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .75); font: 500 .84rem/1.5 var(--mono); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #18222e; color: #8fa3b5; font-size: .76rem; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4a5c; }
.term-bar span { margin-left: 8px; }
.term-body { display: grid; padding: 14px 16px 16px; }
.run { grid-area: 1 / 1; display: none; }
.run-1 { display: block; }
.run p { margin: 0 0 .35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run p:last-child { margin: .55em 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.t-req::before { content: "> "; color: #6f8496; }
.t-req b { color: var(--amber); font-weight: 600; }
.t-ack { color: #8fa3b5; }
.t-ack::before { content: "< "; color: #6f8496; }
.t-wait { color: #9ccf6a; }
.t-wait::before { content: "\2026  "; color: #6f8496; }
.t-res::before { content: "< "; color: #6f8496; }
.t-res .pass { color: #7fdc8f; font-weight: 600; }
.t-res .fail { color: #ff8a80; font-weight: 600; }
.t-res em { margin-left: auto; color: #8fa3b5; font-style: normal; }
.t-res .chip { font-size: .78rem; padding: .4em .6em; }
@media (prefers-reduced-motion: no-preference) {
  .run { display: block; opacity: 0; animation: mr-run 24s linear infinite; }
  .run-1 { opacity: 1; }   /* still readable where animations are switched off some other way */
  .run-2, .run-2 p { animation-delay: -16s; }
  .run-3, .run-3 p { animation-delay: -8s; }
  .t-req { animation: mr-type 24s linear infinite; }
  .t-ack { animation: mr-l2 24s linear infinite; }
  .t-wait { animation: mr-l3 24s linear infinite; }
  .t-res { animation: mr-l4 24s linear infinite; }
  .cloud-1 { animation: mr-drift 70s ease-in-out infinite alternate; }
  .cloud-3 { animation: mr-drift 90s ease-in-out infinite alternate-reverse; }
  .ptero-1 { animation: mr-glide 46s linear infinite; }
  .ptero-2 { animation: mr-glide 46s linear infinite -3s; }
}
/* each request owns 8 s of the 24 s loop: typed (1 s), acknowledged, under review, answered at 4 s; the
   answer then stays for about 3.5 s before the next request starts */
@keyframes mr-run { 0% { opacity: 0; } .75%, 31.7% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes mr-type { 0%, .75% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(28, end); } 5.25%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes mr-l2 { 0%, 6.4% { opacity: 0; } 6.75%, 100% { opacity: 1; } }
@keyframes mr-l3 { 0%, 8.25% { opacity: 0; } 8.6%, 12% { opacity: 1; } 12.4% { opacity: .55; } 12.75%, 15.4% { opacity: 1; } 15.75%, 100% { opacity: .55; } }
@keyframes mr-l4 { 0%, 15.75% { opacity: 0; transform: translateY(4px); } 16.9%, 100% { opacity: 1; transform: none; } }
@keyframes mr-drift { to { transform: translateX(70px); } }
@keyframes mr-glide { 0% { transform: translate(-46vw, 24px); } 50% { transform: translate(6vw, -14px); } 100% { transform: translate(58vw, 18px); } }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; padding-bottom: 170px; }
  .stage-raptor { width: min(230px, 56%); }
}
@media (max-width: 1100px) { .cloud-1, .ptero { display: none; } }   /* nothing drifts behind the headline on narrow screens */
@media (max-width: 420px) { .term { font-size: .74rem; } .term-body { padding: 12px; } }

/* live panel */
/* the ground: the figures sit in the topsoil, right under the horizon */
.live { position: relative; background: linear-gradient(var(--ground) 0, #3b2417 150px, var(--soil) 100%); padding-bottom: 96px; }
.live .wrap { margin-top: -8px; position: relative; z-index: 2; }
.live-card { background: var(--ink-2); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7); }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.live-head h2 { font-size: 1.15rem; margin: 0; letter-spacing: 0; color: var(--on-dark-muted); font-weight: 600; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.live-badge[hidden] { display: none; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(124, 203, 82, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124, 203, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 203, 82, 0); } }
.tiles { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 14px; margin: 0; }
.tile { background: var(--ink-3); border-radius: var(--radius); padding: 18px 18px 14px; min-width: 0; }
.tile dt { font-size: .86rem; color: var(--on-dark-muted); }
.tile dd { margin: 6px 0 2px; font: 700 clamp(1.6rem, 2.7vw, 2.15rem)/1.05 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-main dd { color: var(--amber); font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.tile-sub { margin: 0; font-size: .84rem; color: var(--on-dark-muted); min-height: 1.4em; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .live-card { padding: 20px; } }

/* sections */
/* the layers under the ground: each one draws its own wavy top edge over the layer above */
.section, .cta, .foot { position: relative; background: var(--layer); }
.section::before, .cta::before, .foot::before { content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: var(--layer); -webkit-mask: url("/assets/scene/edge.svg") left top / 1200px 40px repeat-x; mask: url("/assets/scene/edge.svg") left top / 1200px 40px repeat-x; pointer-events: none; }
.section::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 60px; background: var(--fossil); -webkit-mask: url("/assets/scene/pebbles.svg") left top / 600px 60px repeat-x; mask: url("/assets/scene/pebbles.svg") left top / 600px 60px repeat-x; pointer-events: none; }
.section > .wrap, .cta > .wrap, .foot > .wrap { position: relative; z-index: 1; }
.layer-clay { --layer: var(--clay); --fossil: #d6bd8a; }
.fossil { position: absolute; z-index: 0; background: var(--fossil); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; pointer-events: none; }
.f-ammonite { --m: url("/assets/scene/ammonite.svg"); width: 150px; aspect-ratio: 220 / 200; }
.f-trilobite { --m: url("/assets/scene/trilobite.svg"); width: 104px; aspect-ratio: 200 / 240; }
.f-bone { --m: url("/assets/scene/bone.svg"); width: 150px; aspect-ratio: 240 / 90; }
.f-track { --m: url("/assets/scene/track.svg"); width: 74px; aspect-ratio: 160 / 190; }
.f-fern { --m: url("/assets/scene/fern.svg"); width: 120px; aspect-ratio: 200 / 240; }
.at-tr { right: max(18px, calc(50% - 700px)); top: 34px; transform: rotate(14deg); }
.at-bl { left: max(18px, calc(50% - 700px)); bottom: 26px; transform: rotate(-18deg); }
.at-br { right: max(18px, calc(50% - 700px)); bottom: 30px; transform: rotate(-24deg); }
.at-tl { left: max(18px, calc(50% - 700px)); top: 40px; transform: rotate(20deg); }
.at-step { right: max(60px, calc(50% - 600px)); bottom: 18px; transform: rotate(28deg) scale(.8); }
@media (max-width: 1360px) { .fossil.wide-only { display: none; } }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { --layer: var(--soil-deep); --fossil: #553420; color: var(--on-dark); }
.section-alt a { color: var(--amber); }
.section > .wrap > h2 { margin-bottom: 1.2em; max-width: 18em; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps > li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.steps > li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--amber); font: 700 1rem/1 var(--display); margin-bottom: 14px; }
.steps p { color: var(--muted); }
pre { background: var(--ink); color: #dbe6dc; border-radius: 10px; padding: 16px; overflow-x: auto; line-height: 1.5; margin: 0 0 1em; tab-size: 2; }
.steps pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8em; margin-bottom: 0; }
pre i { color: var(--amber); font-style: normal; }
:not(pre) > code { background: var(--paper-2); border-radius: 5px; padding: .1em .35em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { font: 600 .82rem/1 var(--mono); padding: .5em .7em; border-radius: 999px; color: #fff; }
.chip-ok { background: #2f8f4e; } .chip-red { background: #c0362c; } .chip-pink { background: #b0447f; } .chip-orange { background: #b65c12; }
.chip-blue { background: #2c5d9c; } .chip-teal { background: #1d7a72; } .chip-purple { background: #6a4bb0; } .chip-sky { background: #33709a; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: #2a170d; border: 1px solid #5d3a22; border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--amber); }
.card p { color: var(--on-dark-muted); margin: 0; }
.card b { color: var(--on-dark); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

/* trial form */
.try { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.try p { color: var(--muted); }
.tryform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.tryform label { font-weight: 600; font-size: .93rem; margin-top: 6px; }
input[type="url"], input[type="email"], input[type="password"] { font: inherit; width: 100%; padding: .7em .8em; border: 1.5px solid #b9b29b; border-radius: 9px; background: #fff; color: var(--text); }
input[type="url"]:focus, input[type="email"]:focus, input[type="password"]:focus { border-color: var(--link); outline: 3px solid rgba(11, 107, 79, .2); outline-offset: 0; }
.tryform .btn { margin-top: 12px; justify-self: start; }
.form-msg { margin: 6px 0 0; min-height: 1.5em; font-size: .95rem; }
.form-msg.is-error { color: #a32018; }
.form-msg.is-ok { color: #1f6b3a; }
@media (max-width: 820px) { .try { grid-template-columns: 1fr; gap: 24px; } }

/* call to action (a seam of amber) + footer (bedrock, with what is buried in it) */
.cta { --layer: var(--amber); color: var(--amber-ink); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 52px; }
.cta h2 { margin: 0 0 .2em; }
.cta p { margin: 0; }
.cta .btn { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.cta .btn:hover { background: var(--ink-3); border-color: var(--ink-3); }
.foot { --layer: var(--bedrock); color: var(--on-dark-muted); font-size: .95rem; padding: 64px 0 28px; }
.foot::after { content: ""; position: absolute; inset: 0; background: url("/assets/scene/underground.jpg") center / cover no-repeat; opacity: .9; pointer-events: none; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.foot-brand img { width: 120px; height: auto; }
.foot-brand p { max-width: 20em; margin-top: 10px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-nav h3 { font: 600 .8rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .8em; }
.foot-nav a { display: block; padding: 3px 0; overflow-wrap: anywhere; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(246, 239, 227, .18); font-size: .86rem; }
.foot-legal p { margin: 0 0 .3em; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-nav { grid-template-columns: 1fr 1.35fr; } }

/* inner pages */
.pagehead { padding: 60px 0 0; background-image: url("/assets/scene/horizon.svg"), radial-gradient(420px 170px at 36% 100%, var(--sky-glow), transparent 72%), linear-gradient(to top, var(--s1) 0, var(--s2) 30px, var(--s3) 80px, var(--s4) 140px, var(--s5) 215px, var(--s6) 320px, var(--sky-0) 100%); background-size: max(1000px, 70%) auto, auto, auto; }
.pagehead > .wrap { position: relative; z-index: 2; padding-bottom: 180px; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--paper); -webkit-mask: url("/assets/scene/edge.svg") left top / 1200px 40px repeat-x; mask: url("/assets/scene/edge.svg") left top / 1200px 40px repeat-x; }
.pagehead + .section::before { display: none; }
.pagehead h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18em; }
.pagehead h1, .pagehead .lede { text-shadow: 0 2px 16px var(--sky-shadow); }
.pagehead .lede { color: var(--sky-ink-2); margin: 0; }
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
/* sign-in pages: one card on the sky */
.authhead > .wrap { display: flex; justify-content: center; padding-bottom: 200px; }
.authcard { width: 100%; max-width: 430px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 24px; box-shadow: 0 18px 50px rgba(20, 10, 4, .28); }
.authcard h1 { font-size: 1.7rem; margin: 0 0 .5em; max-width: none; text-shadow: none; color: var(--text); }
.authcard a { color: var(--link); }
.authcard a.btn { color: var(--amber-ink); }
.auth-lede { color: var(--muted); margin: 0 0 1.1em; overflow-wrap: anywhere; }
.auth-lede b { color: var(--text); }
.authform { display: grid; gap: 8px; }
.authform label { font-weight: 600; font-size: .93rem; margin-top: 6px; }
.authform .btn { margin-top: 10px; width: 100%; text-align: center; }
.btn-quiet { background: #fff; color: var(--text); border-color: #b9b29b; }
.btn-quiet:hover { background: #f6f1e4; border-color: #8f8669; }
.auth-note { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0 2px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: .93rem; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.auth-result { margin: 0 0 .4em; }
/* a soil layer, not the cream one: between the sky and the dark footer the cream band glared */
.authhelp { --layer: var(--soil); --fossil: #744224; color: var(--on-dark); }
.authhead::after { background: var(--soil); }   /* the wavy edge under the sky belongs to that layer */
.authhelp p { margin: 0; color: var(--on-dark); text-align: center; }
.authhelp a { color: var(--amber-hi); }
@media (max-width: 520px) { .authcard { padding: 24px 20px 20px; } }

.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan h2 { font-size: 2.6rem; margin-bottom: .3em; }
.plan h2 small { display: block; font: 600 1rem/1.3 var(--body); letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.plan-main { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.plan-main h2 { color: var(--amber); }
.plan-main h2 small { color: var(--on-dark-muted); }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan .fine { font-size: .9rem; color: var(--muted); margin: 0; }
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.calc label { display: block; font-weight: 600; margin-top: 1.2em; }
.calc output { color: var(--amber); font: 700 1.3rem/1 var(--display); }
.calc input[type="range"] { width: 100%; accent-color: var(--amber); margin-top: 12px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.calc-result div { background: var(--ink-3); border-radius: var(--radius); padding: 18px; }
.calc-result dt { font-size: .86rem; color: var(--on-dark-muted); }
.calc-result dd { margin: 4px 0 0; font: 700 2rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .plans, .calc { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font: 600 1.08rem/1.4 var(--display); padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--muted); max-width: 46em; }

/* docs */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 20px; align-self: start; display: grid; gap: 2px; font-size: .95rem; }
.docs-nav a { color: var(--text); text-decoration: none; padding: 7px 12px; border-radius: 8px; border-left: 3px solid transparent; }
.docs-nav a:hover { background: var(--paper-2); }
.docs-nav a.is-current { border-left-color: var(--amber-deep); background: var(--paper-2); font-weight: 600; }
.docs-body section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.docs-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.docs-body h3 { margin-top: 1.6em; }
.endpoint { font: 500 .95rem/1.5 var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
.endpoint span { background: var(--ink); color: var(--amber); border-radius: 6px; padding: 2px 8px; margin-right: 8px; font-weight: 700; font-size: .8rem; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font: 600 .8rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
td:first-child { white-space: nowrap; }
.taglist { margin: 0 0 1em; }
.taglist div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.taglist dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .docs-nav a.is-current { border-color: var(--amber-deep); }
  .taglist div { grid-template-columns: 1fr; gap: 4px; }
  td:first-child { white-space: normal; }
}

/* legal pages */
.legal { padding: 48px 24px 80px; max-width: 800px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal .draftnote { background: #fff3cd; border: 1px solid #e6c768; border-radius: 10px; padding: 12px 16px; font-size: .95rem; }
.placeholder { background: #ffe08a; color: #4a3500; border-radius: 4px; padding: 0 .3em; font-weight: 600; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-in { flex-wrap: wrap; }
  .brand { font-size: 1.45rem; }
  .brand img { width: 62px; margin: 0; }
  .nav a:not(.btn) { padding: .45em .55em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn { transition: none; }
}
