/* The Impact Challenge — mobile first. 375px base, DS breakpoints 576 / 768 / 1200. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sof-ug-deep);
  color: var(--fg-primary);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; flex: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; }
.noscript { padding: 24px; color: #fff; }
:focus-visible { outline: 3px solid var(--sof-ug-teal); outline-offset: 2px; border-radius: 6px; }
.hero :focus-visible, .bar :focus-visible, .done-hero :focus-visible { outline-color: var(--sof-ug-cyan); }
h1:focus { outline: none; }

/* ---------- App shell ---------- */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  overflow-x: clip;
}
@media (min-width: 576px) {
  body {
    background:
      radial-gradient(60% 50% at 85% 0%, rgba(0,244,220,.22), transparent 70%),
      radial-gradient(60% 50% at 0% 100%, rgba(0,157,148,.30), transparent 70%),
      var(--sof-ug-deep);
    padding: 32px 0;
  }
  .app { min-height: calc(100dvh - 64px); border-radius: 32px; box-shadow: none; }
  .screen { min-height: calc(100dvh - 64px); }
}

.screen { display: flex; flex-direction: column; min-height: 100dvh; }
.screen--form { background: var(--page-bg); }
.screen.is-enter-fwd { animation: enter-fwd var(--duration-transform) var(--ease-smooth) both; }
.screen.is-enter-back { animation: enter-back var(--duration-transform) var(--ease-smooth) both; }
@keyframes enter-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* ---------- Type ---------- */
.h2 { font-family: var(--font-primary); font-weight: 400; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-primary); font-weight: 400; font-size: 18px; line-height: 28px; }
.muted { color: var(--fg-secondary); font-size: 15px; line-height: 22px; }
.eyebrow {
  font-family: var(--font-cta);
  font-size: 12px; line-height: 18px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sof-ug-mint);
}
.section-title { margin: var(--space-8) 0 var(--space-3); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: var(--radius-full);
  font-family: var(--font-cta); font-size: 12px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; }
.chip--glass { background: rgba(255,255,255,.08); color: var(--sof-ug-ice); box-shadow: inset 0 0 0 1px rgba(204,255,249,.22); backdrop-filter: blur(8px); }
.chip--tone { background: linear-gradient(135deg, var(--sof-ug-forest), var(--sof-ug-deep)); color: #fff; text-transform: none; letter-spacing: 0; font-family: var(--font-secondary); font-weight: 600; font-size: 13px; height: 32px; }

/* ---------- Hero (landing) ---------- */
.hero, .done-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(165deg, var(--sof-ug-deep) 20%, var(--sof-ug-forest) 100%);
  color: #fff;
}
.hero { padding: calc(var(--space-6) + env(safe-area-inset-top)) var(--space-5) calc(var(--space-12) + var(--space-4)); }
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
/* Aurora: three soft blobs on independent slow loops, screen-blended so they glow where they overlap */
.hero__glow::before, .hero__glow::after, .hero__glow > i {
  content: ''; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  mix-blend-mode: screen; will-change: transform;
}
.hero__glow::before {
  top: -55%; right: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(0,244,220,.50) 0%, rgba(0,244,220,0) 58%);
  animation: aurora-a 17s ease-in-out infinite alternate;
}
.hero__glow::after {
  bottom: -65%; left: -55%;
  background: radial-gradient(circle at 50% 50%, rgba(0,157,148,.55) 0%, rgba(0,157,148,0) 58%);
  animation: aurora-b 23s ease-in-out infinite alternate;
}
.hero__glow > i {
  top: 10%; left: 5%; width: 90%;
  background: radial-gradient(circle at 50% 50%, rgba(93,224,208,.30) 0%, rgba(93,224,208,0) 60%);
  animation: aurora-c 29s ease-in-out infinite alternate;
}
@keyframes aurora-a { 0% { transform: translate3d(0,0,0) scale(1) rotate(0deg); } 50% { transform: translate3d(-14%,16%,0) scale(1.12) rotate(18deg); } 100% { transform: translate3d(-4%,30%,0) scale(.95) rotate(-10deg); } }
@keyframes aurora-b { 0% { transform: translate3d(0,0,0) scale(1) rotate(0deg); } 50% { transform: translate3d(22%,-12%,0) scale(1.1) rotate(-14deg); } 100% { transform: translate3d(34%,-26%,0) scale(1.18) rotate(12deg); } }
@keyframes aurora-c { 0% { transform: translate3d(-12%,-8%,0) scale(.9); opacity: .6; } 50% { transform: translate3d(20%,12%,0) scale(1.15); opacity: 1; } 100% { transform: translate3d(8%,34%,0) scale(1); opacity: .7; } }
.hero__logo { width: 72px; height: 72px; margin-bottom: var(--space-6); }
.hero__title {
  margin-top: var(--space-4);
  font-family: var(--font-primary); font-weight: 400;
  font-size: 48px; line-height: 50px; letter-spacing: -0.03em;
}
.hero__title em, .question em, .done-hero__title em { font-family: var(--font-accent); font-style: normal; color: var(--sof-ug-cyan); letter-spacing: -0.01em; }
.hero__sub { margin-top: var(--space-4); max-width: 34ch; color: rgba(255,255,255,.82); font-size: 17px; line-height: 26px; }
.closes {
  display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-6);
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sof-ug-ice);
}
.closes__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sof-ug-cyan); box-shadow: 0 0 0 0 rgba(0,244,220,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,244,220,0); } 100% { box-shadow: 0 0 0 0 rgba(0,244,220,0); } }

