/* ==========================================================================
   Vibediting landing
   Single committed theme: a dark edit suite. Colour grading happens in dark
   rooms, so the page is painted dark on purpose rather than by omission.
   Every colour is explicit, so it never borrows a host background.
   ========================================================================== */

:root {
  /* ground */
  --bg:            #0B0A09;
  --bg-raised:     #131110;
  --bg-sunken:     #070606;
  --line:          #262220;
  --line-bright:   #383230;

  /* ink */
  --ink:           #F5F2ED;
  --ink-soft:      #B9B1A6;
  --ink-mute:      #8A8177;

  /* the tally light: one accent, used everywhere, nowhere else */
  --hot:           #FF6B2C;
  --hot-deep:      #D14E17;
  --hot-ink:       #1A0C04;
  --hot-glow:      rgba(255, 107, 44, 0.28);

  /* semantic, not accent: what the system removes */
  --cut:           #4B443C;

  /* type */
  --display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* rhythm. one radius system: soft 10px, pill for interactive */
  --r:       10px;
  --r-pill:  999px;
  --shell:   1180px;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* pointer parallax, written by JS */
  --px: 0;
  --py: 0;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; line-height: 1.06; }
p { text-wrap: pretty; }

.mono { font-family: var(--mono); }
::selection { background: var(--hot); color: var(--hot-ink); }

:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .shell { padding-inline: 40px; } }

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hot);
}

/* ==========================================================================
   Reveal on scroll.
   Content is visible by default. Only when JS is running does it start
   hidden, and even then a pure CSS animation force-reveals it after 2.4s
   so a failed script can never leave the page blank.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    animation: failsafe 0.01s linear 2.4s forwards;
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    animation: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
}
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Atmosphere: floating footage frames, grain, vignette
   ========================================================================== */
.frames {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.frame {
  position: absolute;
  width: var(--fw);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform:
    translate3d(calc(var(--px) * var(--depth) * 26px), calc(var(--py) * var(--depth) * 20px), 0)
    rotate(var(--rot));
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
  /* "both" keeps the hidden state inside the animation, so a browser that
     never runs animations shows the frame instead of a blank box */
  animation: frameIn 1.2s var(--ease) both, drift var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--delay), calc(var(--delay) + 1.2s);
  will-change: transform;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 22%, transparent 78%, rgba(0,0,0,0.5)),
    var(--grade);
}
.frame__tc {
  position: absolute;
  left: 7px;
  bottom: 6px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes frameIn { from { opacity: 0; } to { opacity: var(--op); } }
@keyframes drift {
  from { translate: 0 0; }
  to   { translate: var(--dx) var(--dy); }
}

.grain {
  position: fixed;
  inset: -120px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  animation: grainShift 0.6s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-24px, 14px); }
  50%  { transform: translate(18px, -20px); }
  75%  { transform: translate(-14px, -12px); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(115% 85% at 50% 22%, transparent 42%, rgba(7, 6, 6, 0.72) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .frame { animation: frameIn 0.01s linear forwards; transition: none; }
  .grain { animation: none; }
}

/* everything real sits above the atmosphere */
.nav, main, .foot, .scrubber { position: relative; z-index: 4; }

/* ==========================================================================
   Scrubber (scroll position)
   ========================================================================== */
.scrubber {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.05);
}
.scrubber__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--hot-deep), var(--hot));
  box-shadow: 0 0 12px var(--hot-glow);
}
.scrubber__head {
  position: absolute;
  top: -2px;
  left: 0;
  width: 2px;
  height: 6px;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  opacity: 0;
  transition: opacity 0.3s;
}
.scrubber.is-live .scrubber__head { opacity: 1; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,10,9,0.92), rgba(11,10,9,0.6) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.brand__mark {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}
.brand__mark i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--hot);
  transition: height 0.35s var(--ease);
}
.brand__mark i:nth-child(1) { height: 6px;  }
.brand__mark i:nth-child(2) { height: 13px; }
.brand__mark i:nth-child(3) { height: 4px; background: var(--cut); }
.brand__mark i:nth-child(4) { height: 16px; }
.brand__mark i:nth-child(5) { height: 8px;  }
.brand:hover .brand__mark i:nth-child(1) { height: 12px; }
.brand:hover .brand__mark i:nth-child(2) { height: 6px;  }
.brand:hover .brand__mark i:nth-child(3) { height: 14px; background: var(--hot); }
.brand:hover .brand__mark i:nth-child(4) { height: 7px;  }
.brand:hover .brand__mark i:nth-child(5) { height: 15px; }

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand__note {
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  padding-left: 2px;
}
@media (max-width: 400px) { .brand__note { display: none; } }

