/* ============================================================
   ATLAS - the Aster redesign (preview build)
   "Travel provides the emotion. Aster provides the intelligence."
   Satoshi (language) + IBM Plex Mono (data). Near-monochrome
   ink/paper + one accent. Hairlines and whitespace over cards.
   ============================================================ */

:root {
  --ink: #1A1A18;
  --paper: #FAFAF8;
  --line: rgba(26,26,24,0.12);
  --mut: rgba(26,26,24,0.60);
  --faint: rgba(26,26,24,0.42);
  /* accent variants - set on body via class; teal is the default test */
  --acc-teal: #1F5C4D;
  --acc-orange: #E4572E;
  --acc-cerulean: #1D6FA5;
  --accent: var(--acc-teal);
  --font-lang: "Satoshi", "Inter", -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;
}
body.acc-orange { --accent: var(--acc-orange); }
body.acc-cerulean { --accent: var(--acc-cerulean); }

* { margin: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-lang);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.ax-label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- top bar ---- */
.ax-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  color: #fff;
}
.ax-bar.on-paper { position: relative; color: var(--ink); border-bottom: 1px solid var(--line); }
.ax-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.ax-brand svg { width: 20px; height: 20px; }
.ax-nav { display: flex; gap: 26px; }
.ax-nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; opacity: 0.85;
}
.ax-nav a:hover { opacity: 1; }
.ax-nav a.ax-active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
/* Mobile nav (28 Sep, Seb report): the old rule hid every link except the
   last ("Sign in") and offered no way to reach the rest - the homepage had
   no navigation at all on a phone. Show a hamburger instead; the links
   move into a dropdown panel. Desktop is untouched. */
.ax-nav-toggle {
  display: none; background: none; border: 0; color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 2px;
}
@media (max-width: 640px) {
  .ax-bar { padding: 14px 20px; }
  .ax-nav-toggle { display: block; }
  .ax-nav {
    display: none;
    position: absolute; top: 100%; right: 12px;
    flex-direction: column; gap: 0; min-width: 180px; padding: 6px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 30;
  }
  .ax-bar.nav-open .ax-nav { display: flex; }
  .ax-nav a { padding: 10px 12px; border-radius: 6px; font-size: 15px; opacity: 1; }
  .ax-nav a:hover { background: rgba(0,0,0,.05); }
}

/* ---- hero: photography carries emotion, planner leads ---- */
.ax-hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  color: #fff;
}
.ax-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,14,12,0.72) 0%, rgba(12,14,12,0.28) 42%, rgba(12,14,12,0.10) 70%);
}
.ax-hero-in {
  position: relative; z-index: 2;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 28px 56px;
}
.ax-hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 16ch;
}
.ax-hero .ax-sub {
  margin-top: 18px;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.55;
  max-width: 56ch;
  color: rgba(255,255,255,0.88);
}
/* the planner: a solid paper field against the photograph -- after user
   testing showed a bare underlined input over the hero image read as
   decoration, not a text box ("very hard to figure out" where to type).
   The field is unmistakably a place to write; the accent action sits
   flush against it. */
.ax-plan { margin-top: 34px; max-width: 640px; }
.ax-plan-row {
  display: flex; align-items: stretch;
  background: var(--paper, #f5f2ec);
}
.ax-plan-input {
  flex: 1; background: none; border: none; outline: none;
  color: #1c1e1c; font-family: var(--font-lang);
  font-size: clamp(17px, 2vw, 21px); font-weight: 500;
  padding: 18px 20px;
  caret-color: var(--accent);
}
.ax-plan-input::placeholder { color: rgba(28,30,28,0.42); }
.ax-plan-go {
  font-family: var(--font-data); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 12px 26px; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.ax-plan-tries { margin-top: 16px; display: flex; gap: 22px; flex-wrap: wrap; }
/* IA separation (29 Sep): quiet typographic route into exact search from
   the hero -- a text line, not a card/button, per Seb's constraints. */
.ax-plan-alt { margin-top: 14px; font-size: 13.5px; opacity: .72; }
.ax-plan-alt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.ax-plan-tries a {
  color: rgba(255,255,255,0.75); font-size: 13.5px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 1px;
}
.ax-plan-tries a:hover { color: #fff; border-color: #fff; }
@media (max-width: 640px) {
  .ax-hero { min-height: 78vh; }
  .ax-hero-in { padding: 0 20px 40px; }
  .ax-plan-row { flex-direction: column; }
  .ax-plan-input { padding: 16px 18px; }
  .ax-plan-go { text-align: center; padding: 14px 26px; }
}

/* ---- paper sections ---- */
.ax-sec { max-width: 1120px; margin: 0 auto; padding: 72px 28px; }
.ax-sec + .ax-sec { border-top: 1px solid var(--line); padding-top: 56px; }
@media (max-width: 640px) { .ax-sec { padding: 48px 20px; } .ax-sec + .ax-sec { padding-top: 40px; } }

.ax-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
@media (max-width: 800px) { .ax-props { grid-template-columns: 1fr; gap: 36px; } }
.ax-prop h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 18px 0 10px; }
.ax-prop p { font-size: 15px; color: var(--mut); max-width: 38ch; }
.ax-prop img { border-radius: 8px; aspect-ratio: 3/2; object-fit: cover; }

/* discovery cards: imagery grouping earns the card */
.ax-disc h2, .ax-index h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; }
.ax-disc .ax-standfirst, .ax-index .ax-standfirst { color: var(--mut); font-size: 15.5px; margin-bottom: 28px; max-width: 60ch; }
.ax-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .ax-cards { grid-template-columns: 1fr; } }
.ax-card { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.ax-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.ax-card-in { padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.ax-card-name { font-weight: 700; font-size: 16px; }
.ax-card-fare { font-family: var(--font-data); font-size: 12.5px; color: var(--mut); }

.ax-index-list { columns: 3; column-gap: 44px; font-size: 14.5px; }
@media (max-width: 800px) { .ax-index-list { columns: 2; } }
.ax-index-list a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--mut); }
.ax-index-list a:hover { color: var(--ink); }

