/* ============================================================
   FIRST LIGHT — XPDesk early access
   Satpura Studio "golden hour" house style.
   Fraunces serif · Figtree body · IBM Plex Mono labels
   ============================================================ */

:root {
  --bg: #f5f1e8;
  --surface: #fbf8f1;
  --ink: #201c13;
  --ink-soft: rgba(32, 28, 19, 0.6);
  --ink-faint: rgba(32, 28, 19, 0.26);
  --accent: #b8722c;
  --ember: #d85a30;
  --line: rgba(32, 28, 19, 0.12);
  --sky-top: #f2e7cb;
  --sky-mid: #f8e2b4;
  --g1: #e6dec6;
  --g2: #cfc7aa;
  --g3: #a9a284;
  --g4: #6e6951;
  --mist-c: rgba(255, 250, 240, 0.55);
  --grain-op: 0.03;
  --serif: 'Fraunces', serif;
  --sans: 'Figtree', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ok: #4f7a4a;
  --bad: #c0492b;
}

/* Follow the system by default, but let an explicit choice win either way —
   this is what makes ?theme=light|dark work for captures and testing. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d0c08;
    --surface: #14120c;
    --ink: #efead9;
    --ink-soft: rgba(239, 234, 217, 0.58);
    --ink-faint: rgba(239, 234, 217, 0.24);
    --accent: #d9a05b;
    --ember: #ea6840;
    --line: rgba(239, 234, 217, 0.1);
    --sky-top: #0a0b10;
    --sky-mid: #13110c;
    --g1: #262418;
    --g2: #1c1a12;
    --g3: #14130c;
    --g4: #0b0a06;
    --mist-c: rgba(30, 28, 22, 0.5);
    --grain-op: 0.045;
    --ok: #86b47f;
  }
}
:root[data-theme='dark'] {
    --bg: #0d0c08;
    --surface: #14120c;
    --ink: #efead9;
    --ink-soft: rgba(239, 234, 217, 0.58);
    --ink-faint: rgba(239, 234, 217, 0.24);
    --accent: #d9a05b;
    --ember: #ea6840;
    --line: rgba(239, 234, 217, 0.1);
    --sky-top: #0a0b10;
    --sky-mid: #13110c;
    --g1: #262418;
    --g2: #1c1a12;
    --g3: #14130c;
    --g4: #0b0a06;
    --mist-c: rgba(30, 28, 22, 0.5);
    --grain-op: 0.045;
    --ok: #86b47f;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }
::selection { background: rgba(184, 114, 44, 0.28); color: var(--ink); }

body {
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-family: var(--serif); font-style: italic; }
ul { list-style: none; }
a { color: var(--accent); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Paper grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: var(--grain-op);
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--asc, 0));
  transform-origin: left;
  z-index: 900;
}

/* ============================ NAV ============================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 5vw;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  will-change: backdrop-filter, background-color;
  transform: translateZ(0);
}
#nav.scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-glyph {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--ember);
  flex: none;
  position: relative;
}
.nav-glyph::after {
  content: '';
  position: absolute;
  inset: 5px 4px 7px;
  border: 1.5px solid #fff;
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-right a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: #fff6ea !important; }
.nav-alt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.nav-alt b { color: var(--accent); font-weight: 500; }
@media (max-width: 760px) { .nav-alt, .nav-right a:not(.nav-cta) { display: none; } }

/* ============================ HERO ============================ */
.scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Bottom padding keeps the CTAs clear of the ridge line on short screens. */
  padding: 100px 5vw clamp(190px, 30vh, 340px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--bg) 100%);
}
.scene-svg {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 62vh;
  pointer-events: none;
  will-change: transform;
}
.scene-svg.back { z-index: 2; }
.scene-svg.front { z-index: 4; }
.scene-svg .g1 { fill: var(--g1); }
.scene-svg .g2 { fill: var(--g2); }
.scene-svg .g3 { fill: var(--g3); }
.scene-svg .g4 { fill: var(--g4); }

