/* Arrow Fleets website: home, changelog, roadmap. Same look as the app: white and light blue, one main blue #2563EB. Light only. */
:root {
  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 24px; --press: #E8EEF8;
  --blue: #2563EB; --blue-d: #1D4ED8; --sky: #60A5FA; --grad: linear-gradient(135deg, #1D4ED8, #3B82F6); --tint: #EFF6FF; --tint-2: #DBEAFE;
  --bg: #F4F7FD; --card: #fff; --soft: #EFF6FF; --ink: #12213F; --muted: #5F6E88; --line: #E6ECF5;
  --new-bg: #E7F1FF; --new: #1D4ED8; --better-bg: #F1EAFE; --better: #6D28D9; --safer-bg: #E4F6EC; --safer: #15803D; --fixed-bg: #FFF2DC; --fixed: #B45309;
  --shadow: 0 1px 2px rgba(18, 33, 63, .04), 0 14px 36px -14px rgba(29, 78, 216, .18);
  color-scheme: light;
}
/* W1 · the brand font, Inter, like the app (the build copies the same woff2 files the app ships) */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter/inter-latin-800-normal.woff2') format('woff2'); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Color Emoji', sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; border-radius: var(--r-2); }
h1, h2 { letter-spacing: -.02em; line-height: 1.15; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 840px; }
.logo { display: inline-block; }
.logo img { width: 150px; height: auto; }

/* The soft blue glow behind the top of each page */
.glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow::before, .glow::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; }
.glow::before { width: 620px; height: 620px; left: 50%; top: -340px; transform: translateX(-50%); background: radial-gradient(circle, #DBEAFE 0%, transparent 70%); }
.glow::after { width: 420px; height: 420px; right: -160px; bottom: -220px; background: radial-gradient(circle, #E3EEFF 0%, transparent 70%); opacity: .8; }

/* Home: one light page */
body.home { background: var(--bg); color: var(--ink); }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px 24px; background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--bg) 70%); isolation: isolate; }
.hero .glow { z-index: -1; }
.hero .logo img { width: 176px; }
.hero .center { flex: 1; width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--blue-d); background: var(--tint); border: 1px solid var(--tint-2); transition: background .2s; }
.chip:hover { background: var(--tint-2); }
.hero h1 { font-size: clamp(34px, 7vw, 56px); margin: 22px 0 14px; font-weight: 800; color: var(--ink); }
.hero .sub { margin: 0 0 34px; font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 52ch; }
.actions { display: grid; gap: 14px; width: 100%; }
.big { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-3); text-decoration: none; text-align: left; color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.big:hover { transform: translateY(-2px); border-color: var(--tint-2); box-shadow: 0 1px 2px rgba(18, 33, 63, .04), 0 20px 40px -16px rgba(29, 78, 216, .28); }
.big .e { flex: none; width: 50px; height: 50px; display: grid; place-items: center; font-size: 26px; border-radius: var(--r-2); background: var(--tint); }
.big .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.big b { font-size: 18px; line-height: 1.3; }
.big small { font-size: 14px; color: var(--muted); }
.big .arrow { flex: none; font-size: 20px; opacity: .6; transition: transform .2s, opacity .2s; }
.big:hover .arrow { transform: translateX(3px); opacity: 1; }
.big.primary { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 16px 40px -12px rgba(29, 78, 216, .6); }
.big.primary:hover { border-color: transparent; box-shadow: 0 20px 48px -12px rgba(29, 78, 216, .7); }
.big.primary .e { background: rgba(255, 255, 255, .18); }
.big.primary small { color: rgba(255, 255, 255, .88); }
.big.primary .arrow { opacity: .9; }
body.home .foot { position: absolute; left: 0; right: 0; bottom: 0; color: var(--muted); border: 0; }

