/* ============================================================
   Segara — static implementation of "Segara Home.dc.html"
   Values (colour, size, radius, shadow) are copied from the
   design; only layout that the design could not express
   (responsive rules, focus states, motion) is new.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --ink: #101010;
  --muted: #565656;
  --subtle: #767676;
  --faint: #C9C9C9;
  --blocked: #B8B8B8;
  --line: #E4E4E4;
  --surface: #F8F8F8;
  --lime: #8AFF66;
  --green: #277610;
  --mint: #EBFFE6;
  --wa: #25D366;

  --r-xl: 32px;
  --r-lg: 20px;
  --r-sm: 12px;
  --r-pill: 999px;

  --sh-nav: 0 4px 16px rgba(16, 16, 16, 0.10);
  --sh-pop: 0 20px 48px rgba(16, 16, 16, 0.12);
  --sh-pill: 0 1px 3px rgba(16, 16, 16, 0.08);

  --pad: 40px;
  --gap: 24px;
  --sec: 96px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* clear the sticky top bar when an in-page link lands on a section */
:where(section[id], #main, #top) { scroll-margin-top: 96px; }
#main:focus { outline: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
button, input { font-family: inherit; }
input::placeholder { color: var(--subtle); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
img { display: block; max-width: 100%; }
picture { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; z-index: 50; top: 8px; left: 8px;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: #FFFFFF;
  font-size: 15px; font-weight: 500;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; color: #FFFFFF; }

.page { background: var(--bg); padding: var(--pad); }

/* ---------- shared type ---------- */

.h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.h2 strong { font-weight: 700; }

.link { color: var(--green); font-size: 16px; line-height: 1.6; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px;
  border: 0; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--green); color: #FFFFFF; }
.btn--outline {
  padding: 0 24px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.round {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.round svg { width: 16px; height: 16px; }
.round--ghost { border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); }
.round--ghost:hover:not(:disabled) { border-color: var(--ink); }
.round--solid { border: 0; background: var(--ink); color: #FFFFFF; }
.round--solid:hover:not(:disabled) { background: var(--green); }
.round--lg { width: 44px; height: 44px; }
.round--lg svg { width: 18px; height: 18px; }
.round:disabled { color: var(--faint); cursor: not-allowed; }
.round--solid:disabled { background: var(--line); color: var(--faint); }

.wa-dot {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 18px; height: 18px;
  border-radius: var(--r-pill); background: var(--wa); color: #FFFFFF;
}
.wa-dot svg { width: 12px; height: 12px; }
.wa-dot--sm { width: 14px; height: 14px; }
.wa-dot--sm svg { width: 10px; height: 10px; }

/* ============================================================
   Hero
   ============================================================ */

.stage { position: relative; width: 100%; }

.hero {
  position: relative;
  height: clamp(560px, 82vh, 860px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* A haze, not a scrim. The hero copy is ink now, so this veil is white and the
   two forces finally pull the same way: more veil means a brighter picture AND
   more contrast, where a black scrim bought legibility by darkening the very
   photograph it was protecting. It also puts the hero back inside the system —
   DESIGN.md asks for a white page with no dark section, and ink for every
   heading; white-on-black hero copy was the one place both were untrue.
   Re-measure before swapping this photograph. With ink copy the risk inverts:
   the danger is now a dark subject in the upper third, not a bright one. */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.66) 0%, rgba(255,255,255,0.54) 38%,
    rgba(255,255,255,0.38) 62%, rgba(255,255,255,0.06) 100%);
}

/* The rail carries the sticky behaviour and takes no space in flow, so the
   hero still starts at the top of .page and the bar floats 24px inside it.
   It has to live outside .hero because that element clips (overflow:hidden),
   which would cancel the sticky. */
.topbar-rail {
  position: sticky; z-index: 40; top: 16px;
  height: 0;
  margin: 24px 24px -24px;
}
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  /* a sticky bar that wraps to two rows eats the viewport, so it never wraps;
     the breakpoints below drop "Log in" and then the whole nav in time */
  flex-wrap: nowrap;
}
/* once the bar leaves the hero it sits over white sections, so lift it further
   off the page */
.topbar-rail .brand,
.topbar-rail .nav,
.topbar-rail .actions,
.topbar-rail .navtoggle { transition: box-shadow .22s ease; }
.topbar-rail.is-stuck .brand,
.topbar-rail.is-stuck .nav,
.topbar-rail.is-stuck .actions,
.topbar-rail.is-stuck .navtoggle { box-shadow: 0 8px 28px rgba(16, 16, 16, 0.18); }

.brand {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 24px;
  border-radius: var(--r-pill); background: #FFFFFF;
  box-shadow: var(--sh-nav);
  color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
}
.brand--plain { height: auto; padding: 0; background: none; box-shadow: none; }
.brand__dot { width: 9px; height: 9px; border-radius: var(--r-pill); background: var(--lime); }

.nav {
  display: flex; align-items: center; gap: 2px;
  height: 56px; padding: 8px;
  border-radius: var(--r-pill); background: #FFFFFF;
  box-shadow: var(--sh-nav);
}
.nav__link {
  display: flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1;
  transition: background-color .18s ease;
}
.nav__link:hover { background: var(--surface); color: var(--ink); }
.nav__link.is-current { font-weight: 700; }

.actions {
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 8px;
  border-radius: var(--r-pill); background: #FFFFFF;
  box-shadow: var(--sh-nav);
}
.actions__quiet {
  display: flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1;
  transition: background-color .18s ease;
}
.actions__quiet:hover { background: var(--surface); }
.actions .btn--lime { height: 40px; padding: 0 22px; }

.navtoggle {
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 0; border-radius: var(--r-pill); background: #FFFFFF;
  box-shadow: var(--sh-nav); color: var(--ink); cursor: pointer;
}
.navtoggle svg { width: 22px; height: 22px; }
.navtoggle__close { display: none; }
.navtoggle[aria-expanded="true"] .navtoggle__open { display: none; }
.navtoggle[aria-expanded="true"] .navtoggle__close { display: block; }

.hero__copy {
  position: absolute; top: 25%; left: 50%; transform: translateX(-50%);
  width: 100%; padding: 0 40px; text-align: center; pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill); background: rgba(255,255,255,0.92);
  color: var(--ink); font-size: 13px; line-height: 1.45;
}
.hero__title {
  margin: 20px auto 0; max-width: 18ch;
  color: var(--ink);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.03em;
  text-wrap: pretty;
}
/* ink, not muted. Over a photograph the lede has no spare contrast to give
   away for hierarchy — size and the 500-weight headline carry that instead. */
.hero__lede {
  margin: 18px auto 0; max-width: 48ch;
  color: var(--ink); font-size: 18px; line-height: 1.55;
}

/* ============================================================
   Planner
   ============================================================ */

.planner {
  position: relative; z-index: 3;
  max-width: 1160px; margin: -150px auto 0;
  padding: 32px;
  border-radius: var(--r-xl); background: #FFFFFF;
  box-shadow: var(--sh-pop);
}
.backdrop { position: fixed; inset: 0; z-index: 2; }

.planner__head {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); flex-wrap: wrap;
}
.planner__title {
  margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em;
}

.tabs {
  display: flex; align-items: center;
  height: 44px; padding: 4px; gap: 4px;
  border-radius: var(--r-pill); background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 36px; padding: 0 18px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--muted);
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: #FFFFFF; color: var(--ink); box-shadow: var(--sh-pill); }

.fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 16px; margin-top: var(--gap);
}
.field { position: relative; z-index: 3; }
.field.is-open { z-index: 4; }
.field__label {
  display: block; margin-bottom: 10px;
  font-size: 14px; font-weight: 600; line-height: 1;
}
.field__control {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #FFFFFF; color: var(--ink);
  font-size: 16px; text-align: left; cursor: pointer;
  transition: border-color .18s ease;
}
.field__control:hover { border-color: var(--ink); }
.field__control.is-empty .field__value { color: var(--subtle); }
.field__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field__caret {
  flex: none; width: 14px; height: 14px; color: var(--subtle);
  transition: transform .2s ease;
}
.field__control[aria-expanded="true"] .field__caret { transform: rotate(180deg); }

