/* ============================================================
   GlyphStack — house style
   Deep ink-navy · warm gold · cream · literary serif
   ============================================================ */

:root {
  /* Base palette */
  --ink:        #0a0c12;
  --ink-2:      #0e111a;
  --panel:      #131722;
  --panel-2:    #171c29;
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.055);

  /* Text */
  --cream:      #ece6d8;
  --cream-dim:  #c7c3b8;
  --muted:      #949aa9;
  --muted-2:    #6f7686;

  /* Brand gold */
  --gold:       #d8ab54;
  --gold-2:     #e6c680;
  --gold-deep:  #b98a37;

  /* Accent (per-section, overridden inline) */
  --accent:      var(--gold);
  --accent-soft: var(--gold-2);

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);

  --shadow:     0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-lg:  0 40px 90px -30px rgba(0, 0, 0, 0.75);

  --serif:      "Fraunces", Georgia, "Times New Roman", serif;
  --sans:       "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.ital { font-style: italic; font-weight: 500; color: var(--gold-2); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

::selection { background: rgba(216, 171, 84, 0.28); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn__arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #221a08;
  box-shadow: 0 10px 30px -12px rgba(216, 171, 84, 0.55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(216, 171, 84, 0.7); }

.btn--outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--cream);
}
.btn--outline:hover { border-color: rgba(216, 171, 84, 0.55); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent; border-color: var(--line);
  color: var(--cream-dim); padding: 10px 18px; font-size: 14px;
}
.btn--ghost:hover { border-color: rgba(216, 171, 84, 0.5); color: var(--gold-2); }

