/* 1Hop design tokens — palette LOCKED 6th November 2026 (v0.2.0). Do not change without Jon's approval. */
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Brand */
  --hop-blue: #1b4fd8;
  --hop-blue-dark: #143ba3;
  --hop-navy: #0b1f4d;
  --ink: #0a0e14;
  /* Neutrals */
  --slate: #5b6577;
  --line: #e3e8f0;
  --sky: #e8eefc;
  --mist: #f5f7fb;
  --white: #ffffff;
  /* HopCast */
  --hc-flying: #12a150;
  --hc-good: #6cc24a;
  --hc-touch: #f2a900;
  --hc-unlikely: #f26b1d;
  --hc-grounded: #d93636;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --base: 16px;
  --app: 560px;
  --r: 6px;
}
html.large { --base: 19px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: var(--base); line-height: 1.4; color: var(--ink); background: var(--mist);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--hop-blue); }
.k { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .78em; color: var(--slate); }
h1, h2, h3, .disp { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; font-weight: 700; }

/* ---------- App shell: phone-width column, centred on larger screens ---------- */
.app { max-width: var(--app); margin: 0 auto; min-height: 100vh; background: var(--mist); position: relative;
       padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) {
  body { background: #dfe5ee; }
  .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(11,31,77,.12); }
}

.env-banner { background: var(--hc-touch); color: var(--ink); text-align: center; font: 700 .72em/1 var(--display); letter-spacing: .1em;
              text-transform: uppercase; padding: 6px; }

/* Header */
.top nav.topnav { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
       background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .logo { height: 26px; width: auto; display: block; }
.top .spacer { flex: 1; }
.icon-btn { height: 38px; min-width: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r);
            font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 20px; height: 20px; }
.btn { white-space: nowrap; border: 0; border-radius: var(--r); padding: 11px 18px; font: 700 .95em/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.btn-primary { background: var(--hop-blue); color: var(--white); }
.btn-primary:active { background: var(--hop-blue-dark); }
.btn-outline { background: var(--white); color: var(--hop-navy); border: 1.5px solid var(--hop-blue); }
.btn-dark { background: var(--hop-navy); color: var(--white); }
.btn-block { width: 100%; padding: 15px 18px; }

/* Hero with photo fading into the page */
.hero { position: relative; color: var(--white); padding: 26px 18px 80px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(/img/alderney-aerial.jpg) center 40% / cover no-repeat; filter: grayscale(1) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,31,77,.92) 0%, rgba(11,31,77,.78) 40%, rgba(27,79,216,.45) 72%, rgba(245,247,251,1) 100%); }
.hero .k { color: rgba(255,255,255,.75); }
.hero h1 { margin: 6px 0 6px; font-size: 2.35em; line-height: .98; }
.hero p { margin: 0; max-width: 30em; color: rgba(255,255,255,.88); }

/* Category tiles (sit over the photo fade) */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -52px 16px 0; position: relative; z-index: 2; }
.cat { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 13px;
       box-shadow: 0 6px 20px rgba(11,31,77,.10); }
.cat b { display: block; font: 700 1.2em/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--hop-navy); }
.cat span { display: block; margin-top: 4px; color: var(--slate); font-size: .88em; }
.cat .n { float: right; font: 700 .8em/1 var(--display); background: var(--sky); color: var(--hop-blue); padding: 4px 7px; border-radius: 4px; }
.cat[aria-pressed="true"] { background: var(--hop-navy); border-color: var(--hop-navy); }
.cat[aria-pressed="true"] b { color: var(--white); }
.cat[aria-pressed="true"] span { color: rgba(255,255,255,.75); }
.cat[aria-pressed="true"] .n { background: var(--hop-blue); color: var(--white); }

