/* ===================================================================
   2027.css : shared stylesheet for /welcome and /2027-next (the intake pages).
   House style: obsidian and gold (docs/design/BRAND.md), the same tokens as
   the other pages, which carry their own compiled Tailwind.
   =================================================================== */

/* ---------- Tokens (BRAND.md) ---------- */
:root {
  --obsidian: #0B0C10;
  --coal: #13151B;
  --gold: #D4AF37;
  --gold-hi: #E9C766;               /* hover and the light end of the button gradient */
  --gold-lo: #C98E3A;               /* dark end of the button gradient */
  --champagne: #F3D98B;
  --ivory: #EDE6D6;
  --ivory-body: rgba(237,230,214,0.86); /* body copy: ivory at about 70 % */
  --ash: #A8ADB6;
  /* Wu Xing accents: muted, only where the element carries meaning */
  --jade: #6FB39A;
  --ember: #E06D53;
  --ochre: #C99A55;
  --pearl: #D9DCE1;
  --ink: #7F9BD1;
  --hair: rgba(237,230,214,0.08);
  --gold-line: rgba(212,175,55,0.22);
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --noto: 'Noto Serif TC', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--obsidian);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient layer: gold dawn top left, ember low right, a hexagram watermark at 3 %.
   Fixed, decorative, under everything. Film grain sits over the whole page. */
.hexagram-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 8% -10%, rgba(212,175,55,0.11), transparent 60%),
    radial-gradient(50rem 36rem at 92% 80%, rgba(224,109,83,0.11), transparent 62%),
    var(--obsidian);
}
.hexagram-bg::before {
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='96' viewBox='0 0 80 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4AF37' fill-rule='evenodd'%3E%3Crect x='8' y='8' width='28' height='4'/%3E%3Crect x='44' y='8' width='28' height='4'/%3E%3Crect x='8' y='20' width='64' height='4'/%3E%3Crect x='8' y='32' width='28' height='4'/%3E%3Crect x='44' y='32' width='28' height='4'/%3E%3Crect x='8' y='52' width='28' height='4'/%3E%3Crect x='44' y='52' width='28' height='4'/%3E%3Crect x='8' y='64' width='64' height='4'/%3E%3Crect x='8' y='76' width='28' height='4'/%3E%3Crect x='44' y='76' width='28' height='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 192px;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
section { position: relative; z-index: 1; }
main { display: block; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold); color: var(--obsidian); padding: 0.6rem 1rem; border-radius: 0.5rem;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.section-label, .eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.section-label::after { content: ''; display: block; width: 40px; height: 1px; background: linear-gradient(90deg, rgba(212,175,55,0.6), transparent); }
.section-label.centered { justify-content: center; }
.section-label.centered::after { display: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; color: var(--ivory); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 em, h1 em { font-style: italic; color: var(--gold); }
p a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(212,175,55,0.4); text-underline-offset: 3px; }
p a:hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }

/* ---------- Nav: a hairline bar like /2027, /book and the homepage ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 4rem;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 max(1.5rem, calc((100% - 1200px) / 2 + 3rem));
  background: rgba(11,12,16,0.7); border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
  white-space: nowrap;
}
nav.scrolled { background: rgba(11,12,16,0.88); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.nav-wordmark { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ivory); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  position: relative; font-size: 0.9375rem; color: rgba(237,230,214,0.85);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: transparent; border: 1px solid rgba(212,175,55,0.4); padding: 0.55rem 1.1rem; border-radius: 100px;
  transition: border-color 0.3s, background 0.3s; text-decoration: none; display: inline-block;
}
.nav-cta:hover, .nav-cta:focus-visible { border-color: var(--gold); background: rgba(212,175,55,0.1); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(212,175,55,0.3); color: var(--gold);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
nav.menu-open .nav-toggle .icon-open { display: none; }
nav.menu-open .nav-toggle .icon-close { display: block; }
.nav-menu {
  display: none; position: fixed; left: 1rem; right: 1rem; top: 4.5rem; z-index: 99;
  background: rgba(19,21,27,0.97); border: 1px solid var(--gold-line); border-radius: 1.25rem;
  padding: 0.75rem; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-menu.open { display: block; }
.nav-menu ul { list-style: none; }
.nav-menu a {
  display: block; padding: 0.9rem 1rem; border-radius: 0.75rem; text-decoration: none;
  font-family: var(--display); font-size: 1.3rem; color: var(--ivory);
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(212,175,55,0.08); color: var(--gold); }
.nav-menu a.nav-menu-cta { margin-top: 0.5rem; text-align: center; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%); color: var(--obsidian); border-radius: 100px; }

/* Seal: transparent layers stacked in one square; only the ring (and its glint) turns on hover.
   2027.js adds .is-sweeping to [data-sheen] once, after load. Same pattern as /book and the homepage. */
