/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: "Alliance No.2";
  src: url("/AllianceNo2-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alliance No.2";
  src: url("/AllianceNo2-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --cream-50:  #FBF6EE;
  --cream-100: #F4ECDF;
  --cream-200: #E6DED6;
  --cream-300: #D8CCBA;
  --cream-400: #B7A892;
  --orange-100: #FFE7D2;
  --orange-200: #FFD9B9;
  --orange-300: #F9A762;
  --orange-400: #FC841E;
  --orange-500: #FC7809;
  --orange-600: #CD6106;
  --orange-700: #8E4205;
  --ink-900: #1A1410;
  --ink-700: #3A2F26;
  --ink-500: #6B5C50;
  --ink-300: #9A8C7E;
  --moss-500:    #5B7A3A;
  --amber-500:   #C68A1E;
  --crimson-500: #B43A2A;
  --slate-500:   #3F5560;
  --bg-page:        var(--cream-100);
  --fg-primary:     var(--ink-900);
  --fg-secondary:   var(--ink-700);
  --fg-muted:       var(--ink-500);
  --fg-subtle:      var(--ink-300);
  --fg-link:        var(--orange-600);
  --brand:        var(--orange-500);
  --brand-hover:  var(--orange-600);
  --brand-press:  var(--orange-700);
  --brand-soft:   var(--orange-200);
  --border-subtle:  rgba(26, 20, 16, 0.08);
  --border-default: rgba(26, 20, 16, 0.14);
  --border-strong:  rgba(26, 20, 16, 0.28);
  --font-sans: "Alliance No.2", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-2xl:  48px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(60, 36, 14, 0.06);
  --shadow-sm: 0 2px 6px rgba(60, 36, 14, 0.08);
  --shadow-md: 0 8px 24px rgba(60, 36, 14, 0.10);
  --shadow-lg: 0 24px 48px rgba(60, 36, 14, 0.14);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    120ms;
  --dur-base:    200ms;
  --dot-bg: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAD8+vz88uz8/vz89uz89vT8+vT88uSWpIx6AAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA0NJREFUOI0VVM2Wo1gIvw/QZSa9Ly17rSBZe0Fq36btdQTJeqYqef4hx4Vyrhf4fqCIw6gcO5GfdLj1qoISQVvZ90rILncN0cBNA65oFbTIdGRwNsFLQF4O/xDV9ksLL8dKykKm1TVc5pCn/cNayABQGHwNW7LUis/wPTQymwBIN4NY6O7yiQTArFaYBS0LqJkA5estQ/7LWK7q0emExCI8kW61v0HgVYtyn9XPVvtz+H3Ays7+0MULnAzRHH4CiT7nTc2xaodH8fDAMJj92qiDEn9GNy0E5d9bFyG3AaN3/0Wxh90EAZsSMUWWJ8uMwLKvFRP5x0Al/LtFDb25JY9xhAo4oUnp9z7U7vsFB96902QKsPoNs+sEf+WRpSMBVeuTe/Qx2fFNuLHO/NRhpuKHIh7kWJoNp2nufl9fvJ5cMVIIJMXSgegZpqeztiGzQbi/z3BE4VBQN7Re5B7HMboqgv7xYrzaGRP9kSprd/WKpxsDW3mYcTJGENg6P/3//Awehojayuwl08AAAAASUVORK5CYII=);
  --page-pad: 24px;
  --page-max: 1440px;
}
@media (max-width: 400px) { :root { --page-pad: 12px; } }

/* ==========================================================================
   Base
   ========================================================================== */
html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg-primary);
  background: var(--bg-page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body { font-size: 1rem; line-height: 1.45; margin: 0; padding: 0; min-height: 100vh; }
h1 { font-size: 3rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 24px; }
h2 { font-size: 2.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 16px; }
h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
p { font-size: 1rem; line-height: 1.45; color: var(--fg-secondary); text-wrap: pretty; margin: 0 0 16px; }
a { color: var(--fg-link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--brand-press); }

/* ==========================================================================
   Layout
   ========================================================================== */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative;
  background: var(--cream-200) var(--dot-bg);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.card--paper { background: var(--cream-50) var(--dot-bg); background-blend-mode: luminosity; }
.card--ink  { background: var(--ink-900); color: var(--cream-50); }
.card--ink h1, .card--ink h2, .card--ink h3, .card--ink h4 { color: var(--cream-50); }
.card--ink p { color: var(--cream-100); }

/* ==========================================================================
   Brand
   ========================================================================== */
.brand-lockup {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); text-decoration: none;
  line-height: 1; color: var(--ink-900); white-space: nowrap;
}
.brand-lockup__name { font-weight: 600; letter-spacing: -0.045em; line-height: 1; position: relative; top: 0.04em; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 36px;
  position: relative;
}
.nav__brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-900); }
.nav__brand:hover { color: var(--ink-900); }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-900); text-decoration: none; font-weight: 400;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--brand-hover); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__cta {
  background: var(--ink-900); color: var(--cream-50);
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  font-family: var(--font-sans);
}
.nav__cta:hover { background: var(--brand-hover); color: var(--cream-50); }
.nav__burger { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--ink-900); }
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__mobile.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--cream-50);
    border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 8px 16px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav__mobile a {
    padding: 12px 16px; font-size: 15px; font-weight: 400;
    color: var(--ink-900); text-decoration: none;
    border-radius: var(--radius-md);
  }
  .nav__mobile a[aria-current="page"] { color: var(--brand); font-weight: 600; }
  .nav__mobile a:hover { background: var(--cream-100); }
  .nav__mobile .btn { margin-top: 8px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-sans); font-weight: 600;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--orange-300); outline-offset: 2px; }