/* Day strip + route chips */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 16px 16px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar, .routes::-webkit-scrollbar { display: none; }
.day { flex: none; width: 58px; padding: 8px 0 9px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.day small { display: block; font: 600 .72em/1 var(--display); letter-spacing: .1em; color: var(--slate); text-transform: uppercase; }
.day b { display: block; font: 700 1.45em/1.1 var(--display); color: var(--hop-navy); margin-top: 3px; }
.day i { display: block; width: 6px; height: 6px; border-radius: 50%; margin: 4px auto 0; background: transparent; }
.day.has i { background: var(--hop-blue); }
.day[aria-pressed="true"] { background: var(--hop-navy); border-color: var(--hop-navy); }
.day[aria-pressed="true"] small { color: rgba(255,255,255,.7); }
.day[aria-pressed="true"] b { color: var(--white); }
.day[aria-pressed="true"].has i { background: var(--white); }
.day.any b { font-size: 1.05em; line-height: 1.55; }

.routes { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 2px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 13px;
        font: 600 .85em/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.chip[aria-pressed="true"] { background: var(--hop-blue); border-color: var(--hop-blue); color: var(--white); }

.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 16px 8px; }
.list-head h2 { margin: 0; font-size: 1.3em; color: var(--hop-navy); }
.list-head button { background: none; border: 0; padding: 0; font: 700 .9em/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--hop-blue); }