.seal { position: relative; display: inline-block; flex-shrink: 0; width: 32px; height: 32px; }
.seal > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-ring, .seal-glint { transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1); }
.seal-glint, .seal-sheen {
  -webkit-mask: url(/img/seal-ring.png) center / 100% 100% no-repeat;
  mask: url(/img/seal-ring.png) center / 100% 100% no-repeat;
}
.seal-glint {
  background: conic-gradient(from 300deg, transparent 0deg, rgba(255,240,205,0.95) 28deg, transparent 60deg);
  opacity: 0; transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.5s ease;
}
.seal-sheen {
  -webkit-mask-image: url(/img/seal-mark.png); mask-image: url(/img/seal-mark.png);
  background: linear-gradient(115deg, transparent 38%, rgba(255,243,212,0.95) 50%, transparent 62%) 130% 0 / 300% 100% no-repeat;
}
.seal-sheen.is-sweeping { animation: seal-sheen 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1 both; }
@keyframes seal-sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover .seal-ring, .nav-logo:hover .seal-glint { transform: rotate(180deg); }
  .nav-logo:hover .seal-glint { opacity: 1; }
}

/* ---------- Buttons: gold is the only colour for buy buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 2.25rem; border-radius: 100px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s, border-color 0.35s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%); color: var(--obsidian); border: none;
  box-shadow: 0 10px 40px -12px rgba(212,175,55,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(224,109,83,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-secondary { background: transparent; color: var(--gold); border: 1px solid rgba(212,175,55,0.4); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: rgba(212,175,55,0.1); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Footer (same content as /2027 and /book) ---------- */
footer { position: relative; z-index: 1; border-top: 1px solid var(--hair); padding: 3rem 0 2.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner:has(> :only-child) { justify-content: center; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); text-decoration: none; }
.footer-brand img { height: 36px; width: 36px; object-fit: contain; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; list-style: none; }
.footer-links a { font-size: 1rem; color: var(--ash); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }
.footer-disclaimer { max-width: 42rem; margin: 2rem auto 0; text-align: center; font-size: 0.9375rem; line-height: 1.6; color: var(--ash); }
.footer-copy { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; color: var(--ash); }

/* ---------- Motion ---------- */
/* One orchestrated moment: the hero. Children carry --i and enter in sequence. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.js .hero-seq > * { opacity: 0; animation: fadeUp 0.8s var(--ease-out) both; animation-delay: calc(0.08s + 0.09s * var(--i, 0)); }
/* Scroll reveal, visible by default; the js class enables the hidden state. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* =================================================================
   /2027-next and /welcome intake
   ================================================================= */
