/* Road Trip demo — all rules scoped to .rd- classes */
.rd-demo {
  --rd-canvas: #F7F3EC; --rd-surface: #FFFFFF; --rd-ink: #17201F; --rd-ink2: #5A6462; --rd-ink3: #66706E; --rd-coral-text: #B5432A;
  --rd-teal: #125C66; --rd-teal-ink: #FFFFFF; --rd-coral: #D9573B; --rd-coral-bg: #F6E1DA;
  --rd-ok: #2D6A4F; --rd-ok-bg: #E1EEE6; --rd-warn: #8A5A12; --rd-warn-bg: #F5EAD6;
  --rd-line: rgba(23, 32, 31, 0.10); --rd-track: #ECE5DA; --rd-bezel: #1A1D1E;
  --rd-shadow: 0 40px 80px -30px rgba(23, 32, 31, .45), 0 16px 32px -16px rgba(23, 32, 31, .3);
  --rd-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  display: grid; grid-template-columns: minmax(0, 390px); justify-content: center; gap: 48px;
  align-items: start; color: var(--rd-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rd-demo {
    --rd-canvas: #0F1213; --rd-surface: #181C1E; --rd-ink: #EDEBE6; --rd-ink2: #A6AEAC; --rd-ink3: #8A9391; --rd-coral-text: #F08A6E;
    --rd-teal: #6AB8C9; --rd-teal-ink: #0F1213; --rd-coral: #F08A6E; --rd-coral-bg: #3A2420;
    --rd-ok: #7BC29C; --rd-ok-bg: #1D2D25; --rd-warn: #E0AE5A; --rd-warn-bg: #33291A;
    --rd-line: rgba(237, 235, 230, 0.10); --rd-track: #262B2D; --rd-bezel: #000;
    --rd-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 16px 32px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] .rd-demo {
  --rd-canvas: #0F1213; --rd-surface: #181C1E; --rd-ink: #EDEBE6; --rd-ink2: #A6AEAC; --rd-ink3: #8A9391; --rd-coral-text: #F08A6E;
  --rd-teal: #6AB8C9; --rd-teal-ink: #0F1213; --rd-coral: #F08A6E; --rd-coral-bg: #3A2420;
  --rd-ok: #7BC29C; --rd-ok-bg: #1D2D25; --rd-warn: #E0AE5A; --rd-warn-bg: #33291A;
  --rd-line: rgba(237, 235, 230, 0.10); --rd-track: #262B2D; --rd-bezel: #000;
  --rd-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 16px 32px -16px rgba(0, 0, 0, .6);
}
@media (min-width: 900px) {
  .rd-demo { grid-template-columns: 390px minmax(0, 300px); }
}
.rd-demo *, .rd-demo *::before, .rd-demo *::after { box-sizing: border-box; }
.rd-demo button { font: inherit; color: inherit; cursor: pointer; }
.rd-demo :focus-visible { outline: 2px solid var(--rd-teal); outline-offset: 2px; border-radius: 8px; }
.rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone */
.rd-phone {
  width: 100%; max-width: 390px; margin-inline: auto; padding: 10px; border-radius: 54px;
  background: var(--rd-bezel); box-shadow: var(--rd-shadow);
}
.rd-screen {
  height: 760px; max-height: 82vh; min-height: 560px; display: flex; flex-direction: column;
  background: var(--rd-canvas); border-radius: 44px; overflow: hidden;
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
@media (max-width: 440px) {
  .rd-phone { padding: 0; border-radius: 28px; background: none; box-shadow: none; }
  .rd-screen { border-radius: 28px; border: 1px solid var(--rd-line); height: 680px; }
}

/* Header */
.rd-head { display: flex; justify-content: space-between; gap: 12px; padding: 34px 22px 14px; }
.rd-place { margin: 0; font: 600 28px/1.05 "Fraunces", Georgia, serif; letter-spacing: -0.01em; border-left: 3px solid var(--rd-teal); padding-left: 10px; color: var(--rd-ink); }
.rd-dates { margin: 6px 0 8px; color: var(--rd-ink2); font-size: 13px; font-variant-numeric: tabular-nums; }
.rd-tags { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.rd-tag { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--rd-track); color: var(--rd-ink2); }
.rd-ring {
  --rd-p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--rd-canvas) 82%, transparent 84%), conic-gradient(var(--rd-teal) calc(var(--rd-p) * 1%), var(--rd-track) 0);
}
.rd-ring-n { display: block; font: 600 18px/1 var(--rd-num); font-variant-numeric: tabular-nums; }
.rd-ring-l { display: block; font-size: 10px; color: var(--rd-ink3); margin-top: 2px; }

/* Tabs */
.rd-tabs { display: flex; gap: 6px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rd-line); }
.rd-tabs::-webkit-scrollbar { display: none; }
.rd-tab {
  flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--rd-line);
  background: var(--rd-surface); font-size: 13px !important; font-weight: 500 !important; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.rd-tab[aria-selected="true"] { background: var(--rd-teal); color: var(--rd-teal-ink) !important; border-color: transparent; }

