/* ONE FOUNDING — Agent Transmittal Application
   Light theme by default; html.dark (shared site theme state, localStorage "of-theme") switches to dark. */

:root {
  --gold: #C8A251;
  --gold-2: #E2C17C;
  --gold-ink: #8C6A22;
  --gold-soft: rgba(200, 162, 81, .14);
  --gold-ring: rgba(200, 162, 81, .32);
  --bg: #F5F5F7;
  --bg-2: #ECECEF;
  --surface: #FFFFFF;
  --surface-2: #F8F8FA;
  --text: #111216;
  --text-2: #3A3B40;
  --muted: #6E6E73;
  --faint: #86868B;
  --line: rgba(17, 18, 22, .10);
  --line-2: rgba(17, 18, 22, .16);
  --danger: #B4471C;
  --danger-soft: rgba(180, 71, 28, .08);
  --shadow: 0 1px 2px rgba(17, 18, 22, .04), 0 24px 60px -28px rgba(17, 18, 22, .22);
  --shadow-lg: 0 40px 100px -40px rgba(17, 18, 22, .35);
  --plate: #FFFFFF;
  --radius: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 72px;
  color-scheme: light;
}
html.dark {
  --gold-ink: #E2C17C;
  --gold-soft: rgba(200, 162, 81, .12);
  --bg: #050507;
  --bg-2: #0B0B0E;
  --surface: #111216;
  --surface-2: #16171C;
  --text: #F5F5F7;
  --text-2: #D2D2D7;
  --muted: #A1A1A6;
  --faint: #86868B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --danger: #F0A58A;
  --danger-soft: rgba(240, 165, 138, .08);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 30px 80px -30px rgba(0, 0, 0, .8);
  --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s ease, color .5s ease;
}
html.at-pending body { opacity: 0; animation: at-reveal 0s 2.5s forwards; }
html.at-ready body { opacity: 1; transition: opacity .45s ease, background-color .5s ease, color .5s ease; }
@keyframes at-reveal { to { opacity: 1; } }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.at-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; font-size: .85rem; }
.at-skip:focus { top: 1rem; }
.at-eyebrow { margin: 0 0 1rem; font: 700 .7rem/1.2 Montserrat, Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }

/* ------------------------------------------------------------------ Top bar */
.at-bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  padding: 0 clamp(1rem, 4vw, 2.75rem);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.at-brand { display: flex; align-items: center; flex: none; }
.at-logo { display: block; height: 40px; width: auto; -webkit-user-drag: none; user-select: none; }
html.dark .at-logo { filter: drop-shadow(0 0 .35px rgba(245, 245, 247, .85)) drop-shadow(0 0 14px rgba(245, 245, 247, .07)); }
.at-bar-actions { display: flex; align-items: center; gap: .5rem; }
.at-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(17, 18, 22, .05); border: 1px solid var(--line); }
html.dark .at-toggle { background: rgba(255, 255, 255, .06); }
.at-toggle button { border: 0; background: transparent; min-width: 38px; height: 32px; padding: 0 .6rem; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); transition: background .25s ease, color .25s ease; }
.at-toggle button:hover { color: var(--text); }
.at-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.at-theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17, 18, 22, .04); display: grid; place-items: center; color: var(--text); transition: transform .3s var(--ease), background .3s ease; }
html.dark .at-theme { background: rgba(255, 255, 255, .07); }
.at-theme:hover { transform: scale(1.06); }
.at-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.at-moon { fill: currentColor !important; stroke: none !important; }
.at-sun { display: none !important; }
html.dark .at-moon { display: none !important; }
html.dark .at-sun { display: block !important; }

main { flex: 1; position: relative; }

