/* Eurotrips — editorial road-trip ledger
   Warm paper, deep ink, brand orange. Fraunces (display) / Hanken Grotesk
   (body) / Space Mono (the honest numbers). */

:root {
  --paper:      #FBF6EC;
  --paper-2:    #F4EBD9;
  --paper-3:    #EEE2CB;
  --ink:        #1A2130;
  --ink-soft:   #545C6E;
  --ink-faint:  #8A8473;
  --accent:     #F08740;
  --accent-deep:#D5641F;
  --free:       #2E8C6A;
  --toll:       #C2553B;
  --line:       #E2D7C0;
  --line-soft:  #ECE3D2;

  --shadow-sm: 0 1px 2px rgba(26, 33, 48, .05);
  --shadow:    0 18px 50px -24px rgba(26, 33, 48, .32);
  --shadow-lg: 0 40px 90px -40px rgba(26, 33, 48, .42);

  --display: "Fraunces", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --maxw: 1140px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 18% -10%, rgba(240,135,64,.07), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(46,140,106,.05), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.display em { font-style: italic; color: var(--accent-deep); font-variation-settings: "opsz" 144; }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; }
.num { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .98rem;
  padding: .82em 1.35em; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(213,100,31,.7); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; }

/* App Store pill */
.store {
  display: inline-flex; align-items: center; gap: .7em;
  background: var(--ink); color: var(--paper);
  padding: .7em 1.25em; border-radius: 14px;
  transition: transform .18s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-sm);
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store .l1 { display:block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; line-height: 1; }
.store .l2 { display:block; font-family: var(--display); font-size: 1.15rem; line-height: 1.15; margin-top: 2px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(var(--paper), rgba(251,246,236,.78));
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; }
.brand .pin { width: 30px; height: 30px; flex: none; object-fit: contain; }
.nav .links { margin-left: auto; display: flex; gap: 1.6rem; align-items: center; }
.nav .links a { font-size: .92rem; color: var(--ink-soft); font-weight: 600; position: relative; }
.nav .links a:not(.btn):after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .22s ease; }
.nav .links a:not(.btn):hover { color: var(--ink); }
.nav .links a:not(.btn):hover:after { width: 100%; }
@media (max-width: 720px){ .nav .links a:not(.btn){ display:none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: .5rem 0 1.1rem; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-cta .note { font-size: .82rem; color: var(--ink-faint); }
.hero-bg-line { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }

/* signature: the receipt / ledger */
.receipt {
  background: linear-gradient(180deg, #fffdf8, var(--paper));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
  position: relative;
  transform: rotate(1.1deg);
  transition: transform .3s ease;
}
.receipt:hover { transform: rotate(0deg) translateY(-3px); }
.receipt:before, .receipt:after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background-size: 16px 9px; background-repeat: repeat-x;
}
.receipt:before { top: -8px; background-image: radial-gradient(circle at 8px 9px, transparent 7px, var(--paper) 7px); filter: drop-shadow(0 -1px 0 var(--line)); }
.receipt:after  { bottom: -8px; transform: scaleY(-1); background-image: radial-gradient(circle at 8px 9px, transparent 7px, var(--paper) 7px); filter: drop-shadow(0 -1px 0 var(--line)); }
.receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line); }
.receipt-route { font-family: var(--display); font-size: 1.32rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.receipt-route .arr { color: var(--accent); }
.receipt-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--free); border: 1px solid color-mix(in srgb, var(--free) 35%, transparent); padding: 3px 8px; border-radius: 999px; }
.routeline { margin: 14px 2px 6px; height: 26px; width: 100%; }
.ledger { list-style: none; margin: 6px 0 0; }
.ledger li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.ledger .lbl { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.ledger .cc { font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .05em; padding: 2px 5px; border-radius: 5px; background: var(--paper-3); color: var(--ink-soft); }
.ledger .cc.vig { background: color-mix(in srgb, var(--accent) 18%, var(--paper)); color: var(--accent-deep); }
.ledger .cc.km  { background: color-mix(in srgb, var(--toll) 16%, var(--paper)); color: var(--toll); }
.ledger .cc.fr  { background: color-mix(in srgb, var(--free) 16%, var(--paper)); color: var(--free); }
.ledger .dots { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-3px); }
.ledger .amt { font-family: var(--mono); font-size: .95rem; color: var(--ink); white-space: nowrap; }
.ledger .est { color: var(--ink-faint); font-size: .72rem; }
.receipt-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.receipt-total .t { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.receipt-total .v { font-family: var(--mono); font-weight: 700; font-size: 1.55rem; color: var(--accent-deep); }
.receipt-foot { font-size: .72rem; color: var(--ink-faint); margin-top: 12px; display: flex; align-items: center; gap: 6px; }

/* ---------- section frame ---------- */
section { padding: clamp(54px, 8vw, 100px) 0; }
.sec-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: .6rem 0 .7rem; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }
.rule { height: 1px; background: var(--line); border: 0; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (max-width: 720px){ .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--paper); padding: clamp(22px, 3vw, 34px); transition: background .25s ease; }
.feat:hover { background: #fffdf8; }
.feat .ix { font-family: var(--mono); font-size: .78rem; color: var(--accent-deep); letter-spacing: .1em; }
.feat h3 { font-size: 1.4rem; margin: 14px 0 8px; }
.feat p { color: var(--ink-soft); font-size: .98rem; }

/* two-route comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px){ .compare { grid-template-columns: 1fr; } }
.rcard { border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; background: #fffdf8; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.rcard.free { border-color: color-mix(in srgb, var(--free) 45%, var(--line)); }
.rcard .kind { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.rcard.free .kind { color: var(--free); }
.rcard .big { font-family: var(--mono); font-weight: 700; font-size: 2.4rem; margin: 6px 0 2px; }
.rcard.fast .big { color: var(--accent-deep); }
.rcard.free .big { color: var(--free); }
.rcard .meta { font-size: .88rem; color: var(--ink-soft); }
.rcard .bar { height: 5px; border-radius: 3px; margin-top: 16px; background: var(--paper-3); overflow: hidden; }
.rcard .bar span { display: block; height: 100%; border-radius: 3px; }
.rcard.fast .bar span { background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.rcard.free .bar span { background: linear-gradient(90deg, #5cbf9c, var(--free)); }
.save { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.save b { color: var(--free); }

/* coverage chips */
.cov { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: .82rem; font-weight: 700; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fffdf8; display: inline-flex; align-items: center; gap: 7px; transition: transform .15s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip i { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: .84rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }

/* trust band */
.band { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(34px, 5vw, 60px); position: relative; overflow: hidden; }
.band:after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 90% 10%, rgba(240,135,64,.22), transparent 40%); pointer-events:none; }
.band h2 { color: var(--paper); font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 18ch; }
.band p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 52ch; margin-top: 1rem; font-size: 1.06rem; }
.band .pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
@media (max-width: 720px){ .band .pts { grid-template-columns: 1fr; } }
.band .pt strong { font-family: var(--display); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.band .pt span { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: .94rem; }

/* final cta */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 16ch; margin: 0 auto 1.4rem; }
.final .lead { margin: 0 auto 2rem; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 46px 0 56px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.foot .brand { font-size: 1.2rem; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: .92rem; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--accent-deep); }
.foot .fine { width: 100%; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- document (privacy) ---------- */
.doc { max-width: 720px; margin-inline: auto; padding: clamp(40px,6vw,72px) 0; }
.doc .eyebrow { display:block; margin-bottom: 12px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .4rem; }
.doc .meta { color: var(--ink-faint); font-size: .9rem; margin-bottom: 8px; font-family: var(--mono); }
.doc .tldr { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 26px 0 8px; }
.doc .tldr strong { font-family: var(--display); }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.doc h2 .n { font-family: var(--mono); font-size: .9rem; color: var(--accent-deep); margin-right: 10px; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent-deep); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.doc strong { color: var(--ink); }

/* ---------- motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
[data-delay="1"] { animation-delay: .08s; }
[data-delay="2"] { animation-delay: .16s; }
[data-delay="3"] { animation-delay: .24s; }
[data-delay="4"] { animation-delay: .32s; }
[data-delay="5"] { animation-delay: .40s; }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.in { animation: drawline 1.5s ease forwards .2s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; }
  .draw { stroke-dashoffset: 0; }
}