.navcta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.navcta:hover { color: var(--hot); }
.navcta__arrow { transition: transform 0.45s var(--ease); }
.navcta:hover .navcta__arrow { animation: nudge 0.9s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .navcta:hover .navcta__arrow { animation: none; transform: translateY(2px); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:active { transform: scale(0.975); }

.btn--primary {
  background: var(--hot);
  color: var(--hot-ink);
  border: 1px solid var(--hot);
  box-shadow: 0 6px 26px -8px var(--hot-glow);
}
.btn--primary:hover {
  background: #FF7C44;
  box-shadow: 0 10px 34px -8px var(--hot-glow);
}
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  color: var(--ink-soft);
  border: 1px solid var(--line-bright);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-mute); background: rgba(255,255,255,0.03); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 768px) { .hero { padding-top: 76px; padding-bottom: 120px; } }

.hero__title {
  font-size: clamp(2.05rem, 8.4vw, 5rem);
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero__title .w {
  display: inline-block;
  will-change: transform;
}
/* "both" fill again: the headline is never left hidden by a standing rule */
.js .hero__title .w {
  animation: wordUp 0.85s var(--ease) both;
  animation-delay: calc(var(--i) * 65ms + 120ms);
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(0.5em) rotate(1.2deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .w { opacity: 1; transform: none; animation: none; }
}

.hero__sub {
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─────────── the editor panel ─────────── */
.editor {
  margin-top: 52px;
  background: linear-gradient(to bottom, var(--bg-raised), var(--bg-sunken));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 70px -40px rgba(0,0,0,0.9);
}
@media (min-width: 768px) { .editor { margin-top: 72px; } }

.editor__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
}
.editor__rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 var(--hot-glow);
  animation: rec 2s ease-out infinite;
  flex: none;
}
@keyframes rec {
  0%   { box-shadow: 0 0 0 0 var(--hot-glow); }
  70%  { box-shadow: 0 0 0 7px rgba(255,107,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,44,0); }
}
@media (prefers-reduced-motion: reduce) { .editor__rec { animation: none; } }

.editor__file { color: var(--ink-soft); }
.editor__tc   { color: var(--hot); margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.editor__spec { color: var(--ink-mute); display: none; }
@media (min-width: 620px) { .editor__spec { display: inline; } .editor__tc { margin-left: auto; } }

.editor__stage {
  position: relative;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
@media (min-width: 768px) { .editor__stage { padding: 22px 18px 18px; } }

.lane { display: flex; gap: 3px; width: 100%; }
.lane--v { height: 44px; }
.lane--a { height: 26px; }
@media (min-width: 768px) { .lane--v { height: 62px; } .lane--a { height: 34px; } }

.seg {
  flex: 0 0 calc(var(--w) * 1%);
  min-width: 0;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,107,44,0.30), rgba(255,107,44,0.11));
  border: 1px solid rgba(255,107,44,0.34);
  transform-origin: left center;
  transition:
    flex-basis 0.72s var(--ease-io),
    opacity 0.5s ease,
    background 0.3s,
    border-color 0.3s,
    margin 0.72s var(--ease-io);
}
/* hidden only while JS drives them, and force-shown after 3s if it never does */
.js .seg {
  opacity: 0;
  transform: scaleX(0.2);
  animation: failsafe 0.01s linear 3s forwards;
}
.seg.is-loaded {
  opacity: 1;
  transform: none;
  animation: none;
  transition: opacity 0.4s ease, transform 0.55s var(--ease), flex-basis 0.72s var(--ease-io), background 0.3s, border-color 0.3s, margin 0.72s var(--ease-io);
}

.seg[data-keep="0"] {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.05) 0 4px,
    transparent 4px 8px
  ), rgba(255,255,255,0.02);
  border-color: var(--line-bright);
}
.seg.is-flagged {
  border-color: var(--hot);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,107,44,0.20) 0 4px,
    transparent 4px 8px
  ), rgba(255,107,44,0.06);
}
.seg.is-cut {
  flex-basis: 0% !important;
  opacity: 0;
  margin-right: -3px;
  border-width: 0;
}

