:root {
  --navy: #16324f;
  --navy-deep: #10263d;
  --navy-ink: #12263a;
  --gold: #c4a35a;
  --gold-dark: #9c7d35;
  --gold-soft: #f6efdf;
  --paper: #ffffff;
  --paper-2: #f4f5f7;
  --ink: #16324f;
  --muted: #5c6b78;
  --line: #e4e7eb;
  --ok: #2f6f4e;
  --danger: #8f2d2d;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 0 0 1px rgba(18, 38, 58, 0.06), 0 1px 2px rgba(18, 38, 58, 0.04),
    0 10px 28px rgba(18, 38, 58, 0.06);
  --motion-fast: 250ms;
  --motion-quick: 150ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: #e8eef3;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

#day1-root {
  min-height: 100dvh;
}

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) min(430px, 100%) minmax(0, 1fr);
    gap: 0;
    background:
      radial-gradient(1200px 500px at 50% -10%, rgba(196, 163, 90, 0.16), transparent 50%),
      #e8eef3;
  }
  .rail {
    display: flex;
    min-width: 0;
    overflow: hidden;
  }
  .phone {
    box-shadow: var(--shadow);
    min-height: 100dvh;
  }
}

.rail {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.rail-card {
  width: min(280px, 100%);
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.rail-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.rail-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.qr-box {
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.qr-box svg,
.qr-box canvas {
  width: 168px;
  height: 168px;
}

.rail-url {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}

.phone {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.header {
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) 12px
    calc(20px + env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress {
  height: 5px;
  background: #e6ebf0;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9c7d35, #c4a35a 70%, #d7c08a);
  border-radius: 0 999px 999px 0;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.meta {
  text-align: right;
  flex: none;
  color: var(--gold-dark);
}

.meta .kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta .stepn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.main {
  flex: 1;
  padding: 22px 20px 12px;
}

.main.enter-forward {
  animation: screen-forward 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main.enter-back {
  animation: screen-back 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes screen-forward {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes screen-back {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h1 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.lede,
.body,
.detail {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.banner {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.ready {
  list-style: none;
  margin: 8px 0 20px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}

.ready li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-weight: 600;
  color: var(--navy);
}

.gold-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
}

.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 8px;
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.mark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: transparent;
  flex: none;
}

.mark.desktop {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px;
  text-align: center;
}

.mark.desktop img {
  width: 40px;
  height: 40px;
}

.desk-label {
  display: block;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
}

.look {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--gold-soft);
  border-radius: var(--radius-md);
  margin: 0 0 16px;
}

.look img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  flex: none;
}

.look.icons {
  flex-direction: column;
  align-items: flex-start;
}

.icon-pair {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.icon-pair figure {
  margin: 0;
  text-align: center;
}

.icon-pair img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #1f1f1f;
}

.icon-pair figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.look-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.look strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
  color: var(--navy);
}

.ol {
  list-style: none;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  counter-reset: step;
}

.ol li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--navy);
  line-height: 1.45;
}

.ol li::before {
  counter-increment: step;
  content: counter(step);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

.ol li > span,
.ol .parts,
.ol .step-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ol .step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ol .parts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ol .part span {
  font-weight: 700;
}

.section {
  margin-bottom: 14px;
}

.section h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #f7f4ee;
  text-decoration: none;
}

.store-link span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6d7b0;
}

.store-link strong {
  font-size: 1rem;
  font-weight: 700;
}

.ext {
  display: inline-block;
  margin: 4px 0 10px;
  color: var(--navy);
  font-weight: 700;
  word-break: break-word;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 4px;
  border-radius: 12px;
  border: 1px solid rgba(22, 50, 79, 0.12);
  background: #fff;
}

.shot-wrap {
  margin: 12px 0 0;
}

.shot-wrap figcaption {
  margin-top: 6px;
  color: #5c6b7a;
  font-size: 0.82rem;
}

.tips {
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 0 16px;
}

.tips h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.tips li {
  list-style: none;
  padding: 3px 0 3px 18px;
  position: relative;
  color: var(--navy);
  font-size: 0.92rem;
}

.tips li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 2px;
  top: 9px;
}

.choices {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}

.choice {
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-height: 64px;
  box-shadow: 0 1px 0 rgba(18, 38, 58, 0.03);
  color: var(--navy);
  font: inherit;
  position: relative;
}

.choice:hover {
  border-color: color-mix(in oklab, var(--gold) 55%, var(--line));
}

.choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: #fffdf8;
}

.choice strong {
  display: block;
  font-size: 1.02rem;
}

.choice span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.choice .tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 0.75rem;
}

.choice[aria-pressed="true"] .tick {
  display: grid;
}

.field {
  margin: 0 0 18px;
}

.field p {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}

.pill[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 16px;
  font-weight: 600;
  color: var(--navy);
}

.confirm input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--navy);
  flex: none;
}

.footer {
  padding: 8px 20px calc(18px + env(safe-area-inset-bottom));
}

.back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 2px 10px;
  background: none;
  border: 0;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.back span {
  min-width: 0;
}

.back:hover {
  color: var(--gold-dark);
}

.btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #f7f4ee;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--motion-quick) var(--ease), background var(--motion-quick) var(--ease),
    opacity var(--motion-quick) var(--ease);
}

.btn:hover:not(:disabled) {
  background: var(--navy-deep);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
}

.btn-sentence {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 650;
}

.btn[data-act="back-help"] + .btn[data-act="skip"] {
  margin-top: 0.25in;
}

.stuck {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: none;
  border: 0;
  color: var(--gold-dark);
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-list {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
}

.help-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  line-height: 1.45;
}

.help-phone {
  display: block;
  text-align: center;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  min-height: 44px;
  padding: 8px;
}

.help-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.note-box textarea {
  width: 100%;
  min-height: 120px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  padding: 12px;
  font: inherit;
  color: var(--navy);
  resize: vertical;
}

.done-hero {
  text-align: center;
  padding: 12px 0 8px;
}

.done-hero .seal {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}

.summary {
  text-align: left;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 16px 0;
}

.summary li {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 5px 0;
  font-weight: 600;
}

.it-mini {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
}

.contact-card {
  text-align: left;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 16px 16px 10px;
  margin: 4px 0 8px;
}

.contact-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact-card > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.done-close {
  margin: 16px 4px 4px;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  min-height: 44px;
}

.contact-row span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-row strong {
  font-size: 0.95rem;
  font-weight: 650;
  word-break: break-all;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.it-body {
  background: #e8eef3;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.it-sheet {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.it-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 280px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.it-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 8px;
}

.it-sheet h1 {
  margin-bottom: 8px;
}

.it-lead,
.it-time,
.it-phone {
  color: var(--muted);
}

.it-qr {
  margin: 18px auto;
  width: 240px;
  height: 240px;
}

.it-qr svg {
  width: 240px;
  height: 240px;
}

.it-url {
  font-weight: 600;
  word-break: break-all;
}

.it-back {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .shell {
    display: block;
    background: #fff;
  }
  .phone,
  .rail {
    display: none;
  }
}