/* ------------------------------------------------------------------ Buttons */
.at-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.at-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.at-btn:hover svg:last-child { transform: translateX(3px); }
.at-btn:active { transform: scale(.98); }
.at-btn[disabled] { opacity: .55; cursor: progress; }
.at-btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 14px 30px -16px rgba(17, 18, 22, .55); }
.at-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -18px rgba(17, 18, 22, .6); }
html.dark .at-btn-primary { box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .9); }
.at-btn-gold { background: linear-gradient(135deg, #D7B466 0%, var(--gold) 45%, #B48D3F 100%); color: #0B0B0E; box-shadow: 0 18px 40px -18px rgba(200, 162, 81, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.at-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -20px rgba(200, 162, 81, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.at-btn-lg { min-height: 60px; padding: 0 2rem; font-size: 1.02rem; }
.at-btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.at-btn-ghost:hover { border-color: var(--gold); color: var(--gold-ink); }
.at-btn-ghost:hover svg:first-child { transform: translateX(-3px); }
.at-btn-ghost:hover svg:last-child { transform: none; }

/* ------------------------------------------------------------------ Opening screen */
.at-hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--bar-h));
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.75rem) 3rem;
  transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s ease;
}
.at-hero.is-leaving { opacity: 0; transform: translateY(-18px) scale(.985); filter: blur(4px); }
.at-hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 162, 81, .16), rgba(200, 162, 81, 0)); pointer-events: none; }
html.dark .at-hero-glow { background: radial-gradient(closest-side, rgba(200, 162, 81, .14), rgba(200, 162, 81, 0)); }
.at-hero-copy { position: relative; order: 2; max-width: 36rem; animation: at-rise 1.1s var(--ease) both .15s; }
.at-hero-title { margin: 0; font-weight: 600; font-size: clamp(2.4rem, 7.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; }
.at-hero-body { margin: 1.25rem 0 2.25rem; font-size: clamp(1.08rem, 2.2vw, 1.35rem); font-weight: 300; line-height: 1.5; color: var(--muted); max-width: 30rem; }
.at-hero-points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .7rem; }
.at-hero-points li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--text-2); }
.at-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); flex: none; }
.at-hero-note { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); max-width: 30rem; }
.at-hero-media { position: relative; order: 1; margin: 0; height: 44svh; min-height: 260px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); isolation: isolate; animation: at-fade 1.2s ease both; }
.at-hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(226, 193, 124, .28); background: linear-gradient(180deg, rgba(5, 5, 7, 0) 45%, rgba(5, 5, 7, .55) 100%); pointer-events: none; }
.at-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; animation: at-kenburns 2.6s var(--ease) both; }
.at-hero-badge { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem .7rem .75rem; border-radius: 18px; color: #F5F5F7; font-size: .82rem; font-weight: 500; letter-spacing: -.005em; background: rgba(17, 18, 22, .42); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255, 255, 255, .12); width: max-content; max-width: calc(100% - 2rem); }
.at-hero-badge img { width: 26px; height: auto; flex: none; animation: none; }
@keyframes at-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes at-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes at-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (min-width: 960px) {
  .at-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(2.5rem, 6vw, 6rem); padding: 2rem clamp(2rem, 5vw, 5rem) 3rem; }
  .at-hero-copy { order: 1; }
  .at-hero-media { order: 2; height: min(78svh, 760px); }
  .at-hero-badge { left: 1.5rem; bottom: 1.5rem; }
}

