@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* The app's own palette, plus sea and sand taken from the trip's photos. */
:root {
  --ground: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #5f574b;
  --line: #e6dfd4;
  --accent: #b4532a;
  --accent-deep: #8e3f1f;
  --accent-soft: #fbf3ec;
  --sea: #1f6f63;
  --sea-soft: #e8f1ee;
  --sand: #f1e7d6;
  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
.nowrap { white-space: nowrap; }
@media (max-width: 420px) { .nowrap { white-space: normal; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* The app's buttons are pills, so these are too. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.btn:hover { background: var(--accent-deep); }
.btn-quiet { min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 24px var(--display); }
.logo img { border-radius: 8px; }

section { padding: clamp(56px, 8vw, 110px) var(--gutter); }
.section-lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin: 14px 0 0; }

/* Hero: the promise, then the one moment only this product has. */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(40px, 7vw, 96px); }
.tagline { margin: 22px 0 0; font: 600 clamp(20px, 2.2vw, 26px) var(--display); color: var(--sea); }
.lede { margin: 16px 0 0; font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 30px 0 0; }
.hint { color: var(--muted); font-size: 15px; max-width: 30ch; }
.moment { margin: 0; display: flex; flex-direction: column; align-items: center; }
.moment-said { margin: 0 0 14px; display: flex; flex-direction: column; align-items: flex-end; align-self: stretch; gap: 6px; }
.bubble-out { display: inline-block; max-width: 280px; padding: 11px 15px; background: var(--ink); color: #fff; border-radius: 18px 18px 4px 18px; font-size: 16px; line-height: 1.35; }
.moment-arrow { align-self: center; color: var(--accent); font: 600 28px var(--display); line-height: 1; }
.moment .shot { width: min(340px, 78vw); }
.moment figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; text-align: center; max-width: 34ch; }

.shot { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 48px -30px rgba(60, 40, 20, 0.45); }

/* Reviews as receipt slips: square corners, a torn top edge. */
.band-reviews { background: var(--sand); }
.slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.slip { position: relative; margin: 0; padding: 26px 22px 20px; background: var(--surface); border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; background: radial-gradient(circle at 6px 0, transparent 6px, var(--surface) 6.5px) 0 0 / 12px 12px repeat-x; }
.slip blockquote { margin: 0; font: 600 19px/1.38 var(--display); }
.slip figcaption { color: var(--muted); font-size: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }

/* The tour: trip phases on a dotted route, like the logo. */
.phase { display: flex; align-items: center; gap: 12px; margin: 54px 120px 22px 0; font-size: clamp(22px, 2.4vw, 28px); color: var(--sea); }
.phase::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.phase::after { content: ""; flex: 1; border-top: 3px dotted color-mix(in srgb, var(--accent) 45%, transparent); }
/* Each phase is a sideways strip of readable screens, on every screen size. */
.strip { position: relative; }
.reel { list-style: none; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter); scrollbar-width: thin; }
.reel li { flex: 0 0 clamp(220px, 22vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.strip-nav { display: flex; gap: 8px; justify-content: flex-end; margin: -58px 0 22px; }
.strip-nav button { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink); font: 600 20px var(--body); cursor: pointer; }
.strip-nav button:hover { background: var(--ink); color: #fff; }
.reel .shot { margin-bottom: 10px; }
.reel h4 { font-size: 18px; }
.reel p { margin: 0; color: var(--muted); font-size: 15px; }

.band-film { background: var(--sea-soft); display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 6vw, 80px); align-items: center; }
.film { position: relative; width: min(360px, 82vw); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #e2d9c9 url("/assets/demo-poster.jpg") center / cover; box-shadow: 0 24px 48px -30px rgba(20, 60, 50, 0.5); }
.film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(28, 26, 23, 0.78); color: #fff; font: 600 14px var(--body); cursor: pointer; }

.table-wrap { margin-top: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 500; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .us { background: var(--accent-soft); font-weight: 600; }
.compare thead .us { color: var(--accent-deep); }
.compare sup a { text-decoration: none; }
.fineprint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.qa dl { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 48px; }
.qa dt { font: 600 20px var(--display); }
.qa dd { margin: 6px 0 0; color: var(--muted); }

/* The close: the demo trip's hisaab, as a receipt. */
.close { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; border-top: 1px solid var(--line); }
.receipt { width: min(300px, 80vw); padding: 24px 22px 30px; background: var(--surface); border-radius: 3px; font-variant-numeric: tabular-nums; transform: rotate(-2deg); box-shadow: 0 20px 40px -28px rgba(60, 40, 20, 0.5); mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x; }
.receipt p { margin: 0; }
.receipt-head { font: 600 18px var(--display); padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 10px !important; }
.receipt-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 16px; }
.receipt-row span:last-child { font-weight: 600; }
.receipt-foot { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.close-copy .btn { margin-top: 26px; }

.foot { padding: 32px var(--gutter) 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.sources { padding-left: 20px; margin: 0 0 14px; }

.article { padding: clamp(32px, 6vw, 72px) var(--gutter); }
.article p, .article li { font-size: 18px; }
.article h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 40px; }
.article .lede { color: var(--muted); }

@media (max-width: 980px) {
  .slips { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero, .band-film, .close { grid-template-columns: 1fr; }
  .film, .receipt { justify-self: center; }
  .qa dl { grid-template-columns: 1fr; }
  .slips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 34px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
  .slip { flex: 0 0 80vw; scroll-snap-align: start; }
  .reel { gap: 16px; }
  .reel li { flex-basis: 68vw; }
  .strip-nav { display: none; }
  /* The comparison drops the note column on small screens: Splitwise vs Tripyy. */
  .compare .col-note { display: none; }
  .compare th, .compare td { padding: 12px; font-size: 15px; }
}
