/* ============================================================================
   Charter — Application & Marketing Stylesheet
   Aesthetic: "Editorial Legal-Tech" — warm ivory paper, deep emerald ink,
   ochre accent, Fraunces display + Hanken Grotesk UI + Newsreader document.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --paper:      #F3EEE2;
  --paper-2:    #EBE3D2;
  --paper-3:    #E2D8C3;
  --cream:      #FBF8F1;
  --ink:        #15231B;
  --ink-2:      #28362C;
  --ink-soft:   #586256;
  --ink-faint:  #8A917F;

  --emerald:    #1C4B39;
  --emerald-700:#163B2D;
  --emerald-900:#0E2A1F;
  --emerald-300:#4F7C67;
  --emerald-50: #E7EEE7;

  --ochre:      #BE7615;
  --ochre-600:  #A1620E;
  --ochre-300:  #DEAB5C;
  --ochre-100:  #F0DDB6;

  --line:        rgba(21,35,27,.14);
  --line-2:      rgba(21,35,27,.24);
  --line-strong: rgba(21,35,27,.42);

  --shadow-sm: 0 1px 2px rgba(14,42,31,.06), 0 2px 6px rgba(14,42,31,.05);
  --shadow-md: 0 4px 14px rgba(14,42,31,.10), 0 18px 40px -22px rgba(14,42,31,.30);
  --shadow-lg: 0 10px 30px rgba(14,42,31,.12), 0 40px 80px -30px rgba(14,42,31,.42);
  --shadow-doc: 0 2px 5px rgba(14,42,31,.08), 0 30px 60px -32px rgba(14,42,31,.45);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-doc: "Newsreader", "Iowan Old Style", Georgia, serif;

  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------ base -- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* anchored sections land below the sticky header */
[id] { scroll-margin-top: 86px; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ochre-300); color: var(--emerald-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  color: var(--ink);
  margin: 0;
}
p { margin: 0 0 1em; }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ochre-600);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before {
  content: "§"; font-family: var(--font-display);
  font-size: 1.2em; letter-spacing: 0; transform: translateY(.02em);
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  --bg: var(--emerald); --fg: #FBF8F1;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-ui); font-weight: 600; font-size: .98rem;
  letter-spacing: -.01em;
  padding: .82em 1.35em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn-ochre { --bg: var(--ochre); --fg: #2A1A03; }
.btn-ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: rgba(21,35,27,.05); border-color: var(--line-strong); box-shadow: none; }
.btn-lg { font-size: 1.05rem; padding: .95em 1.7em; }
.btn-sm { font-size: .86rem; padding: .55em .95em; }

/* ---------------------------------------------------------------- header -- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-head.nav-open {
  z-index: 9999;
  backdrop-filter: none;
  background: var(--paper);
}
.site-head .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--emerald); color: var(--cream);
  font-size: 1.3rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.brand .name { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.brand .name b { color: var(--emerald); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.lnk {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: .2em 0;
}
.nav a.lnk::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--ochre); transition: right .3s var(--ease);
}
.nav a.lnk:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
@media (max-width: 860px) { .nav .lnk { display: none; } }

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; z-index: 1; padding: clamp(48px, 8vw, 104px) 0 clamp(40px,6vw,84px); }
.hero-glow {
  position: absolute; z-index: -1; inset: -10% -20% auto auto;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 70% 30%, rgba(190,118,21,.20), transparent 60%),
              radial-gradient(circle at 40% 60%, rgba(28,75,57,.18), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  margin: .5rem 0 .1rem;
}
.hero h1 .accent {
  font-style: italic; font-weight: 500;
  color: var(--emerald);
  position: relative;
}
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em;
  background: var(--ochre-300); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; animation: underline 1s var(--ease) .7s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--ink-soft); max-width: 33ch; margin: 1.1rem 0 1.9rem;
}
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 2.2rem; display: flex; gap: 1.8rem; flex-wrap: wrap;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.hero-meta .stat .n {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
  color: var(--emerald); line-height: 1;
}
.hero-meta .stat .l { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; } .d6 { animation-delay: .55s; }

/* ------------------------------------------------ hero paper-stack visual -- */
.paperstack { position: relative; height: clamp(360px, 38vw, 500px); perspective: 1600px; }
.sheet {
  position: absolute; border-radius: 6px;
  background: var(--cream);
  box-shadow: var(--shadow-doc);
  border: 1px solid rgba(21,35,27,.08);
}
.sheet.s3 { inset: 14% 18% 6% 2%; transform: rotate(-7deg); background: #F6F1E6; }
.sheet.s2 { inset: 9% 9% 9% 9%;  transform: rotate(4deg);  background: #F9F4EA; }
.sheet.s1 {
  inset: 2% 2% 14% 16%; transform: rotate(-1.5deg);
  display: flex; flex-direction: column;
  padding: clamp(18px, 2.4vw, 30px);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: rotate(-1.5deg) translateY(-10px); } }
.sheet.s1 .doc-tab {
  position: absolute; right: -10px; top: 16%;
  width: 12px; height: 54px; border-radius: 0 3px 3px 0;
  background: var(--ochre); box-shadow: var(--shadow-sm);
}
.sheet.s1 .doc-tab.t2 { top: calc(16% + 64px); background: var(--emerald); }
.sheet.s1 .doc-tab.t3 { top: calc(16% + 128px); background: var(--ochre-300); }
.doc-kicker { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ochre-600); font-weight: 700; }
.doc-mark { font-family: var(--font-display); font-size: clamp(1.5rem,2.6vw,2.3rem); color: var(--emerald); margin: .15em 0 .05em; line-height: 1; }
.doc-sub { font-family: var(--font-doc); font-style: italic; color: var(--ink-soft); font-size: .82rem; }
.doc-rule { height: 1px; background: var(--line); margin: 14px 0; }
.doc-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.doc-lines i { height: 6px; border-radius: 3px; background: rgba(21,35,27,.12); display: block; }
.doc-lines i:nth-child(2){ width: 92%; } .doc-lines i:nth-child(3){ width: 76%; }
.doc-lines i:nth-child(4){ width: 88%; } .doc-lines i:nth-child(5){ width: 64%; }
.doc-lines i.h { height: 9px; width: 46%; background: var(--emerald-300); margin-top: 8px; }
.doc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .62rem; color: var(--ink-faint); }
.stamp {
  position: absolute; right: -22px; bottom: 8%;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 2px solid var(--ochre); color: var(--ochre-600);
  font-family: var(--font-display); font-size: .58rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(251,248,241,.7); transform: rotate(-12deg);
  box-shadow: var(--shadow-sm);
}
.stamp span { display:block; font-size:1.5rem; letter-spacing: 0; }