.ax-foot { border-top: 1px solid var(--line); }
.ax-foot-in { max-width: 1120px; margin: 0 auto; padding: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ax-foot a { color: var(--mut); text-decoration: none; font-size: 13.5px; }
.ax-foot a:hover { color: var(--ink); }

/* ============================================================
   RESULTS - the intelligence layer. Paper, standfirst, rules.
   ============================================================ */
.ax-res { max-width: 880px; margin: 0 auto; padding: 40px 28px 120px; }
@media (max-width: 640px) { .ax-res { padding: 28px 20px 120px; } }
.ax-strip {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-data); font-size: 12px; letter-spacing: 0.06em;
  color: var(--mut); text-transform: uppercase;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.ax-answer { padding: 44px 0 36px; }
.ax-answer .ax-label { color: var(--accent); }
.ax-answer h1 {
  font-size: clamp(30px, 4.2vw, 42px); font-weight: 900; letter-spacing: -0.025em;
  line-height: 1.12; margin-top: 14px; max-width: 22ch;
}
.ax-answer h1 .ax-price { font-family: var(--font-data); font-weight: 600; letter-spacing: -0.03em; }
.ax-reason { margin-top: 22px; max-width: 62ch; font-size: 16.5px; color: rgba(26,26,24,0.85); }
.ax-reason + .ax-reason { margin-top: 14px; }
.ax-do { margin-top: 30px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ax-btn {
  font-family: var(--font-data); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 14px 24px;
  border: none; cursor: pointer; text-decoration: none;
}
.ax-btn-quiet {
  font-size: 14px; font-weight: 500; color: var(--mut); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
}
.ax-btn-quiet:hover { color: var(--ink); border-color: var(--ink); }

.ax-table-sec { padding: 36px 0; border-top: 1px solid var(--line); }
.ax-table-sec h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.ax-table-sec .ax-standfirst { color: var(--mut); font-size: 14px; margin-bottom: 20px; }
table.ax-cabins { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ax-cabins th {
  font-family: var(--font-data); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); text-align: left;
  padding: 0 14px 10px 0; border-bottom: 1px solid var(--ink);
}
.ax-cabins td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ax-cabins .c { font-weight: 700; }
.ax-cabins .n { font-family: var(--font-data); font-size: 13.5px; }
.ax-cabins .v { color: var(--mut); max-width: 30ch; }
.ax-cabins tr.pick td { background: rgba(31,92,77,0.05); }
body.acc-orange .ax-cabins tr.pick td { background: rgba(228,87,46,0.05); }
body.acc-cerulean .ax-cabins tr.pick td { background: rgba(29,111,165,0.06); }
.ax-cabins .na { color: var(--faint); }
.ax-pick-tag {
  display: inline-block; margin-top: 5px;
  font-family: var(--font-data); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); padding: 3px 8px;
}

.ax-rows { border-top: 1px solid var(--line); }
.ax-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .ax-row { grid-template-columns: 1fr; gap: 8px; } }
.ax-row h3 { font-size: 15px; font-weight: 700; }
.ax-row p { font-size: 14.5px; color: var(--mut); max-width: 60ch; }
.ax-row .n { font-family: var(--font-data); font-size: 13px; }