/* ---------- Sheet ---------- */
.sheet {
  position: relative; flex: 1; display: flex; flex-direction: column;
  margin-top: -28px; background: var(--page-bg);
  border-radius: 28px 28px 0 0;
}
.sheet__body { flex: 1; padding: var(--space-6) var(--space-4) var(--space-6); }

.card { background: #fff; border-radius: var(--radius-xl); box-shadow: 0 0 0 1px var(--stroke-teal); }
.info-grid { display: grid; gap: var(--space-3); }
.info { display: flex; gap: var(--space-4); padding: var(--space-5) var(--space-4); align-items: flex-start; }
.info .h2 { margin-bottom: 2px; }
.icon-badge {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 14px; background: var(--sof-ug-ice); color: var(--sof-ug-deep);
}
.icon-badge svg { width: 22px; height: 22px; }

.footnote { margin-top: var(--space-3); font-size: 12px; line-height: 18px; color: var(--fg-muted); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; padding-left: 0; }
.tl { position: relative; display: grid; grid-template-columns: 24px 64px 1fr; align-items: start; column-gap: var(--space-3); padding-bottom: var(--space-5); }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px; background: var(--stroke-teal); border-radius: 2px; }
.tl:last-child::before { display: none; }
.tl.is-done::before { background: var(--sof-ug-teal); }
.tl__dot {
  display: grid; place-items: center; width: 24px; height: 24px; margin-top: 0;
  border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--stroke-teal); color: transparent;
}
.tl__dot svg { width: 14px; height: 14px; display: none; }
.tl.is-done .tl__dot svg { display: block; }
.tl.is-done .tl__dot { background: var(--sof-ug-teal); box-shadow: none; color: var(--sof-ug-deep); }
.tl.is-next .tl__dot { background: var(--sof-ug-deep); box-shadow: 0 0 0 4px rgba(0,244,220,.35); }
.tl.is-next .tl__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sof-ug-cyan); }
.tl__date { font-family: var(--font-cta); font-size: 16px; line-height: 24px; white-space: nowrap; }
.tl__text { font-size: 15px; line-height: 24px; color: var(--fg-secondary); }
.tl.is-next .tl__text { color: var(--fg-primary); font-weight: 600; }
.tl.is-done .tl__date, .tl.is-done .tl__text { color: var(--fg-muted); }