/* Body */
.rd-body { flex: 1; overflow-y: auto; padding: 16px 16px 28px; overscroll-behavior: contain; }
.rd-body:focus { outline: none; }
.rd-enter > * { animation: rd-in .28s ease both; }
@keyframes rd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rd-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-coral-text); }
.rd-note { margin: 4px 0 0; font-size: 13px; color: var(--rd-ink2); }

/* Countdown */
.rd-count { padding: 4px 4px 18px; }
.rd-big { margin: 4px 0 2px; display: flex; gap: 10px; align-items: baseline; font-family: var(--rd-num); font-variant-numeric: tabular-nums; }
.rd-num { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rd-u { font-size: 20px; font-weight: 600; color: var(--rd-ink3); margin-left: 1px; }
.rd-unit:nth-child(n+3) .rd-num { font-size: 30px; color: var(--rd-ink2); }
.rd-leave { margin: 6px 0 12px; color: var(--rd-ink2); font-size: 14px; }
.rd-status { display: flex; gap: 12px; align-items: flex-start; }
.rd-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; transition: background-color .3s ease, color .3s ease; }
.rd-chip.is-not { background: var(--rd-coral-bg); color: var(--rd-coral-text); }
.rd-chip.is-ready { background: var(--rd-ok-bg); color: var(--rd-ok); }
.rd-blockers { margin: 2px 0 0; padding: 0 0 0 14px; font-size: 13px; color: var(--rd-ink2); }
.rd-blockers li::marker { color: var(--rd-coral); }
.rd-blockers li.is-ok { list-style: none; margin-left: -14px; color: var(--rd-ok); }

/* Panels */
.rd-panel { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.rd-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.rd-panel-title { margin: 0; font-size: 16px; font-weight: 600; }
.rd-panel-extra { font-size: 13px; color: var(--rd-ink3); font-variant-numeric: tabular-nums; }
.rd-panel-crit { background: var(--rd-coral-bg); border-color: transparent; }
.rd-panel-crit .rd-panel-title, .rd-panel-crit .rd-panel-extra { color: var(--rd-coral-text); }

/* Check rows */
.rd-check { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rd-line); cursor: pointer; }
.rd-panel-head + .rd-check, .rd-note + .rd-check { border-top: 0; }
.rd-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 0; cursor: pointer; }
.rd-box { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rd-ink3); display: grid; place-content: center; transition: background-color .18s ease, border-color .18s ease; }
.rd-check.is-crit .rd-box { border-color: var(--rd-coral); }
.rd-check input:checked + .rd-box { background: var(--rd-ok); border-color: var(--rd-ok); }
.rd-check input:checked + .rd-box::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.rd-check input:focus-visible + .rd-box { outline: 2px solid var(--rd-teal); outline-offset: 2px; }
.rd-check-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-check-name { font-size: 15px; }
.rd-check.is-done .rd-check-name { color: var(--rd-ink3); text-decoration: line-through; text-decoration-color: var(--rd-ink3); }
.rd-check-sub { font-size: 12px; color: var(--rd-ink2); }
.rd-qty { color: var(--rd-ink3); font-variant-numeric: tabular-nums; }
.rd-check-icon { color: var(--rd-ink3); display: inline-flex; }
.rd-badge { flex: none; font-size: 11px; font-weight: 600; color: var(--rd-coral-text); background: var(--rd-coral-bg); padding: 2px 8px; border-radius: 99px; }
.rd-check.is-done .rd-badge { opacity: .5; }
.rd-contact { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rd-line); }
.rd-panel-head + .rd-contact { border-top: 0; }