.btn--quiet { background: transparent; color: var(--muted); padding: 13px 16px; }
.btn--quiet:hover { color: var(--cream); }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px;
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 12px; font-weight: 600; color: var(--gold);
  margin-bottom: 18px;
}
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-lede { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 12, 18, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(10, 12, 18, 0.88); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 36px; height: 36px; object-fit: contain; display: block; }
.footer__brand .brand__mark { width: 40px; height: 40px; }
.brand__word { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand__glyph { color: var(--cream); }
.brand__stack { color: var(--gold); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 15px; color: var(--cream-dim); font-weight: 450;
  position: relative; padding: 4px 0; transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width 0.28s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__menu {
  display: none; width: 42px; height: 40px; border: 1px solid var(--line);
  background: transparent; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__menu span { width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: 0.25s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(80px, 13vh, 150px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__glow {
  position: absolute; z-index: 0; top: -18%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 130vw); height: 620px;
  background:
    radial-gradient(closest-side at 42% 42%, rgba(216, 171, 84, 0.20), transparent 72%),
    radial-gradient(closest-side at 66% 58%, rgba(88, 108, 190, 0.16), transparent 70%);
  filter: blur(14px); pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 34%, #000 40%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 34%, #000 40%, transparent 76%);
}

.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 26px;
}
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.32rem); color: var(--cream-dim); max-width: 620px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.hero__meta strong { color: var(--cream); font-weight: 700; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

/* ============================================================
   JOURNEY RIBBON
   ============================================================ */
.ribbon { border-block: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.ribbon__track {
  list-style: none; padding: 30px 0; margin: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
}
.ribbon__step {
  display: flex; flex-direction: column; gap: 4px; padding: 6px 14px 6px 0;
  border-right: 1px solid var(--line-soft); position: relative;
}
.ribbon__step:last-child { border-right: 0; }
.ribbon__num { font-size: 11px; letter-spacing: 0.18em; color: var(--gold); font-weight: 600; }
.ribbon__stage { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); }
.ribbon__app { font-size: 12.5px; color: var(--muted); letter-spacing: 0.01em; }

/* ============================================================
   FLAGSHIP — ScribeSage
   ============================================================ */
.flagship { padding: clamp(70px, 11vh, 120px) 0 clamp(50px, 7vh, 80px); }
.flagship__card {
  --accent: #d8ab54; --accent-soft: #e6c680;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(216, 171, 84, 0.10), transparent 55%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.flagship__card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1px;
  background: linear-gradient(140deg, rgba(216, 171, 84, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.flagship__body { padding: clamp(34px, 4.4vw, 58px); position: relative; z-index: 1; }
.flagship__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-2); background: rgba(216, 171, 84, 0.10);
  border: 1px solid rgba(216, 171, 84, 0.3); border-radius: 999px;
  padding: 7px 15px; margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #57d98a; box-shadow: 0 0 0 0 rgba(87, 217, 138, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(87,217,138,.55);} 70% { box-shadow: 0 0 0 8px rgba(87,217,138,0);} 100% { box-shadow: 0 0 0 0 rgba(87,217,138,0);} }

.flagship__name { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 20px; }
.flagship__desc { color: var(--cream-dim); font-size: 1.06rem; max-width: 520px; margin-bottom: 26px; }
.flagship__features { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.flagship__features li { display: flex; align-items: flex-start; gap: 11px; color: var(--cream-dim); font-size: 15.5px; }
.flagship__features li span { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.flagship__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.flagship__visual {
  position: relative; padding: 40px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 90% at 70% 20%, rgba(216, 171, 84, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-left: 1px solid var(--line-soft);
}
.mock {
  width: 100%; max-width: 420px; aspect-ratio: 4 / 3.2;
  background: linear-gradient(180deg, #0c0f18, #0a0c12);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.flagship__card:hover .mock { transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg) translateY(-4px); }
.mock__bar { display: flex; gap: 7px; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2b3242; }
.mock__bar span:first-child { background: #d8ab54; opacity: .8; }
.mock__body { display: grid; grid-template-columns: 74px 1fr; height: calc(100% - 42px); }
.mock__side { border-right: 1px solid var(--line-soft); padding: 16px 12px; display: flex; flex-direction: column; gap: 11px; align-items: center; }
.mock__nib { width: 30px; height: 30px; color: var(--gold); opacity: .9; }
.mock__pill { width: 100%; height: 9px; border-radius: 5px; background: rgba(255,255,255,0.06); }
.mock__pill--on { background: rgba(216,171,84,0.35); }
.mock__main { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.mock__line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.07); }
.mock__line.w40 { width: 40%; } .mock__line.w50 { width: 50%; } .mock__line.w60 { width: 60%; }
.mock__line.w70 { width: 70%; } .mock__line.w80 { width: 80%; } .mock__line.w85 { width: 85%; } .mock__line.w90 { width: 90%; }
.mock__chip {
  align-self: flex-start; font-size: 11px; color: var(--gold-2);
  background: rgba(216,171,84,0.10); border: 1px solid rgba(216,171,84,0.28);
  border-radius: 8px; padding: 6px 11px; margin: 4px 0;
}

/* ============================================================
   APPS GRID
   ============================================================ */
.apps { padding: clamp(50px, 8vh, 90px) 0 clamp(70px, 11vh, 120px); }
.apps__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.8);
}
.card:hover::after { opacity: 1; }

.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.card__icon svg { width: 26px; height: 26px; }

.badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
}
.badge--live { color: #64e39a; background: rgba(87,217,138,0.10); border: 1px solid rgba(87,217,138,0.3); }
.badge--live .pulse { width: 7px; height: 7px; background: #57d98a; }
.badge--soon { color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); }

.card__name { font-size: 1.55rem; margin-bottom: 6px; }
.card__tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-soft); margin-bottom: 15px; font-weight: 600; }
.card__desc { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; flex: 1; }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.card__domain { font-size: 13px; color: var(--muted-2); letter-spacing: 0.01em; }
.card__notify, .card__visit {
  font-size: 14px; font-weight: 600; color: var(--accent-soft);
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.card__visit { color: var(--accent-soft); }
.card__visit svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.card:hover .card__visit svg { transform: translateX(3px); }
.card__notify:hover { color: #fff; }

/* Whole-card click: the visit link's hit area is stretched over the entire card,
   so a click anywhere on the card follows its "Visit site" link. One real link
   per card keeps it accessible; the card__domain is plain text, so nothing nests. */
.card { cursor: pointer; }
.card__visit::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__visit { color: #fff; }

/* Lone trailing card (odd count) → full-width centered closer */
@media (min-width: 721px) {
  .apps__grid .card--wide { grid-column: 1 / -1; align-items: center; text-align: center; }
  .apps__grid .card--wide .card__top { width: 100%; justify-content: center; gap: 18px; margin-bottom: 20px; }
  .apps__grid .card--wide .card__desc { max-width: 600px; flex: none; }
  .apps__grid .card--wide .card__foot { width: 100%; max-width: 600px; justify-content: center; gap: 28px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(60px, 10vh, 110px) 0; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about__col p { color: var(--cream-dim); font-size: 1.08rem; margin-bottom: 18px; max-width: 46ch; }
.about__col .btn { margin-top: 10px; }
.about .section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--ink); padding: 64px 0 34px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-soft); }
.footer__brand .brand { margin-bottom: 16px; }
.footer__tag { color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 18px; font-weight: 600; }
.footer__apps { display: flex; flex-direction: column; gap: 12px; }
.footer__apps a { color: var(--cream-dim); font-size: 15px; display: inline-flex; align-items: center; gap: 9px; transition: color 0.2s var(--ease); }
.footer__apps a:hover { color: var(--gold-2); }
.mini-badge { font-size: 10px; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; font-weight: 600; color: #64e39a; background: rgba(87,217,138,0.12); }
.mini-badge--soon { color: var(--muted); background: rgba(255,255,255,0.05); }
.footer__contact a { color: var(--gold-2); font-size: 16px; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__note { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 28ch; }
.footer__base { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; color: var(--muted-2); font-size: 13.5px; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Progressive enhancement: reveal is opt-in only when JS is present.
   Without JS (crawlers, no-script), all content is visible by default. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .pulse { animation: none; }
  .mock { transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .flagship__card { grid-template-columns: 1fr; }
  .flagship__visual { border-left: 0; border-top: 1px solid var(--line-soft); padding: 34px; }
  .mock { transform: none; max-width: 380px; }
  .about__inner { grid-template-columns: 1fr; }
  .ribbon__track { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .ribbon__step { border-right: 1px solid var(--line-soft); }
  .ribbon__step:nth-child(3n) { border-right: 0; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: rgba(12, 15, 22, 0.97); backdrop-filter: blur(16px);
    padding: 22px 26px; gap: 20px; border-bottom: 1px solid var(--line);
  }
  .nav__menu { display: flex; }
  .nav__cta .btn--ghost { display: none; }
  .apps__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  body { font-size: 16px; }
}
@media (max-width: 520px) {
  .container { padding-inline: 20px; }
  .ribbon__track { grid-template-columns: repeat(2, 1fr); }
  .ribbon__step { border-right: 1px solid var(--line-soft); }
  .ribbon__step:nth-child(2n) { border-right: 0; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .flagship__body { padding: 30px 24px; }
  .card { padding: 26px; }
}

/* ============================================================
   FOOTER LEGAL LINKS
   ============================================================ */
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--muted); font-size: 13.5px; transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--gold-2); }
@media (max-width: 620px) {
  .footer__base { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   LEGAL PAGES  (privacy.html / terms.html / data-deletion.html)
   ============================================================ */
.legal { padding: clamp(46px, 7vh, 80px) 0 clamp(60px, 10vh, 110px); }
.legal__wrap { max-width: 780px; margin-inline: auto; }
.legal__head { margin-bottom: clamp(30px, 5vh, 48px); padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.legal__title { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 14px; }
.legal__updated { color: var(--muted); font-size: 14.5px; }
.legal__note {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 34px; color: var(--cream-dim); font-size: 14.5px;
}
.legal__note strong { color: var(--gold-2); }
/* .legal__body p is more specific than .legal__note, so restate the note's
   own treatment when it sits inside the body copy. */
.legal__body p.legal__note { color: var(--cream-dim); font-size: 14.5px; margin-bottom: 34px; }
.legal__toc {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 22px 26px; margin-bottom: 44px;
}
.legal__toc h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 14px; border: 0; padding: 0; }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.legal__toc li { color: var(--cream-dim); margin-bottom: 7px; font-size: 14.5px; }
.legal__toc a { color: var(--cream-dim); text-decoration: none; }
.legal__toc a:hover { color: var(--gold-2); }
.legal__body h2 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500;
  color: var(--cream); margin: 46px 0 16px; padding-top: 8px;
  scroll-margin-top: 90px;
}
.legal__body h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--cream); margin: 26px 0 8px; }
.legal__body p, .legal__body li { color: var(--cream-dim); font-size: 16px; line-height: 1.78; }
.legal__body p { margin-bottom: 16px; }
.legal__body ul { margin: 0 0 18px; padding-left: 22px; }
.legal__body li { margin-bottom: 9px; }
.legal__body a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--cream); }
.legal__body hr { border: 0; border-top: 1px solid var(--line-soft); margin: 40px 0; }
/* Fill-in placeholders — highlighted so they're easy to find and replace.
   Remove the highlight (or the .ph class) once real values are in. */
.ph { color: #ffd98a; background: rgba(216, 171, 84, 0.14); padding: 1px 6px; border-radius: 5px; font-style: normal; white-space: nowrap; }
.legal .nav__inner { height: 72px; }
.legal-nav__back { font-size: 14px; color: var(--cream-dim); display: inline-flex; align-items: center; gap: 7px; }
.legal-nav__back:hover { color: var(--gold-2); }
@media (max-width: 620px) { .legal__toc ol { columns: 1; } }

/* ============================================================
   NOTIFY MODAL  (FolioScriv → Tarvent email capture)
   ============================================================ */
.notify[hidden] { display: none; }
.notify {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 24px;
}
.notify__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 8, 13, 0.74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.22s var(--ease);
}
.notify.is-open .notify__backdrop { opacity: 1; }

.notify__dialog {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.85), var(--shadow-lg);
  padding: clamp(28px, 4vw, 40px);
  transform: translateY(14px) scale(0.98); opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.notify.is-open .notify__dialog { transform: none; opacity: 1; }

.notify__x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255, 255, 255, 0.02); color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.notify__x:hover { color: var(--cream); border-color: rgba(216, 171, 84, 0.5); }
.notify__x svg { width: 16px; height: 16px; }

.notify__icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px; color: var(--accent-soft);
  background: rgba(63, 160, 140, 0.12); border: 1px solid rgba(63, 160, 140, 0.32);
  margin-bottom: 18px;
}
.notify__icon svg { width: 26px; height: 26px; }
.notify__eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-soft); font-weight: 600; margin-bottom: 10px;
}
.notify__title { font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.15; margin-bottom: 12px; }
.notify__desc { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }

.notify__label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--cream-dim); margin-bottom: 8px;
}
.notify__row { display: flex; gap: 10px; }
.notify__input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 15px; color: var(--cream);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.notify__input::placeholder { color: var(--muted-2); }
.notify__input:focus { outline: none; border-color: rgba(216, 171, 84, 0.6); box-shadow: 0 0 0 3px rgba(216, 171, 84, 0.14); }
.notify__input[aria-invalid="true"] { border-color: #d9776a; box-shadow: 0 0 0 3px rgba(217, 119, 106, 0.16); }
.notify__submit { flex-shrink: 0; padding: 13px 20px; }
.notify__submit.is-loading { opacity: 0.7; pointer-events: none; }

.notify__error { color: #e58a7d; font-size: 13.5px; margin-top: 10px; }
.notify__fine { color: var(--muted-2); font-size: 12.5px; margin-top: 14px; }
.notify__fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.notify__fine a:hover { color: var(--gold-2); }

.notify__panel--success { text-align: center; }
.notify__check {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  margin: 4px auto 18px; color: #64e39a;
  background: rgba(87, 217, 138, 0.12); border: 1px solid rgba(87, 217, 138, 0.32);
}
.notify__check svg { width: 26px; height: 26px; }
.notify__panel--success .btn { margin-top: 22px; }

@media (max-width: 480px) {
  .notify__row { flex-direction: column; }
  .notify__submit { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .notify__backdrop, .notify__dialog { transition: none; }
}