/* ---------- Hop card: sell at the top, detail lower, HopCast always at the bottom ---------- */
.hops { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
/* crop-mark corners (from the concept deck) */
.card::before, .card::after { content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  background: linear-gradient(var(--slate), var(--slate)) center / 1px 100% no-repeat, linear-gradient(var(--slate), var(--slate)) center / 100% 1px no-repeat; opacity: .55; }
.card::before { top: -7px; left: -7px; }
.card::after { bottom: -7px; right: -7px; }

.c-main { padding: 14px 16px 14px; }
.c-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.c-meta .k b { color: var(--ink); font-weight: 700; }
.tag { font: 700 .72em/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; white-space: nowrap; }
.tag.seats { background: var(--hop-navy); color: var(--white); }
.tag.crowd { background: var(--sky); color: var(--hop-blue); }

.leg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.leg .t { font: 700 2.15em/1 var(--display); color: var(--ink); letter-spacing: -.005em; }
.leg .t.sm { font-size: 1.55em; }
.leg .mid { text-align: center; position: relative; }
.leg .mid::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #c6cdd9; }
.leg .mid span { position: relative; background: var(--white); padding: 0 6px; font: 600 .75em/1 var(--display); letter-spacing: .08em; color: var(--slate); text-transform: uppercase; }
.places { display: flex; justify-content: space-between; margin-top: 4px; color: var(--slate); font-size: .92em; }
.places b { color: var(--ink); font-weight: 600; }

.sell { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sell .left { flex: 1; min-width: 0; }
.seatpill { display: inline-block; background: var(--sky); color: var(--hop-navy); font: 600 .85em/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 3px; }
.seatpill.last { background: #fff3d6; color: #6b4a00; }
.progress { height: 6px; background: var(--sky); border-radius: 3px; overflow: hidden; margin-top: 2px; }
.progress > span { display: block; height: 100%; background: var(--hop-blue); }
.crowdtxt { font: 600 .85em/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--hop-navy); margin-bottom: 6px; }
.crowdtxt span { color: var(--slate); }
.price { text-align: right; line-height: 1; }
.price small { display: block; font: 600 .68em/1 var(--display); letter-spacing: .1em; color: var(--slate); text-transform: uppercase; margin-bottom: 3px; }
.price b { font: 700 1.75em/1 var(--display); color: var(--ink); }
.member { margin-top: 8px; font-size: .82em; color: var(--slate); }
.member b { color: var(--hc-flying); }

/* HopCast strip — always the last row of a card */
.hc { display: flex; align-items: stretch; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: var(--mist); padding: 0; }
.hc .bar { width: 6px; flex: none; }
.hc .body { flex: 1; min-width: 0; padding: 9px 12px; display: flex; align-items: center; gap: 10px; }
.hc .lbl { flex: none; font: 700 .78em/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.hc .lbl small { display: block; color: var(--slate); font-weight: 600; font-size: .85em; }
.hc .why { flex: 1; min-width: 0; color: var(--slate); font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc .chev { color: var(--slate); padding-right: 12px; align-self: center; }

.empty { text-align: center; color: var(--slate); padding: 30px 16px; }
.foot { padding: 22px 16px 10px; color: var(--slate); font-size: .8em; }
.foot p { margin: 6px 0; }

/* Bottom tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app); z-index: 30;
          background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
          display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { background: none; border: 0; padding: 9px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px;
                 color: var(--slate); font: 600 .72em/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--hop-blue); }

/* Install banner */
.install { display: none; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; background: var(--white);
           border: 1px solid var(--line); border-radius: var(--r); }
.install.show { display: flex; }
.install img { width: 40px; height: 40px; border-radius: 9px; }
.install div { flex: 1; font-size: .88em; }
.install b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }

/* Bottom sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,14,20,.45); z-index: 40; display: none; }
.sheet-bg.open { display: block; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: var(--app); z-index: 50; background: var(--white);
         border-radius: 16px 16px 0 0; max-height: 88vh; overflow-y: auto; padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
         transform: translate(-50%, 105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sheet.open { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease; }
.sheet .grab { width: 44px; height: 5px; background: var(--line); border-radius: 3px; margin: 6px auto 12px; }
.sheet h3 { margin: 2px 0 4px; font-size: 1.6em; color: var(--hop-navy); }
.sheet p.lead { margin: 0 0 14px; color: var(--slate); }
.sheet .close { float: right; border: 0; background: var(--mist); width: 34px; height: 34px; border-radius: 50%; font-size: 1.05em; }

.tier { border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 14px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
.tier.pop { border-color: var(--hop-blue); background: var(--sky); }
.tier h4 { margin: 0; font: 700 1.2em/1.1 var(--display); text-transform: uppercase; color: var(--hop-navy); letter-spacing: .02em; }
.tier .tp { text-align: right; font: 700 1.25em/1 var(--display); color: var(--hop-navy); }
.tier .tp small { font: 500 .7em var(--font); color: var(--slate); }
.tier .for { color: var(--slate); font-size: .88em; }
.tier .seat { text-align: right; font-size: .85em; color: var(--hc-flying); font-weight: 700; }

.hc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hc-row .sw { width: 30px; height: 30px; border-radius: 6px; flex: none; }
.hc-row b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
.hc-row span { color: var(--slate); font-size: .9em; }
.hc-now { border-left: 6px solid; background: var(--mist); padding: 10px 12px; margin: 4px 0 14px; }
.hc-now b { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }

:focus-visible { outline: 3px solid var(--hc-touch); outline-offset: 2px; }

/* ---------- Desktop: widen the app, cards side by side, nav in the header ---------- */
.topnav { display: none; }
@media (min-width: 900px) {
  :root { --app: 1200px; }
  body { background: var(--mist); }
  .app { box-shadow: none; padding-bottom: 32px; }
  .top { padding: 14px 32px; }
  .top .logo { height: 30px; }
  .top nav.topnav { display: flex; gap: 4px; margin-left: 28px; }
  .topnav button { background: none; border: 0; padding: 8px 12px; border-radius: var(--r); font: 600 .95em/1 var(--display);
                   letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
  .topnav button[aria-current="page"] { color: var(--hop-blue); background: var(--sky); }
  .tabbar { display: none; }
  .hero { padding: 56px 32px 110px; }
  .hero h1 { font-size: 3.6em; }
  .hero p { font-size: 1.15em; }
  .cats { margin: -70px 32px 0; max-width: 760px; }
  .cat { padding: 18px 18px 16px; }
  .cat b { font-size: 1.45em; }
  .install { margin: 14px 32px 0; max-width: 760px; }
  .days { padding: 22px 32px 4px; }
  .routes { padding: 8px 32px 2px; }
  .list-head { padding: 24px 32px 10px; }
  .list-head h2 { font-size: 1.6em; }
  .hops { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px; padding: 0 32px; align-items: start; }
  .foot { padding: 28px 32px 10px; }
  /* sheets become centred dialogs */
  .sheet { max-width: 560px; bottom: auto; top: 50%; border-radius: 12px; transform: translate(-50%, -46%); opacity: 0;
           transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; transition: transform .2s ease, opacity .2s ease; }
  .sheet .grab { display: none; }
}
@media (min-width: 1400px) { :root { --app: 1320px; } }

.ok { color: var(--hc-flying); }