/* --------------------------------------------------------------- marquee -- */
.trust { border-block: 1px solid var(--line); background: var(--paper-2); position: relative; z-index: 1; }
.trust .wrap { display: flex; align-items: center; gap: 2rem; padding: 18px 0; flex-wrap: wrap; justify-content: center; }
.trust span { font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; }
.trust b { font-family: var(--font-display); color: var(--emerald); font-weight: 600; }
.trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); }

/* ---------------------------------------------------------------- layers -- */
section.block { position: relative; z-index: 1; padding: clamp(56px, 8vw, 110px) 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.025em; margin: .55rem 0 .6rem; }
.sec-head p { color: var(--ink-soft); font-size: 1.12rem; }

.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.layer:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.layer .num {
  font-family: var(--font-display); font-size: .9rem; color: var(--ochre-600);
  border: 1px solid var(--ochre-300); border-radius: 999px; padding: .1em .7em;
  display: inline-block; margin-bottom: 1.1rem;
}
.layer .ic { width: 46px; height: 46px; margin-bottom: 1rem; color: var(--emerald); }
.layer h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.layer p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.2rem; }
.layer .tag { font-size: .8rem; font-weight: 600; color: var(--emerald); letter-spacing: .02em; }
.layer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--ochre));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.layer:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------- process -- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px; }
.step + .step { border-left: 1px solid var(--line); }
.step .k {
  counter-increment: s; font-family: var(--font-display); font-weight: 600;
  font-size: 2.6rem; color: var(--emerald); line-height: 1; display: block; margin-bottom: .6rem;
}
.step .k::before { content: counter(s, decimal-leading-zero); }
.step h4 { font-size: 1.28rem; font-weight: 600; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ----------------------------------------------------------- split promo -- */
.promo {
  background: var(--emerald); color: #EAF0EA; border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 64px); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.promo::before {
  content: "§"; position: absolute; right: -2%; bottom: -28%;
  font-family: var(--font-display); font-size: 30rem; line-height: 1;
  color: rgba(255,255,255,.05);
}
.promo .eyebrow { color: var(--ochre-300); }
.promo h2 { color: #FBF8F1; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; margin: .5rem 0 .8rem; max-width: 18ch; }
.promo p { color: rgba(234,240,234,.8); max-width: 46ch; margin-bottom: 1.8rem; }
.promo .btn-ghost { --fg: #FBF8F1; border-color: rgba(251,248,241,.3); }
.promo .btn-ghost:hover { background: rgba(251,248,241,.1); }

/* states coverage strip */
.cover-states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.cover-states .pill {
  font-size: .78rem; font-weight: 600; padding: .4em .8em; border-radius: 999px;
  background: rgba(251,248,241,.1); border: 1px solid rgba(251,248,241,.18); color: #EAF0EA;
}
.cover-states .pill.live { background: var(--ochre); color: #2A1A03; border-color: transparent; }

/* ---------------------------------------------------------------- footer -- */
.site-foot { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h5 { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }
.foot-grid a { display: block; color: var(--ink-soft); font-size: .95rem; padding: .25em 0; }
.foot-grid a:hover { color: var(--emerald); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-bottom small { color: var(--ink-faint); font-size: .82rem; }
.disclaimer { color: var(--ink-faint); font-size: .82rem; max-width: 38ch; }

/* ---------------------------------------------------- brand wordmark ---- */
.brand .mark { overflow: hidden; }
.brand .mark .cs-cube { width: 80%; height: 80%; display: block; }
.brand .name { display: inline-flex; flex-direction: column; line-height: 1.02; }
.brand .name small {
  font-family: var(--font-ui); font-size: .56rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px;
}

/* --------------------------------------------------------- about us ----- */
.band-soft { background: var(--paper-2); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-lead h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 500; letter-spacing: -.02em; margin: .6rem 0 1rem; }
.about-lead .muted { font-size: 1.12rem; }
.about-body p { color: var(--ink-2); }
.about-sub { font-weight: 700; color: var(--ink); margin-bottom: .55rem; }
.about-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.about-list li { position: relative; padding-left: 1.7em; color: var(--ink-2); }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  background: var(--ochre); border-radius: 2px; transform: rotate(45deg);
}

/* --------------------------------------------------------- contact ------ */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-sm);
}
.contact-lead h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; margin: .5rem 0 .7rem; }
.contact-info { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.contact-item:hover { border-color: var(--emerald-300); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.ci-ic { font-size: 1.2rem; line-height: 1; }
.ci-l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-weight: 700; }
.ci-v { display: block; font-weight: 600; color: var(--ink); }

/* -------------------------------- spacing fix: numbers ↔ titles ↔ copy -- */
.step .k { margin-bottom: 1.15rem; }
.step h4 { margin-bottom: .7rem; }
.layer .num { margin-bottom: 1.4rem; }
.layer .ic { margin-bottom: 1.15rem; }
.layer h3 { margin-bottom: .7rem; }

@media (max-width: 860px) {
  .about-grid, .contact-card, .pricing-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- pricing ------ */
.pricing-layout {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start;
}
.price-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-xl);
  border-top: 4px solid var(--emerald);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md);
}
.pkg-header { margin-bottom: 22px; }
.pkg-badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-700);
  background: var(--emerald-50); border: 1px solid rgba(28,75,57,.18);
  border-radius: 999px; padding: .35em 1em;
}
.price-breakdown {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 24px;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: none; }
.pr-label { color: var(--ink-2); font-size: .98rem; }
.pr-note { color: var(--ink-faint); font-size: .85em; }
.pr-amt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.price-total { background: var(--emerald); }
.price-total .pr-label { color: rgba(251,248,241,.85); font-weight: 600; font-size: 1rem; }
.price-total .pr-amt { color: #FBF8F1; font-size: 1.6rem; }
.price-card .btn { width: 100%; justify-content: center; margin-bottom: 28px; }
.price-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 1.25rem; text-align: center; }
.includes-title { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.includes-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.includes-list li {
  position: relative; padding-left: 1.8em; color: var(--ink-2); font-size: .97rem;
}
.includes-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--emerald);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%23FBF8F1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.access-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow-sm);
}
.access-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .65rem; }
.access-card > p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.2rem; }
.access-list {
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  display: flex; flex-direction: column; gap: 11px;
}
.access-list li {
  position: relative; padding-left: 1.35em; color: var(--ink-2);
  font-size: .93rem; line-height: 1.55;
}
.access-list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; background: var(--ochre); border-radius: 50%;
}
.access-reminder {
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 4px solid var(--ochre); border-radius: var(--r-md);
  padding: 14px 16px;
}
.access-reminder + .access-reminder { margin-top: 14px; }
.access-reminder strong {
  display: block; font-size: .85rem; font-weight: 700; color: var(--ochre-600); margin-bottom: .4rem;
}
.access-reminder p { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ----------------------------------------------------------- legal page - */
.legal { position: relative; z-index: 1; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 90px); }
.legal .wrap { max-width: 780px; }
.legal .back { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.8rem; }
.legal .back:hover { color: var(--emerald); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -.025em; margin: .5rem 0 .4rem; }
.legal .updated { font-size: .85rem; color: var(--ink-faint); margin-bottom: 2rem; }
.legal-body { font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); }
.legal-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin: 2rem 0 .7rem; }
.legal-body p { margin: 0 0 1.1em; }
.legal-body .callout {
  background: var(--cream); border-left: 4px solid var(--emerald); border-radius: var(--r-md);
  padding: 1.2em 1.4em; margin: 0 0 1.4em; box-shadow: var(--shadow-sm);
}
.legal-body .callout strong { color: var(--emerald-700); }
.legal-body a { color: var(--emerald); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   BUILDER  — split-screen application
   ===================================================================== */
.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.app-bar {
  flex: 0 0 auto; height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); z-index: 20;
}
.app-bar .left, .app-bar .right { display: flex; align-items: center; gap: 14px; }
.app-bar .brand .name { font-size: 1.25rem; }
.app-bar .brand .mark { width: 28px; height: 28px; font-size: 1.05rem; border-radius: 7px; }
.doc-title { display: flex; flex-direction: column; line-height: 1.15; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); }
.doc-title .t { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.doc-title .s { font-size: .76rem; color: var(--ink-soft); }

.progress-ring { display: flex; align-items: center; gap: 9px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .track { fill: none; stroke: var(--line-2); stroke-width: 3.5; }
.progress-ring .val { fill: none; stroke: var(--emerald); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .5s var(--ease); }
.progress-ring .lbl { font-size: .8rem; font-weight: 600; color: var(--ink-2); }

.app-main { flex: 1 1 auto; display: grid; grid-template-columns: minmax(min(380px, 100%), 460px) 1fr; min-height: 0; }

/* ---- form panel ---- */
.form-panel { overflow-y: auto; border-right: 1px solid var(--line); background: var(--paper-2); padding: 26px 26px 80px; scrollbar-width: thin; }
.form-panel::-webkit-scrollbar { width: 10px; }
.form-panel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--paper-2); }
.panel-intro { margin-bottom: 22px; }
.panel-intro h1 { font-size: 1.7rem; font-weight: 600; margin-bottom: .3rem; }
.panel-intro p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.fgroup { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.fgroup > summary, .fgroup > .ghead {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.ghead .gnum {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--emerald-50); color: var(--emerald); font-weight: 700; font-size: .9rem;
  border: 1px solid var(--line);
}
.ghead .gmeta { flex: 1 1 auto; }
.ghead .gmeta .gt { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.ghead .gmeta .gb { font-size: .82rem; color: var(--ink-soft); }
.ghead .gcheck { font-size: .76rem; font-weight: 700; color: var(--emerald); display: inline-flex; align-items: center; gap: .35em; }
.ghead .gcheck.partial { color: var(--ochre-600); }
.fgroup .gbody { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.fgroup[open] .chev { transform: rotate(90deg); }
.chev { transition: transform .25s var(--ease); color: var(--ink-faint); }

.field { margin-top: 16px; }
.field > label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-2); }
.field .req { color: var(--ochre-600); }
.field .help { font-size: .78rem; color: var(--ink-soft); margin-top: .35rem; line-height: 1.45; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: .68em .8em; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field textarea {
  width: 100%; font-family: inherit; font-size: .96rem; color: var(--ink); line-height: 1.5;
  padding: .68em .8em; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: #fff; resize: vertical; min-height: 76px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(28,75,57,.14);
}
.field.filled input, .field.filled select, .field.filled textarea { border-color: var(--emerald-300); }

/* checkbox group */
.check-grid { display: flex; flex-direction: column; gap: 7px; }
.check-chip {
  display: flex; align-items: center; gap: .6em; font-size: .92rem; font-weight: 500;
  padding: .6em .75em; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); text-align: left; transition: all .18s var(--ease);
}
.check-chip .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex: 0 0 auto; display: grid; place-items: center; }
.check-chip.on { background: var(--emerald-50); border-color: var(--emerald); color: var(--emerald-700); font-weight: 600; }
.check-chip.on .box { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.check-chip:hover { border-color: var(--emerald-300); }

/* states picker */
.states-search { position: relative; margin-bottom: 12px; }
.states-search input { padding-left: 2.2em; }
.states-search .si { position: absolute; left: .8em; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 7px; max-height: 230px; overflow-y: auto; padding: 3px; }
.state-chip {
  display: flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 500;
  padding: .5em .65em; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); text-align: left; transition: all .18s var(--ease);
}
.state-chip .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-strong); flex: 0 0 auto; display: grid; place-items: center; }
.state-chip.on { background: var(--emerald-50); border-color: var(--emerald); color: var(--emerald-700); font-weight: 600; }
.state-chip.on .box { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.state-chip .prov { margin-left: auto; font-size: .62rem; font-weight: 700; letter-spacing: .04em; color: var(--ochre-600); text-transform: uppercase; }
.state-chip:hover { border-color: var(--emerald-300); }
.selected-states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.selected-states:empty { display: none; }
.sstag { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 600; padding: .35em .7em; border-radius: 999px; background: var(--emerald); color: var(--cream); }
.sstag.scaffold { background: var(--paper-3); color: var(--ink-2); }
.sstag .x { cursor: pointer; opacity: .8; } .sstag .x:hover { opacity: 1; }

/* preview panel */
.preview-panel { position: relative; min-height: 0; overflow: hidden; background:
   radial-gradient(120% 80% at 50% -10%, rgba(28,75,57,.06), transparent 60%), var(--paper-3); }
.preview-scroll { position: relative; height: 100%; overflow-y: auto; padding: 30px 0 90px; scroll-behavior: smooth; }
.preview-toolbar {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 12;
  display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 7px; box-shadow: var(--shadow-md);
}
.preview-toolbar .tb {
  display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  padding: .42em .8em; border-radius: 999px; background: transparent; border: none;
}
.preview-toolbar .tb:hover { background: rgba(21,35,27,.06); }
.preview-toolbar .sep { width: 1px; height: 20px; background: var(--line-2); }
.preview-toolbar .count { color: var(--ink-soft); font-weight: 500; }
.preview-toolbar .count b { color: var(--emerald); font-family: var(--font-display); }

/* floating formatting bar (inline policy editing) */
.fmt-bar {
  position: absolute; z-index: 20;
  display: flex; align-items: center; gap: 2px;
  background: color-mix(in srgb, var(--cream) 96%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 9px; padding: 4px; box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
}
.fmt-bar .fmt {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: none; border-radius: 6px; background: transparent; color: var(--ink-2);
  font-size: .88rem; cursor: pointer;
}
.fmt-bar .fmt:hover { background: rgba(21,35,27,.07); }
.fmt-bar .fmt.on { background: var(--emerald); color: var(--cream); }
.fmt-bar .fmt-clear { font-size: .78rem; font-weight: 700; letter-spacing: -.02em; }
.fmt-bar .fsep { width: 1px; height: 18px; background: var(--line-2); margin: 0 2px; }
.fmt-bar .fmt-select {
  height: 28px; border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: var(--ink-2); font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  padding: 0 .3em; max-width: 86px; cursor: pointer;
}
.fmt-bar .fmt-select:hover { background: rgba(21,35,27,.05); }

/* "Aa" global document text popover */
.docstyle-pop {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 250px; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 18px;
  font-family: var(--font-ui);
}
.docstyle-pop h4 { margin: 0 0 .2rem; font-size: .92rem; color: var(--ink); }
.docstyle-pop .dsp-sub { margin: 0 0 .9rem; font-size: .76rem; color: var(--ink-soft); }
.docstyle-pop .dsp-field { margin-bottom: .7rem; }
.docstyle-pop .dsp-field label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .25rem;
}
.docstyle-pop .dsp-field select {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--ink); font-family: var(--font-ui); font-size: .84rem;
  padding: 0 .4em; cursor: pointer;
}
.docstyle-pop .dsp-reset {
  width: 100%; margin-top: .2rem; padding: .45em 0;
  border: none; border-radius: 6px; background: rgba(21,35,27,.06);
  color: var(--ink-2); font-family: var(--font-ui); font-size: .78rem; font-weight: 600; cursor: pointer;
}
.docstyle-pop .dsp-reset:hover { background: rgba(21,35,27,.11); }

