/* Biteo landing — tokens mirrored from src/theme/tokens.ts. No webfonts: the
   wordmark is an image, everything else is the system stack, so first paint
   costs no network round-trip. */

:root {
  --bg: #f5f9fa;
  --bg-muted: #eaf2f5;
  --card: #ffffff;
  --fg: #0a2230;
  --muted: #556d7c;
  --border: #d6e3e8;
  --primary: #0c6e8a;
  --primary-fg: #ffffff;
  --accent: #e87a25;
  --water-river: #2a6fb0;
  --water-sea: #0e8c7e;
  --deep: #071a21;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(10 34 48 / 6%), 0 12px 32px rgb(10 34 48 / 8%);
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071a21;
    --bg-muted: #10303c;
    --card: #0e2731;
    --fg: #e6f2f6;
    --muted: #93aeb8;
    --border: #1b3a46;
    --primary: #2bb3ce;
    --primary-fg: #04222b;
    --accent: #ffa855;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--card);
  color: var(--fg);
  padding: .75rem 1rem;
  z-index: 10;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 16%) 0%, rgb(255 255 255 / 0%) 60%),
    linear-gradient(155deg, #17a0c0 0%, #0c6e8a 48%, #06404f 100%);
  color: #fff;
  padding: 0 1.25rem 4.5rem;
  overflow: hidden;
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2.5rem;
}

.brand img { width: 132px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .95rem;
}

.nav-links a { color: rgb(255 255 255 / 82%); text-decoration: none; }
.nav-links a:hover { color: #fff; }

.lang {
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  padding: .35rem .7rem;
  cursor: pointer;
}
.lang:hover { background: rgb(255 255 255 / 24%); }

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 70%);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.8rem;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: rgb(255 255 255 / 84%);
  max-width: 34rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #2a1603;
  box-shadow: 0 8px 24px rgb(232 122 37 / 35%);
}
.btn-primary:hover { background: #f08b3d; }

.btn-ghost {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 6%);
}
.btn-ghost:hover { background: rgb(255 255 255 / 14%); }

.fine { margin: 1rem 0 0; font-size: .85rem; color: rgb(255 255 255 / 66%); }

.hero-art { display: flex; justify-content: center; }

.phone {
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #f7fbfc, #cfdde3);
  box-shadow: 0 30px 70px rgb(2 16 22 / 45%), 0 2px 0 rgb(255 255 255 / 60%) inset;
}
.phone img { border-radius: 26px; }

/* ---------- sections ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 1rem;
}

.section h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.section-lead {
  margin: 0 0 2.4rem;
  color: var(--muted);
  max-width: 44rem;
}

.section-dark {
  max-width: none;
  margin: 3rem 0 0;
  padding: 3.5rem 1.25rem 3rem;
  background: var(--deep);
  color: #e6f2f6;
}
.section-dark > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-dark .section-lead { color: #93aeb8; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: .9rem;
}

.card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.shot { margin: 0; text-align: center; }
.shot img {
  margin: 0 auto;
  width: min(100%, 260px);
  border-radius: 22px;
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 24px 50px rgb(0 0 0 / 45%);
}
.shot figcaption {
  margin-top: .85rem;
  font-size: .88rem;
  color: #93aeb8;
}

/* ---------- pledges + faq ---------- */

.pledges {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
}
.pledges li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--water-sea);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.pledges strong { display: block; margin-bottom: .3rem; }
.pledges span { color: var(--muted); font-size: .94rem; }

.legal-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 0; }

.faq { display: grid; gap: .6rem; max-width: 48rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .95rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--primary); }
.faq p { margin: .7rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- final cta ---------- */

.cta-final {
  text-align: center;
  padding-bottom: 4.5rem;
}
.cta-mark {
  margin: 0 auto 1.1rem;
  width: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cta-final p { color: var(--muted); margin: 0 0 1.4rem; }

/* ---------- footer ---------- */

.footer {
  background: var(--deep);
  color: #e6f2f6;
  padding: 2.6rem 1.25rem 2rem;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer .fine { color: #93aeb8; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  font-size: .92rem;
}
.footer-links a { color: #cfe7ee; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-note {
  max-width: var(--wrap);
  margin: 1.6rem auto 0;
  font-size: .8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-art { order: -1; }
  .phone { width: min(240px, 62vw); }
  .nav { padding-bottom: 1.6rem; }
  .nav-links { gap: 1rem; font-size: .9rem; }
  .nav-links a:not(:first-child) { display: none; }
  .shots { grid-template-columns: 1fr; }
  .shot img { width: min(100%, 230px); }
}

@media (max-width: 420px) {
  .brand img { width: 112px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { gap: .6rem; }
}