/* Bars */
.rd-bar { height: 6px; border-radius: 99px; background: var(--rd-track); overflow: hidden; }
.rd-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--rd-coral); transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.rd-prow { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 10px; width: 100%; padding: 8px 0; background: none; border: 0; text-align: left; }
.rd-prow-name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rd-prow-pct { text-align: right; font: 600 13px/1 var(--rd-num); font-variant-numeric: tabular-nums; color: var(--rd-ink2); }
.rd-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rd-mini { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--rd-line); }
.rd-panel-head + .rd-mini { border-top: 0; }
.rd-mini-name { font-size: 14px; font-weight: 500; }
.rd-mini-sub { font-size: 12px; color: var(--rd-ink2); font-variant-numeric: tabular-nums; }

/* Packing */
.rd-people { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.rd-person { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--rd-line); background: var(--rd-surface); font-size: 14px; }
.rd-person[aria-pressed="true"] { border-color: var(--rd-m); box-shadow: 0 0 0 1px var(--rd-m) inset; }
.rd-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-content: center; background: var(--rd-m); color: #fff; font-size: 12px; font-weight: 600; }
.rd-sum-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.rd-sum-name { margin: 2px 0 0; font: 600 26px/1.1 "Fraunces", Georgia, serif; }
.rd-sum-pct { margin: 0; font: 700 34px/1 var(--rd-num); font-variant-numeric: tabular-nums; }
.rd-sum-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.rd-link { background: none; border: 0; padding: 4px 0; font-size: 13px !important; font-weight: 600 !important; color: var(--rd-teal) !important; }
.rd-link:hover { text-decoration: underline; }

/* Checklists */
.rd-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; margin-bottom: 12px; border-radius: 12px; background: var(--rd-track); }
.rd-seg-btn { border: 0; background: none; padding: 7px 4px; border-radius: 9px; font-size: 13px !important; color: var(--rd-ink2) !important; transition: background-color .2s ease; }
.rd-seg-btn[aria-pressed="true"] { background: var(--rd-surface); color: var(--rd-ink) !important; font-weight: 600 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.rd-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.rd-pill.is-ok { background: var(--rd-ok-bg); color: var(--rd-ok); }
.rd-pill.is-warn { background: var(--rd-warn-bg); color: var(--rd-warn); }
.rd-btn { margin-top: 12px; padding: 9px 16px; border-radius: 99px; border: 0; background: var(--rd-teal); color: var(--rd-teal-ink) !important; font-size: 14px !important; font-weight: 600 !important; }

/* Bookings */
.rd-book-title { margin: 2px 0 2px; font-size: 17px; font-weight: 600; }
.rd-book-line { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.rd-conf { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rd-line); }
.rd-conf .rd-note { margin: 0; }
.rd-code { flex: 1; font: 600 14px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.rd-copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--rd-line); background: none; font-size: 12px !important; color: var(--rd-teal) !important; }

/* Guide */
.rd-guide { padding-top: 24px; }
.rd-guide-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-coral-text); }
.rd-guide-list { margin: 0; padding: 0; list-style: none; counter-reset: rd; }
.rd-guide-list li { counter-increment: rd; position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--rd-line); font-size: 15px; line-height: 1.45; }
.rd-guide-list li::before { content: counter(rd); position: absolute; left: 0; top: 12px; font: 600 18px/1.2 "Fraunces", Georgia, serif; color: var(--rd-teal); }
.rd-reset { margin-top: 16px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--rd-teal) !important; text-decoration: underline; text-underline-offset: 3px; }
.rd-guide-note { margin: 10px 0 0; font-size: 13px; color: var(--rd-ink2); }
@media (max-width: 899px) { .rd-guide { padding-top: 0; max-width: 390px; margin-inline: auto; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .rd-demo *, .rd-demo *::before, .rd-demo *::after { animation: none !important; transition: none !important; }
}