/* ---------- Buttons ---------- */
.cta-bar {
  position: sticky; bottom: 0; z-index: 5;
  padding: var(--space-6) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
}
.cta-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,.7), rgba(255,255,255,0));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent);
}
.cta-note { margin-top: var(--space-2); text-align: center; font-size: 13px; line-height: 18px; color: var(--fg-muted); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%; min-height: 56px; padding: 0 var(--space-6);
  border: 0; border-radius: 14px;
  font-family: var(--font-cta); font-size: 17px; line-height: 24px; letter-spacing: .01em;
  transition: transform .2s var(--ease-smooth), background-color var(--duration-color) var(--ease-color), box-shadow .2s var(--ease-color), opacity .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.975); }
.btn--primary { color: #fff; background: linear-gradient(120deg, #007F77 0%, #0E3937 58%, #081C1B 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { filter: brightness(1.12); }
.btn--secondary { color: #fff; background: linear-gradient(120deg, #007F77 0%, #0E3937 58%, #081C1B 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn--secondary:hover { filter: brightness(1.12); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn:disabled:active { transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .0; }
.spinner { display: none; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { display: block; margin: var(--space-5) auto 0; padding: var(--space-2) var(--space-3); background: none; border: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--fg-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form header bar ---------- */
.bar {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--space-3) + env(safe-area-inset-top)) var(--space-4) var(--space-8);
  background:
    radial-gradient(circle at 96% 0%, rgba(0,244,220,.30) 0%, rgba(0,244,220,0) 48%),
    linear-gradient(165deg, var(--sof-ug-deep) 25%, var(--sof-ug-forest) 100%);
  color: #fff;
  border-radius: 0 0 28px 28px;
}
.bar__row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.bar__pct { flex: none; min-width: 44px; text-align: right; font-family: var(--font-cta); font-size: 15px; line-height: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff;
  transition: background-color var(--duration-color) var(--ease-color), transform .2s var(--ease-smooth);
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn:active { transform: scale(.92); }
.progress { flex: 1; position: relative; height: 8px; border-radius: 8px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress i { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(90deg, var(--sof-ug-mint), var(--sof-ug-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-smooth); }
.bar__title { margin-top: var(--space-1); font-family: var(--font-primary); font-weight: 400; font-size: 30px; line-height: 38px; letter-spacing: -0.02em; }

/* ---------- Forms ---------- */
.form { flex: 1; display: flex; flex-direction: column; }
.form__body { flex: 1; display: grid; align-content: start; gap: var(--space-5); padding: var(--space-6) var(--space-4) var(--space-2); }
.field { display: grid; gap: 6px; }
.field > label:not(.check) { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--fg-primary); }
.optional { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--fg-muted); }
input, textarea { scroll-margin-block: 120px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea, select {
  width: 100%; min-height: 52px; padding: 14px var(--space-4);
  background: #fff; color: var(--fg-primary);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  font-size: 16px; line-height: 24px; /* 16px stops iOS zoom */
  transition: border-color var(--duration-color) var(--ease-color), box-shadow var(--duration-color) var(--ease-color);
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 96px; resize: none; }
select {
  padding-right: 48px; cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23081C1B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
select:invalid { color: var(--fg-placeholder); }
select option { color: var(--fg-primary); }
::placeholder { color: var(--fg-placeholder); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sof-ug-teal); }
input[readonly] { background: rgba(255,255,255,.6); color: var(--fg-secondary); border-style: dashed; }
.field.has-error input:not([type="checkbox"]), .field.has-error textarea, .field.has-error select { border-color: var(--error); }

.field__hint { font-size: 13px; line-height: 18px; color: var(--fg-muted); }
.field__msg { display: none; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 18px; color: var(--error-text); font-weight: 500; }
.field__msg::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"/></svg>') center/contain no-repeat; }
.field.has-error .field__msg { display: flex; }
.field__row { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.field__row .field__msg { flex: 1; }
.counter { margin-left: auto; font-size: 12px; line-height: 18px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.field.has-error { animation: shake .36s var(--ease-smooth); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.input-wrap { position: relative; display: flex; align-items: center; }

/* Border beam. The moving light is painted as the input's OWN 1px border (padding-box fill + border-box conic
   gradient), so it can never drift from the field's edge or corner radius (no separate overlay, no double stroke).
   Teal while focused; red when the field has an error. */
@property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@property --hi { syntax: '<color>'; initial-value: #00F4DC; inherits: false; }
@property --tail { syntax: '<color>'; initial-value: #009D94; inherits: false; }
/* The global :focus-visible rule sets border-radius: 6px for focus rings; fields must keep their own radius. */
input:focus-visible, textarea:focus-visible, select:focus-visible { border-radius: var(--radius-lg); }
input:not([type="checkbox"]):focus, textarea:focus {
  --base: var(--sof-ug-teal);
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--beam), var(--base) 0deg 290deg, var(--tail) 335deg, var(--hi) 358deg, var(--base) 360deg) border-box;
  animation: beam 6s linear infinite;
}
.field.has-error input:not([type="checkbox"]):focus, .field.has-error textarea:focus { --base: var(--error); --tail: #DC2626; --hi: #FF7A7A; }
@keyframes beam { to { --beam: 360deg; } }
.input-wrap__icon { position: absolute; right: 16px; width: 20px; height: 20px; color: var(--fg-muted); pointer-events: none; }
.input-wrap__icon--left { right: auto; left: 16px; }
.input-wrap--prefix input { padding-left: 76px; }
.prefix { position: absolute; left: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; width: 60px; border-radius: 11px 0 0 11px; background: rgba(8,28,27,.05); font-weight: 600; font-size: 15px; color: var(--fg-secondary); border-right: 1px solid var(--border); }
.input-wrap--action input { padding-left: 46px; padding-right: 96px; }
.paste {
  position: absolute; right: 6px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 0; border-radius: 10px; background: var(--sof-ug-ice); color: var(--sof-ug-deep); font-weight: 600; font-size: 14px;
}
.paste svg { width: 18px; height: 18px; }
.paste:active { transform: scale(.95); }

/* Checkbox card */
.check { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: #fff; border-radius: var(--radius-xl); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; transition: box-shadow .2s var(--ease-color), background-color .2s; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-top: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--border-control); color: transparent; transition: all .2s var(--ease-smooth); }
.check__box svg { width: 16px; height: 16px; transform: scale(.6); transition: transform .25s var(--ease-elastic, var(--ease-smooth)); }
.check__text { font-size: 15px; line-height: 22px; color: var(--fg-primary); }
.check input:checked + .check__box { background: var(--sof-ug-teal); box-shadow: none; color: var(--sof-ug-deep); }
.check input:checked + .check__box svg { transform: scale(1); }
.check:has(input:checked) { background: #F2FFFD; box-shadow: 0 0 0 1.5px var(--sof-ug-teal); }
.check:has(input:focus-visible) { outline: 3px solid var(--sof-ug-teal); outline-offset: 2px; }
.field.has-error .check { box-shadow: 0 0 0 1.5px var(--error); }

.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--sof-ug-ice); color: var(--sof-ug-deep); font-size: 14px; line-height: 20px; font-weight: 500; }
.notice svg { width: 20px; height: 20px; margin-top: 0; }

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

.banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-lg); font-size: 14px; line-height: 20px; }
.banner svg { width: 20px; height: 20px; }
.banner--error { background: #FEF2F2; color: var(--error-text); box-shadow: 0 0 0 1px #FECACA; }

/* ---------- Brief ---------- */
.prose { display: grid; gap: var(--space-4); font-size: 16px; line-height: 26px; color: var(--fg-secondary); }
.prose__lead { font-size: 19px; line-height: 29px; color: var(--fg-primary); font-weight: 500; letter-spacing: -0.005em; }
.question {
  position: relative; overflow: hidden; margin: 0;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-2xl); color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(0,244,220,.35), rgba(0,244,220,0) 55%),
    linear-gradient(160deg, var(--sof-ug-deep), var(--sof-ug-forest));
  box-shadow: none;
}
.question__label { display: block; margin-bottom: var(--space-3); font-family: var(--font-cta); font-size: 12px; line-height: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--sof-ug-mint); }
.question p { font-family: var(--font-cta); font-size: 26px; line-height: 33px; letter-spacing: -0.02em; }
.prose-after { font-size: 16px; line-height: 26px; color: var(--fg-secondary); }
.chips--light { margin-top: calc(var(--space-2) * -1); }
.how { padding: var(--space-5) var(--space-4); }
.how .h3 { margin-bottom: var(--space-3); }
.steps { display: grid; gap: var(--space-3); }
.steps li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--fg-secondary); }
.steps strong { color: var(--fg-primary); font-weight: 600; }
.steps__n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sof-ug-deep); color: var(--sof-ug-cyan); font-family: var(--font-cta); font-size: 13px; line-height: 1; }