.pop {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #FFFFFF; box-shadow: var(--sh-pop);
}
.pop--right { left: auto; right: 0; }
.pop--list { min-width: 260px; padding: 8px; }
.pop--cal { width: 328px; padding: 20px; }
.pop--count { width: 280px; padding: 20px; }

/* Options are div[role=option], not buttons: inside a listbox they must not be
   individual tab stops. The listbox itself takes focus and points at one of
   them with aria-activedescendant, so .is-active is the focus indicator and
   has to carry its own contrast. min-height, not height — a translated option
   is allowed to wrap rather than spill. */
.opt {
  display: flex; align-items: center;
  width: 100%; min-height: 44px; padding: 8px 16px;
  border-radius: var(--r-pill);
  background: transparent; color: var(--ink);
  font-size: 16px; line-height: 1.4; text-align: left; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.opt:hover { background: var(--surface); }
/* mint alone is a 1.06:1 fill, so selection also carries a weight change */
.opt.is-selected, .opt.is-selected:hover { background: var(--mint); font-weight: 600; }
.opt.is-active { box-shadow: inset 0 0 0 2px var(--green); }
.pop--list:focus { outline: none; }

/* calendar */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__month { font-size: 16px; font-weight: 600; }
.cal__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 6px; }
.cal__week span {
  display: flex; align-items: center; justify-content: center;
  height: 24px; color: var(--subtle); font-size: 12px;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day {
  height: 38px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink);
  font-size: 14px; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s ease;
}
.day:hover:not(:disabled) { background: var(--surface); }
/* A trailing next-month day is still selectable, so its label has to be
   readable: #C9C9C9 at .55 opacity measured 1.30:1. WCAG exempts inactive
   controls, so the disabled days may stay faint — nothing clickable may. */
