:root {
  --red: #d52b1e;
  --deep: #8c140f;
  --ember: #ed5c33;
  --ink: #1f1b1a;
  --muted: #6b6461;
  --bg: #faf7f4;
  --card: #ffffff;
  --line: #ece5df;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4efec;
    --muted: #b3aaa5;
    --bg: #141110;
    --card: #1e1a19;
    --line: #2d2725;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--red); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--red); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.22), transparent 55%),
              linear-gradient(180deg, #e6402b 0%, var(--red) 55%, var(--deep) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 20px 80px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.25rem; opacity: .95; margin: 0 0 26px; max-width: 32ch; }
.hero .leaf-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.falling { position: absolute; inset: 0; pointer-events: none; }
.falling svg { position: absolute; color: rgba(255,255,255,.18); animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-10%) rotate(0); } to { transform: translateY(120vh) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .falling svg { animation: none; } }

.phone { justify-self: center; width: min(320px, 80vw); aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px;
  background: #111; box-shadow: 0 30px 60px rgba(60,0,0,.35); }
.phone .screen { height: 100%; border-radius: 34px; background: var(--bg); color: var(--ink); padding: 54px 14px 14px; overflow: hidden; }
.screen h3 { margin: 0 0 12px; font-size: 1.6rem; }
.mini { background: var(--card); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.mini .tag { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--red); background: rgba(213,43,30,.12); padding: 2px 8px; border-radius: 99px; }
.mini .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.mini .route { font-weight: 900; font-size: 1.15rem; }
.mini .price { font-weight: 900; font-size: 1.3rem; color: var(--red); }
.mini small { color: var(--muted); font-size: .75rem; }

/* CTA */
.button { display: inline-block; background: #fff; color: var(--red); font-weight: 800; text-decoration: none;
  padding: 15px 28px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.section .button { background: var(--red); color: #fff; }
.hint { font-size: .9rem; opacity: .85; margin: 12px 0 0; max-width: 40ch; }
.qr { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-left: 18px; vertical-align: middle; font-size: .8rem; }
.qr img { background: #fff; padding: 8px; border-radius: 12px; }
@media (max-width: 760px) { .desktop-only { display: none !important; } }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 10px; letter-spacing: -.01em; }
.section .sub { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { font-size: 1.8rem; }
.card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.note { background: color-mix(in srgb, var(--red) 8%, var(--card)); border-radius: var(--radius); padding: 20px 24px; color: var(--ink); }

/* Legal / text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 2.3rem; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.todo { background: #fff3c4; color: #5c4400; padding: 0 4px; border-radius: 4px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--red); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 20px 56px; text-align: center; }
  .hero p.lead, .hint { margin-left: auto; margin-right: auto; }
  .grid, .steps { grid-template-columns: 1fr; }
  .top nav a { margin-left: 12px; }
  .top nav a.hide-sm { display: none; }
}