/* Changelog and roadmap: light band on top */
.band { position: relative; text-align: center; color: var(--ink); padding: 28px 0 48px; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, var(--bg) 75%); border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.band .glow { z-index: -1; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 22px auto 0; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* W2 · page tabs are 44px tall */
.tabs a { padding: 11px 14px; line-height: 1.6; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); transition: background .2s, color .2s; }
.tabs a:hover { color: var(--blue-d); background: var(--tint); }
.tabs a[aria-current="page"] { color: var(--blue-d); background: var(--tint); }
.tabs a.login { color: #fff; background: var(--blue); }
.tabs a.login:hover { background: var(--blue-d); }
.kicker { margin: 40px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.band h1 { margin: 0 0 12px; font-size: clamp(32px, 6vw, 52px); font-weight: 800; }
.band .lead { margin: 0 auto; max-width: 56ch; font-size: 18px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 600px; margin: 32px auto 0; }
.stats div { display: flex; flex-direction: column-reverse; padding: 16px 10px; border-radius: var(--r-3); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stats dd { margin: 0; font-size: clamp(28px, 6vw, 38px); font-weight: 800; line-height: 1.1; color: var(--blue); }
.stats dt { margin-top: 4px; font-size: 13px; color: var(--muted); }

.progress { max-width: 620px; margin: 32px auto 0; padding: 20px 22px 22px; border-radius: var(--r-3); text-align: left; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.progress .pct { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.progress b { font-size: clamp(40px, 8vw, 54px); font-weight: 800; line-height: 1; color: var(--blue); }
.progress span { font-size: 17px; color: var(--muted); }
.track { height: 14px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-d), var(--sky)); }

main.narrow { padding-top: 32px; padding-bottom: 48px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0 0 32px; font-size: 14px; color: var(--muted); }

/* Tags */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.tag.new { background: var(--new-bg); color: var(--new); }
.tag.better { background: var(--better-bg); color: var(--better); }
.tag.safer { background: var(--safer-bg); color: var(--safer); }
.tag.fixed { background: var(--fixed-bg); color: var(--fixed); }

/* Cards */
.card, .phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
.card { padding: 20px 20px 6px; }
.card h2, .phase h2 { margin: 0; font-size: 21px; }
.card ul, .phase ul { list-style: none; margin: 0; padding: 0; }
.card li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.card h2 + ul li:first-child { margin-top: 12px; }
.card li .e, .phase li .e { font-size: 21px; line-height: 1.35; text-align: center; }
.card li p, .phase li p { margin: 0; }
.card li .tag { margin-top: 2px; }

/* Changelog timeline */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--blue), var(--sky) 30%, var(--line)); }
.day { position: relative; padding-left: 30px; margin-bottom: 28px; }
.day::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--blue); }
.day:first-child::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(37, 99, 235, .18); }
.when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.when time { font-weight: 800; font-size: 17px; }
.when span { font-size: 14px; color: var(--muted); }

/* Roadmap */
.phases { display: grid; gap: 18px; }
.phase { padding: 20px; }
.ph-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ph-e { flex: none; width: 50px; height: 50px; display: grid; place-items: center; font-size: 26px; border-radius: var(--r-2); background: var(--soft); }
.ph-head > div { flex: 1; min-width: 150px; }
.ph-n { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); }
.phase.done .badge { background: var(--safer-bg); color: var(--safer); }
.phase.next .badge { background: var(--new-bg); color: var(--new); }
.phase.now { border: 2px solid var(--blue); box-shadow: 0 0 0 6px rgba(37, 99, 235, .1), var(--shadow); }
.phase.now .badge { background: var(--grad); color: #fff; }
.goal { margin: 14px 0 8px; color: var(--muted); }
.phase li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px dashed var(--line); }
.phase li .e { font-size: 18px; line-height: 1.5; }
.phase li.todo p { color: var(--muted); }
.phase li.doing p { font-weight: 600; }

.foot { padding: 24px 16px; text-align: center; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

@media (min-width: 760px) {
  .timeline::before { left: 167px; }
  .day { display: grid; grid-template-columns: 140px 1fr; gap: 0 40px; padding-left: 0; }
  .day::before { left: 160px; }
  .when { position: sticky; top: 20px; align-self: start; flex-direction: column; align-items: flex-end; gap: 0; margin: 0; padding-top: 1px; text-align: right; }
  .card { padding: 24px 26px 8px; }
  .phase { padding: 24px 26px; }
}
@media (max-width: 520px) {
  .card li { grid-template-columns: 30px 1fr; }
  .card li .tag { grid-column: 2; justify-self: start; }
  .stats { gap: 8px; }
  .stats dt { font-size: 12px; }
  .big { gap: 12px; padding: 14px; }
  .big .e { width: 44px; height: 44px; font-size: 22px; }
  .big b { font-size: 17px; }
  /* W4 · phone: one 16px inset in cards, items keep one left edge */
  .card { padding: 16px 16px 4px; }
  .phase { padding: 16px; }
  .card li { grid-template-columns: 28px 1fr; gap: 4px 10px; }
  .band { padding: 24px 0 40px; }
  .kicker { margin-top: 32px; }
  .stats div { padding: 14px 8px; }
  .progress { padding: 16px 18px 18px; }
}
/* the same pressed look as the app: a shade darker the moment a finger lands, 2% smaller for buttons */
html { -webkit-tap-highlight-color: transparent; }
.big:active { transform: scale(.98); background: var(--press); transition-duration: .08s; }
.big.primary:active { background: var(--blue-d); filter: brightness(.95); }
.chip:active, .tabs a:active { background: var(--tint-2); transform: scale(.98); }
.tabs a.login:active { background: var(--blue-d); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .big:active, .chip:active, .tabs a:active { transform: none; } }