.btn--sm { font-size: 13px; padding: 8px 16px; }
.btn--md { font-size: 14px; padding: 11px 22px; }
.btn--lg { font-size: 16px; padding: 14px 28px; }
.btn--primary { background: var(--brand); color: var(--cream-50); box-shadow: var(--shadow-inset); }
.btn--primary:hover { background: var(--brand-hover); color: var(--cream-50); }
.btn--primary:active { background: var(--brand-press); transform: scale(0.98); }
.btn--secondary { background: transparent; color: var(--ink-900); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--cream-200); }
.btn--ink { background: var(--ink-900); color: var(--cream-50); }
.btn--ink:hover { background: var(--brand); color: var(--cream-50); }
.btn--ghost { background: transparent; color: var(--ink-900); }
.btn--ghost:hover { background: var(--cream-200); }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-bottom: 0; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 48px; padding: 24px 56px 0;
  position: relative; z-index: 2; align-items: start;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding: 8px 32px 0; gap: 24px; }
}
.hero__body { padding: 40px 0 280px; max-width: 720px; }
@media (max-width: 980px) {
  .hero__body { padding-bottom: 0; }
  .preview { margin-bottom: 240px; }
}

.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-700); background: var(--cream-50);
  border: 1px solid var(--border-default);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-weight: 600; margin-bottom: 28px;
}
.eyebrow-tag__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}