.intake-section { padding: 8.5rem 0 6rem; }
.intake-inner { max-width: 640px; margin: 0 auto; }
.intake-inner > h1 { text-align: center; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.05; margin-bottom: 0.75rem; }
.intake-inner > p.intake-sub { font-size: 1.0625rem; text-align: center; color: var(--ivory-body); margin-bottom: 2.5rem; line-height: 1.6; }
.lead-form {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.75rem; border: 1px solid var(--hair); border-radius: 1.25rem; background: rgba(19,21,27,0.85);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8); position: relative;
}
.lead-form::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent); }
.lead-form[hidden] { display: none; }
.lead-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.lead-field { display: flex; flex-direction: column; gap: 0.4rem; }
fieldset.lead-field { border: none; padding: 0; margin: 0; min-width: 0; }
fieldset.lead-field legend { padding: 0; margin-bottom: 0.4rem; float: left; width: 100%; }
.lead-above-label { font-family: var(--mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding-left: 0.25rem; }
.lead-help { font-size: 0.9375rem; color: var(--ash); padding-left: 0.25rem; line-height: 1.5; }
.lead-optional { text-transform: none; letter-spacing: 0; color: var(--ash); font-family: var(--sans); }
.lead-input, .form-textarea {
  background: var(--obsidian); border: 1px solid rgba(237,230,214,0.12); border-radius: 0.75rem;
  padding: 0.875rem 1.1rem; font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--ivory); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s; color-scheme: dark;
}
.lead-input::placeholder, .form-textarea::placeholder { color: rgba(138,143,152,0.8); }
.lead-input:focus, .form-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.lead-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: rgba(224,109,83,0.7); }
.lead-input:disabled { opacity: 0.4; }
.intake-zone-suggestion { align-self: flex-start; background: transparent; color: var(--gold); border: 1px solid rgba(237,230,214,0.25); border-radius: 0.75rem; padding: 0.7rem 1rem; font: inherit; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 6.5rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; }
.checkbox-row input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); }
.checkbox-row label { font-size: 1rem; color: var(--ivory-body); }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(237,230,214,0.12); border-radius: 0.75rem; padding: 0.7rem 1rem; font-size: 1rem; color: var(--ivory-body); cursor: pointer; flex: 1 1 auto; background: var(--obsidian); transition: border-color 0.2s, background 0.2s; }
.radio-option input { accent-color: var(--gold); }
.radio-option:has(input:checked) { border-color: var(--gold); color: var(--ivory); background: rgba(212,175,55,0.08); }
.radio-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.lead-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%;
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%); color: var(--obsidian); border: none;
  padding: 1rem 2.5rem; border-radius: 100px; margin-top: 0.5rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  box-shadow: 0 10px 40px -12px rgba(212,175,55,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.lead-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(224,109,83,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
.lead-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.lead-note { font-size: 0.9375rem; color: var(--ash); margin-top: 0.75rem; text-align: center; line-height: 1.6; }
.lead-note a, .form-state a { color: var(--gold); }
.form-state { display: none; text-align: center; padding: 3rem 2rem; border-radius: 1.25rem; border: 1px solid var(--gold-line); background: rgba(19,21,27,0.85); }
.form-state.visible { display: block; }
.form-state h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.form-state p { color: var(--ivory-body); line-height: 1.7; }
.form-state.form-error { border-color: rgba(224,109,83,0.5); background: rgba(224,109,83,0.06); }
.form-state.form-error h2 { color: var(--ember); }
.field-error { font-size: 0.9375rem; color: var(--ember); padding-left: 0.25rem; display: none; }
.field-error.visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  nav { gap: 1rem; padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .lead-form { padding: 1.25rem; }
}
@media (min-width: 640px) {
  .lead-row.two { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-seq > * { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .seal-sheen.is-sweeping { animation: none; }
  .seal-ring, .seal-glint { transition: none; }
  .nav-logo:hover .seal-ring, .nav-logo:hover .seal-glint { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Footer: one slow light sweep across the seal and the line when the footer scrolls into view. */
.sweep-seal { position: relative; display: inline-block; flex: none; line-height: 0; }
.sweep-seal::after { content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255,243,196,0.95) 50%, transparent 60%) 130% 0 / 300% 100% no-repeat;
  -webkit-mask: url(/img/seal-mark.png) center / contain no-repeat; mask: url(/img/seal-mark.png) center / contain no-repeat; }
.sweep-text { position: relative; }
.sweep-text::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; color: transparent; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255,243,196,0.95) 50%, transparent 60%) 130% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; }
.is-swept .sweep-seal::after { opacity: 1; animation: footSweep 1.6s ease-in-out forwards; }
.is-swept .sweep-text::after { opacity: 1; animation: footSweep 3.4s ease-in-out 0.9s forwards; }
@keyframes footSweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .is-swept .sweep-seal::after, .is-swept .sweep-text::after { animation: none; opacity: 0; } }

/* =================================================================
   /privacy and /terms: plain reading pages
   ================================================================= */
.footer-legal { margin-top: 1.5rem; }
.legal-section { padding: 8.5rem 0 6rem; }
.legal-inner { max-width: 44rem; margin: 0 auto; }
.legal-inner > h1 { font-size: clamp(2.6rem, 7vw, 3.75rem); line-height: 1.02; letter-spacing: -0.01em; }
.legal-inner .legal-updated { margin-top: 1rem; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.legal-inner .legal-lede { margin-top: 1.75rem; font-family: var(--display); font-size: 1.5rem; line-height: 1.45; color: var(--ivory); }
.legal-inner h2 {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hair);
  font-size: clamp(1.7rem, 3.6vw, 2.1rem); font-weight: 600; line-height: 1.15; scroll-margin-top: 5.5rem;
}
.legal-inner h3 { margin-top: 1.75rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.legal-inner p, .legal-inner li { font-size: 1.0625rem; line-height: 1.7; color: var(--ivory-body); }
.legal-inner h2 + p, .legal-inner h3 + p, .legal-inner p + p, .legal-inner ul + p, .legal-inner p + ul, .legal-inner h2 + ul, .legal-inner h3 + ul { margin-top: 0.9rem; }
.legal-inner ul { padding-left: 1.3rem; }
.legal-inner li + li { margin-top: 0.5rem; }
.legal-inner li::marker { color: var(--gold); }
.legal-inner li a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(212,175,55,0.4); text-underline-offset: 3px; }
.legal-inner li a:hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }
.legal-inner strong { font-weight: 700; color: var(--ivory); }
/* The one rule a buyer looks for, set apart: a gold hairline panel, never a filled block. */
.legal-key { margin-top: 1.25rem; padding: 1.25rem 1.4rem; border: 1px solid var(--gold-line); border-radius: 1rem; background: rgba(212,175,55,0.05); }
.legal-inner .legal-key p { font-family: var(--display); font-size: 1.4rem; line-height: 1.4; color: var(--ivory); }
