/* HopWit website — colours match mobile/src/lib/theme.ts */
:root {
  --navy: #23354C;
  --orange: #FF5F2E;
  --cream: #F8E6C8;
  --cream-light: #FDF6EA;
  --white: #FFFFFF;
  --text: #1B2636;
  --muted: #6B7686;
  --line: #E6E1D8;
  --success: #2E8B57;
  --danger: #C8372D;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream-light); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* header */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); }
.nav a:hover { color: var(--orange); }

/* buttons + store badges */
.btn { display: inline-block; background: var(--orange); color: var(--white); font-weight: 600; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 0; font-size: 16px; cursor: pointer; }
.btn:hover { color: var(--white); filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.store { display: inline-flex; flex-direction: column; background: var(--navy); color: var(--white); text-decoration: none; padding: 9px 20px; border-radius: 12px; font-weight: 700; font-size: 18px; line-height: 1.15; min-width: 160px; }
.store small { font-weight: 500; font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.store:hover { color: var(--white); }
.store.soon { background: transparent; color: var(--navy); border: 2px dashed var(--navy); }

/* hero */
.hero { background: var(--cream); padding: 56px 0 64px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
@media (max-width: 820px) { .hero-in { grid-template-columns: 1fr; } .hero { padding: 36px 0 48px; } }

/* phone mock (pure HTML, mirrors the app's "Just landed" + trip card screens) */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--navy); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(35,53,76,.25); }
.screen { background: var(--cream-light); border-radius: 34px; padding: 18px 14px 22px; min-height: 520px; }
.notch { width: 90px; height: 22px; background: var(--navy); border-radius: 0 0 14px 14px; margin: -18px auto 14px; }
.alert { background: var(--white); border-radius: 18px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.08); font-size: 14px; line-height: 1.4; margin-bottom: 14px; }
.alert b { display: block; color: var(--navy); }
.alert .app { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.alert .app img { width: 16px; height: 16px; border-radius: 4px; }
.trip { background: var(--navy); color: var(--white); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.trip .route { display: flex; justify-content: space-between; align-items: center; font-size: 28px; font-weight: 700; }
.trip .route span { color: var(--orange); font-size: 20px; }
.trip .meta { display: flex; justify-content: space-between; font-size: 12px; opacity: .85; margin-top: 6px; }
.trip .status { display: inline-block; background: var(--success); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 10px; }
.mini { background: var(--white); border-radius: 14px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; border: 1px solid var(--line); }
.dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 12px; flex: none; }

/* sections */
.section { padding: 56px 0; }
.section.alt { background: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section.alt .card { background: var(--cream-light); }
.card h3 { margin-top: 0; }
.icon { font-size: 26px; margin-bottom: 8px; display: block; }
.badge { display: inline-block; background: var(--cream); color: var(--navy); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 700; margin-bottom: 10px; }
.cta { background: var(--navy); color: var(--white); border-radius: 28px; padding: 40px 28px; text-align: center; }
.cta h2 { color: var(--white); margin-top: 0; }
.cta .stores { justify-content: center; }
.cta .store { background: var(--orange); }
.cta .store.soon { background: transparent; color: var(--white); border-color: var(--white); }

/* documents (privacy, terms, help…) */
.doc { padding: 40px 0 64px; }
.doc h1 { margin-bottom: .2em; }
.doc .updated { color: var(--muted); margin-bottom: 2em; }
.doc h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 2em; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }
.note { background: var(--cream); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 1.2em 0; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 2em; }
.summary h2 { border: 0; padding: 0; margin-top: 0; font-size: 1.2rem; }
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; background: var(--white); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--cream); color: var(--navy); }
.table-scroll { overflow-x: auto; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* footer */
.foot { background: var(--navy); color: var(--white); padding: 40px 0 24px; margin-top: 0; }
.foot a { color: var(--white); text-decoration: none; display: block; margin-bottom: 8px; font-size: 15px; }
.foot a:hover { color: var(--orange); }
.foot .muted { color: rgba(255,255,255,.7); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-in img { border-radius: 10px; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; font-size: 14px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* v0.4 additions */
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; color: #fff; }
.brand img { height: 44px; width: auto; }
h2.first { margin-top: 0; }
h3.sub { margin-top: 2em; font-size: 1.25rem; }
h4 { color: var(--navy); font-size: 1.05rem; margin: 0 0 .4em; line-height: 1.25; }
.small { font-size: 15px; }
.steps h3 { margin-top: 0; }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card p:last-child { margin-bottom: 0; }
.foot-h { color: rgba(255,255,255,.6); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.foot-logo { height: 46px; width: auto; display: block; margin-bottom: 10px; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-in { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .brand img { height: 36px; }
  .nav { gap: 14px; width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 0; }
  .hero { padding: 28px 0 40px; }
  .section { padding: 40px 0; }
  .card { padding: 18px; }
  .store { min-width: 0; flex: 1 1 140px; }
  .cta { padding: 28px 18px; border-radius: 22px; }
  .phone { width: 270px; }
  .screen { min-height: 470px; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