.hero__headline {
  font-size: clamp(44px, 6.2vw, 96px); font-weight: 600;
  line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 28px; color: var(--ink-900);
}
.hero__headline span { display: block; }
.hero__l2 { padding-left: 0.6em; }
.hero__l3 { padding-left: 1.2em; }
.hero__u {
  text-decoration: underline; text-decoration-thickness: 5px;
  text-underline-offset: 10px; text-decoration-color: var(--brand);
}
.hero__sub { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-700); max-width: 560px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust { font-size: 13px; color: var(--ink-500); letter-spacing: 0.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
.hero__trust::before { content: ""; width: 18px; height: 1.5px; background: var(--ink-300); }

.hero__blob {
  position: absolute; inset: auto 0 0 0; height: 280px;
  background: url("/background.svg") no-repeat center bottom;
  background-size: min(1351px, 100%) auto;
  z-index: 1; pointer-events: none; opacity: 0.95;
}
@media (max-width: 980px) { .hero__blob { height: 220px; opacity: 0.85; } }

/* Hide blob on mobile — too small to read and creates dead space */
@media (max-width: 720px) {
  .hero__blob { display: none; }
  .preview { margin-bottom: 32px; } /* override the 240px clearance, no blob to clear */
}

/* Headline — remove indents, loosen line-height so underline doesn't bleed into next line */
@media (max-width: 640px) {
  .hero__headline { font-size: clamp(30px, 8vw, 44px); line-height: 1.15; }
  .hero__l2, .hero__l3 { padding-left: 0; }
  .hero__u { text-underline-offset: 5px; text-decoration-thickness: 3px; }
  .hero__trust { justify-content: center; margin-bottom: 20px; }
  .hero__trust::before { display: none; }
}

/* Small mobile — tighten hero padding, hide the decorative preview widget */
@media (max-width: 480px) {
  .hero__inner { padding-left: 20px; padding-right: 20px; }
  .preview { display: none; }
  .hero__body { padding-bottom: 0; } /* blob hidden, no clearance needed */
}

/* ==========================================================================
   Product preview
   ========================================================================== */
.preview {
  background: var(--cream-50); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); overflow: hidden; margin-top: 40px;
  box-shadow: var(--shadow-md); position: relative; z-index: 3;
  max-width: 520px; margin-left: auto; margin-right: 0;
}
@media (max-width: 980px) { .preview { margin: 0 auto; max-width: 520px; } }
.preview__chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--cream-100);
  border-bottom: 1px solid var(--border-subtle);
}
.preview__dots { display: flex; gap: 6px; }
.preview__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-300); }
.preview__title { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; }
.preview__tag { font-family: var(--font-mono); font-size: 10px; color: var(--moss-500); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.preview__tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss-500); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.preview__body { padding: 20px 20px 24px; }
.preview__row {
  display: grid; grid-template-columns: 80px 1fr 90px;
  gap: 12px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 12px;
}
.preview__row:last-child { border-bottom: 0; }
.preview__row--anomaly .preview__amount { color: var(--crimson-500); font-weight: 600; }
.preview__time { color: var(--ink-500); font-size: 11px; }
.preview__label { color: var(--ink-700); }
.preview__amount { color: var(--ink-900); text-align: right; }
.preview__pill {
  display: inline-block; font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 7px; border-radius: var(--radius-pill);
  font-weight: 600; margin-left: 8px; vertical-align: middle;
}
.preview__pill--anomaly { background: rgba(180, 58, 42, 0.12); color: var(--crimson-500); }
.preview__alert {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(180, 58, 42, 0.06); border: 1px solid rgba(180, 58, 42, 0.2);
  border-radius: var(--radius-md); display: flex; align-items: flex-start; gap: 12px;
  animation: fadeIn 600ms var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.preview__alert-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--crimson-500); color: var(--cream-50); display: inline-flex; align-items: center; justify-content: center; }
.preview__alert-body { flex: 1; }
.preview__alert-title { font-size: 13px; font-weight: 600; color: var(--ink-900); margin: 0 0 2px; }
.preview__alert-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); margin: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 56px; }
@media (max-width: 720px) { .section { padding: 56px 28px; } }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
.section__title { font-size: clamp(32px, 4vw, 56px); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; color: var(--ink-900); }
.section__sub { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-700); margin: 0; max-width: 620px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--cream-50); border-radius: var(--radius-xl); padding: 32px; border: 1px solid var(--border-subtle); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-press); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature__title { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink-900); margin: 0 0 12px; }
.feature__body { font-size: 15px; line-height: 1.55; color: var(--ink-700); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 32px; background: var(--cream-100); border-radius: var(--radius-xl); }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); letter-spacing: 0.06em; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.step__title { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 14px; }
.step__body { font-size: 15px; line-height: 1.55; color: var(--ink-700); margin: 0; }

.faq { display: flex; flex-direction: column; gap: 1px; background: var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.faq__item { background: var(--cream-50); }
.faq__btn { width: 100%; background: transparent; border: 0; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-family: var(--font-sans); text-align: left; color: var(--ink-900); transition: background var(--dur-fast) var(--ease-out); }
.faq__btn:hover { background: var(--cream-100); }
.faq__q { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-900); }
.faq__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ink-900); color: var(--cream-50); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out); }
.faq__item[data-open="true"] .faq__icon { transform: rotate(45deg); background: var(--brand); }
.faq__answer { display: none; padding: 0 32px 28px; font-size: 16px; line-height: 1.6; color: var(--ink-700); max-width: 760px; }
.faq__item[data-open="true"] .faq__answer { display: block; }
@media (max-width: 640px) {
  .faq__btn { padding: 20px 20px; }
  .faq__q { font-size: 16px; }
  .faq__answer { padding: 0 20px 20px; font-size: 15px; }
}