/* the audio lane reuses .seg for width sync, but reads as a container */
.lane--a .seg {
  background: rgba(255, 255, 255, 0.022);
  border-color: var(--line);
}
.lane--a .seg[data-keep="0"] { background: rgba(255, 255, 255, 0.012); }
.lane--a .seg.is-flagged {
  background: rgba(255, 107, 44, 0.05);
  border-color: rgba(255, 107, 44, 0.45);
}

.wave {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 100%;
  padding: 0 3px;
}
.wave i {
  display: block;
  flex: 1 1 auto;
  min-width: 1px;
  height: var(--h);
  border-radius: 1px;
  background: var(--hot);
  opacity: 0.55;
  transform-origin: center;
  transition: height 0.4s var(--ease), opacity 0.3s;
}
.seg[data-keep="0"] .wave i { background: var(--cut); opacity: 0.9; }

.playhead {
  position: absolute;
  top: 10px;
  bottom: 8px;
  left: 14px;
  width: 1.5px;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(245,242,237,0.55);
  opacity: 0;
  pointer-events: none;
  border-radius: 2px;
}
.playhead::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink);
}
.playhead.is-on { opacity: 1; }
@media (min-width: 768px) { .playhead { left: 18px; top: 14px; bottom: 12px; } }

.editor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  font-size: 11px;
  min-height: 38px;
}
.editor__state { color: var(--ink-mute); }
.editor__state.is-hot { color: var(--hot); }
.editor__saved {
  color: var(--hot);
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.editor__saved.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   Proof
   ========================================================================== */
.proof { padding-block: 72px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .proof { padding-block: 120px; } }

.proof__grid { display: grid; gap: 40px; }
@media (min-width: 940px) {
  .proof__grid { grid-template-columns: 0.82fr 1.18fr; gap: 72px; align-items: start; }
  .proof__lead { position: sticky; top: 100px; }
}

.proof__lead h2 {
  font-size: clamp(1.75rem, 5.6vw, 2.85rem);
  margin: 14px 0 16px;
}
.proof__intro { color: var(--ink-soft); max-width: 34ch; }

.proof__list { list-style: none; display: flex; flex-direction: column; }
.proof__item {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.proof__item:first-child { border-top: none; padding-top: 0; }
@media (min-width: 940px) { .proof__item:first-child { padding-top: 4px; border-top: 1px solid var(--line); } }
.proof__item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--hot);
  transition: width 0.9s var(--ease);
}
.proof__item.is-in::before { width: 46px; }

.proof__item h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.proof__item p { color: var(--ink-soft); font-size: 0.97rem; max-width: 58ch; }

/* ==========================================================================
   How it works
   ========================================================================== */
.how { padding-block: 72px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .how { padding-block: 120px; } }

.how__title { font-size: clamp(1.7rem, 5.4vw, 2.6rem); margin-bottom: 40px; max-width: 18ch; }

.strip { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--bg);
  padding: 26px 22px;
  position: relative;
  transition: background 0.35s;
}
.step:hover { background: var(--bg-raised); }
.step__n {
  display: block;
  font-size: 11px;
  color: var(--hot);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.015em; }
.step p { font-size: 0.92rem; color: var(--ink-mute); }

