/* =========================================================
   FORMA — Shared design tokens, nav, footer, buttons
   Palette: Navy · Ivory · Brass
========================================================= */

:root {
  --bg:        #F7F2E9;
  --bg-2:      #FFFFFF;
  --bg-3:      #EFE9DC;
  --ink:       #0A0F1A;
  --navy:      #0F1E3A;
  --navy-2:    #19294A;
  --navy-3:    #243760;
  --brass:     #B8975B;
  --brass-2:   #9C7E48;
  --brass-3:   #D9BE89;
  --text:      #1B243A;
  --text-dim:  #4A5468;
  --text-faint:#8A8FA0;
  --line:      rgba(15,30,58,0.10);
  --line-2:    rgba(15,30,58,0.18);
  --green:     #2F6B3F;
  --green-bg:  #E0E9DD;
  --red:       #A8252C;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.020;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 36px; }
.container-narrow { max-width: 940px; margin: 0 auto; padding: 0 36px; }

.serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.mono  { font-family: 'JetBrains Mono', monospace; }
.accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--brass-2);
  font-weight: 400;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 10px 24px rgba(15,30,58,0.18); }
.btn-brass { background: var(--brass-2); color: var(--bg); border-color: var(--brass-2); }
.btn-brass:hover { background: var(--brass); border-color: var(--brass); box-shadow: 0 10px 24px rgba(184,151,91,0.32); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   EYEBROW / DOT
========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--brass-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.30;
  animation: pulse 2.4s ease-in-out infinite;
}
.dot.brass { background: var(--brass-2); }
.dot.brass::after { background: var(--brass-2); }
.dot.navy { background: var(--navy); }
.dot.navy::after { background: var(--navy); }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.30; }
  50%      { transform: scale(2.2); opacity: 0; }
}

/* =========================================================
   AURORA (slow, subtle)
========================================================= */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(100px); }
.aurora-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(15,30,58,0.10) 0%, transparent 70%);
  top: -220px; left: -200px;
  animation: a1 38s ease-in-out infinite;
}
.aurora-2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(184,151,91,0.10) 0%, transparent 70%);
  top: 28%; right: -260px;
  animation: a2 46s ease-in-out infinite;
}
.aurora-3 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(15,30,58,0.06) 0%, transparent 70%);
  bottom: 0; left: 30%;
  animation: a3 52s ease-in-out infinite;
}
@keyframes a1 { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(60px,40px) scale(1.06);} 66%{transform:translate(-30px,80px) scale(0.96);} }
@keyframes a2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-60px,50px) scale(1.08);} }
@keyframes a3 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-50px,-40px) scale(1.10);} }

/* =========================================================
   PROGRESS BAR
========================================================= */
#progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1001;
  background: var(--brass);
}

/* =========================================================
   REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* =========================================================
   NAV
========================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,242,233,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--brass-3);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-logo-word { font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-signin {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-signin:hover { background: var(--bg-3); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .nav-cta .btn { display: none; }
  .nav-cta .nav-signin { padding: 8px 10px; }
}

/* =========================================================
   PAGE HEADER (subpages)
========================================================= */
.page-head {
  padding: 90px 0 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-head .eyebrow { justify-content: center; }
.page-head h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 18px;
}
.page-head h1 .accent { font-size: 1.05em; padding-right: 0.02em; }
.page-head .lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================================
   CARD (generic)
========================================================= */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}
.card-lg { padding: 44px; }

/* =========================================================
   FORM FIELDS
========================================================= */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field label .opt {
  text-transform: none;
  color: var(--text-faint);
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  margin-left: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-2);
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass-2);
  box-shadow: 0 0 0 3px rgba(184,151,91,0.15);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230F1E3A' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.help-text {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

/* Radio toggle group */
.toggle-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-group input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.toggle-group label {
  cursor: pointer;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-2);
  transition: all 0.2s;
  font-family: inherit;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}
.toggle-group input[type="radio"]:checked + label {
  border-color: var(--brass-2);
  background: rgba(184,151,91,0.06);
  box-shadow: 0 0 0 3px rgba(184,151,91,0.10);
}
.toggle-group .t-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.toggle-group .t-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
}
.toggle-group .t-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-top: 4px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-tag {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 22px; }
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--navy); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
