:root {
  --ink: #181716;
  --ink-soft: #3d3834;
  --muted: #706a63;
  --tertiary: #a3988c;
  --accent: #e84b2f;
  --accent-deep: #c23a24;
  --amber: #e8905a;
  --sage: #416b55;
  --yellow: #f4c95d;
  --paper: #f7f1e7;
  --cream: #fffaf1;
  --surface: #fffdf8;
  --line: #d8cfc2;
  --destructive: #e85a65;
  --phone-bezel: #1c1917;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, color-mix(in srgb, var(--yellow) 40%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 55%, #ebe2d2 100%);
  line-height: 1.5;
}

a {
  color: var(--accent-deep);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top .brand .joy {
  color: var(--ink);
}

.top .brand .napping {
  color: var(--accent);
}

.top nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--accent);
}

.templates-embed {
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, color-mix(in srgb, var(--yellow) 40%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 55%, #ebe2d2 100%);
  border-top: 1px solid var(--line);
}

.demo-banner {
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  background: color-mix(in srgb, var(--sage) 12%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  border-radius: 0.5rem;
  color: var(--sage);
  font-size: 0.875rem;
  text-align: center;
}

.page-intro .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.page-intro h1 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
}

.page-intro .lede {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

/* Platform toggle */
.platform-toggle {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 2px;
}

.plat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.plat-btn.active {
  background: var(--ink);
  color: #fff;
}

.plat-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plat-ico {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.85;
}

.plat-ico.ios {
  border-radius: 5px;
}

.plat-ico.android {
  border-radius: 2px 2px 4px 4px;
  background: #3ddc84;
}

.plat-btn.active .plat-ico.android {
  opacity: 1;
}

.walk-stage {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  min-height: 580px;
}

.device-col {
  margin: 0;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.device-col[hidden] {
  display: none;
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.phone {
  width: 270px;
  height: 560px;
  background: var(--phone-bezel);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 28px 48px rgba(24, 23, 22, 0.28);
  position: relative;
}

.phone-ios {
  border-radius: 42px;
}

.phone-android {
  border-radius: 26px;
  padding: 8px;
}

.island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0c0b0a;
  border-radius: 14px;
  z-index: 6;
}

.camera-hole {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #0c0b0a;
  border-radius: 50%;
  z-index: 6;
  box-shadow: 0 0 0 2px #2a2623;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
}

.phone-android .phone-screen {
  border-radius: 20px;
}

.screen-pane {
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0;
  background: var(--paper);
}

.screen-pane.active {
  display: flex;
  animation: pane-in 0.28s ease;
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.phone-ios .status-bar {
  padding-top: 28px;
}

.phone-android .status-bar {
  padding-top: 18px;
}

.status-bar.light {
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sig {
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.nav-title {
  padding: 4px 16px 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.material-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding-bottom: 8px;
}

.scroll-body {
  flex: 1;
  overflow: auto;
  padding: 0 14px 14px;
  -webkit-overflow-scrolling: touch;
}

.scroll-body.center-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40%;
  gap: 0.35rem;
}

.m-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.m-p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.m-p.tight {
  margin-top: 0.2rem;
}

.m-p.muted {
  color: var(--tertiary);
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.m-btn:hover {
  filter: brightness(1.05);
}

.m-btn:active {
  transform: scale(0.98);
}

.m-btn.secondary {
  background: color-mix(in srgb, var(--accent) 12%, var(--cream));
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.m-btn.safety {
  background: linear-gradient(135deg, var(--sage), #2f5341);
  margin-top: 0.4rem;
}

.material-btn {
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.material-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
}

/* Book sheet peek */
.sheet-peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 58%;
  padding: 8px 14px 16px;
  background: var(--cream);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgba(24, 23, 22, 0.12);
  border-top: 1px solid var(--line);
  overflow: auto;
  z-index: 3;
}

.material-sheet {
  border-radius: 28px 28px 0 0;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 4px auto 10px;
  background: var(--line);
  border-radius: 2px;
}

.sheet-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 0.72rem;
}

.field .lbl {
  color: var(--muted);
  font-weight: 500;
}

.field .val {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.material-field {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  color: var(--ink-soft);
  cursor: default;
}

.check-row .box {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-row .box.on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--cream);
}

/* Inbox */
.seg-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 14px 10px;
  flex-shrink: 0;
}

.seg-tabs span {
  flex: 1;
  text-align: center;
  padding: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--line) 40%, transparent);
  border-radius: 8px;
}

.seg-tabs span.on {
  background: var(--ink);
  color: #fff;
}

.material-tabs span {
  border-radius: 999px;
}

.offer-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.material-card {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(24, 23, 22, 0.06);
}

.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.badge.new {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.pay {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sage);
}

.offer-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.offer-actions .m-btn {
  margin-top: 0;
  padding: 0.55rem 0.5rem;
  font-size: 0.72rem;
}

.hint-line {
  margin: 0.85rem 0 0;
  font-size: 0.68rem;
  color: var(--sage);
  text-align: center;
}

.hint-line.done {
  color: var(--muted);
}

/* Video */
.video-stage {
  position: relative;
  height: 180px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, #2a2520 0%, #181716 100%);
  overflow: hidden;
  margin-bottom: 10px;
}

.material-video {
  border-radius: 20px;
}

.video-remote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.v-label {
  font-size: 0.72rem;
  opacity: 0.85;
}

.video-self {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 64px;
  height: 80px;
  border-radius: 10px;
  background: #3d3834;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-self {
  border-radius: 12px;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.gate-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.gate-eyebrow {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.gate-eyebrow.amber {
  color: var(--amber);
}

.confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.25rem;
}

.pill {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.pill.ok {
  background: color-mix(in srgb, var(--sage) 18%, transparent);
  color: var(--sage);
}

.pill.wait {
  background: color-mix(in srgb, var(--yellow) 35%, transparent);
  color: var(--ink-soft);
}

/* Waiver */
.waiver-text {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  max-height: 110px;
  overflow: auto;
  margin-bottom: 8px;
}

.sig-pad {
  position: relative;
  height: 72px;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.material-sig {
  border-style: solid;
  border-radius: 16px;
}

.sig-hint {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.62rem;
  color: var(--tertiary);
}

.sig-stroke {
  position: absolute;
  inset: 12px 8px 4px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

/* Quiz */
.quiz-q {
  margin-top: 0.75rem;
}

.q-text {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.4rem;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.quiz-opt.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--cream));
  color: var(--ink);
  font-weight: 600;
}

/* Outing map + panel (iOS) */
.outing-map {
  position: relative;
  height: 46%;
  flex-shrink: 0;
  background: #c5d4c8;
  overflow: hidden;
}

.outing-map.live {
  background: #b8c9bc;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65, 107, 85, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 107, 85, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-grid.sm {
  background-size: 16px 16px;
  border-radius: 10px;
}

.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.pin span,
.pin {
  line-height: 1;
}

.pin.pickup {
  background: var(--accent);
  top: 58%;
  left: 22%;
}

.pin.drop {
  background: var(--sage);
  top: 28%;
  right: 24%;
}

.pin.me {
  background: var(--yellow);
  color: var(--ink);
  top: 42%;
  left: 48%;
}

.pin.dim {
  opacity: 0.45;
}

.route-arc {
  position: absolute;
  top: 35%;
  left: 30%;
  width: 40%;
  height: 30%;
  border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(20deg);
}

.demo-chip {
  position: absolute;
  top: 36px;
  left: 10px;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 250, 241, 0.92);
  color: var(--amber);
  border-radius: 6px;
  z-index: 3;
}

.outing-panel {
  flex: 1;
  padding: 10px 14px 14px;
  background: var(--paper);
  overflow: auto;
  border-top: 1px solid var(--line);
}

.client-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.status-pipe {
  display: flex;
  align-items: center;
  margin: 10px 0 4px;
  padding: 0 2px;
}

.status-pipe .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--tertiary);
  flex-shrink: 0;
}

.status-pipe .dot.past {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.status-pipe .dot.on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.status-pipe .line {
  flex: 1;
  height: 1.5px;
  background: var(--line);
  margin: 0 1px;
}

.status-pipe .line.past {
  background: var(--accent-deep);
}

.status-label {
  margin: 0 0 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0.5rem 0 0.15rem;
}

.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.45rem 0.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: default;
}

.act .ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  position: relative;
}

.act .ico::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.act .ico.map::after {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  inset: 3px 4px;
}

.act .ico.car::after {
  border-radius: 3px;
  inset: 5px 3px;
}

.act .ico.chat::after {
  border-radius: 3px 3px 3px 0;
}

.act .ico.alert {
  background: color-mix(in srgb, var(--destructive) 18%, transparent);
}

.act .ico.alert::after {
  background: var(--destructive);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  inset: 3px 4px;
}

.act.panic {
  color: var(--destructive);
  border-color: color-mix(in srgb, var(--destructive) 35%, transparent);
}

.material-act {
  border-radius: 14px;
  background: var(--surface);
}

/* Android outing */
.and-outing .map-thumb {
  position: relative;
  height: 72px;
  margin: 0.55rem 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.and-outing .map-thumb .map-grid {
  inset: 0;
}

.map-cta {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.gesture-bar {
  height: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gesture-bar::after {
  content: "";
  width: 72px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0.35;
}

/* Care */
.care-hero {
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.mood {
  padding: 0.55rem 0.25rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.mood.selected {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 12%, var(--cream));
  color: var(--sage);
}

.material-mood {
  border-radius: 999px;
}

.resource-card {
  margin-top: 0.65rem;
  padding: 10px;
  background: color-mix(in srgb, var(--yellow) 22%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--yellow) 50%, transparent);
  border-radius: 12px;
}

/* Stepper */
.flow-controls {
  margin-top: 2.5rem;
}

.step-list {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-btn {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.step-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.step-btn.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--cream));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.step-btn .sn {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.step-btn.active .sn {
  background: var(--accent);
}

.step-btn .st {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.step-btn .sd {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.note-box {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.foot {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.foot a {
  text-decoration: none;
  font-weight: 600;
}

.foot a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .platform-toggle {
    width: 100%;
  }

  .plat-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.65rem;
  }
}