/* ------------------------------------------------------------------ Application layout */
.at-app {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 1.5rem clamp(.75rem, 3vw, 2rem) 4rem;
  animation: at-rise .8s var(--ease) both;
}
.at-rail { display: none; }
@media (min-width: 1040px) {
  .at-app { grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding-top: 3rem; }
  .at-rail { display: block; position: sticky; top: calc(var(--bar-h) + 2.5rem); align-self: start; }
  .at-progress, .at-progress-label { display: none; }
}
.at-rail-list { list-style: none; margin: .5rem 0 0; padding: 0; position: relative; }
.at-rail-list::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: var(--line-2); }
.at-rail-item { position: relative; }
.at-rail-item button { width: 100%; display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border: 0; background: none; text-align: left; color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .25s ease; }
.at-rail-item button[disabled] { cursor: default; }
.at-rail-item button:not([disabled]):hover { color: var(--text); }
.at-rail-num { position: relative; z-index: 1; width: 31px; height: 31px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line-2); color: var(--muted); transition: all .35s var(--ease); }
.at-rail-num svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.at-rail-item.is-done .at-rail-num { background: var(--gold-soft); border-color: rgba(200, 162, 81, .55); color: var(--gold-ink); }
.at-rail-item.is-current button { color: var(--text); font-weight: 600; }
.at-rail-item.is-current .at-rail-num { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: 0 0 0 5px var(--gold-soft); }
.at-rail-note { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.6; color: var(--faint); }

.at-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 0 .25rem; }
.at-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .7s var(--ease); }
.at-progress-label { margin: .8rem .25rem 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.at-progress-label b { color: var(--text); font-weight: 600; }

.at-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4.5vw, 3rem); }
.at-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.at-step { animation: at-step-in .55s var(--ease) both; }
.at-step.is-back { animation-name: at-step-in-back; }
@keyframes at-step-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes at-step-in-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.at-step-head { margin-bottom: 2.25rem; }
.at-step-kicker { margin: 0 0 .6rem; font: 700 .68rem/1 Montserrat, Inter, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.at-step-title { margin: 0; font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; outline: none; }
.at-step-desc { margin: .75rem 0 0; font-size: 1rem; font-weight: 300; color: var(--muted); max-width: 40rem; }
.at-sub { margin: 2.75rem 0 1.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.at-sub:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.at-sub h3 { margin: 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; }
.at-sub p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); font-weight: 300; }