.contact { padding: 96px 56px; text-align: center; }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__mark { display: flex; justify-content: center; margin-bottom: 24px; }
.contact__h { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.0; color: var(--ink-900); margin: 0 0 24px; }
.contact__p { font-size: 18px; color: var(--ink-700); margin: 0 auto 32px; max-width: 500px; }
.contact__email { display: block; text-align: center; font-size: clamp(18px, 2.5vw, 28px); font-weight: 600; color: var(--ink-900); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; margin: 16px 0 32px; overflow-wrap: break-word; }
.contact__email:hover { color: var(--brand); }
.contact__ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 720px) { .contact { padding: 64px 28px; } }
@media (max-width: 640px) {
  .contact__ctas { flex-direction: column; width: 100%; }
  .contact__ctas .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--cream-50); border-radius: var(--radius-2xl); padding: 56px 48px 32px; }
@media (max-width: 640px) { .footer { padding: 40px 24px 24px; border-radius: var(--radius-xl); } }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; } .footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__brandrow { display: flex; align-items: center; margin-bottom: 16px; }
.footer__tag { color: var(--ink-500); font-size: 14px; max-width: 320px; line-height: 1.55; margin: 0; }
.footer__h { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; padding: 5px 0; color: var(--ink-900); text-decoration: none; font-size: 14px; transition: color var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--brand); }
.footer__bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__legal { font-size: 12px; color: var(--ink-500); letter-spacing: 0.02em; margin: 0; }
.footer__icons { display: flex; gap: 6px; }
.footer__icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-700); transition: all var(--dur-fast) var(--ease-out); }
.footer__icon:hover { background: var(--cream-200); color: var(--brand); }

