/* Nerthos site styles. Shared by every page. */

/* Self-hosted fonts (SIL Open Font License, see /fonts). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-italic.woff2) format('woff2'); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0a09;
  --bg-2: #110f0d;
  --surface: #161311;
  --surface-2: #1c1815;
  --line: rgba(255, 236, 214, 0.08);
  --line-2: rgba(255, 236, 214, 0.14);
  --text: #f5efe6;
  --text-2: #c9c0b4;
  --text-3: #968c80;
  --ember: #ff9d1a;
  --ember-2: #ff6a00;
  --ember-soft: rgba(255, 157, 26, 0.14);
  --ember-line: rgba(255, 157, 26, 0.38);
  --ok: #6fcf8e;
  --err: #ff7a6b;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ember); color: #140c02; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ember); color: #140c02; padding: .6rem 1rem; z-index: 999; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Ambient backdrop ---------- */
.embers { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 8px 1px rgba(255,157,26,.6);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0,0); opacity: 0; }
  12% { opacity: .75; }
  85% { opacity: .25; }
  100% { transform: translate(24px,-100vh); opacity: 0; }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,10,9,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11,10,9,.9); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand span { font-family: var(--sans); font-weight: 700; letter-spacing: .22em; font-size: .95rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--text-2); transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--ember); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 0; font-family: var(--sans);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { color: #1a0e00; background: linear-gradient(135deg, var(--ember), var(--ember-2)); box-shadow: 0 0 18px rgba(255,140,20,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,140,20,.6); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--ember-line); background: var(--ember-soft); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; border-radius: 9px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); }
.link { color: var(--ember); text-decoration: none; font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--ember); border: 1px solid var(--ember-line); background: var(--ember-soft);
  border-radius: 100px; padding: .38rem .95rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.label { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ember); margin-bottom: .9rem; }
h1, h2, h3 { color: var(--text); font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.flame { background: linear-gradient(120deg, #ffb347, var(--ember) 40%, var(--ember-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--text-2); max-width: 56ch; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.center .lead, .center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { color: var(--text-2); font-size: 1.1rem; max-width: 60ch; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 110%; z-index: -1;
  background:
    radial-gradient(40% 45% at 22% 30%, rgba(255,106,0,.20), transparent 70%),
    radial-gradient(35% 40% at 80% 55%, rgba(255,157,26,.12), transparent 70%);
  filter: blur(40px);
}
.hero h1 { margin: 1.6rem 0 1.4rem; max-width: 16ch; }
.hero .lead { margin-bottom: 2.2rem; }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--text-3); }
.hero-shot { margin-top: 72px; }

/* ---------- App screenshot frame ---------- */
.frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #fff;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4), 0 0 80px rgba(255,120,20,.10);
}
.frame::before {
  content: ''; display: block; height: 30px; background: #1b1816; border-bottom: 1px solid rgba(255,255,255,.06);
  background-image:
    radial-gradient(circle at 18px 15px, #ff5f57 5px, transparent 5.5px),
    radial-gradient(circle at 36px 15px, #febc2e 5px, transparent 5.5px),
    radial-gradient(circle at 54px 15px, #28c840 5px, transparent 5.5px);
}
.frame img { width: 100%; height: auto; }
.frame-glow { position: relative; }
.frame-glow::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -40px; height: 80px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,120,20,.35), transparent 70%); filter: blur(20px);
}
.caption { margin-top: 14px; font-size: .82rem; color: var(--text-3); text-align: center; }

/* ---------- Cards and grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--ember-line); transform: translateY(-3px); }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: 1rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--ember-soft); border: 1px solid var(--ember-line); color: var(--ember);
}
.icon svg { width: 22px; height: 22px; }
.mini { padding: 22px; border-radius: var(--radius); }
.mini h4 { color: var(--text); font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.mini p { font-size: .92rem; color: var(--text-3); }

/* ---------- Feature rows (Nexus page) ---------- */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy p { margin-bottom: 1.2rem; }
.ticks { list-style: none; display: grid; gap: .7rem; margin-top: 1.4rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; }
.ticks li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: .6rem; border-radius: 2px; transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 8px rgba(255,157,26,.6); }
.feature + .feature { margin-top: 130px; }

/* ---------- Pillars (home) ---------- */
.pillar { position: relative; overflow: hidden; }
.pillar .num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ember); opacity: .35; margin-bottom: 1rem; }

