@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

/* Brand colors, from the app's theme (lib/theme/app_theme.dart). */
:root {
  --blue: #1477b8;
  --blue-deep: #0b4f86;
  --teal: #0a967c;
  --teal-bright: #17a98c;
  --gradient: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--teal-bright) 100%);

  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #0e1a24;
  --muted: #5a6b7b;
  --border: #e0e6ec;
  --accent: var(--blue);
  --accent-soft: #dceefb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1016;
    --surface: #121c26;
    --text: #e6edf3;
    --muted: #9aabbb;
    --border: #22303d;
    --accent: #69b7ee;
    --accent-soft: #123a57;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

a { color: var(--accent); }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 15px;
}
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 84px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero p {
  font-size: 19px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
}
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Official store badges, unmodified. Both render with a 48px-tall visible
   badge; Google's PNG has built-in transparent padding, which the negative
   margins absorb (measured from the files). */
.badges a { display: block; line-height: 0; }
.badges img { width: auto; max-width: none; }
.badge-apple { height: 48px; }
.badge-google-es { height: 62.5px; margin: -7.25px 0; }
.badge-google-en { height: 71.4px; margin: -11.7px; }

/* Device mockups. Sizes are in container units (cqw) relative to the
   device width, so the frames scale with it. */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.device {
  width: 46%;
  max-width: 205px;
  container-type: inline-size;
}
.device:nth-child(2) { margin-top: 28px; }
.frame {
  position: relative;
  background: #0b0d10;
  box-shadow:
    0 0 0 0.9cqw var(--rim),
    0 24px 50px rgba(4, 30, 52, 0.45);
}
.frame img { width: 100%; }
.frame::after { content: ""; position: absolute; background: #000; }

/* iPhone 17 Pro: thin bezel, large corners, Dynamic Island. */
.iphone { --rim: #4b5157; }
.iphone .frame { padding: 2.6cqw; border-radius: 16.4cqw; }
.iphone .frame img { border-radius: 13.8cqw; }
.iphone .frame::after {
  top: 5.2cqw;
  left: 50%;
  width: 29.5cqw;
  height: 8.7cqw;
  transform: translateX(-50%);
  border-radius: 999px;
}

/* Pixel 10 Pro: slightly thicker bezel, tighter corners, punch hole. */
.pixel { --rim: #3c4146; }
.pixel .frame { padding: 3cqw; border-radius: 12cqw; }
.pixel .frame img { border-radius: 9cqw; }
.pixel .frame::after {
  top: 7cqw;
  left: 50%;
  width: 3.4cqw;
  height: 3.4cqw;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  line-height: 1.2;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Long-form pages (privacy, support) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 40px 0 8px; line-height: 1.3; }
.doc h3 { font-size: 18px; font-weight: 800; margin: 24px 0 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-bright);
  border-radius: 14px;
  padding: 18px 22px;
}
.summary ul { margin: 8px 0 0; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  margin: 10px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.contact {
  margin-top: 40px;
  background: var(--gradient);
  color: #fff;
  border-radius: 20px;
  padding: 26px;
}
.contact h2 { margin-top: 0; }
.contact a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .lang { margin-left: auto; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .phones { margin-top: 8px; }
  .device { max-width: 170px; }
  .site-header nav { gap: 14px; font-size: 14px; }
  .site-footer .lang { margin-left: 0; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
