/* Rivet landing page — matches the app's design language.
   Colors come straight from the app theme:
   background #FFF8F3, navy ink #353E56, orange #EA7544. */

:root {
  --bg: #fff8f3;
  --ink: #353e56;
  --muted: #b3b3b3;
  --orange: #ea7544;
  --card: #ffffff;
  --radius: 28px;
  --green: #33a666;
}

* { box-sizing: border-box; }

html { color-scheme: light; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

main { flex: 1 0 auto; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

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

/* Header */
.top-inner,
.bottom-inner,
.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-inner {
  display: flex;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 4px;
}

.brand {
  font-size: 34px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 48px;
  padding-top: 28px;
  padding-bottom: 40px;
}

h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}

.lede {
  font-size: 19px;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 30px;
  max-width: 34em;
}

/* Sign-up form */
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Honeypot — humans never see or fill this field; bots do. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup input[type="email"] {
  flex: 1 1 240px;
  height: 56px;
  padding: 0 20px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid #e2ddd6;
  border-radius: var(--radius);
  outline: none;
}

.signup input[type="email"]:focus { border-color: var(--ink); }

.signup button {
  height: 56px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.signup button:hover { filter: brightness(1.05); }
.signup button:disabled { background: #b3b3b3; cursor: default; }

.platform {
  border: 0;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
}

.platform input { accent-color: var(--orange); margin-right: 6px; }

.fine { margin: 14px 0 0; font-size: 14px; color: #8a8f9c; }

.status { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.status:empty { display: none; margin: 0; min-height: 0; }
.status.ok { color: #2e7d4f; }
.status.err { color: #b3392b; }

.waitlist-win {
  max-width: none;
  text-align: center;
}
.waitlist-win .survey-x { left: auto; }
.vip-kicker {
  margin: 8px 24px 10px;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  outline: none;
}
.vip-head {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.survey-card.waitlist-win .vip-head {
  font-size: 22px;
  margin: 0 0 12px;
}
.vip-body {
  margin: 0 auto 20px;
  max-width: 28em;
  font-size: 17px;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.6;
}
.waitlist-win .survey-open { margin: 0 auto; }
.survey-time {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: #8a8f9c;
}
.survey-open,
.survey-submit {
  height: 56px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.survey-open:hover,
.survey-submit:hover { filter: brightness(1.08); }
.survey-submit {
  width: 100%;
  margin-top: 8px;
}
.survey-submit:disabled { background: #b3b3b3; cursor: default; }

.survey-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 20, 28, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
  overflow-y: auto;
}
.survey-layer[hidden] { display: none; }
.survey-card {
  width: min(560px, 100%);
  margin: 24px auto;
  background: var(--bg);
  border-radius: 24px;
  padding: 28px 24px 32px;
  box-shadow: 0 24px 60px rgba(16, 20, 28, 0.28);
  position: relative;
}
.survey-x {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: #8a8f9c;
  cursor: pointer;
  font-family: inherit;
}
.survey-card h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 40px 8px 0;
}
.survey-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.8;
}
.survey-q {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}
.survey-q legend {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.survey-hint {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #8a8f9c;
}
.survey-q label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px 0;
  cursor: pointer;
}
.survey-q input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
.survey-q label:has(input:disabled) { opacity: 0.4; cursor: default; }
.survey-other-in,
.survey-q input[type="email"],
.survey-q textarea {
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid #e2ddd6;
  border-radius: 14px;
  outline: none;
}
.survey-q textarea { resize: vertical; min-height: 96px; }
.survey-other-in:focus,
.survey-q input[type="email"]:focus,
.survey-q textarea:focus { border-color: var(--ink); }
.survey-other-in:disabled { opacity: 0.45; }
.survey-status { min-height: 1.3em; margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.survey-status.err { color: #b3392b; }
.survey-thanks { text-align: center; }
.survey-thanks p { font-size: 17px; line-height: 1.45; margin: 0 auto 16px; max-width: 28em; }
.survey-thanks-kicker {
  font-size: clamp(32px, 5vw, 42px) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  outline: none;
}
.survey-thanks .survey-open { margin: 0 auto; }

/* ── Phone ─────────────────────────────────────────────────────────────── */
.hero-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Lift the phone so its top lines up with the Rivet wordmark and the
     whole hero (including the demo hint) fits above the fold. */
  margin-top: -72px;
}

.demo-hint { margin: 0; font-size: 13px; font-weight: 600; color: #8a8f9c; }

.phone {
  padding: 10px;
  background: #10141c;
  border-radius: 46px;
  box-shadow: 0 30px 60px rgba(53, 62, 86, 0.28);
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
}

.phone-bezel {
  width: 300px;
  height: 640px;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 22px 0;
  font-size: 13px;
  font-weight: 600;
  color: #101010;
}

.phone-pills { display: flex; align-items: center; gap: 5px; }
.phone-pills svg { display: block; fill: #101010; }
.phone-pills .sig { width: 17px; height: 11px; }
.phone-pills .wifi { width: 15px; height: 11px; }
.phone-pills .batt {
  width: 22px; height: 11px; border-radius: 3px;
  background: #ffd60a; position: relative;
  color: #101010; font-size: 8px; font-weight: 800; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}
.phone-pills .batt::after {
  content: "";
  position: absolute; right: -3px; top: 3px;
  width: 2px; height: 4px; background: #101010; border-radius: 0 1px 1px 0;
}

.phone-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-app button { font-family: inherit; cursor: pointer; }

/* Tap hint — a hand that drifts onto the primary button and taps it, so
   visitors realise the phone is interactive. JS positions it over the
   button and removes it for good after the first real interaction. */
.tap-hint {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
}

.tap-hint.on { animation: tapTravel 5s ease-in-out infinite; }
.tap-hint.tour {
  opacity: 1;
  transition: opacity 0.22s ease;
}
.tap-hint.tap-once { animation: tapOnce 0.55s ease-out forwards; }
.tap-hint.tap-once .tap-ripple { animation: tapRippleOnce 0.55s ease-out forwards; }

.tap-hand {
  position: absolute;
  /* Offsets put the drawn fingertip, not the icon box, on the anchor point. */
  left: -15px;
  top: -4px;
  width: 30px;
  height: 30px;
  fill: var(--ink);
  filter: drop-shadow(0 3px 6px rgba(20, 24, 32, 0.35));
}

.tap-ripple {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0;
}

.tap-hint.on .tap-ripple { animation: tapRipple 5s ease-out infinite; }

@keyframes tapTravel {
  0%   { opacity: 0; transform: translate(30px, 40px); }
  6%   { opacity: 1; transform: translate(22px, 30px); }
  17%  { opacity: 1; transform: translate(0, 0); }
  21%  { opacity: 1; transform: translate(0, 0) scale(0.8); }
  25%  { opacity: 1; transform: translate(0, 0) scale(1); }
  36%  { opacity: 1; transform: translate(0, 0); }
  43%  { opacity: 0; transform: translate(0, -6px); }
  100% { opacity: 0; transform: translate(0, -6px); }
}

@keyframes tapRipple {
  0%, 19% { opacity: 0; transform: scale(0.3); }
  22%     { opacity: 0.9; transform: scale(0.55); }
  33%     { opacity: 0; transform: scale(1.5); }
  100%    { opacity: 0; transform: scale(1.5); }
}

@keyframes tapOnce {
  0%   { opacity: 1; transform: scale(1); }
  35%  { opacity: 1; transform: scale(0.78); }
  55%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes tapRippleOnce {
  0%   { opacity: 0; transform: scale(0.3); }
  28%  { opacity: 0.9; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  .tap-hint.on,
  .tap-hint.on .tap-ripple,
  .tap-hint.tap-once,
  .tap-hint.tap-once .tap-ripple { animation: none; }
  .tap-hint.on,
  .tap-hint.tour,
  .tap-hint.tap-once { opacity: 1; }
}

.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 18px 86px;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  cursor: grab;
}
.screen.dragging { cursor: grabbing; }
.screen::-webkit-scrollbar { width: 0; }

.screen.center {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.big-title {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #14161c;
  margin: 22px 0 16px;
  line-height: 1.1;
}

/* Trip card — TripCard.swift */
.tcard {
  background: var(--card);
  border-radius: 20px;
  padding: 15px 15px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  cursor: pointer;
}

.tcard-head { display: flex; align-items: flex-start; gap: 8px; }
.tcard-head > div:first-child { flex: 1; min-width: 0; }
.tcard-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.loc {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc .dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  position: relative;
}
.loc .dot::after {
  content: "";
  position: absolute; left: 5.5px; top: 3px;
  width: 2px; height: 5px;
  background: #fff; border-radius: 1px;
}

.tcard-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  border: 0;
  background: none;
  padding: 0;
}
.tcard-meta .car { width: 22px; height: 22px; color: rgba(53, 62, 86, 0.45); }
.tcard-meta .pen { font-size: 11px; color: rgba(179, 179, 179, 0.9); }

.rule { height: 1px; background: #eeebe6; margin: 12px 0 11px; }

.chips { display: flex; gap: 22px; }
.chip .ic { line-height: 1; color: var(--orange); }
.chip .ic svg { width: 15px; height: 15px; display: block; }
.chip .lab {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin: 4px 0 2px;
}
.chip .tm { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.cta-orange,
.cta-navy,
.cta-white {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.cta-orange { background: var(--orange); color: #fff; }
.cta-navy { background: var(--ink); color: #fff; }
.cta-white { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.tcard .cta-orange { margin-top: 13px; }
.cta-orange svg, .cta-navy svg, .cta-white svg { width: 17px; height: 17px; }

/* FAB */
.fab {
  position: absolute;
  right: 18px;
  bottom: 82px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.fab.navy { background: var(--ink); }
.fab svg { width: 24px; height: 24px; }

/* Floating capsule tab bar */
.tabbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 4px;
  background: rgba(255, 253, 251, 0.96);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 6px 18px rgba(53, 62, 86, 0.12);
  z-index: 3;
}
.tabbar button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 7px 13px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #4a4a4a;
  white-space: nowrap;
}
.tabbar button.on { background: rgba(234, 117, 68, 0.13); color: var(--orange); }
.tabbar .g { line-height: 1; display: block; }
.tabbar .g svg { width: 19px; height: 19px; display: block; }

/* ── Prep timer — PrepTimerView.swift ─────────────────────────────────── */
.exit {
  position: absolute;
  top: 6px;
  left: 16px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.prep {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 14px 22px;
  min-height: 0;
}

.prep-trip { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0; }
.prep-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 3px 10px 0;
  line-height: 1.15;
}
.prep-step { font-size: 13px; font-weight: 500; color: var(--muted); margin: 4px 0 0; }

.ring {
  position: relative;
  width: 232px;
  height: 232px;
  margin: 26px 0 0;
  touch-action: none;
  cursor: grab;
  flex-shrink: 0;
}
.ring svg { width: 232px; height: 232px; display: block; }
.ring-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  pointer-events: none;
}
.ring-face small {
  position: absolute;
  bottom: 64px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.clock {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: auto 0 0;
}
.clock.hot { color: var(--orange); }
.clock.eta { font-size: 27px; letter-spacing: -0.03em; }
.sub-note { font-size: 13px; font-weight: 600; color: var(--orange); min-height: 17px; margin: 5px 0 0; }
.sub-note.green { color: var(--green); }
.sub-note.grey { color: var(--muted); font-weight: 500; }

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 16px 0 0;
}
.pill {
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 17px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.pill svg { width: 16px; height: 16px; }
.pill.navy {
  background: var(--ink);
  color: #fff;
  width: 66px;
  height: 42px;
  padding: 0;
}
.pill.navy svg { width: 19px; height: 19px; }

.foot-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 0;
  min-height: 18px;
}

/* Head-out + arrived */
.moment {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 18px 26px;
}
.halo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: rgba(234, 117, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin: 30px 0 22px;
  position: relative;
  flex-shrink: 0;
}
.halo::before,
.halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(234, 117, 68, 0.3);
  animation: halo 1.6s ease-out infinite;
}
.halo::after { animation-delay: 0.8s; }
@keyframes halo {
  to { transform: scale(1.55); opacity: 0; }
}
.moment h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 4px 10px;
}
.moment .leave { font-size: 16px; font-weight: 700; color: var(--orange); margin: 0 0 5px; }
.moment .dest { font-size: 14px; color: var(--muted); margin: 0 6px; }
.stack { width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.stack .cta-orange,
.stack .cta-navy { border-radius: 16px; padding: 15px 8px; font-size: 13.5px; white-space: nowrap; }
.quiet {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 2px;
}

.pair { display: flex; gap: 12px; width: 100%; margin-top: 20px; }
.pair button { flex: 1; border-radius: 16px; padding: 14px 8px; font-size: 15px; }

/* Calendar */
.seg {
  display: flex;
  background: #ece7e1;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 14px;
}
.seg button {
  flex: 1;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 999px;
  color: var(--ink);
}
.seg button.on { background: var(--ink); color: #fff; }
.seg-top { margin-top: 22px; }

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.month-nav b { font-size: 17px; font-weight: 700; }
.month-nav span { color: var(--muted); font-size: 15px; }

.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 2px; }
.cell {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  padding: 0;
}
.cell .num {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  line-height: 14px;
}
.cell.mute .num { color: #d6d1ca; }
.cell.today .num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.ev {
  width: 100%;
  height: 8px;
  border-radius: 2px;
  font-size: 5px;
}
.ev.trip {
  background: var(--orange);
  outline: 1.5px solid rgba(234, 117, 68, 0.35);
  outline-offset: 1px;
}

/* Saved trip preps under the month grid */
.saved-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  margin-bottom: 8px;
  cursor: pointer;
}
.saved-row .bar {
  width: 4px;
  height: 30px;
  border-radius: 3px;
  background: var(--orange);
  flex-shrink: 0;
}
.saved-row div { flex: 1; min-width: 0; }
.saved-row b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-row small { display: block; font-size: 11px; color: var(--muted); }
.saved-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(51, 166, 102, 0.13);
  border-radius: 999px;
  padding: 4px 9px;
  flex-shrink: 0;
}
.mt12 { margin-top: 12px; }

/* Account */
.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(53, 62, 86, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 14px auto 10px;
}
.acct-name { text-align: center; font-size: 20px; font-weight: 800; margin: 0; }
.acct-mail { text-align: center; font-size: 13px; color: var(--muted); margin: 3px 0 18px; }
.grp-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.grp {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.grp .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 0.5px solid #f0ebe5;
}
.grp .row:last-child { border-bottom: 0; }
.grp .row span { color: var(--muted); font-size: 13px; }

/* Plan Trip form */
.navbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 10px 20px 12px;
  border-bottom: 0.5px solid #eee7df;
}
.navbar b { font-size: 15px; font-weight: 700; }
.navbar button {
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 999px;
}
.navbar .save { color: var(--orange); font-weight: 700; }

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 14px 4px 7px;
}
.form-field {
  background: #f1ece6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
}
.modes { display: flex; gap: 7px; }
.modes button {
  flex: 1;
  border: 0;
  background: var(--card);
  border-radius: 14px;
  padding: 11px 2px 9px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.modes button.on { background: var(--ink); color: #fff; }
.modes button.hot { background: var(--orange); color: #fff; }
.modes button.locked { pointer-events: none; cursor: default; }
.modes button.locked:not(.hot) { opacity: 0.55; }
.modes .g { display: block; line-height: 1; margin-bottom: 3px; }
.modes .g svg { width: 18px; height: 18px; display: block; margin: 0 auto; }

.label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.label-row .form-label { margin-right: 0; }
.suggest-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: rgba(234, 117, 68, 0.12);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.chip-pill {
  background: #efe9e2;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.toggle-row.arrive { gap: 8px; align-items: center; }
.toggle-row.arrive .tx { flex: 0 0 auto; overflow: visible; line-height: 1; }
.toggle-row.arrive .chip-pill:nth-of-type(1) { margin-left: auto; }
.toggle-row.arrive .arrive-clock {
  width: 22px;
  height: 22px;
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.toggle-row.arrive .arrive-clock svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.acts { background: var(--card); border-radius: 16px; box-shadow: 0 3px 8px rgba(0,0,0,0.05); overflow: hidden; }
.act {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 0.5px solid #f2ede7;
  font-size: 13px;
  font-weight: 500;
}
.act:last-child { border-bottom: 0; }
.act .minus {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #f2564a;
  color: #fff;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}
.act .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act .nm small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.act .mins { color: var(--muted); font-size: 12px; flex-shrink: 0; }

.stepper {
  display: flex;
  align-items: center;
  background: #efe9e2;
  border-radius: 10px;
  flex-shrink: 0;
}
.stepper b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 9px;
  line-height: 1.2;
}
.stepper i { width: 1px; height: 14px; background: #ddd6cd; }

.add-row {
  text-align: center;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 13px;
}

.route {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  margin-top: 12px;
}
.route h4 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.route-stats { display: flex; justify-content: space-between; text-align: center; }
.route-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.route-stats b i { font-size: 11px; font-weight: 600; font-style: normal; }
.route-stats span { font-size: 11px; color: var(--muted); }
.route-stats .tot b { color: var(--orange); }
.traffic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.traffic-pills { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.traffic .tp {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 9px;
  opacity: 0.45;
}
.traffic .tp.on { opacity: 1; }
.tp.l { background: #e4f5ea; color: #2e7d4f; }
.tp.m { background: #fdeee2; color: #c9762f; }
.tp.h { background: #fbe3e0; color: #b3392b; }
.route-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); }

/* Getting Ready Breakdown rows */
.brk {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5.5px 0;
  border-bottom: 0.5px solid #f4f0ea;
  font-size: 13px;
  font-weight: 500;
}
.brk:last-child { border-bottom: 0; }
.brk i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(234, 117, 68, 0.5);
  font-style: normal;
  flex-shrink: 0;
}
.brk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brk b { font-weight: 500; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.brk.buf { border-top: 0.5px solid #eee7df; margin-top: 3px; padding-top: 9px; }
.brk.buf i { width: auto; height: auto; background: none; color: var(--orange); display: flex; align-items: center; }
.brk.buf i svg { width: 13px; height: 13px; display: block; }

.tl-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.tl-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl-ic svg { width: 14px; height: 14px; display: block; }
.tl-ic.a { background: rgba(234,117,68,0.15); color: var(--orange); }
.tl-ic.b { background: rgba(53,62,86,0.1); color: var(--ink); }
.tl-ic.c { background: rgba(51,166,102,0.15); color: #33bf66; }
.tl-row .t { flex: 1; font-size: 14px; font-weight: 500; }
.tl-row .v { font-size: 14px; font-weight: 700; }
.tl-stem { width: 2px; height: 12px; background: #e6e0d9; margin-left: 13px; }

/* Real map crop from the app — full bleed like the iOS Plan Trip screen */
.map-shot { margin: 0 -18px; }
.map-shot img {
  width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.voice-fab {
  position: absolute;
  right: 16px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  z-index: 3;
}
.voice-fab b {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: #fff;
  animation: wave 0.9s ease-in-out infinite;
}
.voice-fab b:nth-child(2) { animation-delay: 0.1s; }
.voice-fab b:nth-child(3) { animation-delay: 0.2s; }
.voice-fab b:nth-child(4) { animation-delay: 0.15s; }
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 20px; }
}

.total-note { text-align: right; font-size: 12px; font-weight: 600; color: var(--orange); margin: 8px 4px 0; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.toggle-row .tx { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle-row .tx small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.toggle-row .mins { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.toggle-row .g.shield { color: var(--orange); display: flex; align-items: center; flex-shrink: 0; }
.toggle-row .g.shield svg { width: 16px; height: 16px; display: block; }
.sw {
  width: 42px; height: 25px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  position: relative;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease;
}
.sw::after {
  content: "";
  position: absolute;
  top: 2.5px; right: 2.5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}
.sw.off { background: #d9d3cb; }
.sw.off::after { transform: translateX(-17px); }

/* Listening */
.wave-big { display: flex; align-items: center; justify-content: center; gap: 5px; height: 70px; margin: 24px 0; }
.wave-big b {
  display: block;
  width: 5px;
  border-radius: 4px;
  background: var(--orange);
  animation: waveBig 0.9s ease-in-out infinite;
}
.wave-big b:nth-child(2) { animation-delay: 0.1s; }
.wave-big b:nth-child(3) { animation-delay: 0.2s; }
.wave-big b:nth-child(4) { animation-delay: 0.15s; }
.wave-big b:nth-child(5) { animation-delay: 0.05s; }
@keyframes waveBig {
  0%, 100% { height: 14px; }
  50% { height: 50px; }
}

/* Add chooser sheet */
.dim { position: absolute; inset: 0; background: rgba(20, 24, 32, 0.3); z-index: 4; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  padding: 8px 16px 26px;
  z-index: 5;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.14);
}
.sheet-grab { width: 36px; height: 5px; border-radius: 4px; background: #d5d0c9; margin: 4px auto 12px; }
.sheet h3 { text-align: center; font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.chooser { display: flex; gap: 12px; }
.choice {
  flex: 1;
  border: 0;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 6px 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.choice.hot { background: var(--orange); color: #fff; }
.choice.hot small { color: rgba(255,255,255,0.85); }
.choice .g { font-size: 20px; display: block; margin-bottom: 6px; }
.choice b { display: block; font-size: 13px; font-weight: 700; }
.choice small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.toast {
  position: absolute;
  left: 20px; right: 20px; bottom: 88px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 11px 12px;
  border-radius: 13px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: none; }

/* Footer stays at the bottom of the viewport on tall screens,
   and after the content when the page is taller than the screen. */
.bottom {
  margin-top: auto;
  border-top: 1px solid #ece5dd;
}
.bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 22px;
  padding-top: 22px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  color: #8a8f9c;
}
.bottom-inner .copy { margin: 0; letter-spacing: 0.01em; }
.legal { display: flex; gap: 18px; }
.legal a {
  color: #8a8f9c;
  text-decoration: none;
  font-weight: 600;
}
.legal a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 36px;
    text-align: center;
  }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-shot { margin-top: 0; }
  .signup-row { justify-content: center; }
  .platform { justify-content: center; }
  .bottom-inner { justify-content: center; text-align: center; }
}