.sun {
  position: absolute;
  left: 50%;
  bottom: 15vh;
  width: 165px; height: 165px;
  margin-left: -82.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fbdfa8, #ecaf5d 62%, rgba(236, 175, 93, 0) 72%);
  filter: blur(2px);
  z-index: 1;
  opacity: 0.9;
  animation: sunRise 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sunRise {
  from { transform: translateY(70px) scale(0.8); opacity: 0; }
  to { transform: none; opacity: 0.9; }
}

.scene-title {
  position: relative;
  /* Above BOTH ridges. The front ridge sits at z-index 4 and is 62vh tall, so
     on a short or narrow window it climbed straight over the buttons. */
  z-index: 6;
  text-align: center;
  max-width: 780px;
  will-change: transform, opacity;
}
.scene-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.scene-h1 {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}
.hl {
  display: block;
  overflow: hidden;
  /* Deep enough for Fraunces' 'g' — at 0.08em the descender in "Light" was
     sliced flat by the overflow clip that makes the reveal work. The negative
     margin gives the space back so the layout is unchanged. */
  padding-bottom: 0.24em;
  margin-bottom: -0.16em;
}
.hl-in {
  display: block;
  transform: translateY(112%);
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
body.ready .hl-in { transform: none; }

.scene-lede {
  margin-top: 22px;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
.scene-lede strong { color: var(--ink); font-weight: 600; }
.scene-lede em { color: var(--accent); }

.scene-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-solid, .btn-ghost {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.btn-solid {
  background: var(--ember);
  color: #fff6ea;
  border: 1px solid var(--ember);
  box-shadow: 0 10px 34px -8px rgba(216, 90, 48, 0.55);
  position: relative;
  overflow: hidden;
}
.btn-solid::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-solid:hover::after { left: 130%; }
.btn-solid:hover { transform: translateY(-2px); }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 100px;
  text-decoration: none;
  background: #25d366;
  border: 1px solid #25d366;
  color: #06301a;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.7);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-wa svg { width: 18px; height: 18px; fill: #06301a; }
.btn-wa:hover {
  background: #2ee877;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

.mist {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  filter: blur(46px);
  border-radius: 50%;
  background: var(--mist-c);
  will-change: transform;
  transform: translateZ(0);
}
.mist-1 { width: 58vw; height: 15vh; left: -8%; bottom: 14vh; animation: drift 30s ease-in-out infinite alternate; }
.mist-2 { width: 44vw; height: 12vh; right: -6%; bottom: 24vh; opacity: 0.7; animation: drift 38s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0); }
  to { transform: translate3d(6%, 0, 0); }
}

/* A laptop in landscape has little vertical room; shrink the scenery, not the
   message. */
@media (max-width: 560px) {
  .scene { padding-bottom: clamp(200px, 32vh, 300px); }
}

@media (max-height: 720px) {
  .scene-svg { height: 46vh; }
  .sun { width: 118px; height: 118px; margin-left: -59px; bottom: 12vh; }
}

.anim-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
body.ready .anim-item { opacity: 1; transform: none; }
body.ready .scene-eyebrow { transition-delay: 0.35s; }
body.ready .scene-lede { transition-delay: 0.75s; }
body.ready .scene-actions { transition-delay: 0.95s; }

/* ============================ SECTIONS ============================ */
.sec {
  padding: 120px 7vw;
  border-top: 1px solid var(--line);
  position: relative;
}
.s-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
@media (max-width: 700px) { .sec { padding: 80px 22px; } }

.statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.22;
  max-width: 980px;
  font-variation-settings: 'opsz' 60;
}
.statement em { color: var(--accent); }
.lr {
  display: block;
  overflow: hidden;
  padding-bottom: 0.24em;
  margin-bottom: -0.16em;
}
.lr-in { display: block; transform: translateY(115%); transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1); }
.lr.shown .lr-in { transform: none; }
.statement .lr:nth-child(2) .lr-in { transition-delay: 0.12s; }
.statement .lr:nth-child(3) .lr-in { transition-delay: 0.24s; }
.statement-sub {
  margin-top: 34px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.25rem;
  margin-bottom: 9px;
}
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card em { color: var(--accent); }

/* dusk band */
.dusk {
  position: relative;
  overflow: hidden;
  padding: 130px 7vw 190px;
  background: linear-gradient(180deg, #291d13 0%, #170f0a 100%);
}
.dusk-svg { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 46%; }
.dusk-svg .d1 { fill: #4a3423; }
.dusk-svg .d2 { fill: #322317; }
.dusk-svg .d3 { fill: #1f150d; }
.dusk-quote { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.dusk-quote p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.26;
  color: #f6eddc;
}
.dusk-quote em { color: #ea6840; }
.dusk-quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 237, 220, 0.55);
}

/* perks */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
}
.perk { border-top: 1px solid var(--line); padding-top: 20px; }
.perk-n { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.14em; }
.perk h3 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.3rem;
  margin: 12px 0 8px;
}
.perk p { font-size: 0.95rem; color: var(--ink-soft); }

/* ============================ FORM ============================ */
.join-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .join-wrap { grid-template-columns: 1fr; gap: 36px; } }

.join-h {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.join-intro p { color: var(--ink-soft); margin-bottom: 20px; }
.join-list { display: flex; flex-direction: column; gap: 10px; }
.join-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.join-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

/* WhatsApp alternative. House styling, with the brand green kept to the glyph
   so it reads as WhatsApp without shouting over the page. */
.wa-alt {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.wa-or {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
}
.wa-btn {
  /* Promoted: this is the path most café owners will actually take. */
  background: #25d366;
  border-color: #25d366;
  color: #06301a;
  font-weight: 600;
  box-shadow: 0 8px 26px -10px rgba(37, 211, 102, 0.7);
}
.wa-btn svg { width: 19px; height: 19px; fill: #06301a; flex: none; }
.wa-btn:hover {
  background: #2ee877;
  border-color: #2ee877;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(37, 211, 102, 0.8);
}
.wa-fine { font-size: 0.8rem; color: var(--ink-faint); }

.form-shell { position: relative; }
.form-glow {
  position: absolute;
  left: 50%; bottom: -12%;
  transform: translateX(-50%);
  width: 86%; height: 55%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(236, 175, 93, 0.5), transparent 70%);
  filter: blur(38px);
  opacity: calc(var(--fill, 0) * 0.9);
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.form, .done {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 20px 60px -22px rgba(36, 24, 12, 0.28);
}
@media (max-width: 560px) { .form, .done { padding: 22px 18px; } }
.form { display: flex; flex-direction: column; gap: 18px; }

.gauge { margin-bottom: 2px; }
.gauge-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.gauge-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #ecaf5d);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gauge-label {
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gauge-label b { color: var(--accent); font-weight: 500; }

.f-row { display: flex; gap: 14px; }
@media (max-width: 620px) { .f-row { flex-direction: column; gap: 18px; } }

.f { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; border: 0; }
.f > span, .f legend {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.f i { font-style: normal; color: var(--ink-faint); letter-spacing: 0.08em; }
.f input, .f select, .f textarea {
  width: 100%;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  transition: border-color 0.3s;
  border-radius: 0;
}
.f select {
  cursor: pointer;
  /* The popup list is drawn by the OS, not by us. A transparent background
     meant it fell back to system white while our text stayed themed —
     unreadable in dark mode. Give it a real colour and tell the platform
     which scheme to paint. */
  background-color: var(--surface);
  color: var(--ink);
  color-scheme: light;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% + 1px), calc(100% - 8px) calc(50% + 1px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
/* Each option is its own OS-drawn surface and ignores the parent's styling. */
.f select option {
  background-color: var(--surface);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .f select { color-scheme: dark; }
}
:root[data-theme='dark'] .f select { color-scheme: dark; }
.f textarea { resize: vertical; line-height: 1.6; }
.f input::placeholder, .f textarea::placeholder { color: var(--ink-faint); }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.f input.bad, .f select.bad { border-bottom-color: var(--bad); }
.count { align-self: flex-end; font-size: 0.62rem; color: var(--ink-faint); }

.chips-f legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 15px;
  transition: color 0.22s, border-color 0.22s, background 0.22s, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip.on {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(184, 114, 44, 0.1);
  transform: translateY(-2px);
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.consent input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }

.err {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--bad);
  min-height: 1rem;
}

.submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 26px;
  border-radius: 100px;
  border: 1px solid var(--ember);
  background: var(--ember);
  color: #fff6ea;
  box-shadow: 0 10px 34px -10px rgba(216, 90, 48, 0.6);
  position: relative;
  overflow: hidden;
  transition: opacity 0.25s, box-shadow 0.25s, transform 0.2s;
}
.submit:disabled { opacity: 0.4; box-shadow: none; cursor: not-allowed; }
.submit:not(:disabled):hover { transform: translateY(-2px); }
.submit-arrow { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.submit:not(:disabled):hover .submit-arrow { transform: translateX(4px); }
.submit.sending .submit-label::after {
  content: '';
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots { to { content: '....'; } }

.fine { font-size: 0.78rem; color: var(--ink-faint); text-align: center; }

/* ---------- the success state ---------- */
.done {
  overflow: hidden;
  text-align: center;
  padding: 0 28px 34px;
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.done-sky {
  position: relative;
  margin: 0 -28px 26px;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 60%, var(--surface));
}
.done-sun {
  position: absolute;
  left: 50%; bottom: 26px;
  width: 88px; height: 88px;
  margin-left: -44px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fbdfa8, #ecaf5d 66%, rgba(236, 175, 93, 0) 74%);
  transform: translateY(90px);
  animation: dawn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes dawn {
  to { transform: translateY(0); }
}
.done-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 74px; }
.done-ridge path { fill: var(--g2); }

.tick {
  width: 62px; height: 62px;
  margin: -58px auto 18px;
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(36, 24, 12, 0.25));
}
.tick-ring, .tick-mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick-ring {
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.tick-mark {
  stroke: var(--ok);
  stroke-width: 3.4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.4s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.done-h {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin-bottom: 12px;
  opacity: 0;
  animation: rise 0.6s ease 1.2s forwards;
}
.done-p {
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto 8px;
  opacity: 0;
  animation: rise 0.6s ease 1.35s forwards;
}
.done-p b { color: var(--accent); }
.done-sub {
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 380px;
  margin: 0 auto;
  opacity: 0;
  animation: rise 0.6s ease 1.5s forwards;
}
.done-actions {
  margin-top: 24px;
  opacity: 0;
  animation: rise 0.6s ease 1.65s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* embers drifting up from the sun on success */
.ember {
  position: absolute;
  bottom: 40px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ecaf5d;
  pointer-events: none;
  animation: ember 2.6s ease-out forwards;
}
@keyframes ember {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-120px) scale(0.2); }
}

/* ============================ TERMS ============================ */
.terms { max-width: 780px; }
.terms-intro { color: var(--ink-soft); margin-bottom: 26px; }
.terms details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.terms details:last-of-type { border-bottom: 1px solid var(--line); }
.terms summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.terms details[open] summary::after { transform: rotate(45deg); }
.terms details p {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.terms details p + p { margin-top: 10px; }
.terms-foot {
  margin-top: 26px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================ FOOTER ============================ */
footer { position: relative; padding-bottom: 34px; }
.foot-ridge { display: block; width: 100%; height: 60px; }
.foot-ridge path { fill: var(--g1); }
.foot-inner {
  padding: 26px 7vw 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.studio {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px 8px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.studio:hover {
  border-color: var(--line);
  background: var(--surface);
  transform: translateY(-2px);
}
.studio-mark { width: 40px; height: 40px; flex: none; }
.studio-mark svg { width: 100%; height: 100%; }
.sm-sun { fill: var(--accent); transition: fill 0.3s; }
.sm-ridge { fill: var(--ink); opacity: 0.85; }
.studio:hover .sm-sun { fill: #ecaf5d; }
.studio-text { display: flex; flex-direction: column; line-height: 1.3; }
.studio-text b {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.05rem;
}
.studio-text i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 640px) {
  .foot-inner { justify-content: center; }
  .foot-meta { text-align: center; }
}

/* ============================ REVEALS ============================ */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal-up.shown { opacity: 1; transform: none; }
.grid .reveal-up:nth-child(2) { transition-delay: 0.06s; }
.grid .reveal-up:nth-child(3) { transition-delay: 0.12s; }
.grid .reveal-up:nth-child(4) { transition-delay: 0.18s; }
.grid .reveal-up:nth-child(5) { transition-delay: 0.24s; }
.grid .reveal-up:nth-child(6) { transition-delay: 0.3s; }
.perks .reveal-up:nth-child(2) { transition-delay: 0.08s; }
.perks .reveal-up:nth-child(3) { transition-delay: 0.16s; }
.perks .reveal-up:nth-child(4) { transition-delay: 0.24s; }
.s-tag.reveal-up {
  letter-spacing: 0.55em;
  transition: opacity 0.85s ease, transform 0.85s ease, letter-spacing 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-tag.reveal-up.shown { letter-spacing: 0.3em; }

/* Shot mode for headless capture */
body.shot .anim-item,
body.shot .hl-in,
body.shot .lr-in,
body.shot .reveal-up { opacity: 1; transform: none; transition: none; }
body.shot .s-tag.reveal-up { letter-spacing: 0.3em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mist, .sun, .done-sun, .ember { animation: none; }
  .hl-in, .lr-in { transform: none; transition: none; }
  .anim-item, .reveal-up { opacity: 1; transform: none; transition: none; }
  .tick-ring, .tick-mark { stroke-dashoffset: 0; animation: none; }
  .done-h, .done-p, .done-sub, .done-actions { opacity: 1; animation: none; }
  .btn-solid:hover, .card:hover, .studio:hover { transform: none; }
}
