/* My Trip Logbook website. Colours follow the app: road-sign navy, amber for work, sky blue for personal. */
@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 Semi Condensed'; src: url('fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #0f1f35;
  --night-2: #172e4d;
  --night-line: #26416a;
  --amber: #ffb23e;
  --amber-ink: #1a1204;
  --sky: #5cc8e8;
  --paper: #eef2f7;
  --white: #ffffff;
  --ink: #0f1b2b;
  --muted: #52627a;
  --rule: #d3dbe6;
  --on-night: #e9eef3;
  --on-night-muted: #a9b8cc;
  --amber-dark: #9a5b00;
  --head: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
h3 { font-size: 23px; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: 20px; line-height: 1.55; max-width: 36em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 600 18px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: #ffc160; }
.btn-line { border-color: var(--night-line); color: var(--on-night); }
.btn-line:hover { border-color: var(--on-night-muted); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.top { background: var(--night); color: var(--on-night); }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 20px/1 var(--head); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--on-night-muted); font-weight: 500; }
.nav a:hover { color: var(--on-night); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 16px; color: var(--amber-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero: the claim gauge from the app */
.hero { background: var(--night); color: var(--on-night); padding: 36px 0 84px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 9.5em; }
.hero .lede { color: var(--on-night-muted); margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; color: var(--on-night-muted); font-size: 15px; }
.gauge { position: relative; max-width: 460px; width: 100%; margin: 0 auto; text-align: center; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .amount { font: 700 clamp(48px, 7vw, 68px)/1 var(--head); margin-top: -18px; letter-spacing: -0.01em; }
.gauge .label { color: var(--on-night-muted); margin-top: 8px; }
.gauge .chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border-radius: 999px; padding: 5px 13px; font-weight: 600; font-size: 15px; }
.chip-amber { color: var(--amber); background: rgba(255, 178, 62, 0.12); border: 1px solid rgba(255, 178, 62, 0.35); }
.chip-plain { color: var(--on-night-muted); border: 1px solid var(--night-line); }
.road { stroke: var(--night-line); }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 64px; }
}

/* Sections */
section { padding: 88px 0; }
section > .wrap > h2 { max-width: 16em; }
.intro { margin-top: 16px; color: var(--muted); max-width: 40em; font-size: 19px; }

/* How it works: a real sequence, so the steps are numbered */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .phone { margin-bottom: 22px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 12px; border-radius: 50%; background: var(--night); color: var(--amber); font-size: 19px; vertical-align: 3px; }
.steps p { margin-top: 10px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 420px; } }

.phone { background: #0b1520; border-radius: 34px; padding: 10px; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px -18px rgba(15, 31, 53, 0.55); max-width: 320px; }
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; }

/* The logbook sheet */
.sheet-wrap { display: grid; grid-template-columns: minmax(280px, 0.7fr) 1.3fr; gap: 48px; align-items: start; margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { position: relative; padding-left: 32px; margin: 12px 0; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 16px; height: 9px; border-left: 3px solid var(--amber-dark); border-bottom: 3px solid var(--amber-dark); transform: rotate(-45deg); }
.sheet { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; overflow-x: auto; box-shadow: 0 20px 40px -30px rgba(15, 31, 53, 0.4); }
.sheet .head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 2px solid var(--ink); }
.sheet .head strong { font: 700 20px/1.2 var(--head); }
.sheet .head span { color: var(--muted); font-size: 15px; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 15px; }
.sheet th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.sheet td { padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet td.num, .sheet th.num { text-align: right; white-space: nowrap; }
.sheet td:first-child { white-space: nowrap; }
.sheet tr:last-child td { border-bottom: 0; }
.type { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.type.work { background: var(--amber); }
.type.personal { background: var(--sky); border-radius: 50%; }
.sheet .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 2px solid var(--ink); font-weight: 600; }
@media (max-width: 900px) { .sheet-wrap { grid-template-columns: 1fr; } }

/* Who it is for */
.who { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 56px 0; }
.who p { font: 600 clamp(24px, 3.2vw, 34px)/1.3 var(--head); max-width: 30em; }
.who p span { color: var(--muted); font-weight: 600; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; margin-top: 48px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--night); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin-top: 6px; }
.features-shot { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .features-shot { grid-template-columns: 1fr; } .features-shot .phone { display: none; } }

/* Private by design */
.private { background: var(--night); color: var(--on-night); }
.private .intro { color: var(--on-night-muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--night-line); }
.facts div { padding: 22px 24px 0 0; }
.facts strong { display: block; font: 600 22px/1.25 var(--head); }
.facts span { color: var(--on-night-muted); display: block; margin-top: 6px; }
.private a { color: var(--amber); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Price */
.price-card { margin-top: 40px; background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--amber); border-radius: 8px; padding: 28px 30px; max-width: 760px; }
.price-card h3 { font-size: 28px; }
.price-card p { margin-top: 12px; color: var(--muted); }
.price-card p:first-of-type { color: var(--ink); }

/* Questions */
.faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 21px/1.3 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 27px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 31px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }
.contact { margin-top: 36px; }
.contact a { color: var(--amber-dark); font-weight: 600; }

/* Footer */
footer { background: var(--night); color: var(--on-night-muted); padding: 48px 0; font-size: 15px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--on-night); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .small { margin-top: 24px; max-width: 52em; }

/* Text pages: privacy, terms, support */
.doc { background: var(--white); }
.doc main { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { color: var(--muted); margin: 10px 0 28px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { max-width: 40em; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc main a { color: var(--amber-dark); }

/* Contact form */
.contact-form { display: grid; gap: 8px; max-width: 560px; margin-top: 20px; }
.contact-form label { font-weight: 600; margin-top: 10px; }
.contact-form label span { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--rule); border-radius: 10px; padding: 12px 14px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--amber-dark); box-shadow: 0 0 0 3px rgba(255, 178, 62, 0.35); }
.contact-form .btn { justify-self: start; margin-top: 14px; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #a32a14; font-weight: 600; margin-top: 8px; }
.form-note { color: var(--muted); font-size: 15px; margin-top: 6px; }
.form-done { margin-top: 20px; max-width: 560px; background: var(--paper); border-left: 6px solid var(--amber); border-radius: 8px; padding: 20px 22px; }
.form-done h3 { font-size: 24px; }
.form-done p { margin-top: 8px; }
