/* Caryelo website. Light page, ink header, parrot green as a fill only. Rules: docs/DESIGN.md and brand/tokens.json.
   Type: 400 for reading, 500 for labels, 600 for headings. 800 italic is only the wordmark. */
:root {
  --parrot: #C8FF2E;
  --ink: #0E0E0E;
  --paper: #FFFFFF;
  --green: #2F7D00;
  --green-soft: #EAF6DC;
  --bg: #F7F8F4;
  --soft: #ECEEE7;
  --line: #DFE2D8;
  --text: #141414;
  --muted: #6A6F64;
  --amber: #9A5B00;
  --amber-soft: #FFF1D6;
  --blue: #1D5FD1;
  --blue-soft: #E4EDFD;
  --card: #FFFFFF;      /* surfaces: hero, cards, FAQ. --paper stays white (text on ink, logo circles). */
  --line-strong: #CDD1C4;
  --faint: #B9BEAE;
  --convoy: #C9CDBF;
  --chrome-line: transparent;
  --shadow: rgba(14, 14, 14, .08);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Dark mode: designed, not inverted (docs/DESIGN.md, "Dark mode"). Warm near-black page, cards one step lighter,
   state colours as light text on deep tinted fills. Parrot, ink, paper and other companies' logos never change. */
:root[data-theme="dark"] {
  --green: #B0E64C;
  --green-soft: #1F2B12;
  --bg: #111310;
  --soft: #252822;
  --line: #30342C;
  --text: #ECEEE7;
  --muted: #A0A699;
  --amber: #F3BE52;
  --amber-soft: #33280F;
  --blue: #8DB2FF;
  --blue-soft: #18233C;
  --card: #1A1C18;
  --line-strong: #4A4F44;
  --faint: #5D6356;
  --convoy: #3E4339;
  --chrome-line: #262923;
  --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html.theme-fade, html.theme-fade * { transition: background-color .28s ease, border-color .28s ease, color .28s ease !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }
small { font-size: inherit; }
i { font-style: normal; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Line icons and the car symbol share one stroke style. */
.icon, .car { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon { width: 20px; height: 20px; stroke-width: 1.7; }
.car { width: 44px; height: 18px; stroke-width: 4; }

h1 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.22; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--chrome-line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.nav { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--parrot); font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: -0.03em; }
.brand .car { width: 34px; height: 14px; stroke-width: 5; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { font-size: 14px; color: rgba(255, 255, 255, .72); transition: color .2s; }
.nav nav a:hover { color: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-sm:hover .icon { transform: none; }
.btn-accent { background: var(--parrot); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

/* Hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 500; margin-bottom: 18px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-in-out infinite; }
.lead { margin-top: 14px; max-width: 500px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { width: 18px; height: 18px; color: var(--green); }

/* The phone shows the app as it looks today: light page, ink top bar. */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 272px; border-radius: 34px; background: var(--ink); padding: 8px; box-shadow: 0 24px 48px rgba(14, 14, 14, .16); animation: floaty 7s ease-in-out infinite; }
.phone-top { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; color: var(--parrot); font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: -0.03em; }
.phone-top .car { width: 26px; height: 11px; stroke-width: 5; }
.phone-body { background: var(--bg); border-radius: 0 0 27px 27px; padding: 12px 10px 10px; display: grid; gap: 8px; font-size: 12px; }
.phone-loc { display: flex; align-items: center; gap: 5px; }
.phone-loc .icon { width: 15px; height: 15px; color: var(--green); }
.phone-loc span { color: var(--muted); margin-left: auto; }
.phone-loc .icon:last-child { color: var(--muted); width: 13px; height: 13px; }
.phone-search { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.phone-search .icon { width: 15px; height: 15px; }
.phone-banner { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; background: var(--parrot); color: var(--ink); line-height: 1.35; }
.phone-banner b { display: block; font-size: 13px; }
.phone-banner .car { width: 58px; height: 23px; stroke-width: 3.2; }
.mini-car { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--card); }
.thumb { display: grid; place-items: center; width: 44px; height: 32px; border-radius: 8px; background: var(--bg); color: var(--green); }
.thumb .car { width: 32px; height: 13px; }
.thumb .car-photo { width: 42px; height: auto; }
.car-photo { display: block; object-fit: contain; }
.fleet-art.photos { gap: 0; padding: 8px 8px 10px; }
.fleet-art.photos .car-photo { flex: 0 1 32%; width: 32%; min-width: 0; max-width: 150px; height: auto; transition: transform .5s var(--ease); }
.fleet-art.two.photos .car-photo { flex-basis: 48%; width: 48%; max-width: 170px; }
.mini-text { display: grid; flex: 1; line-height: 1.35; }
.mini-name { display: flex; align-items: center; gap: 5px; font-weight: 500; }
.mini-name svg { width: 13px; height: 13px; }
.mini-sub { color: var(--muted); font-size: 11px; }
.add, .qty { height: 26px; border-radius: 8px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.add { padding: 0 12px; border: 1px solid var(--green); color: var(--green); }
.qty { gap: 8px; padding: 0 8px; background: var(--parrot); color: var(--ink); }
.phone-cta { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--ink); color: var(--paper); }
.phone-cta .icon { width: 16px; height: 16px; color: var(--parrot); }
.phone-cta b { margin-left: auto; color: var(--parrot); font-weight: 500; }

.float-card { white-space: nowrap; position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 28px var(--shadow); font-size: 13px; line-height: 1.35; }
.float-card small { display: block; color: var(--muted); font-size: 12px; }
.float-a { right: calc(50% + 112px); top: 20%; animation: floaty 6s ease-in-out -2s infinite; }
.float-b { left: calc(50% + 112px); bottom: 16%; flex-direction: column; align-items: flex-start; gap: 6px; animation: floaty 6.5s ease-in-out -4s infinite; }
.float-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.float-icon .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.code { display: flex; gap: 4px; }
.code i { display: grid; place-items: center; width: 24px; height: 28px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* A convoy drives along the bottom edge of the hero. */
.road { height: 34px; border-top: 1px dashed var(--line); position: relative; }
.convoy { position: absolute; left: 0; bottom: 6px; display: flex; gap: 22px; color: var(--convoy); animation: drive 26s linear infinite; }
.convoy .car { width: 50px; height: 20px; stroke-width: 3.4; }
.convoy .lead-car { color: var(--green); }

/* Brands, in their own colours. */
.brands { padding: 26px 0; background: var(--bg); }
.brands .wrap { display: flex; align-items: center; gap: 28px; }
.brands-title { color: var(--muted); font-size: 14px; flex: none; }
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bmark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.bmark:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.bmark svg { width: 24px; height: 24px; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 560px; margin-bottom: 32px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow.on-dark { color: var(--parrot); }
.sub { margin-top: 10px; color: var(--muted); }

.steps, .fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li, .fleet article { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .5s var(--ease); }
.fleet article { background: var(--bg); }
.steps li:hover, .fleet article:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow); border-color: var(--line-strong); }
.steps p, .fleet p, .features p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.step-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--parrot); color: var(--ink); margin-bottom: 16px; }
.step-num { position: absolute; top: 22px; right: 22px; color: var(--faint); font-size: 14px; font-weight: 500; }
.steps li:nth-child(2) .step-icon { background: var(--green-soft); color: var(--green); }
.steps li:nth-child(3) .step-icon { background: var(--blue-soft); color: var(--blue); }

.fleet-art { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 92px; margin-bottom: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding-bottom: 20px; color: var(--green); overflow: hidden; }
.fleet-art .car { width: 74px; height: 30px; stroke-width: 2.8; transition: transform .5s var(--ease); }
.fleet-art.one .car { width: 110px; height: 44px; stroke-width: 2.4; color: var(--text); }
.fleet-art.two .car { width: 88px; height: 35px; color: var(--blue); }
.fleet article:hover .car, .fleet article:hover .car-photo { transform: translateX(6px); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.tag .icon { width: 14px; height: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.features li { display: flex; gap: 14px; }
.features > li > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--green-soft); color: var(--green); }

/* Dealers: the one dark block on the page. */
.partners { background: var(--ink); color: var(--paper); border-block: 1px solid var(--chrome-line); }
.partners-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.partners-lead { margin-top: 12px; color: rgba(255, 255, 255, .7); max-width: 460px; }
.perks { display: grid; gap: 12px; margin-top: 24px; font-size: 14px; }
.perks li { display: flex; align-items: center; gap: 12px; }
.perks .icon { color: var(--parrot); }
.partners-copy .apply { margin-top: 26px; }
.soon { display: block; margin-top: 10px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.soon .icon { width: 16px; height: 16px; }
.partners-card { justify-self: end; width: 100%; max-width: 340px; padding: 18px; border-radius: 20px; background: var(--card); color: var(--text); display: grid; gap: 14px; }
.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-badge { padding: 4px 10px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 500; }
.plate { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 5px; background: #FFCB05; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.plate i { padding: 2px 3px; border-radius: 2px; background: #1D4FA8; color: #fff; font-size: 7px; letter-spacing: 0; }
.pc-car { display: flex; align-items: center; gap: 14px; }
.pc-car > .car { width: 72px; height: 29px; stroke-width: 3; color: var(--green); }
.pc-car > .car-photo { width: 96px; height: auto; flex: none; }
.pc-car small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pc-car small .icon { width: 14px; height: 14px; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pc-meta b { color: var(--green); font-size: 16px; font-weight: 700; }
.pc-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.pc-actions span { display: grid; place-items: center; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.pc-no { border: 1px solid var(--line); }
.pc-yes { background: var(--parrot); color: var(--ink); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon:first-child { color: var(--green); }
.faq .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px 50px; color: var(--muted); font-size: 14px; animation: open .3s var(--ease); }

/* Download */
.download { padding: 0 0 72px; }
.download-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; border-radius: 24px; background: var(--parrot); color: var(--ink); }
.download-copy p { margin-top: 8px; max-width: 420px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px 0 14px; border-radius: 10px; background: var(--ink); color: var(--paper); line-height: 1.2; transition: transform .25s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store-icon { width: 26px; height: 26px; flex: none; }
.store small { white-space: nowrap; display: block; font-size: 11px; color: rgba(255, 255, 255, .7); }
.store b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* Footer */
.site-footer { border-top: 1px solid var(--chrome-line); background: var(--ink); color: rgba(255, 255, 255, .7); padding: 36px 0; font-size: 14px; }
.footer { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer-brand p { margin-top: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a:hover { color: var(--paper); }
.copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .5); }

/* Motion. Everything is visible without it. */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .3s, border-color .3s; }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .steps li.in:hover, .motion .fleet article.in:hover { transform: translateY(-4px); transition-delay: 0s !important; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes drive { from { transform: translateX(-420px); } to { transform: translateX(100vw); } }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .convoy { left: 20px; }
}

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-grid, .partners-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { padding-top: 36px; }
  .steps, .fleet { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .brands .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .partners-card { justify-self: start; }
  .section { padding: 52px 0; }
  .download { padding-bottom: 52px; }
  .download-grid { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .lead { font-size: 15px; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .hero-actions .btn { flex: 1; }
  .float-card { display: none; }
  .bmark { width: 40px; height: 40px; }
  .bmark svg { width: 20px; height: 20px; }
  .faq details p { padding-left: 18px; }
  .store { flex: 1; min-width: 150px; }
}

/* Dark mode switch in the header. */
.theme-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .78); cursor: pointer; transition: background .2s, color .2s; }
.theme-btn:hover { background: rgba(255, 255, 255, .08); color: var(--paper); }
.theme-btn:focus-visible { outline: 2px solid var(--parrot); outline-offset: 2px; }
.theme-btn .icon { width: 19px; height: 19px; stroke-width: 1.7; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
/* Other companies' logos keep their own colours; in dark the small ones in the phone get a white disc so dark marks stay readable. */
:root[data-theme="dark"] .mini-name svg { background: var(--paper); border-radius: 50%; padding: 2px; width: 15px; height: 15px; }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1px #2E322A, 0 24px 48px rgba(0, 0, 0, .5); }