/* ---------- Confirmation ---------- */
.done-hero { padding: calc(var(--space-12) + env(safe-area-inset-top)) var(--space-5) calc(var(--space-12) + var(--space-6)); text-align: center; }
.done-hero__title { margin-top: var(--space-6); font-family: var(--font-primary); font-weight: 400; font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.check-ring { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,244,220,.25), rgba(0,244,220,0) 70%); }
.check-ring svg { width: 88px; height: 88px; overflow: visible; }
.check-ring__c { fill: rgba(0,244,220,.12); stroke: var(--sof-ug-cyan); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; transform: rotate(-90deg); transform-origin: center; animation: draw .7s .1s var(--ease-smooth) forwards; }
.check-ring__p { fill: none; stroke: var(--sof-ug-cyan); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s .65s var(--ease-smooth) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; left: 50%; top: 40%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.confetti i { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; opacity: 0; }
.sheet--done .sheet__body { padding-top: var(--space-8); }
.done-lead { font-family: var(--font-cta); font-size: 22px; line-height: 30px; letter-spacing: -0.01em; margin-bottom: var(--space-5); }
.done-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.done-item { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); font-size: 16px; line-height: 24px; }
.done-item p { margin: 0; }
.done-item strong { font-weight: 700; }
.done-logo { width: 96px; height: auto; margin: var(--space-10) auto 0; opacity: .9; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--sof-ug-deep); color: #fff; font-size: 14px; line-height: 20px; box-shadow: none; animation: toast-in .3s var(--ease-smooth); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-smooth), transform .5s var(--ease-smooth); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 576px) {
  .hero { padding-top: var(--space-10); }
  .hero__title { font-size: 56px; line-height: 58px; }
  .sheet__body, .form__body { padding-left: var(--space-6); padding-right: var(--space-6); }
  .cta-bar { padding-left: var(--space-6); padding-right: var(--space-6); border-radius: 0 0 32px 32px; }
}
@media (max-width: 359px) {
  .hero__title { font-size: 40px; line-height: 44px; }
    .tl { grid-template-columns: 24px 56px 1fr; column-gap: var(--space-2); }
  .question p { font-size: 22px; line-height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  input:focus, textarea:focus { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .check-ring__c, .check-ring__p { stroke-dashoffset: 0; }
  .bento__hero::before { animation: none; }
  .hero__glow::before, .hero__glow::after, .hero__glow > i { animation: none; }
}

/* School combobox */
.input-wrap--combo { z-index: 25; }
.combo { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(8,28,27,.18); }
.combo__item { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 52px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.combo__item[aria-selected="true"], .combo__item:hover { background: var(--sof-ug-ice); }
.combo__name { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--fg-primary); }
.combo__meta { font-size: 13px; line-height: 18px; color: var(--fg-muted); }
.combo__add { flex-direction: row; align-items: center; gap: 10px; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; }
.combo__plus { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sof-ug-deep); color: var(--sof-ug-cyan); }
.combo__plus svg { width: 14px; height: 14px; }
.combo__status { padding: 12px; font-size: 14px; line-height: 20px; color: var(--fg-muted); }

.req { margin-left: 3px; color: var(--error); font-weight: 700; }

/* Bento: What you get */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bento__hero {
  position: relative; overflow: hidden; grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px;
  padding: 22px 22px 3px; border-radius: 28px; color: #fff;
  background: linear-gradient(155deg, var(--sof-ug-deep), var(--sof-ug-forest));
  isolation: isolate;
  /* iOS/Android WebKit ignore overflow+border-radius for blended, animated children; clip-path clips them properly */
  clip-path: inset(0 round 28px); -webkit-clip-path: inset(0 round 28px); transform: translateZ(0);
}
/* Drifting glows (animated) + minimal dot grid, both behind the content */
.bento__hero::before {
  content: ''; position: absolute; inset: -40%; z-index: -2; pointer-events: none;
  background: radial-gradient(circle at 78% 22%, rgba(0,244,220,.45), rgba(0,244,220,0) 40%), radial-gradient(circle at 22% 78%, rgba(0,157,148,.5), rgba(0,157,148,0) 40%);
  animation: bento-drift 14s ease-in-out infinite alternate; will-change: transform;
}
.bento__hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(204,255,249,.55) 1px, transparent 1.3px); background-size: 16px 16px; background-position: 8px 8px;
  mix-blend-mode: overlay; /* dots take the hue of the glow beneath instead of sitting on top as flat white */
  -webkit-mask-image: radial-gradient(120% 120% at 82% 18%, #000 0%, rgba(0,0,0,.55) 42%, transparent 78%); mask-image: radial-gradient(120% 120% at 82% 18%, #000 0%, rgba(0,0,0,.55) 42%, transparent 78%);
}
.bento__hero > * { position: relative; }
.bento__hero > .bento__spark { position: absolute; }
@keyframes bento-drift {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, 6%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(8%, -5%, 0) rotate(-6deg) scale(1.02); }
}
.bento__spark { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; color: var(--sof-ug-cyan); }
.bento__label { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-family: var(--font-cta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sof-yellow); background: rgba(255,185,23,.14); box-shadow: inset 0 0 0 1px rgba(255,185,23,.4); }
.bento__num { font-family: var(--font-cta); font-weight: 400; font-size: 76px; line-height: 72px; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 25%, #8FF3E7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento__unit { font-family: var(--font-secondary); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; margin-left: 2px; }
.bento__tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 22px 19px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--stroke-teal); }
.bento__ico { position: absolute; top: 18px; right: 20px; width: 28px; height: 28px; color: var(--sof-ug-teal); }
.bento__cap { font-size: 12px; line-height: 30px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 700; }
.bento__n { font-family: var(--font-cta); font-weight: 400; font-size: 48px; line-height: 48px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
@media (max-width: 359px) { .bento__num { font-size: 60px; line-height: 58px; } }

.chip--tone svg { color: var(--sof-ug-cyan); }

/* ---------- Device frames (desktop preview only; phones get the plain app) ---------- */
.device__status, .device__cutout, .device__home, .frame-picker { display: none; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body { display: flex; flex-direction: column; align-items: center; min-height: 100dvh; padding: 24px 0 96px; }
  .device-shell { --frame-h: min(844px, calc(100dvh - 150px)); display: block; }
  .frame-picker { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(8,28,27,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(204,255,249,.18); }
  .frame-picker button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--sof-ug-ice); font-weight: 600; font-size: 14px; transition: background-color .2s var(--ease-color), color .2s; }
  .frame-picker button:hover { background: rgba(255,255,255,.1); }
  .frame-picker button[aria-checked="true"] { background: var(--sof-ug-btn-teal); color: var(--sof-ug-deep); }

  .device-shell:not([data-frame="none"]) .device { position: relative; background: #0A0F0F; box-shadow: 0 0 0 2px #3A4543, 0 0 0 5px #0A0F0F, 0 0 0 6px #2A3331; }
  .device-shell:not([data-frame="none"]) .device__screen { position: relative; width: 390px; height: var(--frame-h); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; background: #fff; transform: translateZ(0); }
  .device-shell:not([data-frame="none"]) .device__screen::-webkit-scrollbar { display: none; }
  .device-shell:not([data-frame="none"]) .app { max-width: none; width: 100%; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; overflow-x: clip; }
  .device-shell:not([data-frame="none"]) .screen { min-height: var(--frame-h); }
  .device-shell:not([data-frame="none"]) .cta-bar { border-radius: 0; padding-left: var(--space-4); padding-right: var(--space-4); padding-bottom: 34px; }
  .device-shell:not([data-frame="none"]) .hero { padding-top: 62px; }
  .device-shell:not([data-frame="none"]) .hero__title { font-size: 44px; line-height: 46px; }
  .device-shell:not([data-frame="none"]) .bar { padding-top: 58px; }
  .device-shell:not([data-frame="none"]) .done-hero { padding-top: 84px; }
  .device-shell:not([data-frame="none"]) .sheet__body, .device-shell:not([data-frame="none"]) .form__body { padding-left: var(--space-4); padding-right: var(--space-4); }

  .device-shell:not([data-frame="none"]) .device__status { position: absolute; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; color: #fff; font-weight: 600; font-size: 15px; pointer-events: none; background: linear-gradient(rgba(6,31,30,.78), rgba(6,31,30,0)); }
  .device-shell:not([data-frame="none"]) .device__icons { display: flex; align-items: center; gap: 6px; }
  .device-shell:not([data-frame="none"]) .device__status svg { width: auto; height: 12px; }
  .device-shell:not([data-frame="none"]) .device__cutout { display: block; position: absolute; z-index: 41; background: #000; left: 50%; transform: translateX(-50%); }
  .device-shell:not([data-frame="none"]) .device__home { display: block; position: absolute; z-index: 41; left: 50%; transform: translateX(-50%); background: var(--sof-ug-deep); opacity: .85; pointer-events: none; }

  /* iPhone: Dynamic Island */
  .device-shell[data-frame="iphone"] .device { padding: 12px; border-radius: 64px; }
  .device-shell[data-frame="iphone"] .device__screen { border-radius: 52px; }
  .device-shell[data-frame="iphone"] .device__status { top: 12px; left: 12px; right: 12px; height: 54px; padding: 18px 34px 0 38px; border-radius: 52px 52px 0 0; }
  .device-shell[data-frame="iphone"] .device__cutout { top: 23px; width: 112px; height: 33px; border-radius: 20px; }
  .device-shell[data-frame="iphone"] .device__home { bottom: 22px; width: 136px; height: 5px; border-radius: 5px; }

  /* Android: punch-hole camera, thinner bezel, gesture pill */
  .device-shell[data-frame="android"] .device { padding: 9px; border-radius: 46px; }
  .device-shell[data-frame="android"] .device__screen { border-radius: 38px; }
  .device-shell[data-frame="android"] .device__status { top: 9px; left: 9px; right: 9px; height: 46px; padding: 14px 28px 0 30px; border-radius: 38px 38px 0 0; font-size: 14px; }
  .device-shell[data-frame="android"] .device__cutout { top: 21px; width: 13px; height: 13px; border-radius: 50%; }
  .device-shell[data-frame="android"] .device__home { bottom: 18px; width: 108px; height: 4px; border-radius: 4px; }
  .device-shell[data-frame="android"] .hero { padding-top: 56px; }
  .device-shell[data-frame="android"] .bar { padding-top: 54px; }

  /* No frame: the plain centred card */
  .device-shell[data-frame="none"] { width: 100%; }
  .device-shell[data-frame="none"] .device__screen { width: auto; }
}
