/* Rally Tripmeter — website
   Vintage rally-dashboard stijl: verweerd crème papier, rode emaille knoppen,
   donkerblauwe illustratie, schroeven in de hoeken. */

:root {
  --cream: #efe3c6;
  --cream-text: #f3e8cf;
  --paper-ink: #1d1a16;
  --ink-soft: #3b342b;
  --red: #b3191e;
  --red-dark: #8c1216;
  --navy: #142a40;
  --charcoal: #1d1f1e;
  --rule: rgba(90, 74, 52, 0.35);
  --font: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.45;
  color: var(--paper-ink);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* ------------------------------------------------------------------ */
/* Papier en schroeven                                                  */

.paper {
  background:
    linear-gradient(rgba(242, 231, 205, .55), rgba(242, 231, 205, .55)),
    var(--cream) url("../img/paper.jpg") center / cover;
}
.screw {
  position: absolute;
  width: 34px; height: 34px;
  background: url("../img/screw.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.screw.tl { top: 14px; left: 14px; }
.screw.tr { top: 14px; right: 14px; }
.screw.bl { bottom: 14px; left: 14px; }
.screw.br { bottom: 14px; right: 14px; }

/* Verweerde koppen: slijtagemasker over de letters. */
.worn {
  -webkit-mask-image: url("../img/grunge.png");
  mask-image: url("../img/grunge.png");
  -webkit-mask-size: 340px; mask-size: 340px;
}

/* ------------------------------------------------------------------ */
/* Kop                                                                  */

.site-header {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 78px; padding: 0 74px;
  max-width: none;
}
.logo { flex: 0 0 auto; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; margin-right: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 16px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--paper-ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }

/* Rode emaille plaatknop. */
.btn-plate {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--red) url("../img/plate-red.png") center / 100% 100%;
  color: var(--cream-text); text-decoration: none;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 3px 6px rgba(0,0,0,.35);
  transition: filter .15s, transform .15s;
}
.btn-plate:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-download { font-size: 19px; padding: 11px 26px; }

.menu-toggle, .menu-button { display: none; }

/* ------------------------------------------------------------------ */
/* Hero                                                                 */

.hero {
  position: relative; overflow: hidden;
  background: #2a1d14 url("../img/hero.jpg") center right / cover no-repeat;
  color: var(--cream-text);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,10,7,.82) 0%, rgba(14,10,7,.6) 38%, rgba(14,10,7,.08) 62%, rgba(0,0,0,0) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 600px) 262px; justify-content: space-between;
  gap: 40px; align-items: center; max-width: none;
  min-height: 560px; padding: 0 157px 0 95px;
}
.hero-copy { position: relative; }
.kicker { font-size: 38px; font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase; margin: 0; }
.hero h1 {
  margin: 4px 0 0; font-weight: 800; text-transform: uppercase; line-height: .9;
  font-size: clamp(52px, 7.4vw, 88px); letter-spacing: -.005em;
}
.hero h1 .red { display: block; color: #cf2a22; font-size: .62em; margin-top: 10px; letter-spacing: .005em; }
.hero p.lead { font-size: 21px; line-height: 1.3; max-width: 600px; margin: 18px 0 24px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.btn-store { padding: 12px 26px 12px 20px; text-transform: none; letter-spacing: 0; text-align: left; }
.btn-store svg { width: 42px; height: 42px; flex: none; }
.btn-store small { display: block; font-size: 15px; font-weight: 600; line-height: 1.1; }
.btn-store strong { display: block; font-size: 27px; line-height: 1; font-weight: 700; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; min-height: 62px;
  color: var(--cream-text); text-decoration: none; font-size: 22px; font-weight: 600;
  border: 2px solid rgba(243,232,207,.85); border-radius: 8px; background: rgba(10,8,6,.45);
}
.btn-outline:hover { background: rgba(10,8,6,.65); }
.checks { display: flex; gap: 34px; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; font-size: 19px; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.checks svg { width: 28px; height: 28px; flex: none; }

/* Telefoon met een echte schermafbeelding van de app.
   Het scherm heeft exact de verhouding van de schermafbeelding (1320 × 2868);
   de behuizing is een rand eromheen, zodat er niets afgesneden wordt. */
.phone {
  position: relative; width: 100%;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #555 0%, #161616 30%, #2c2c2c 65%, #0a0a0a 100%);
  box-shadow: 0 0 0 1.5px #777, 0 25px 50px rgba(0,0,0,.55), inset 0 0 4px rgba(255,255,255,.3);
}
.phone .screen {
  position: relative; aspect-ratio: 1320 / 2868; overflow: hidden;
  border-radius: 37px; background: #000;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone { padding: 8px; border-radius: 34px; }
.phones .phone .screen { border-radius: 27px; }
.hero .phone { justify-self: end; max-width: 250px; margin: 24px 0; }

/* ------------------------------------------------------------------ */
/* Kenmerken (crème stroken)                                            */

.features { position: relative; }
.features .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 70px 24px; max-width: none;
}
.feature { text-align: center; padding: 0 16px; border-left: 1px solid var(--rule); }
.feature:first-child { border-left: 0; }
.feature svg { width: 62px; height: 62px; margin: 0 auto 12px; color: var(--red); }
.feature h3, .feature-row h3 {
  margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.feature p, .feature-row p { margin: 0; font-size: 16.5px; line-height: 1.3; color: var(--ink-soft); }

.features.compact .grid { padding: 22px 60px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 6px 18px; border-left: 1px solid var(--rule); }
.feature-row:first-child { border-left: 0; }
.feature-row svg { width: 44px; height: 44px; flex: none; color: var(--red); }
.feature-row h3 { font-size: 19px; }
.feature-row p { font-size: 14.5px; }

/* ------------------------------------------------------------------ */
/* Blauwe sectie                                                        */

.why {
  position: relative; overflow: hidden; color: var(--cream-text);
  background: var(--navy) url("../img/blue.jpg") right bottom / cover no-repeat;
}
.why::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,26,40,.15) 0%, rgba(12,26,40,.3) 50%, rgba(12,26,40,.35) 75%, rgba(12,26,40,0) 100%);
}
.why .wrap {
  display: grid; grid-template-columns: 430px 360px; gap: 40px; align-items: center;
  max-width: none; padding: 18px 0 18px 110px; min-height: 405px;
}
.phones { display: flex; gap: 66px; justify-content: flex-start; position: relative; }
.phones .phone { max-width: 182px; }
.why-copy { position: relative; }
.eyebrow { color: #e0392d; font-weight: 700; font-size: 17px; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.why h2 { margin: 2px 0 12px; font-weight: 800; font-size: clamp(38px, 4.4vw, 50px); white-space: nowrap; line-height: .92; text-transform: uppercase; }
.why h2 .red { color: #d22b22; display: block; }
.why p.lead { font-size: 17.5px; line-height: 1.35; margin: 0 0 16px; }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why li { display: flex; gap: 18px; align-items: center; }
.why li .badge {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--red); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.4);
}
.why li .badge svg { width: 26px; height: 26px; color: var(--cream-text); }
.why li strong { display: block; font-size: 18px; font-weight: 700; }
.why li span.d { font-size: 15px; opacity: .88; }

/* ------------------------------------------------------------------ */
/* Voet                                                                 */

.site-footer {
  position: relative; color: var(--cream-text);
  background: var(--charcoal) url("../img/dark.jpg") center / cover;
}
.site-footer .wrap { display: flex; align-items: center; gap: 40px; min-height: 88px; padding: 10px 70px; max-width: none; }
.site-footer .logo img { height: 40px; }
.footer-nav { display: flex; gap: 48px; margin: 0 auto; }
.footer-nav a { text-decoration: none; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 16px; }
.footer-nav a:hover { color: #e0392d; }
.tagline { display: flex; align-items: center; gap: 18px; font-size: 16px; line-height: 1.3; max-width: 260px; }
.tagline svg { width: 70px; height: 34px; flex: none; color: var(--cream-text); }
.legal { text-align: center; font-size: 13px; opacity: .55; padding: 0 24px 14px; margin: 0; position: relative; }

/* ------------------------------------------------------------------ */
/* Tekstpagina's (privacy, support)                                     */

.page-hero {
  position: relative; color: var(--cream-text); text-align: center;
  background: var(--navy) url("../img/blue.jpg") center / cover;
  padding: 70px 24px 60px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(12,26,40,.55); }
.page-hero > * { position: relative; }
.page-hero h1 { margin: 6px 0 0; font-size: clamp(44px, 6vw, 72px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.page-hero p { margin: 14px auto 0; max-width: 620px; font-size: 21px; }

.content { padding: 56px 0 70px; }
.card {
  max-width: 820px; margin: 0 auto 26px; padding: 34px 40px;
  background: rgba(255, 250, 238, .55);
  border: 1px solid rgba(90,74,52,.35); border-radius: 12px;
  box-shadow: 0 2px 0 rgba(255,255,255,.4) inset, 0 4px 14px rgba(60,40,20,.15);
  position: relative;
}
.card h2 { margin: 0 0 10px; font-size: 26px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.card h3 { margin: 22px 0 4px; font-size: 21px; font-weight: 700; }
.card p, .card li { font-size: 19px; color: var(--ink-soft); }
.card p { margin: 0 0 12px; }
.card a { color: var(--red); font-weight: 600; }
.card a.btn-plate { color: var(--cream-text); text-transform: none; letter-spacing: .02em; }
.updated { text-align: center; color: var(--ink-soft); font-size: 16px; margin: 0 0 26px; }
.contact-box { text-align: center; }
.contact-box .btn-plate { font-size: 22px; padding: 14px 34px; margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Kleinere schermen                                                    */

@media (max-width: 1060px) {
  .site-header .wrap, .site-footer .wrap { padding: 0 64px; }
  .nav { gap: 22px; }
  .hero .wrap { grid-template-columns: 1fr 240px; padding: 30px 48px; }
  .features .grid, .features.compact .grid { padding-left: 32px; padding-right: 32px; }
  .why .wrap { padding: 40px 48px; justify-content: center; }
  .why { background-size: cover; }
  .why h2 { white-space: normal; }
  .why-copy { max-width: 560px; }
  .features .grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .feature:nth-child(3), .feature-row:nth-child(3) { border-left: 0; }
  .why .wrap { grid-template-columns: 1fr; }
  .phones { order: 2; justify-content: center; }
}

@media (max-width: 820px) {
  body { font-size: 18px; }
  .site-header .wrap { height: 66px; padding: 0 56px; gap: 14px; }
  .logo img { height: 38px; }
  .btn-download { display: none; }
  .menu-button { display: block; margin-left: auto; cursor: pointer; width: 34px; height: 26px; position: relative; }
  .menu-button span, .menu-button::before, .menu-button::after {
    content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--paper-ink); border-radius: 2px;
  }
  .menu-button::before { top: 2px; } .menu-button span { top: 11px; } .menu-button::after { top: 20px; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream) url("../img/paper.jpg") center / cover; box-shadow: 0 6px 12px rgba(0,0,0,.35);
  }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--rule); }
  .menu-toggle:checked ~ .nav { display: flex; }
  .screw { width: 26px; height: 26px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding: 44px 24px; }
  .features .grid, .features.compact .grid { padding: 30px 24px; }
  .why .wrap { padding: 40px 24px; }
  .phones { gap: 18px; justify-content: center; }
  .hero .phone { justify-self: center; max-width: 250px; }
  .kicker { font-size: 28px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 64px); }
  .hero p.lead { font-size: 18px; }
  .hero p.lead br { display: none; }
  .checks { gap: 14px 24px; font-size: 17px; }
  .btn-store strong { font-size: 24px; }
  .btn-outline { min-height: 58px; font-size: 19px; padding: 0 22px; }
  .why h2 { font-size: clamp(34px, 9vw, 48px); }
  .feature br { display: none; }
  .features .grid { grid-template-columns: 1fr; }
  .feature, .feature-row { border-left: 0; border-top: 1px solid var(--rule); padding-top: 26px; }
  .feature:first-child, .feature-row:first-child { border-top: 0; padding-top: 0; }
  .phones .phone { max-width: 46%; }
  .site-footer .wrap { flex-direction: column; gap: 22px; padding: 34px 24px; text-align: center; }
  .footer-nav { gap: 26px; flex-wrap: wrap; justify-content: center; }
  .card { padding: 26px 22px; }
}

/* ------------------------------------------------------------------ */
/* How it works                                                         */

.steps-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  max-width: 980px; margin: 0 auto 10px; padding: 0 24px;
}
.steps-nav a {
  text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(90,74,52,.45); background: rgba(255,250,238,.5);
}
.steps-nav a:hover { color: var(--red); border-color: var(--red); }