.ax-hotel { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .ax-hotel { grid-template-columns: 1fr; } }
.ax-hotel img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* refine dock: calm, flat, thumb-reachable */
.ax-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--paper); border-top: 1px solid var(--line);
}
.ax-dock-in { max-width: 880px; margin: 0 auto; padding: 12px 28px; display: flex; gap: 14px; align-items: center; }
.ax-dock input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-lang); font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--line); padding: 8px 2px;
}
.ax-dock input::placeholder { color: var(--faint); }
.ax-dock button {
  font-family: var(--font-data); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; background: none; border: none; cursor: pointer;
  color: var(--accent); padding: 8px 4px;
}
@media (max-width: 640px) { .ax-dock-in { padding: 10px 20px; } }

/* ============================================================
   V2 - Seb's fixes (25 Sep): orange locked (restrained), mobile
   scrim + tightened copy, stacked cabin rows on narrow screens,
   bigger/darker mobile type, stronger data prominence.
   ============================================================ */

/* accent decided: warm orange, restrained */
:root { --accent: var(--acc-orange); }
body.acc-teal { --accent: var(--acc-teal); }
.ax-cabins tr.pick td { background: rgba(228,87,46,0.06); }
body.acc-teal .ax-cabins tr.pick td { background: rgba(31,92,77,0.05); }

/* controls should feel like controls */
.ax-btn, .ax-plan-go { border-radius: 4px; }
.ax-btn { font-size: 13.5px; padding: 16px 28px; }

/* data strip: trustworthy, prominent, fresh */
.ax-strip {
  color: var(--ink); font-weight: 500; font-size: 12.5px;
}
.ax-strip .ax-fresh { color: var(--accent); }

/* figures in the reading rows stand up */
.ax-row .n { color: var(--ink); font-weight: 500; }

/* ---- mobile: scrim, contrast, sizes, stacked cabins ---- */
@media (max-width: 700px) {
  :root {
    --mut: rgba(26,26,24,0.74);
    --faint: rgba(26,26,24,0.55);
  }

  /* stronger image treatment behind the content */
  .ax-hero-scrim {
    background: linear-gradient(to top, rgba(10,12,10,0.88) 0%, rgba(10,12,10,0.52) 46%, rgba(10,12,10,0.24) 78%);
  }
  .ax-hero .ax-sub { color: rgba(255,255,255,0.94); }
  .ax-sub-more { display: none; }   /* tightened mobile copy */

  /* no squinting */
  .ax-prop p { font-size: 16px; }
  .ax-card-fare { font-size: 13px; color: var(--mut); }
  .ax-index-list { font-size: 15.5px; }
  .ax-plan-tries a { font-size: 14.5px; color: rgba(255,255,255,0.85); }
  .ax-row p { font-size: 15.5px; }
  .ax-table-sec .ax-standfirst { font-size: 15px; }
  .ax-disc .ax-standfirst, .ax-index .ax-standfirst { font-size: 16px; }

  /* cabin table -> stacked rows: cabin · fare · flight, verdict beneath */
  table.ax-cabins, .ax-cabins tbody, .ax-cabins tr { display: block; }
  .ax-cabins tr { padding: 15px 2px; }
  .ax-cabins tr.pick { background: rgba(228,87,46,0.06); padding: 15px 12px; margin: 0 -12px; }
  body.acc-teal .ax-cabins tr.pick { background: rgba(31,92,77,0.05); }
  .ax-cabins tr.pick td { background: none; }
  .ax-cabins th { display: none; }
  .ax-cabins td { display: inline; padding: 0; border-bottom: none; }
  .ax-cabins td.n::before { content: "  \00b7  "; color: var(--faint); }
  .ax-cabins td.v { display: block; margin-top: 5px; font-size: 15px; max-width: none; }
  .ax-cabins td.v::before { content: none; }
  .ax-cabins .c { font-size: 16px; }
  .ax-cabins br { display: none; }
  .ax-pick-tag { margin: 0 0 0 8px; font-size: 9.5px; vertical-align: 2px; }
}

/* hero rotation: A/B crossfade - the visible image carries .ax-on */
.ax-hero-img { opacity: 0; transition: opacity 1.6s ease; }
.ax-hero-img.ax-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ax-hero-img { transition: none; }
}

/* Homepage hero: 3-step "how Aster works" strip (replaces the hero plan form) */
.ax-steps { margin-top: 34px; max-width: 720px; gap: 28px; }
.ax-steps .ax-prop p { color: rgba(255,255,255,0.92); }
.ax-step-num { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,0.75); border-radius: 999px; margin-bottom: 10px; }