/* ==========================================================================
   Modal
   ========================================================================== */
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(26, 20, 16, 0.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; animation: modalFadeIn 200ms var(--ease-out); }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__panel { background: var(--cream-50); border-radius: var(--radius-xl); width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; padding: 40px; position: relative; box-shadow: var(--shadow-lg); animation: modalSlideIn 320ms var(--ease-out); }
@media (max-width: 540px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__panel { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 28px 20px 32px; max-height: 90vh; }
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream-200); color: var(--ink-900); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease-out); }
.modal__close:hover { background: var(--cream-300); }
.modal__eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.modal__title { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink-900); margin: 0 0 12px; }
.modal__sub { font-size: 15px; line-height: 1.55; color: var(--ink-700); margin: 0 0 28px; }
.modal__success { text-align: center; padding: 32px 12px; }
.modal__success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--moss-500); color: var(--cream-50); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field__row { grid-template-columns: 1fr; } }
.field__label { font-size: 12px; font-weight: 600; color: var(--ink-700); letter-spacing: 0.04em; text-transform: uppercase; }
.input, .select, .textarea { font-family: var(--font-sans); font-size: 15px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--cream-50); color: var(--ink-900); outline: 0; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); width: 100%; box-sizing: border-box; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.textarea { resize: vertical; min-height: 96px; font-family: var(--font-sans); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%231A1410' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-position: right 16px center; background-repeat: no-repeat; padding-right: 40px; }
.helper { font-size: 12px; color: var(--ink-500); margin: 4px 0 0; }
.caption { font-size: 0.875rem; color: var(--ink-500); }

.file-input { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px dashed var(--border-default); background: var(--cream-100); color: var(--ink-500); font-size: 14px; cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.file-input:hover { border-color: var(--brand); color: var(--ink-700); background: var(--cream-50); }
.file-input__icon { color: var(--brand); }
.file-input__name { color: var(--ink-900); font-weight: 600; }

/* ==========================================================================
   Careers — manifesto layout
   ========================================================================== */
.careers-letter { max-width: 880px; margin: 0 auto; padding: 96px 72px 80px; background: var(--cream-50) var(--dot-bg); background-blend-mode: luminosity; }
@media (max-width: 720px) { .careers-letter { padding: 64px 28px 56px; } }
.careers-letter__header { margin-bottom: 72px; }
.careers-letter__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-700); padding: 6px 0; margin-bottom: 32px; font-weight: 600; border: 0; }
.careers-letter__title { font-size: clamp(40px, 5.4vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink-900); margin: 0 0 32px; max-width: 720px; }
.careers-letter__title-soft { color: var(--ink-500); font-weight: 600; }
.careers-letter__lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-700); max-width: 620px; margin: 0; }
.principles { list-style: none; margin: 0 0 72px; padding: 0; border-top: 1px solid var(--border-subtle); }
.principle { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--border-subtle); align-items: baseline; }
@media (max-width: 640px) { .principle { grid-template-columns: 48px 1fr; gap: 16px; padding: 28px 0; } }
.principle__num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: 0.04em; padding-top: 8px; }
.principle__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.018em; color: var(--ink-900); margin: 0 0 12px; max-width: 640px; }
.principle__text { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; color: var(--ink-700); margin: 0; max-width: 640px; text-wrap: pretty; }
.careers-letter__signoff { max-width: 700px; }
.careers-letter__sign-text { font-size: 18px; line-height: 1.55; color: var(--ink-700); margin: 0 0 28px; max-width: 580px; }
.careers-letter__sign-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 56px; }
.careers-letter__email { font-family: var(--font-mono); font-size: 14px; color: var(--ink-700); text-decoration: none; border-bottom: 1px solid var(--border-default); padding-bottom: 2px; }
.careers-letter__email:hover { color: var(--brand); border-color: var(--brand); }
.careers-letter__signature { display: flex; align-items: baseline; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.careers-letter__signed { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; }

/* ==========================================================================
   Newsletter — coming soon
   ========================================================================== */
.coming { padding: 56px 56px 48px; text-align: center; }
@media (max-width: 720px) { .coming { padding: 40px 28px 44px; } }
.coming__inner { max-width: 560px; margin: 0 auto; }
.coming__eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 20px; display: inline-flex; gap: 10px; align-items: center; padding: 8px 18px; background: var(--brand-soft); border-radius: var(--radius-pill); }
.coming__title { font-size: clamp(36px, 4.5vw, 60px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 20px; color: var(--ink-900); }
.coming__sub { font-size: 17px; line-height: 1.55; color: var(--ink-700); margin: 0 0 32px; }
.coming__form { display: flex; gap: 8px; background: var(--cream-50); padding: 6px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); max-width: 460px; margin: 0 auto 24px; align-items: center; }
.coming__form .input { flex: 1; background: transparent; border: 0; padding: 12px 18px; }
.coming__form .input:focus { box-shadow: none; }
@media (max-width: 520px) {
  .coming__form { flex-direction: column; border-radius: var(--radius-lg); padding: 8px; gap: 6px; }
  .coming__form .input { text-align: center; padding: 14px 18px; }
  .coming__form .btn { width: 100%; }
}
.newsletter-success { padding: 20px 28px; background: var(--moss-500); color: var(--cream-50); border-radius: var(--radius-pill); max-width: 480px; margin: 0 auto; display: inline-flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Prose (terms / privacy)
   ========================================================================== */
.prose { max-width: 760px; padding: 64px 56px; margin: 0 auto; }
@media (max-width: 720px) { .prose { padding: 48px 28px; } }
.prose__title { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em; color: var(--ink-900); margin: 0 0 16px; }
.prose__meta { font-size: 13px; color: var(--ink-500); letter-spacing: 0.04em; margin: 0 0 56px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-900); margin: 48px 0 16px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink-900); margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); }
.prose__toc { background: var(--cream-100); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 40px; }
.prose__toc-h { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 10px; font-weight: 600; }
.prose__toc ol { margin: 0; padding-left: 20px; }
.prose__toc li { font-size: 14px; margin: 4px 0; }
.prose__toc a { color: var(--ink-900); text-decoration: none; }
.prose__toc a:hover { color: var(--brand); }

/* ==========================================================================
   Date slots (demo modal)
   ========================================================================== */
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .slots-grid { grid-template-columns: repeat(2, 1fr); } }
.slot-label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-default); cursor: pointer; font-size: 13px; color: var(--ink-700); transition: all var(--dur-fast) var(--ease-out); user-select: none; }
.slot-label:hover { border-color: var(--brand); background: var(--brand-soft); }
.slot-label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--ink-900); font-weight: 600; }
.slot-label input { position: absolute; opacity: 0; width: 0; height: 0; }
