/* Landing and legal pages. Inter comes from the Flutter console's assets. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/console/assets/assets/fonts/Inter-Regular.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/console/assets/assets/fonts/Inter-Medium.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/console/assets/assets/fonts/Inter-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/console/assets/assets/fonts/Inter-Bold.ttf) format("truetype"); }

:root {
  --brand: #0F5C63;
  --brand-dark: #0B464C;
  --coral: #E84A5F;
  --ink: #1F2933;
  --ink-soft: #52606D;
  --page: #F6F7F9;
  --card: #FFFFFF;
  --line: #E4E7EB;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 36em; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand-sub { font-size: 12px; font-weight: 600; color: var(--coral); line-height: 1; margin: 3px 0 0 42px; }
.top-nav { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; font: 600 13px Inter, sans-serif; padding: 6px 10px; color: var(--ink-soft); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 12px 22px; transition: background .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); padding: 8px 16px; font-size: 15px; }
.btn-ghost:hover { background: var(--page); }
.btn-big { padding: 16px 28px; font-size: 18px; }
.btn-light { background: var(--card); color: var(--brand); border: 2px solid var(--brand); }
.btn-light:hover { background: #E6F2F1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--brand); text-decoration: none; padding: 8px 4px; }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
/* Phones: no room in the header; the hero has the same link as a button. */
@media (max-width: 560px) { .top-nav .nav-link { display: none; } }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-sub { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.3; color: var(--brand); margin: 0 0 16px; max-width: 24em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 12px; padding: 10px 18px; min-width: 180px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .8; }
.store b { font-size: 18px; font-weight: 600; }
.store.disabled { opacity: .45; cursor: default; }
.soon { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

.hero-art .map {
  position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #E6F2F1, #F3EFE6);
  box-shadow: 0 20px 50px rgba(15, 92, 99, .15);
}
.road { position: absolute; background: #fff; border-radius: 99px; opacity: .9; }
.r1 { height: 18px; left: -10%; right: -10%; top: 38%; transform: rotate(-12deg); }
.r2 { width: 16px; top: -10%; bottom: -10%; left: 62%; transform: rotate(8deg); }
.r3 { height: 12px; left: -10%; right: -10%; top: 74%; transform: rotate(6deg); }
.pin { position: absolute; width: 22%; z-index: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); }
.pin img { border-radius: 24%; }
.p1 { left: 18%; top: 16%; }
.p2 { left: 58%; top: 44%; width: 28%; }
.p3 { left: 24%; top: 62%; width: 18%; }
.pin::after {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  border: 3px solid var(--coral); opacity: 0; animation: sonar 2.4s ease-out infinite; z-index: -1;
}
.p2::after { animation-delay: .8s; }
.p3::after { animation-delay: 1.6s; }
@keyframes sonar { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin::after { animation: none; } }

/* Features */
.features { padding: 24px 0 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink-soft); }
.icon { font-size: 28px; margin-bottom: 12px; }

/* Journey: truck on a winding road to a fair */
.journey { background: #FFF4E6; padding: 72px 0; }
.journey-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.journey .eyebrow { color: var(--coral); }
.journey-fig { margin: 0; }
.journey-art { width: 100%; height: auto; display: block; font-family: Inter, system-ui, sans-serif; }
.journey-note { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink-soft); text-align: center; }
.journey-note::before { content: "♥ "; color: var(--coral); }

/* Business */
.business { background: var(--brand); color: #fff; padding: 72px 0; }
.business .lead { color: rgba(255,255,255,.85); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; color: #FFB4BE; margin: 0 0 8px; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 13px; display: grid; place-items: center; margin-top: 3px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.business .btn-primary { background: #fff; color: var(--brand); }
.business .btn-primary:hover { background: #E6F2F1; }
.btn-outline { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.note { font-size: 14px; color: rgba(255,255,255,.75); }

/* Footer */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 40px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot img { height: 28px; width: auto; }
.company { margin: 12px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal .doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 820px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal h2:first-child { font-size: 30px; margin-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }

/* Guide (/guida) */
.guide { padding: 40px 0 64px; }
.guide .back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }
.guide-intro h1 { font-size: clamp(32px, 5vw, 48px); }
.guide h2 { font-size: 24px; margin-bottom: 12px; }
.ui { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; font-size: .9em; line-height: 1.3; border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.prep { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 28px 0 40px; }
.prep h2 { font-size: 20px; }
.prep .checks { margin: 16px 0 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; scroll-margin-top: 80px; }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 26px; font-weight: 700; display: grid; place-items: center; }
.step-body > :last-child { margin-bottom: 0; }
.step-body ol, .step-body ul { padding-left: 22px; margin: 0 0 16px; }
.step-body li { margin-bottom: 8px; }
.tip { background: #E6F2F1; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.small { font-size: 14px; color: var(--ink-soft); }
.plans { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 12px; }
.plans > div { display: grid; grid-template-columns: 9em 1fr auto; gap: 12px; padding: 10px 16px; }
.plans > div + div { border-top: 1px solid var(--line); }
.plans span:last-child { font-weight: 600; white-space: nowrap; }
.faq { margin-top: 56px; }
.faq h2 { font-size: clamp(26px, 4vw, 34px); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; }
.faq ul { padding-left: 22px; }
.help { margin-top: 48px; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 32px; }
.help p { color: rgba(255,255,255,.85); }
.help .btn-primary { background: #fff; color: var(--brand); }

@media (max-width: 800px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .step .num { width: 44px; height: 44px; font-size: 22px; }
  .plans > div { grid-template-columns: 1fr auto; }
  .plans > div span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-soft); font-size: 15px; }
  .ui { white-space: normal; }
}

@media (max-width: 800px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 360px; }
  .cards { grid-template-columns: 1fr; }
  .journey { padding: 48px 0; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  .journey-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal .doc { padding: 20px; }
}