/* grade chips */
.grade { margin-top: 18px; }
.grade__preview {
  height: 52px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(115deg, #6d5744 0%, #8a6b4e 38%, #3c3730 100%);
  transition: filter 0.5s var(--ease), background 0.5s var(--ease);
  border: 1px solid var(--line-bright);
}
.grade__bars {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 30%, transparent 70%, rgba(0,0,0,0.4));
}
.grade__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-pill);
  padding: 0 14px;
  min-height: 44px; /* thumb-sized, this is the one thing you tap here */
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-mute); }
.chip.is-on { color: var(--hot-ink); background: var(--hot); border-color: var(--hot); }

/* ==========================================================================
   Statement
   ========================================================================== */
.stmt { padding-block: 76px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .stmt { padding-block: 128px; } }
.stmt__body {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4.4vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 24ch;
  color: var(--ink-soft);
}
@media (min-width: 768px) { .stmt__body { max-width: 30ch; } }
.stmt__body em { font-style: normal; color: var(--ink); }

/* ==========================================================================
   Status
   ========================================================================== */
.status { padding-bottom: 76px; }
@media (min-width: 768px) { .status { padding-bottom: 128px; } }
.status__wrap { display: flex; justify-content: flex-end; }
.status__card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--hot);
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(to right, rgba(255,107,44,0.05), transparent 60%);
  padding: 26px 24px;
  max-width: 620px;
}
@media (min-width: 768px) { .status__card { padding: 34px 32px; } }
.status__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
  line-height: 1.2;
}
.status__note { color: var(--ink-soft); font-size: 0.96rem; max-width: 52ch; }

/* ==========================================================================
   Updates / form
   ========================================================================== */
.updates {
  padding-block: 76px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 70px;
}
@media (min-width: 768px) { .updates { padding-block: 128px; } }

.updates__inner { max-width: 640px; }
.updates h2 { font-size: clamp(1.7rem, 5.4vw, 2.6rem); margin-bottom: 14px; }
.updates__sub { color: var(--ink-soft); margin-bottom: 30px; max-width: 46ch; }

.formwrap { position: relative; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .form__row { flex-direction: row; align-items: flex-end; } }

.form__field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.form__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-mute); }
.form__input {
  font-family: var(--body);
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-pill);
  padding: 14px 20px;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.3s;
}
.form__input::placeholder { color: var(--ink-mute); }
.form__input:hover { border-color: var(--ink-mute); }
.form__input:focus {
  outline: none;
  border-color: var(--hot);
  background: var(--bg-sunken);
  box-shadow: 0 0 0 3px rgba(255,107,44,0.14);
}
.form__input[aria-invalid="true"] { border-color: #E5484D; }

.form__submit { flex: none; }
.form__submit[disabled] { opacity: 0.62; cursor: progress; }
.form__submit[disabled]:active { transform: none; }

.form__help { margin-top: 14px; font-size: 0.86rem; color: var(--ink-mute); max-width: 46ch; }
.form__error { margin-top: 12px; font-size: 0.88rem; color: #FF8A8E; }

.done {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(255,107,44,0.4);
  background: linear-gradient(to bottom right, rgba(255,107,44,0.09), transparent 70%);
  border-radius: var(--r);
  padding: 22px;
  animation: doneIn 0.55s var(--ease) both;
}
@keyframes doneIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .done { animation: none; } }

.done__tick {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hot);
  color: var(--hot-ink);
}
.done__title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.done__body { color: var(--ink-soft); font-size: 0.94rem; }
.done__body a { color: var(--hot); border-bottom: 1px solid rgba(255,107,44,0.35); }
.done__body a:hover { border-color: var(--hot); }

.updates__alt { margin-top: 26px; font-size: 0.92rem; color: var(--ink-mute); }
.updates__alt a { color: var(--ink-soft); border-bottom: 1px solid var(--line-bright); transition: color 0.2s, border-color 0.2s; }
.updates__alt a:hover { color: var(--hot); border-color: var(--hot); }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}
.foot__inner { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .foot__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

.foot__name { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.foot__role { font-size: 11px; color: var(--ink-mute); margin-top: 3px; }

.foot__links { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 640px) { .foot__links { align-items: flex-end; } }
.foot__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.foot__links a svg { opacity: 0; transform: translate(-3px, 3px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.foot__links a:hover { color: var(--hot); }
.foot__links a:hover svg { opacity: 1; transform: none; }
