/* dayhop.xyz. Colors come from the app (TravelLog/Support/DesignTokens.swift) and its icon. */

:root {
  color-scheme: light dark;
  --paper: #f2f2f4;
  --surface: #ffffff;
  --ink: #111113;
  --muted: #5d5d62;
  --hairline: rgba(0, 0, 0, 0.09);
  --fill: rgba(0, 0, 0, 0.05);
  --blue: #2846f5;
  --pin: #ff6b4a;
  --on-blue: #ffffff;

  /* The app's day colors, in order. */
  --day-1: #c9402a;
  --day-2: #b26a00;
  --day-3: #3a8019;
  --day-4: #0e7f7a;

  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  --measure: 34rem;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --surface: #161618;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.1);
    --fill: rgba(255, 255, 255, 0.07);
    --blue: #6b84ff;
    --day-1: #ff8a73;
    --day-2: #f2a93b;
    --day-3: #8bcb5e;
    --day-4: #4fc9c1;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Type */

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: var(--measure); }

/* Status badge for the App Store link, until the app is live. */

.get {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 14px 22px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.get svg { width: 18px; height: 18px; fill: currentColor; }
.get-note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Hero */

.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 28px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* The hero's working itinerary: day chips and a timeline, drawn like the app. */

.plan { background: var(--surface); border-radius: 32px; padding: 22px 20px 12px; box-shadow: 0 1px 0 var(--hairline), 0 30px 60px -30px rgba(17, 17, 19, 0.28); max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .plan { justify-self: stretch; max-width: none; } }

.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.plan-trip { font: 700 22px/1.2 var(--display); }
.plan-dates { font-size: 14px; color: var(--muted); }

.chips { display: flex; gap: 8px; margin: 16px 0 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; cursor: pointer; text-align: left;
  border-radius: 18px; padding: 9px 14px 10px; min-height: 52px;
  background: var(--fill); color: var(--ink); font: inherit;
}
.chip b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.chip b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--day); }
.chip span { display: block; font-size: 12px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--day); color: #fff; }
.chip[aria-pressed="true"] b::before { background: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.85); }

.day-title { font: 700 26px/1.15 var(--display); margin: 14px 4px 2px; }
.day-route { font-size: 13px; font-weight: 600; color: var(--day); margin: 0 4px 10px; min-height: 1.4em; }

.rail { list-style: none; margin: 0; padding: 0; }
.rail li { display: grid; grid-template-columns: 58px 22px 1fr; column-gap: 8px; }
.rail time { font-size: 15px; font-weight: 600; text-align: right; padding-top: 13px; font-variant-numeric: tabular-nums; }
.rail time small { font-size: 10px; font-weight: 600; margin-left: 2px; color: var(--muted); }
.rail .line { position: relative; }
.rail .line::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--day); opacity: 0.35; }
.rail li:first-child .line::before { top: 20px; }
.rail li:last-child .line::before { bottom: calc(100% - 20px); }
.rail .dot { position: absolute; left: 5px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--day); }
.rail .leg .line .dot { display: none; }
.stop { display: flex; align-items: center; gap: 12px; margin: 4px 0; padding: 10px 12px; border-radius: 18px; background: var(--paper); }
.stop i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 17px; background: var(--fill); }
.stop strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.stop span { display: block; font-size: 13px; color: var(--muted); }
.leg p { margin: 0; padding: 6px 4px; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .rail.is-new li { animation: settle 0.32s ease-out both; }
  .rail.is-new li:nth-child(2) { animation-delay: 0.03s; }
  .rail.is-new li:nth-child(3) { animation-delay: 0.06s; }
  .rail.is-new li:nth-child(4) { animation-delay: 0.09s; }
  .rail.is-new li:nth-child(5) { animation-delay: 0.12s; }
  .rail.is-new li:nth-child(6) { animation-delay: 0.15s; }
  .rail.is-new li:nth-child(7) { animation-delay: 0.18s; }
}
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Screens */

.screens { padding: 0 0 clamp(64px, 9vw, 120px); }
.screens h2 { margin-bottom: 12px; }
.screens .lede { margin-bottom: 36px; }
.screen-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.screen-row figure { margin: 0; }
.screen-row img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px var(--hairline); background: var(--surface); }
.screen-row figcaption { font-size: 15px; margin-top: 12px; color: var(--muted); }
.screen-row figcaption b { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .screen-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; }
  .screen-row figure { flex: 0 0 62%; scroll-snap-align: start; }
}

/* Journey: before, with friends, on the day, after. A sequence, so it sits on a rail like the app's. */

.journey { padding: clamp(64px, 9vw, 120px) 0; background: var(--surface); }
.journey .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.journey-intro { position: sticky; top: 32px; align-self: start; }
.journey-intro h2 { margin-bottom: 16px; }
@media (max-width: 860px) {
  .journey .wrap { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps > li { position: relative; padding: 0 0 48px 44px; }
.steps > li::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: -8px; width: 2px; background: var(--hairline); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::before { display: none; }
.steps > li::after { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--day); }
.steps h3 { margin-bottom: 10px; }
.steps ul { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.steps ul li { padding: 8px 0; border-top: 1px solid var(--hairline); color: var(--muted); }
.steps ul li b { color: var(--ink); font-weight: 600; }

/* Closing call to action */

.closing { padding: clamp(72px, 10vw, 136px) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.closing h2 { font-size: clamp(36px, 5.4vw, 68px); max-width: 12em; }
.closing-side { max-width: 22rem; }
.closing-side p { color: var(--muted); }

/* Footer */

.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Text pages: support and privacy */

.page { padding: clamp(24px, 5vw, 56px) 0 clamp(64px, 8vw, 104px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 16px; }
.page .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.page h2 { font-size: 26px; margin: 44px 0 10px; }
.page p, .page li { max-width: var(--measure); }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }

.contact { background: var(--surface); border-radius: 24px; padding: 24px; margin: 8px 0 12px; }
.contact p { margin: 0 0 6px; }
.contact a { font: 700 24px/1.3 var(--display); text-decoration: none; color: var(--blue); }

.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--text); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Invite page */

.invite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.invite main { width: 100%; max-width: 400px; background: var(--surface); border-radius: 32px; padding: 32px 26px 28px; text-align: center; }
.invite img { width: 64px; height: 64px; margin: 0 auto 18px; }
.invite h1 { font-size: 32px; line-height: 1.1; margin-bottom: 10px; }
.invite p { color: var(--muted); }
.invite .get { width: 100%; justify-content: center; margin-top: 8px; }
.invite .small { font-size: 14px; margin: 18px 0 0; }