.step {
  display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 48px 24px;
  border-bottom: 1px solid var(--rule);
}
.step:last-of-type { border-bottom: 0; }
.step.flip { grid-template-columns: 1fr 250px; }
.step.flip .step-media { order: 2; }
.step-media { display: flex; justify-content: center; gap: 18px; }
.step-media .phone { max-width: 250px; }
.step-media.pair { gap: 16px; }
.step-media.pair .phone { max-width: 190px; padding: 8px; border-radius: 34px; }
.step-media.pair .phone .screen { border-radius: 27px; }
.step.wide { grid-template-columns: 400px 1fr; }
.step.wide.flip { grid-template-columns: 1fr 400px; }

.step-num {
  display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px;
  background: var(--red) url("../img/plate-red.png") center / 100% 100%;
  color: var(--cream-text); font-size: 28px; font-weight: 800; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 3px 6px rgba(0,0,0,.3);
}
.step h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.step p { margin: 0 0 12px; font-size: 19px; color: var(--ink-soft); }
.step ul { margin: 6px 0 12px; padding-left: 22px; }
.step li { font-size: 18px; color: var(--ink-soft); margin: 4px 0; }
.step strong { color: var(--paper-ink); }
.tip {
  margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--red);
  background: rgba(255,250,238,.6); border-radius: 0 8px 8px 0; font-size: 17px; color: var(--ink-soft);
}
.tip b { color: var(--red); letter-spacing: .06em; text-transform: uppercase; font-size: 15px; margin-right: 6px; }
.caption { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 8px; letter-spacing: .04em; text-transform: uppercase; }

.cta-band {
  position: relative; text-align: center; color: var(--cream-text);
  background: var(--navy) url("../img/blue.jpg") center / cover; padding: 56px 24px;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(12,26,40,.55); }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 46px); font-weight: 800; text-transform: uppercase; }
.cta-band .hero-actions { justify-content: center; }

@media (max-width: 820px) {
  .step, .step.flip, .step.wide, .step.wide.flip { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px; }
  .step.flip .step-media { order: 0; }
  .step-media .phone { max-width: 230px; }
  .step-media.pair .phone { max-width: 46%; }
}