/* empty state */
.empty-doc { text-align: center; max-width: 360px; margin: 12vh auto; color: var(--ink-soft); }
.empty-doc .e-mark { font-family: var(--font-display); font-size: 4rem; color: var(--emerald-300); }
.empty-doc h3 { font-size: 1.4rem; margin: .4rem 0; color: var(--ink); }

/* responsive builder */
.mobile-toggle { display: none; }
@media (max-width: 980px) {
  .app-main { grid-template-columns: 1fr; }
  .form-panel { border-right: none; }
  .preview-panel { display: none; }
  .app.show-preview .form-panel { display: none; }
  .app.show-preview .preview-panel { display: block; }
  .mobile-toggle {
    display: inline-flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 40; box-shadow: var(--shadow-lg);
  }
}
/* narrow mobile builder */
@media (max-width: 540px) {
  .app-bar {
    height: auto; min-height: 52px;
    flex-wrap: wrap; gap: 6px;
    padding: 8px 12px;
  }
  .app-bar .left { flex: 1 1 100%; min-width: 0; }
  .app-bar .right { flex: 1 1 100%; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .app-bar .brand .name { font-size: 1rem; }
  .app-bar .brand .mark { width: 24px; height: 24px; border-radius: 6px; }
  .doc-title { padding-left: 10px; margin-left: 2px; }
  .doc-title .t { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .doc-title .s { font-size: .7rem; }
  .progress-ring .lbl { display: none; }
  .app-bar .right .btn { font-size: .76rem; padding: .45em .7em; }
  #btn-sample, #btn-reset { display: none; }
  #btn-print svg { display: none; }
  .form-panel { padding: 16px 14px 90px; }
  .panel-intro h1 { font-size: 1.35rem; }
  .panel-intro p { font-size: .84rem; }
  .fgroup > summary, .fgroup > .ghead { padding: 12px 14px; gap: 10px; }
  .fgroup .gbody { padding: 4px 14px 16px; }
  .ghead .gmeta .gt { font-size: 1rem; }
  .ghead .gmeta .gb { font-size: .76rem; }
  .ghead .gnum { width: 24px; height: 24px; font-size: .8rem; border-radius: 6px; }
  .field input, .field select, .field textarea { font-size: .92rem; padding: .6em .7em; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 5px; }
  .state-chip { font-size: .78rem; padding: .4em .55em; }
  .mobile-toggle { bottom: 14px; font-size: .88rem; padding: .65em 1.2em; }
  .preview-toolbar {
    position: static; transform: none;
    border-radius: var(--r-md); margin: 10px 10px 0;
    flex-wrap: wrap; justify-content: center;
  }
  .preview-scroll { padding: 16px 0 80px; }
}

/* landing responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .paperstack { height: 340px; order: -1; }
  .layers, .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* utility */
[hidden] { display: none !important; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
.note-chip {
  display: inline-flex; align-items: center; gap: .45em; font-size: .76rem; font-weight: 600;
  padding: .3em .7em; border-radius: 999px; background: var(--ochre-100); color: var(--ochre-600);
  border: 1px solid var(--ochre-300); margin-top: 10px;
}

/* ---- sample gating: lock pill + unlock modal ---- */
.lock-pill.unlocked { color: var(--emerald-700); }
.lock-pill:not(.unlocked) { color: var(--ochre-600); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(14,42,31,.5); backdrop-filter: blur(3px);
  animation: modalin .2s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
@keyframes modalin { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(480px, 100%); background: var(--cream);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 36px 34px 28px; text-align: center;
}
.modal-x { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 1.6rem; color: var(--ink-faint); line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--ink); }
.modal-lock { line-height: 1; color: var(--emerald); }
.modal-lock svg { display: block; margin: 0 auto 4px; }
.modal h2 { font-size: 1.7rem; font-weight: 600; margin: .4rem 0 .6rem; }
.modal > p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1.3rem; line-height: 1.55; }
.modal-cta { width: 100%; justify-content: center; margin-bottom: 1.4rem; }
.modal-code { text-align: left; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.modal-code label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .5rem; color: var(--ink-2); }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; padding: .68em .8em; border-radius: var(--r-md); border: 1px solid var(--line-2);
  font-family: inherit; font-size: .95rem; background: #fff;
}
.code-row input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(28,75,57,.14); }
.code-msg { font-size: .82rem; margin-top: .55rem; min-height: 1em; color: var(--emerald); }
.code-msg.err { color: #b3261e; }
.modal-fine { font-size: .75rem !important; color: var(--ink-faint) !important; margin: 1.2rem 0 0 !important; }

/* ---- checkout modal ---- */
.modal-checkout {
  width: min(560px, 100%); padding: 0; text-align: left;
}
.modal-scroll {
  padding: 32px 30px 24px; max-height: 88vh; overflow-y: auto;
  scrollbar-width: thin;
}
.modal-scroll::-webkit-scrollbar { width: 8px; }
.modal-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.modal-checkout .modal-lock,
.modal-checkout h2 { text-align: center; }
.modal-checkout .modal-lead { text-align: center; color: var(--ink-soft); font-size: .94rem; margin-bottom: 1.2rem; }

.pay-auth {
  margin-bottom: 1rem; padding: 16px 18px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.pay-auth h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.pay-auth > p { font-size: .9rem; color: var(--ink-2); margin-bottom: .7rem; }
.pay-auth-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.pay-auth-list li {
  position: relative; padding-left: 1.15em;
  font-size: .88rem; color: var(--ink-2); line-height: 1.5;
}
.pay-auth-list li::before {
  content: "•"; position: absolute; left: 0; color: var(--emerald); font-weight: 700;
}

.pay-sched {
  margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.pay-sched h4 {
  font-size: .88rem; padding: 10px 16px; margin: 0;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.sched-row {
  display: flex; justify-content: space-between; padding: 9px 16px;
  font-size: .88rem; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.sched-row:last-child { border-bottom: none; }
.sched-discount { color: var(--emerald); font-weight: 600; }
.sched-total {
  background: var(--emerald); color: #FBF8F1; font-weight: 600;
}

.checkout-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1rem; }
.co-field label {
  display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2);
}
.co-field input {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .65em .78em; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.co-field input:focus {
  outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(28,75,57,.14);
}
.label-optional { color: var(--ink-faint); font-weight: 400; }
.discount-code-row { display: flex; gap: 8px; }
.discount-code-row input { flex: 1; }
.discount-code-row .btn { flex: 0 0 auto; padding: .65em 1em; }
.discount-msg { min-height: 1em; margin-top: .35rem; font-size: .8rem; color: var(--emerald); }
.discount-msg.err { color: #b3261e; }
.card-el {
  padding: .72em .78em; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.card-el.StripeElement--focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(28,75,57,.14); }
.card-el.StripeElement--invalid { border-color: #b3261e; }
.card-err { font-size: .8rem; color: #b3261e; margin-top: .3rem; min-height: 1em; }

.agree-row {
  display: flex; align-items: flex-start; gap: .7em; cursor: pointer;
  margin: .8rem 0; padding: 14px 16px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: .86rem; line-height: 1.5; color: var(--ink-2);
  transition: border-color .15s, box-shadow .15s;
}
.agree-row input[type="checkbox"] {
  margin-top: .2em; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--emerald);
}
.agree-row.attn {
  border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.14);
  animation: agree-shake .4s;
}
@keyframes agree-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.modal-cta.is-disabled { opacity: .55; cursor: not-allowed; }
.refund-note {
  margin: .6rem 0 1.1rem; padding: 12px 16px;
  background: rgba(190,118,21,.08); border: 1px solid var(--ochre-100);
  border-left: 3px solid var(--ochre); border-radius: var(--r-md);
}
.refund-note h4 { font-size: .86rem; color: var(--ochre-600); margin: 0 0 .25rem; }
.refund-note p { font-size: .84rem; color: var(--ink-2); margin: 0; line-height: 1.5; }

.modal-checkout .modal-cta { width: 100%; justify-content: center; margin-bottom: 0; }
.checkout-err { font-size: .86rem; color: #b3261e; text-align: center; margin-top: .5rem; min-height: 1.2em; }
.stripe-badge { text-align: center; font-size: .76rem; color: var(--ink-faint); margin: .7rem 0 .8rem !important; }

.modal-divider {
  display: flex; align-items: center; gap: 12px; margin: .5rem 0;
  color: var(--ink-faint); font-size: .82rem; font-weight: 600;
}
.modal-divider::before, .modal-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.modal-checkout .modal-code { border-top: none; padding-top: 0; }

/* ---- mobile hamburger menu ---- */
.nav-toggle {
  display: none; background: none; border: none; padding: 6px;
  color: var(--ink); line-height: 0;
}
.nav-toggle svg { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: fixed; inset: 0; top: 70px; z-index: 200;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 1rem 1.5rem 2rem; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a.lnk {
    display: block !important; padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav-cta { flex-direction: column; margin-top: .5rem; gap: .6rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---- page loading splash ---- */
.page-loading {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  transition: opacity .3s var(--ease);
}
.page-loading.fade-out { opacity: 0; pointer-events: none; }
.page-loading .spinner {
  width: 28px; height: 28px; border: 3px solid var(--line-2);
  border-top-color: var(--emerald); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- toast notifications ---- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: .7em;
  padding: .75em 1.15em; border-radius: var(--r-md);
  font-family: var(--font-ui); font-size: .88rem; font-weight: 600;
  background: var(--emerald); color: #FBF8F1;
  box-shadow: var(--shadow-md);
  animation: toastin .3s var(--ease);
  max-width: 360px;
}
.toast.toast-warn { background: var(--ochre); color: #2A1A03; }
.toast.toast-err { background: #b91c1c; color: #fff; }
.toast.fade-out { animation: toastout .25s var(--ease) forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(-8px) scale(.96); } }

/* ---- focus rings ---- */
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(28,75,57,.25); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(28,75,57,.14);
}

/* ---- page fade transition ---- */
.page-fade-out {
  animation: pagefade .2s var(--ease) forwards;
}
@keyframes pagefade { to { opacity: 0; transform: translateY(-6px); } }

/* ---- scroll-to-top button (landing) ---- */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--emerald); color: #FBF8F1; border: none;
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; transform: none; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.scroll-top svg { display: block; }

/* ---- slim footer (auth / account pages) ---- */
.site-foot.slim { margin: 0; padding: 26px 0 22px; }
.site-foot.slim .foot-bottom { margin: 0; padding: 0; border: none; }
.site-foot.slim .disclaimer a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; }
.site-foot.slim .disclaimer a:hover { color: var(--emerald); }

/* ---- contact icon chips (SVG, replaces emoji) ---- */
.ci-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--emerald-50); color: var(--emerald);
  border: 1px solid rgba(28,75,57,.14);
}
.ci-ic svg { display: block; }

/* =====================================================================
   AUTH  — sign in / sign up / reset
   ===================================================================== */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-body {
  flex: 1; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
}
.auth-body::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto;
  width: 55vw; height: 55vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle at 70% 30%, rgba(190,118,21,.14), transparent 60%),
              radial-gradient(circle at 40% 60%, rgba(28,75,57,.12), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2.4rem 2.25rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-kicker {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ochre-600);
  margin-bottom: 1.1rem;
}
.auth-tabs { display: flex; border-bottom: 1px solid var(--line-2); margin-bottom: 1.6rem; }
.auth-tab {
  flex: 1; padding: .65rem 0; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font-ui); font-size: .9rem; font-weight: 600;
  color: var(--ink-soft); transition: color .18s, border-color .18s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { color: var(--emerald); border-bottom-color: var(--emerald); }
.auth-view { display: none; }
.auth-view.visible { display: block; animation: rise .45s var(--ease); }
.auth-view h2 {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  letter-spacing: -.015em; margin: 0 0 .35rem;
}
.auth-view .auth-sub { font-size: .88rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block; font-size: .84rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: .35rem;
}
.auth-field input {
  width: 100%; font-family: inherit; font-size: .96rem; color: var(--ink);
  padding: .68em .8em; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input::placeholder { color: var(--ink-faint); }
.auth-field input:focus {
  outline: none; border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(28,75,57,.14);
}
.auth-error { font-size: .82rem; color: #b3261e; margin-bottom: .6rem; min-height: 1.2em; }
.auth-msg { font-size: .82rem; color: var(--emerald-700); margin-bottom: .6rem; min-height: 1.2em; }
.auth-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.auth-footer-link { display: block; text-align: center; margin-top: 1.1rem; font-size: .84rem; color: var(--ink-soft); }
.auth-footer-link a { color: var(--emerald); font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; text-underline-offset: 2px; }
.auth-back {
  background: none; border: none; padding: 0; margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--emerald); font-family: var(--font-ui); font-size: .84rem; font-weight: 600;
}
.auth-back:hover { text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   ACCOUNT  — profile / subscription / security
   ===================================================================== */
.acct-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.acct-body { flex: 1; position: relative; z-index: 1; padding: clamp(2rem, 4vw, 3.5rem) 1rem; }
.acct-grid { max-width: 720px; margin: 0 auto; }
.acct-header { margin-bottom: 2rem; }
.acct-header h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; margin: .45rem 0 .35rem; }
.acct-header p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.acct-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.75rem 2rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.acct-card h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  margin: 0 0 1.15rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.acct-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; }
.acct-row + .acct-row { border-top: 1px solid var(--line); }
.acct-label {
  font-size: .74rem; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .1em;
}
.acct-value { font-size: .95rem; color: var(--ink); text-align: right; }
.acct-value.mono { font-size: .78rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink-faint); }
.acct-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 1rem; }

.status-badge {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .8rem; font-weight: 600; padding: .32em .85em; border-radius: 999px;
  border: 1px solid transparent;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-active   { background: var(--emerald-50); color: var(--emerald-700); border-color: rgba(28,75,57,.18); }
.status-active::before { background: var(--emerald); }
.status-trialing { background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.status-trialing::before { background: var(--ink-faint); }
.status-locked   { background: var(--ochre-100); color: var(--ochre-600); border-color: var(--ochre-300); }
.status-locked::before { background: var(--ochre); }
.status-expired  { background: rgba(179,38,30,.08); color: #b3261e; border-color: rgba(179,38,30,.22); }
.status-expired::before { background: #b3261e; }

.pw-form { display: none; margin-top: 1rem; }
.pw-form.open { display: block; animation: rise .4s var(--ease); }
.pw-field { margin-bottom: .8rem; }
.pw-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }
.pw-field input {
  width: 100%; font-family: inherit; font-size: .93rem; color: var(--ink);
  padding: .6em .75em; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.pw-field input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(28,75,57,.14); }
.pw-msg { font-size: .82rem; min-height: 1.2em; margin-bottom: .5rem; }
.pw-msg.err { color: #b3261e; }
.pw-msg.ok { color: var(--emerald-700); }
.acct-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
.acct-nav-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content: center; }
@media (max-width: 600px) {
  .acct-card { padding: 1.25rem; }
  .acct-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .acct-value { text-align: left; }
}

/* ---- utilities ---- */
.block.tight { padding-top: 0; }

/* ---- respect reduced-motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