/* ------------------------------------------------------------------ Fields */
.at-fields { display: grid; gap: 1.6rem; }
.at-row { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .at-row { grid-template-columns: 1fr 1fr; } }
.at-field { min-width: 0; }
.at-label { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; font-size: .88rem; font-weight: 600; letter-spacing: -.005em; color: var(--text); }
.at-opt { flex: none; font-size: .7rem; font-weight: 500; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.at-help { margin: .5rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.at-help-top { margin: 0 0 .8rem; }
.at-input-wrap { position: relative; }
.at-input {
  width: 100%; height: 54px; padding: 0 1rem; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-size: 1rem; letter-spacing: -.005em; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .25s ease, background .25s ease;
}
html.dark .at-input { background: rgba(255, 255, 255, .035); }
.at-input::placeholder { color: var(--faint); opacity: .8; }
.at-input:hover { border-color: rgba(200, 162, 81, .5); }
.at-input:focus { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 4px var(--gold-ring); }
html.dark .at-input:focus { background: rgba(255, 255, 255, .05); }
.at-input[type="date"] { min-height: 54px; line-height: 54px; }
.at-input[type="date"]::-webkit-date-and-time-value { text-align: left; }
html.dark .at-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85); }
.at-input.has-action { padding-right: 4.75rem; }
.at-input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 .85rem; border-radius: 10px; border: 0; background: transparent; color: var(--gold-ink); font-size: .78rem; font-weight: 600; }
.at-input-action:hover { background: var(--gold-soft); }
.at-field.is-invalid .at-input, .at-field.is-invalid .at-chooser { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.at-error { display: flex; gap: .4rem; align-items: center; margin: .5rem 0 0; font-size: .8rem; font-weight: 500; color: var(--danger); }
.at-error::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.at-error:empty { display: none; }

/* State picker */
.at-chooser { border: 1px solid var(--line-2); border-radius: 18px; padding: .9rem; background: var(--surface-2); transition: border-color .2s ease, box-shadow .25s ease; }
html.dark .at-chooser { background: rgba(255, 255, 255, .025); }
.at-chooser .at-input { height: 46px; border-radius: 12px; background: var(--surface); margin-bottom: .8rem; }
.at-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: .4rem; max-height: 236px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.at-state { height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--text-2); transition: all .2s ease; }
.at-state:hover { border-color: rgba(200, 162, 81, .6); color: var(--text); }
.at-state[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: 0 0 0 3px var(--gold-soft); }
.at-chosen { margin: .9rem .1rem .1rem; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.at-chosen b { color: var(--text); font-weight: 600; }
.at-switch { display: flex; align-items: center; gap: .85rem; margin-top: 1.6rem; font-size: .92rem; font-weight: 500; cursor: pointer; user-select: none; }
.at-switch input { position: absolute; opacity: 0; pointer-events: none; }
.at-switch-ui { width: 46px; height: 28px; flex: none; border-radius: 999px; background: var(--line-2); position: relative; transition: background .3s ease; }
.at-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.at-switch input:checked + .at-switch-ui { background: var(--gold); }
.at-switch input:checked + .at-switch-ui::after { transform: translateX(18px); }
.at-switch input:focus-visible + .at-switch-ui { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Choice cards (business type) */
.at-choices { display: grid; gap: .85rem; }
@media (min-width: 640px) { .at-choices { grid-template-columns: 1fr 1fr; } }
.at-choice { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.25rem; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color .25s ease, box-shadow .3s var(--ease), transform .3s var(--ease), background .25s ease; }
html.dark .at-choice { background: rgba(255, 255, 255, .025); }
.at-choice:hover { border-color: rgba(200, 162, 81, .55); transform: translateY(-1px); }
.at-choice input { position: absolute; opacity: 0; pointer-events: none; }
.at-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; transition: all .25s ease; }
.at-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .3s var(--ease); }
.at-choice-t { display: block; font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.at-choice-d { display: block; margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.at-choice:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -26px rgba(200, 162, 81, .7); background: var(--surface); }
.at-choice:has(input:checked) .at-radio { border-color: var(--gold); }
.at-choice:has(input:checked) .at-radio::after { transform: scale(1); }
.at-choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.at-reveal { display: grid; gap: 1.6rem; animation: at-rise .5s var(--ease) both; }

/* Product options */
.at-options { display: grid; gap: .65rem; }
@media (min-width: 640px) { .at-options { grid-template-columns: 1fr 1fr; } }
.at-option { position: relative; display: flex; align-items: center; gap: .9rem; min-height: 58px; padding: .8rem 1.05rem; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: .93rem; font-weight: 500; letter-spacing: -.005em; transition: border-color .25s ease, box-shadow .3s var(--ease), background .25s ease, transform .3s var(--ease); }
html.dark .at-option { background: rgba(255, 255, 255, .025); }
.at-option:hover { border-color: rgba(200, 162, 81, .55); }
.at-option input { position: absolute; opacity: 0; pointer-events: none; }
.at-check { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s ease; }
.at-check svg { width: 13px; height: 13px; fill: none; stroke: #0B0B0E; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: all .3s var(--ease); }
.at-option:has(input:checked) { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 1px var(--gold); }
.at-option:has(input:checked) .at-check { background: var(--gold); border-color: var(--gold); }
.at-option:has(input:checked) .at-check svg { opacity: 1; transform: none; }
.at-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.at-count { margin: 1rem 0 0; font-size: .8rem; font-weight: 600; color: var(--gold-ink); min-height: 1.2em; }

/* Carrier tiles */
.at-carrier-note { display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1.5rem; padding: .95rem 1.1rem; border-radius: 16px; background: var(--gold-soft); border: 1px solid rgba(200, 162, 81, .28); font-size: .84rem; line-height: 1.55; color: var(--text-2); }
.at-carrier-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; }
.at-carriers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 560px) { .at-carriers { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; } }
@media (min-width: 1200px) { .at-carriers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Each tile carries its carrier's brand accent in --c (set from official logo/site colors) */
.at-carrier {
  --c: #86868B;
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 188px; padding: .7rem .7rem .95rem; overflow: hidden;
  border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line-2)); text-align: left; cursor: pointer;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 9%, var(--surface)) 0%, var(--surface) 58%);
  box-shadow: 0 1px 2px rgba(17, 18, 22, .04), 0 14px 30px -24px color-mix(in srgb, var(--c) 60%, transparent);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: border-color .3s ease, box-shadow .45s var(--ease), transform .45s var(--ease), background .3s ease;
}
html.dark .at-carrier { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 16%, var(--surface)) 0%, var(--surface) 62%); border-color: color-mix(in srgb, var(--c) 30%, var(--line-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 36px -26px rgba(0, 0, 0, .9); }
.at-carrier::before { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); opacity: .85; transition: left .45s var(--ease), right .45s var(--ease), opacity .3s ease; }
.at-carrier input { position: absolute; opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .at-carrier:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 2px 4px rgba(17, 18, 22, .04), 0 26px 44px -26px color-mix(in srgb, var(--c) 75%, transparent); }
  .at-carrier:hover::before { left: 0; right: 0; opacity: 1; }
  .at-carrier:hover .at-plate img { transform: scale(1.04); }
}
.at-carrier:active { transform: scale(.985); }
.at-plate { position: relative; height: 96px; border-radius: 15px; background: #FFFFFF; display: grid; place-items: center; padding: 14px 18px; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, rgba(17, 18, 22, .06)), 0 6px 16px -12px rgba(17, 18, 22, .35); }
.at-plate.is-dark { background: var(--plate-bg, #111216); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 16px -12px rgba(0, 0, 0, .5); }
.at-plate img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; display: block; transition: transform .5s var(--ease); }
.at-plate img.is-tall { max-height: 62px; }
.at-plate-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: #111216; text-align: center; padding: 0 .35rem; }
.at-carrier-body { display: flex; flex-direction: column; flex: 1; gap: .4rem; margin: .95rem .4rem 0; }
.at-carrier-name { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; color: var(--text); }
.at-carrier-state { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--muted); transition: color .3s ease; }
.at-carrier-state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); transition: background .3s ease, box-shadow .3s ease; }
.at-carrier-state .is-on { display: none; }
.at-carrier-tick { position: absolute; top: .55rem; right: .55rem; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border: 1.5px solid rgba(17, 18, 22, .16); transition: all .3s var(--ease); }
.at-carrier-tick svg { width: 13px; height: 13px; fill: none; stroke: #0B0B0E; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: all .3s var(--ease); }
.at-carrier:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), 0 26px 50px -30px rgba(200, 162, 81, .9); }
.at-carrier:has(input:checked)::before { left: 0; right: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); opacity: 1; }
.at-carrier:has(input:checked) .at-carrier-tick { background: var(--gold); border-color: var(--gold); box-shadow: 0 6px 16px -6px rgba(200, 162, 81, .9); }
.at-carrier:has(input:checked) .at-carrier-tick svg { opacity: 1; transform: none; }
.at-carrier:has(input:checked) .at-carrier-state { color: var(--gold-ink); }
.at-carrier:has(input:checked) .at-carrier-state::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.at-carrier:has(input:checked) .at-carrier-state .is-off { display: none; }
.at-carrier:has(input:checked) .at-carrier-state .is-on { display: inline; }
.at-carrier:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.at-carrier-other { --c: #C8A251; }
.at-carrier-other .at-plate { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); }
.at-carrier-other .at-plate svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; }
.at-other-field { margin-top: 1.25rem; animation: at-rise .45s var(--ease) both; }