/* ---------- Steps (beta) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 700; font-size: .92rem; color: #1a0e00; background: linear-gradient(135deg, var(--ember), var(--ember-2));
  margin-bottom: 1rem; box-shadow: 0 0 14px rgba(255,140,20,.45);
}
.step h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: 0; }
.step p { font-size: .93rem; color: var(--text-2); }
.step .when { display: inline-block; margin-top: .8rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); font-weight: 600; }

/* ---------- Form ---------- */
.form-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--ember-line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(255,120,20,.08); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px; padding: .8rem .95rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9c0b4' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,157,26,.18); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--text-2); grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ember); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot small { color: var(--text-3); font-size: .85rem; }
.status { grid-column: 1 / -1; font-size: .93rem; min-height: 1.4em; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
.success { display: none; text-align: center; padding: 20px 0; }
.success.show { display: block; }
.success .badge { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ember-soft); border: 1px solid var(--ember-line); color: var(--ember); }
.success .badge svg { width: 30px; height: 30px; }
.success ol { text-align: left; max-width: 460px; margin: 1.4rem auto 0; padding-left: 1.2rem; display: grid; gap: .5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 22px; transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--ember-line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--ember); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--text-2); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 110px 0; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 420px; transform: translate(-50%,-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(255,110,10,.16), transparent 70%); z-index: -1; }
.cta-band h2 { max-width: 20ch; margin: 0 auto 1.1rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .cta-row { justify-content: center; }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.founder-card { position: sticky; top: 100px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; }
.founder-card .portrait { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(60% 60% at 50% 45%, rgba(255,120,20,.18), transparent 70%), var(--bg); display: grid; place-items: center; margin-bottom: 1.2rem; border: 1px solid var(--line); }
.founder-card .portrait { overflow: hidden; background: none; border: 0; }
.founder-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 { font-size: 1.4rem; }
.founder-card .role { color: var(--ember); font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.facts { list-style: none; display: grid; gap: .55rem; font-size: .93rem; }
.facts li { display: flex; gap: .6rem; }
.facts li::before { content: '\25C6'; color: var(--ember); font-size: .6rem; margin-top: .45rem; }
.prose p { margin-bottom: 1.25rem; font-size: 1.08rem; }
.prose p.big { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--text); }
.signature { font-family: var(--serif); font-style: italic; color: var(--text); font-size: 1.2rem; }
.value-list { display: grid; gap: 18px; }
.value { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.value .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ember); opacity: .5; }
.value h3 { margin-bottom: .45rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.stat .k { font-family: var(--serif); color: var(--text); font-size: 1.7rem; line-height: 1.1; }
.stat .v { font-size: .88rem; color: var(--text-3); margin-top: .35rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .92rem; color: var(--text-3); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--text); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: var(--text-2); }
.footer a:hover { color: var(--ember); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 24px; }
.footer .tag { max-width: 36ch; margin-top: .9rem; }
.social { display: flex; gap: 10px; margin-top: 1.2rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.social a:hover, .social a:focus-visible { color: var(--ember); border-color: rgba(255,157,26,.45); background: rgba(255,157,26,.06); }
.social svg { width: 18px; height: 18px; }
.founder-card .follow { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.social-inline { margin-top: .7rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .founder { grid-template-columns: 1fr; }
  .founder-card { position: static; max-width: 420px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,10,9,.97); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--ember); }
  .nav-links li:last-child { padding-top: 16px; }
  .nav-links .btn { width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-shot { margin-top: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .feature + .feature { margin-top: 90px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps, .grid-4, .stat-row { grid-template-columns: 1fr; }
  .frame::before { height: 20px; background-image: radial-gradient(circle at 12px 10px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 24px 10px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 36px 10px, #28c840 3.5px, transparent 4px); }
  .value { grid-template-columns: 1fr; gap: 8px; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ember, .eyebrow .dot { animation: none; display: none; }
}

/* Heading to paragraph rhythm */
h3 + p { margin-top: .55rem; }
.card h3 + p, .value h3 + p { margin-top: 0; }
.prose p.label, .card p.label { font-size: .76rem; margin-bottom: .9rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #1a0e00; }
@media (max-width: 820px) { .nav-links { background: var(--bg); box-shadow: 0 20px 40px rgba(0,0,0,.5); } }

/* ---------- Pricing ---------- */
.beta-note { margin-top: 1.6rem; max-width: 640px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--ember-line); background: var(--ember-soft); color: var(--text); font-size: .98rem; }
.beta-note strong { color: var(--ember); }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 28px; }
.billing-toggle button { font: inherit; font-size: .92rem; font-weight: 600; color: var(--text-2); background: none; border: 0; border-radius: 9px; padding: .55rem 1.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.billing-toggle button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--ember-line); }
.billing-toggle .save { font-size: .72rem; font-weight: 700; color: #1a0e00; background: var(--ember); border-radius: 100px; padding: .1rem .5rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.plan.featured { border-color: var(--ember-line); box-shadow: 0 0 50px rgba(255,120,20,.10); }
.plan-tag { position: absolute; top: -12px; left: 24px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1a0e00; background: linear-gradient(135deg, var(--ember), var(--ember-2)); border-radius: 100px; padding: .25rem .75rem; }
.plan h3 { font-size: 1.5rem; }
.plan-for { font-size: .93rem; color: var(--text-3); margin: .35rem 0 1.2rem; min-height: 2.8em; }
.price { display: flex; flex-direction: column; margin-bottom: 1.3rem; }
.price .amt { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--text); }
.price .per { font-size: .85rem; color: var(--text-3); margin-top: .4rem; }
.plan .btn { width: 100%; margin-bottom: 1.4rem; }
.plan .ticks { margin-top: 0; gap: .6rem; }
.plan .ticks li { font-size: .93rem; }
.plan .ticks strong { color: var(--text); font-weight: 600; }
.suite-price { margin-top: 1.1rem; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--ember); }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .plan-for { min-height: 0; } }
