/*
 * The guides - split-travel-expenses, offline-trip-planner, and
 * group-packing-list - layered on style.css: the same card on the navy band,
 * plus app screenshots, the store badges, and a checklist that prints.
 *
 * Each guide answers one thing people type into Google, and has to be useful
 * on its own without the app. Pages that exist only to catch a search and
 * point at a download are what Google's spam policies call doorways, and
 * they get a whole site demoted (BACKLOG, Growth).
 */

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 1.12rem;
}
h3 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 26px 0 6px;
}

/* App screenshots, framed like the homepage's phones. Two to a row on a
   phone, so three never stack into one long column. */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 30px 0 34px;
}
.shots figure {
  flex: 0 1 210px;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.shots .frame {
  padding: 7px;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 0 0 1.5px #334155, var(--shadow);
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}
.shots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .shots { gap: 18px 14px; }
  .shots figure { flex-basis: calc(50% - 7px); }
  .shots .frame { padding: 5px; border-radius: 22px; }
  .shots img { border-radius: 17px; }
}

/* A small worked example: short enough to fit a phone without scrolling. */
.table-wrap.compact table { min-width: 0; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos { color: #15803d; font-weight: 700; }
.neg { color: #b91c1c; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .pos { color: #4ade80; }
  .neg { color: #f87171; }
}

/* A comparison: three columns, so it fits a phone without scrolling, and
   only SplitRoute's column set apart. Sources and dates sit under it. */
.compare table { font-size: 0.9rem; }
.compare th, .compare td { padding: 10px 12px; }
.compare th[scope="row"] { width: 34%; }
.compare td:last-child { font-weight: 700; }
.source { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.trademark { margin: 32px 0 0; }

/* The operator page: the sample PDF's first page, framed like paper, and the
   two prices side by side. */
.doc-preview { margin: 26px 0 30px; text-align: center; }
.doc-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.doc-preview figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 14px; margin: 16px 0 14px; }
.price-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.price-card .amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.price-card .amount small { font-size: 0.95rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

/* The checklist: empty boxes, ticked with a pen once printed. */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0 32px;
  margin: 8px 0 12px;
}
.checklist-grid h3 { margin: 22px 0 8px; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 4px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 4px;
}
.checklist small { color: var(--muted); font-size: 0.85em; }
/* Two columns even on a phone: one ran to eighty rows. Tighter lines, so an
   item that wraps still reads as one item. */
@media (max-width: 520px) {
  .checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .checklist li { padding-left: 25px; line-height: 1.45; margin-bottom: 8px; }
  .checklist li::before { top: 0.15em; }
}

/* Printing needs JavaScript; without it the button is simply not there. */
.print-btn { display: none; }
.js .print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

/* The store badges, on the band's navy. */
.get {
  margin: 48px 0 0;
  padding: 32px 22px 30px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 260px at 90% -30%, rgba(37, 99, 235, 0.45), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
}
.get h2 { margin: 0 0 8px; color: #fff; font-size: 1.45rem; }
.get p { margin: 0 auto; max-width: 30rem; color: #cbd5e1; }
.get .stores { justify-content: center; align-items: flex-start; margin: 22px 0 0; }

/* Until Play is live, the greyed Play badge with a "coming soon" caption -
   the same switch (stores.js) and the same look as the homepage's. */
.badge-soon { display: none; cursor: default; }
.badge-clip { display: block; width: 183px; height: 56px; overflow: hidden; line-height: 0; }
.badge-clip img { height: 80px; width: auto; max-width: none; margin: -12px; filter: grayscale(1); opacity: 0.45; }
.soon-tag {
  display: block;
  margin-top: 7px;
  text-align: center;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.play-soon .badge-play { display: none; }
.play-soon .badge-soon { display: inline-block; }

/* The other guides. */
.more { margin-top: 40px; }
.more h2 { margin: 0 0 12px; }
.more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.more li { margin: 0; }
.more a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.more a:hover { border-color: var(--accent); }
.more a span { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* A credit line on paper only: a printed list gets passed around. */
.print-only { display: none; }

/* Paper: black on white whatever the screen's theme, without the band,
   badges, or links. The packing guide prints only its checklist. */
@media print {
  .print-only { display: block !important; margin-top: 12pt; color: var(--muted); font-size: 9pt; }
  :root {
    --ink: #000;
    --muted: #444;
    --line: #bbb;
    --bg: #fff;
    --surface: #fff;
    --accent: #000;
    --accent-soft: transparent;
  }
  body { background: #fff; padding: 0; font-size: 11pt; line-height: 1.5; }
  .band, .shots, .get, .more, .print-btn, main > footer { display: none !important; }
  main { width: auto; margin: 0 !important; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  .print-list main > :not(h1):not(.printable) { display: none !important; }
  /* One sheet: four columns, and the shared items in two. */
  .print-list main { font-size: 10pt; line-height: 1.35; }
  .print-list h1 { font-size: 18pt; margin-bottom: 4pt; }
  .print-list h2 { font-size: 12pt; margin: 12pt 0 4pt; }
  .print-list h3 { font-size: 10.5pt; margin: 10pt 0 3pt; }
  .print-list .printable > .checklist { columns: 2; column-gap: 24pt; }
  .print-list .checklist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14pt; }
  .print-list .checklist li { padding-left: 16pt; margin-bottom: 2pt; break-inside: avoid; }
  .print-list .checklist li::before { top: 0.12em; width: 9pt; height: 9pt; border-width: 1pt; border-radius: 2pt; }
  .checklist-grid section { break-inside: avoid; }
}