/* ------------------------------------------------------------------ Review */
.at-review { display: grid; gap: 1rem; }
.at-review-sec { border: 1px solid var(--line); border-radius: 20px; padding: 1.15rem 1.25rem .5rem; background: var(--surface-2); }
html.dark .at-review-sec { background: rgba(255, 255, 255, .02); }
/* Electronic signature acknowledgment (uses the existing review card, option and field styles) */
.at-sign { margin-top: 1rem; padding-bottom: 1.1rem; }
.at-sign .at-help-top { margin: 0 0 .9rem; }
.at-sign .at-options { grid-template-columns: 1fr; margin-bottom: .35rem; }
.at-review-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.at-review-head h3 { margin: 0; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.at-edit { border: 0; background: none; color: var(--gold-ink); font-size: .82rem; font-weight: 600; padding: .45rem .75rem; border-radius: 10px; }
.at-edit:hover { background: var(--gold-soft); }
.at-dl { margin: 0; }
.at-dl div { display: grid; gap: .15rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.at-dl div:first-child { border-top: 0; }
@media (min-width: 640px) { .at-dl div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.25rem; } }
.at-dl dt { font-size: .8rem; color: var(--muted); }
.at-dl dd { margin: 0; font-size: .92rem; font-weight: 500; word-break: break-word; }
.at-dl dd.is-empty { color: var(--faint); font-weight: 400; font-style: italic; }
.at-dl dd .at-input-action { position: static; transform: none; height: auto; padding: .15rem .5rem; margin-left: .35rem; }
.at-review-fine { margin: 1.5rem 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted); display: flex; gap: .6rem; align-items: flex-start; }
.at-review-fine svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ Navigation, alerts */
.at-alert { margin-top: 2rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: var(--text); font-size: .88rem; line-height: 1.55; }
.at-alert strong { display: block; color: var(--danger); margin-bottom: .2rem; }
.at-alert a { color: var(--gold-ink); font-weight: 600; }
.at-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.at-nav .at-btn-primary { margin-left: auto; min-width: 11rem; }
.at-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: at-spin .8s linear infinite; }
@keyframes at-spin { to { transform: rotate(360deg); } }
@media (max-width: 479px) {
  .at-nav { flex-direction: column-reverse; align-items: stretch; }
  .at-nav .at-btn { width: 100%; }
  .at-nav .at-btn-primary { margin-left: 0; }
  .at-logo { height: 34px; }
  .at-toggle button { min-width: 34px; padding: 0 .45rem; }
}