.day--out { color: var(--subtle); }
.day--out:disabled, .day--past:disabled { color: var(--faint); opacity: .55; cursor: not-allowed; }
.day--blocked:disabled {
  color: var(--blocked); opacity: 1;
  text-decoration: line-through; cursor: not-allowed;
}
.day--today { box-shadow: inset 0 0 0 1px var(--line); }
.day--sel, .day--sel:hover { background: var(--ink); color: #FFFFFF; font-weight: 600; box-shadow: none; }

.cal__note {
  display: flex; gap: 10px;
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; line-height: 1.45;
}
.cal__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: var(--r-pill); background: var(--ink); }

/* travellers */
.count {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.count--last { padding: 16px 0 0; border-bottom: 0; }
.count__name { font-size: 16px; }
.count__hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper__n { min-width: 16px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }

/* filters */
.filters {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: var(--gap);
}
.filters__label { margin-right: 2px; font-size: 14px; font-weight: 600; line-height: 1; }
.chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #FFFFFF; color: var(--muted);
  font-size: 13px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { border-color: var(--mint); background: var(--mint); color: var(--ink); }
.filters__go { margin-left: auto; }

/* ============================================================
   Sections
   ============================================================ */

.section { max-width: 1240px; margin: 0 auto; padding-top: var(--sec); }
.section--narrow { max-width: 900px; }
/* the closing CTA is a full-bleed block like the hero, not a text column */
.section--full { max-width: none; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.section__lede { margin: 12px 0 0; max-width: 52ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section__note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.section__tools { display: flex; align-items: center; gap: 12px; }
.section__tools .link { margin-right: 8px; }

/* ---------- routes ---------- */

.routes {
  /* position:relative keeps absolutely-positioned descendants (the .sr-only
     labels in each card title) inside this scroller instead of resolving
     against the viewport, which would leak horizontal overflow onto <html>. */
  position: relative;
  display: flex; gap: var(--gap); margin-top: 40px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none;
}
.routes::-webkit-scrollbar { display: none; }
.section__tools.is-static [data-rail-prev],
.section__tools.is-static [data-rail-next] { display: none; }
.route {
  flex: 1 0 250px; min-width: 0;
  padding: 16px; border-radius: var(--r-lg); background: #FFFFFF;
  scroll-snap-align: start;
}
.route__media {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.route__media picture { position: absolute; inset: 0; }
.route__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.route:hover .route__media img { transform: scale(1.04); }
.route__body { padding: 20px 8px 4px; text-align: center; }
.route__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.route__swap { color: var(--subtle); font-weight: 400; }
.route__meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.route__price { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.price { color: var(--ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- about ---------- */

.about { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.about__text { flex: 1 1 380px; min-width: min(300px, 100%); }
.about__media { flex: 1 1 420px; min-width: min(300px, 100%); }
.about__media picture {
  position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 560px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__lead { margin: 24px 0 0; max-width: 56ch; color: var(--ink); font-size: 18px; line-height: 1.55; }
.about__lead em { font-style: italic; }
.about__body { margin: 16px 0 0; max-width: 58ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.about__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: var(--gap); margin-top: 64px;
}
/* min-height, not height: the Indonesian labels run 15-20% longer and a fixed
   148px box with overflow:hidden would silently cut the third line off. */
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 148px; padding: var(--gap);
  border-radius: var(--r-lg); background: var(--surface);
}
.stat.is-featured { background: var(--lime); }
.stat__figure {
  font-size: 36px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat__suffix { position: relative; top: -0.42em; font-size: 0.6em; }
.stat__label { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- experiences ---------- */

.exps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--gap); margin-top: 40px;
}
.exp {
  display: flex; flex-direction: column;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #FFFFFF;
  transition: border-color .2s ease;
}
.exp:hover { border-color: var(--ink); }
.exp__media {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.exp__media picture { position: absolute; inset: 0; }
.exp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.exp:hover .exp__media img { transform: scale(1.04); }
.heart {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.92); color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.heart svg { width: 20px; height: 20px; }
.heart:hover { transform: scale(1.06); }
.heart.is-on { background: var(--ink); color: #FFFFFF; }
.heart.is-on svg { fill: currentColor; }
.exp__title {
  margin: 20px 8px 0; min-height: 56px; max-width: 22ch;
  font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty;
}
.exp__meta { margin: 10px 8px 20px; color: var(--muted); font-size: 13px; line-height: 1.45; }
/* auto top margin pins the price row to the bottom of the card, so a title that
   runs to a third line (Indonesian, or a longer route name) makes its own card
   taller instead of knocking the prices out of alignment across the row. The
   meta's bottom margin keeps the minimum gap when there is no slack to absorb. */
.exp__rule { height: 1px; margin: auto 8px 0; background: var(--line); }
.exp__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 16px 8px 4px;
}
.exp__price { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exp__unit { color: var(--muted); font-size: 13px; font-weight: 400; }
.exp__foot .link { flex: none; }

/* ---------- how a day works ---------- */

.how { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.how__media { flex: 1 1 420px; min-width: min(300px, 100%); }
.how__steps { flex: 1 1 520px; min-width: min(320px, 100%); }
.poster {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.poster picture { position: absolute; inset: 0; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster__play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px 0 6px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.94); color: var(--ink);
  font-size: 13px; line-height: 1.45;
}
.poster__icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-pill); background: var(--ink); color: #FFFFFF;
}
.poster__icon svg { width: 12px; height: 12px; }

.steps { margin: 32px 0 0; padding: 0; list-style: none; }
.step { display: flex; gap: var(--gap); padding: 20px 0; border-bottom: 1px solid var(--line); }
.step__num { flex: none; width: 36px; color: var(--subtle); font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.step__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.step__body { margin: 8px 0 0; max-width: 52ch; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- faq ---------- */

.faq { margin-top: 40px; }
.qa { border-bottom: 1px solid var(--line); }
.qa__h { margin: 0; font-size: inherit; font-weight: inherit; }
.qa__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  width: 100%; padding: 20px 0;
  border: 0; background: transparent; color: var(--ink);
  font-size: 16px; line-height: 1.6; text-align: left; cursor: pointer;
}
.qa__sign {
  position: relative; flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color .18s ease, background-color .18s ease;
}
.qa__q:hover .qa__sign { border-color: var(--ink); }
.qa__sign::before, .qa__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.qa__sign::after { transform: rotate(90deg); }
.qa.is-open .qa__sign::after { transform: rotate(0); opacity: 0; }

.qa__a { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .3s ease; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
/* One transition, on grid-template-rows, and no layout property in flight. The
   bottom gap has to ride on the answer's own children, not on .qa__inner: a
   grid item's padding is outside its content box, so min-height:0 cannot zero
   it and the 0fr track would floor at 24px — a closed row that never closes. */
.qa__inner {
  min-height: 0;
  display: flex; gap: var(--gap); flex-wrap: wrap;
}
.qa__inner p { flex: 1 1 380px; margin: 0 0 var(--gap); max-width: 62ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.qa__thumb {
  position: relative; flex: none; width: 180px; aspect-ratio: 4 / 3;
  margin-bottom: var(--gap);
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface);
}
.qa__thumb picture { position: absolute; inset: 0; }
.qa__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- stories ---------- */

.section__head--tight { align-items: flex-end; }
.stories {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--gap); margin-top: 40px;
}
.story {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap);
  margin: 0; padding: var(--gap);
  border-radius: var(--r-lg); background: var(--surface);
}
.stars { letter-spacing: 0.12em; font-size: 13px; }
.story__quote { margin: 14px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.story__by { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill); background: var(--ink); color: #FFFFFF;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
}
.story__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.story__meta { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- closing cta ---------- */

.cta {
  position: relative;
  padding: 64px 40px;
  border-radius: var(--r-xl); overflow: hidden; background: var(--surface);
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim { position: absolute; inset: 0; background: rgba(16,16,16,0.18); pointer-events: none; }
.cta__card {
  position: relative;
  max-width: 660px; margin: 0 auto; padding: 48px;
  border-radius: var(--r-xl); background: #FFFFFF; text-align: center;
}
.cta__card .h2 { margin-left: auto; margin-right: auto; }
.cta__lede { margin: 16px auto 0; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
/* a statement of the channel, not a control: there is no chat window to open,
   so this reads as meta text with the platform mark rather than a button */
.cta__channel {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45;
}

/* ---------- footer ---------- */

.footer {
  /* same full-bleed width as the hero and the closing CTA */
  margin: var(--sec) 0 0; padding: 64px;
  border-radius: var(--r-xl); background: var(--surface);
}
.footer__top { display: flex; gap: 64px; flex-wrap: wrap; justify-content: space-between; }
.footer__brandcol { flex: 1 1 340px; min-width: min(280px, 100%); }
.footer__blurb { margin: 16px 0 0; max-width: 38ch; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* the footer runs full-bleed, so the brand column is wide; cap the form itself
   or the email field stretches across half the page */
.signup { margin-top: 32px; max-width: 440px; }
.signup__label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; line-height: 1; }
.signup__row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup__input {
  flex: 1 1 200px; height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #FFFFFF; color: var(--ink); font-size: 16px;
}
.signup__input:hover { border-color: var(--ink); }
.signup .btn { padding: 0 24px; }
.signup__msg { margin: 10px 0 0; min-height: 19px; color: var(--green); font-size: 13px; line-height: 1.45; }
.signup__msg[data-state="error"] { color: #A32020; }

.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__h { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.footer__col a { color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer__col a:hover { color: var(--ink); }
.footer__wa { display: flex; align-items: center; gap: 8px; }
.footer__rule { height: 1px; margin: 48px 0 var(--gap); background: var(--line); }
.footer__legal {
  display: flex; gap: var(--gap); flex-wrap: wrap; justify-content: space-between;
  color: var(--muted); font-size: 13px; line-height: 1.45;
}
.footer__legallinks { display: flex; gap: var(--gap); flex-wrap: wrap; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* ============================================================
   Without JavaScript

   .js is set by one line in <head>. If that never runs, every control that
   needs scripting stops pretending to be a control, and nothing that only
   scripting could reveal stays hidden. The FAQ ships fully expanded with
   aria-expanded="true" and is collapsed by app.js on boot, so the announced
   state is honest in both directions.
   ============================================================ */

.planner__nojs { display: none; }

/* app.js collapses four FAQ rows on boot; suppress that transition until it
   has, so the page does not open with answers folding shut */
html.is-booting .qa__a { transition: none; }

html:not(.js) .planner__nojs {
  display: flex; gap: 10px; align-items: flex-start;
  margin: var(--gap) 0 0; color: var(--muted); font-size: 13px; line-height: 1.45;
}
html:not(.js) .field__caret,
html:not(.js) .qa__sign,
html:not(.js) .navtoggle,
html:not(.js) .heart,
html:not(.js) [data-rail-prev],
html:not(.js) [data-rail-next] { display: none; }
/* The heart saves nothing a reload would remember, so without scripting it goes
   rather than sits there dead. The fields, tabs and chips need scripting too,
   but they carry the planner's defaults, so they stay and stop taking clicks
   instead. "See the routes" is left alone: it is a plain anchor to the routes
   list and works exactly as well without JS. */
html:not(.js) .field__control { pointer-events: none; border-style: dashed; }
html:not(.js) .tabs, html:not(.js) .chips { pointer-events: none; }

/* ============================================================
   Forced colours

   Windows high-contrast drops every background fill, which is exactly what
   this system uses to carry state. Each of those states gets a border it can
   keep, and the hero copy gets a real ground instead of a photograph.
   ============================================================ */

@media (forced-colors: active) {
  .btn, .round--solid, .navtoggle, .brand, .nav, .actions,
  .tab.is-active, .opt.is-selected, .chip.is-on, .heart.is-on,
  .day--sel, .day--today, .stat.is-featured { border: 1px solid; }
  .opt.is-active { outline: 2px solid; outline-offset: -2px; }
  .hero__copy { background: Canvas; padding-block: 24px; }
  .hero__title, .hero__lede { color: CanvasText; }
  .day--blocked:disabled { text-decoration: line-through; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .planner { margin-top: -110px; }
}

/* the three pills need ~974px of bar width with "Log in" and ~893px without,
   so shed it here and hand over to the hamburger at 940 */
@media (max-width: 1020px) {
  .actions__quiet { display: none; }
}

@media (max-width: 940px) {
  :root { --pad: 24px; }

  .topbar { gap: 10px; }
  .topbar-rail { margin: 16px 16px -16px; top: 12px; }
  .navtoggle { display: inline-flex; }
  .actions__quiet { display: none; }
  .nav {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    height: auto; flex-direction: column; align-items: stretch;
    padding: 10px; border-radius: var(--r-lg);
  }
  .nav.is-open { display: flex; }
  .nav__link { height: 44px; padding: 0 18px; }

  .planner { margin-top: -90px; padding: var(--gap); }
  .hero__copy { padding: 0 24px; }
}

@media (max-width: 820px) {
  :root { --sec: 72px; }
  .about, .how { gap: var(--gap); }
  .about__media picture { max-height: 460px; }
  .footer { padding: 40px 28px; }
  .footer__top { gap: 40px; }
  .footer__cols { gap: 40px; }
}

@media (max-width: 680px) {
  .hero { border-radius: var(--r-lg); height: clamp(520px, 78vh, 700px); }
  .planner { margin-top: var(--gap); border-radius: var(--r-lg); }
  .planner__head { gap: 16px; }
  .tabs { width: 100%; }
  .filters__go { margin-left: 0; width: 100%; }
  .cta { padding: 24px; }
  .cta__card { padding: 32px 24px; }
  .qa__inner { flex-direction: column; }
  .qa__thumb { width: 100%; max-width: 240px; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; --sec: 56px; }
  .topbar { gap: 8px; }
  /* tap targets must not be shrunk by flex to make room — the 370px rule below
     drops a control instead */
  .brand, .actions, .navtoggle { flex: none; }
  .brand { height: 48px; padding: 0 14px; font-size: 18px; }
  .navtoggle { width: 48px; height: 48px; }
  .actions { height: 48px; padding: 6px; }
  .actions .btn--lime { height: 36px; padding: 0 14px; font-size: 14px; }
  .nav { top: calc(100% + 8px); }

  .pop { left: 0; right: 0; }
  .pop--list, .pop--cal, .pop--count { width: auto; min-width: 0; }
  .pop--cal { padding: 16px; }

  .section__tools { width: 100%; justify-content: flex-start; }
  .footer { padding: 32px 20px; border-radius: var(--r-lg); }
  .footer__legal { gap: 12px; }
  .stat { min-height: 132px; gap: 20px; }
}

/* Below this, logo + "Plan a trip" + menu button cannot share one row without
   pushing a tap target under 44px. The hero's own "Plan a trip" sits directly
   beneath the bar, so the bar keeps the logo and the menu. */
@media (max-width: 370px) {
  .actions { display: none; }
}

/* ============================================================
   Touch input

   Width does not say what is doing the pointing: a tablet at 900px is a thumb,
   a touch laptop at 1440px is both. Fine pointers keep the design's density;
   coarse ones get the 44px floor, which PRODUCT.md refuses to trade away.
   ============================================================ */

@media (pointer: coarse) {
  .tabs { height: 52px; }
  .tab { height: 44px; }
  .chip { height: 44px; padding: 0 18px; }
  .nav__link, .actions__quiet { height: 44px; }
  /* the pill is 56px, so 6px of padding leaves exactly 44 for the button */
  .actions { padding: 6px; }
  .actions .btn--lime { height: 44px; }
  /* carousel arrows, month arrows and the traveller steppers */
  .round { width: 44px; height: 44px; }
  .round svg { width: 18px; height: 18px; }
}

@media (pointer: coarse) and (max-width: 560px) {
  /* the bar still has to hold one row: a 44px control plus 4px of pill is 52,
     and the logo and the menu button match that height */
  .brand, .actions, .navtoggle { height: 52px; }
  .navtoggle { width: 52px; }
  .actions { padding: 4px; }
  .actions .btn--lime { padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .routes { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .route:hover .route__media img, .exp:hover .exp__media img, .heart:hover { transform: none; }
}