/* ------------------------------------------------------------------ Confirmation */
.at-done { min-height: calc(100svh - var(--bar-h) - 80px); display: grid; place-items: center; padding: 2rem 1rem 4rem; outline: none; }
/* Success card: gold mark kept, wrapped in a restrained green "confirmed" glow */
.at-done-card { --ok: 52, 168, 103; position: relative; isolation: isolate; overflow: hidden; width: 100%; max-width: 40rem; text-align: center; padding: clamp(2.25rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow-lg); animation: at-rise .9s var(--ease) both; }
html.dark .at-done-card { --ok: 74, 196, 128; }
.at-done-halo { position: absolute; z-index: -1; left: 50%; top: -9rem; width: 34rem; max-width: 160%; height: 22rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ok), .13), rgba(var(--ok), 0)); pointer-events: none; }
html.dark .at-done-halo { background: radial-gradient(closest-side, rgba(var(--ok), .16), rgba(var(--ok), 0)); }
.at-done-mark { position: relative; width: 88px; height: 88px; margin: 0 auto 2rem; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(200, 162, 81, .07), 0 0 0 1px rgba(var(--ok), .18), 0 0 34px 6px rgba(var(--ok), .22); animation: at-glow 3.6s ease-in-out 1.4s infinite; }
.at-done-mark svg { width: 54px; height: 54px; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.at-done-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: at-draw .9s var(--ease) .2s forwards; stroke-width: 1.6; opacity: .6; }
.at-done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: at-draw .6s var(--ease) .75s forwards; }
@keyframes at-draw { to { stroke-dashoffset: 0; } }
@keyframes at-glow { 0%, 100% { box-shadow: 0 0 0 10px rgba(200, 162, 81, .07), 0 0 0 1px rgba(var(--ok), .18), 0 0 34px 6px rgba(var(--ok), .22); } 50% { box-shadow: 0 0 0 10px rgba(200, 162, 81, .07), 0 0 0 1px rgba(var(--ok), .24), 0 0 44px 10px rgba(var(--ok), .28); } }
.at-done-eyebrow { display: inline-block; margin-bottom: 1.1rem; text-shadow: 0 0 22px rgba(var(--ok), .35); }
.at-done-title { margin: 0; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; }
.at-done-body { margin: 1.1rem auto 0; max-width: 30rem; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.at-done-next { margin: .6rem auto 0; max-width: 30rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.at-done-fine { margin: 1.75rem auto 0; max-width: 30rem; padding: .95rem 1.1rem; border-radius: 16px; background: var(--gold-soft); border: 1px solid rgba(200, 162, 81, .26); font-size: .84rem; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.at-done-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.25rem; }
@media (max-width: 479px) {
  .at-done { padding: 1.25rem .75rem 3rem; align-items: start; }
  .at-done-card { border-radius: 26px; }
  .at-done-actions { flex-direction: column; }
  .at-done-actions .at-btn { width: 100%; }
}

/* ------------------------------------------------------------------ Mobile refinements (contracting page only) */
@media (max-width: 639px) {
  :root { --bar-h: 64px; --radius: 24px; }
  .at-bar { gap: .6rem; }
  .at-hero { gap: 1.5rem; padding-bottom: 2.25rem; }
  .at-hero-media { height: 36svh; min-height: 220px; }
  .at-hero-copy .at-btn-lg { width: 100%; }
  .at-app { padding-top: 1rem; gap: 1.25rem; }
  .at-card { padding: 1.35rem 1.1rem 1.5rem; border-radius: 24px; }
  .at-step-head { margin-bottom: 1.75rem; }
  .at-step-title { overflow-wrap: anywhere; }
  .at-fields, .at-row { gap: 1.35rem; }
  .at-input { height: 56px; font-size: 16px; } /* 16px prevents iOS zoom on focus */
  .at-chooser .at-input { height: 48px; }
  .at-states { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); max-height: 260px; }
  .at-state { height: 46px; font-size: .82rem; }
  .at-choice, .at-option { min-height: 60px; }
  .at-carriers { gap: .6rem; }
  .at-carrier { min-height: 172px; padding: .55rem .55rem .8rem; border-radius: 18px; }
  .at-plate { height: 84px; padding: 10px 12px; border-radius: 12px; }
  .at-carrier-name { font-size: .86rem; overflow-wrap: anywhere; }
  .at-review-sec { padding: 1rem 1rem .4rem; }
  .at-nav { position: sticky; bottom: 0; z-index: 5; margin: 2rem -1.1rem -1.5rem; padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 0 0 24px 24px; }
  .at-btn { min-height: 54px; }
}
@media (max-width: 359px) {
  .at-logo { height: 28px; }
  .at-toggle button { min-width: 30px; padding: 0 .35rem; }
  .at-theme { width: 36px; height: 36px; }
  .at-carriers { grid-template-columns: 1fr; }
}
html, body { overflow-x: clip; }

.at-foot { padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); text-align: center; font-size: .75rem; color: var(--faint); border-top: 1px solid var(--line); }
.at-foot a { text-decoration: none; }
.at-foot a:hover { color: var(--gold-ink); }
.at-noscript { max-width: 36rem; margin: 3rem auto; padding: 1.5rem; text-align: center; }
.at-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .at-done-mark { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
/* Phones: keep Back and Continue on one compact row inside the sticky action bar */
@media (max-width: 479px) {
  .at-nav { flex-direction: row; align-items: center; }
  .at-nav #at-back { width: auto; flex: none; padding: 0 1.1rem; }
  .at-nav #at-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .at-nav .at-btn-primary { flex: 1; width: auto; min-width: 0; }
}
