/* AmericaNat — marketing site. Plain CSS, no build step. Colors match the app (brand navy + flag red). */
:root {
  --navy: #0b1d4a;
  --navy-2: #12296a;
  --navy-3: #1e3a8a;
  --blue: #2346b8;
  --red: #c8102e;
  --red-2: #e11d48;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --gold: #f5b301;
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(11, 29, 74, 0.35);
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
  padding: 12px 22px; font-size: 15px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(200, 16, 46, .7); }
.btn--red:hover { background: #b10e28; }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ── Header ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.nav__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__brand { display: flex; align-items: center; }
.logo { height: 40px; width: auto; }
.logo--dark { display: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .88); }
.nav__links a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.lang button { border: 0; background: transparent; color: rgba(255, 255, 255, .85); font: 700 12px/1 Inter, sans-serif; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.nav__menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__menu span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease; }

.nav.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .logo--dark { display: block; }
.nav.is-solid .logo--light { display: none; }
.nav.is-solid .nav__links a { color: var(--muted); }
.nav.is-solid .nav__links a:hover { color: var(--ink); }
.nav.is-solid .lang { background: var(--bg-soft); }
.nav.is-solid .lang button { color: var(--muted); }
.nav.is-solid .lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.nav.is-solid .nav__menu { background: var(--bg-soft); }
.nav.is-solid .nav__menu span { background: var(--ink); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% 10%, #1f3c8f 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0a1740 55%, #071131 100%);
  padding: 140px 0 90px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg span {
  position: absolute; right: -10%; width: 70%; height: 46px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46, .28));
  transform: rotate(-12deg);
}
.hero__bg span:nth-child(1) { top: 18%; }
.hero__bg span:nth-child(2) { top: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07)); }
.hero__bg span:nth-child(3) { top: 42%; }
.hero__bg span:nth-child(4) { top: 54%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07)); }
.hero__bg span:nth-child(5) { top: 66%; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow--light { color: #fda4af; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 900; }
.hl { background: linear-gradient(90deg, #fff 0%, #fecdd3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-weight: 700; font-size: 15px; line-height: 1.1; }
.store svg { width: 22px; height: 22px; fill: #fff; }
.store small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.hero__phone { position: relative; justify-self: center; }
.phone {
  position: relative; border-radius: 46px; padding: 10px; background: #0b0f1a;
  box-shadow: 0 0 0 2px #2b3245, 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px #000;
  width: 300px; max-width: 100%;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
/* The screenshots have no status bar: leave room under the island so it doesn't cover the app's titles. */
.phone img { border-radius: 36px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--bg-soft); padding-top: 40px; }
.phone--sm img { padding-top: 34px; }
.phone--hero { width: 330px; transform: rotate(-3deg); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap;
}
.chip b { font-weight: 800; }
.chip--a { left: -70px; top: 22%; flex-direction: column; align-items: flex-start; gap: 0; }
.chip--a b { font-size: 26px; color: var(--navy-3); line-height: 1; }
.chip--a span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.chip--b { right: -60px; top: 50%; }
.chip--c { left: -40px; bottom: 12%; color: #047857; }
.chip--c .ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #10b981; color: #fff; font-size: 13px; }
.float { animation: float 6s ease-in-out infinite; }
.float--2 { animation-delay: -2s; }
.float--3 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Stats ── */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 36px 0; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 900; color: var(--navy-3); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ── Sections ── */
section { scroll-margin-top: 80px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-head--light h2 { color: #fff; }

.diff { padding: 100px 0; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.compare__col { border-radius: var(--radius); padding: 32px; }
.compare__col h3 { font-size: 20px; margin-bottom: 18px; color: var(--muted); }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { position: relative; padding-left: 34px; font-size: 16px; }
.compare__col--them { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.compare__col--them li::before { content: "–"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: #94a3b8; font-weight: 800; }
.compare__col--us { background: #fff; box-shadow: var(--shadow), inset 0 0 0 2px var(--navy-3); }
.compare__logo { height: 42px; width: auto; margin-bottom: 18px; }
.compare__col--us li { font-weight: 600; }
.compare__col--us li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; }

.features { padding: 100px 0 60px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature--flip .feature__media { order: 2; }
.feature__media { display: grid; place-items: center; position: relative; }
.feature__media::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; background: radial-gradient(circle at 30% 30%, #dbe4ff, transparent 70%), radial-gradient(circle at 70% 70%, #ffe4e8, transparent 70%); z-index: -1; }
.card-shot { width: min(420px, 100%); border-radius: 28px; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow); padding: 14px; }
.card-shot img { border-radius: 18px; }
.feature__copy h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 900; margin: 14px 0 14px; }
.feature__copy > p { color: var(--muted); font-size: 17px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #e0e7ff; color: var(--navy-3); font-size: 13px; font-weight: 800; }
.tag--red { background: #ffe4e6; color: #be123c; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ── Gallery ── */
.gallery { padding: 100px 0; background: linear-gradient(160deg, var(--navy) 0%, #071131 100%); overflow: hidden; }
.gallery__track { display: flex; gap: 28px; overflow-x: auto; padding: 10px max(16px, calc((100vw - var(--wrap)) / 2)) 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.phone--sm { flex: 0 0 auto; width: 250px; margin: 0; scroll-snap-align: center; }
.phone--sm figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 15px; }
.gallery .phone--sm { margin-bottom: 30px; }

/* ── How ── */
.how { padding: 100px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ── Languages ── */
.langs { padding: 100px 0; background: var(--bg-soft); }
.langs__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.langs__copy h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; }
.langs__copy p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }
.langs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lcard { padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(11, 29, 74, .4); display: grid; gap: 4px; }
.lcard b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.lcard span { font-weight: 600; }
.lcard:nth-child(2) { background: var(--navy); }
.lcard:nth-child(2) b { color: #fda4af; }
.lcard:nth-child(2) span { color: #fff; }

/* ── FAQ ── */
.faq { padding: 100px 0; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 4px 22px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: inset 0 0 0 2px var(--navy-3); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--navy-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* ── Final CTA + footer ── */
.final { padding: 90px 0; background: radial-gradient(800px 400px at 50% 0%, #1f3c8f, transparent 70%), var(--navy); color: #fff; text-align: center; }
.final__in { display: grid; justify-items: center; gap: 18px; }
.final__logo { width: 260px; height: auto; }
.final h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; max-width: 760px; }
.final p { color: rgba(255, 255, 255, .8); font-size: 18px; margin-bottom: 8px; }

.footer { background: #050c22; color: rgba(255, 255, 255, .75); padding: 50px 0 28px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer__brand img { width: 180px; height: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 14px; max-width: 420px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__credit { display: grid; gap: 8px; justify-items: center; background: #fff; border-radius: 14px; padding: 10px 16px; }
.footer__credit span { font-size: 9px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: #64748b; }
.footer__credit img { width: 130px; height: auto; }
.footer__copy { text-align: center; font-size: 13px; margin-top: 36px; color: rgba(255, 255, 255, .5); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal--delay { transition-delay: .15s; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav.is-open { background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25); }
  .nav.is-open .logo--dark { display: block; }
  .nav.is-open .logo--light { display: none; }
  .nav.is-open .nav__links { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 8px 16px 20px; gap: 0; box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .2); }
  .nav.is-open .nav__links a { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.is-open .lang { background: var(--bg-soft); }
  .nav.is-open .lang button { color: var(--muted); }
  .nav.is-open .lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
  .nav.is-open .nav__menu { background: var(--bg-soft); }
  .nav.is-open .nav__menu span { background: var(--ink); }
  .nav.is-open .nav__menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding: 120px 0 70px; }
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas, .stores { justify-content: center; }
  .hero__phone { margin-top: 20px; }
  .feature, .langs__in, .compare { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__credit { justify-self: start; }
}
@media (max-width: 640px) {
  .nav__right .btn { display: none; }
  .logo { height: 34px; }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .phone--hero { width: 260px; }
  .chip { font-size: 12px; padding: 8px 10px; }
  .chip--a { left: -18px; }
  .chip--a b { font-size: 20px; }
  .chip--b { right: -14px; }
  .chip--c { left: -10px; }
  .diff, .features, .gallery, .how, .langs, .faq { padding: 70px 0; }
  .compare__col { padding: 24px; }
  .langs__grid { grid-template-columns: 1fr; }
  .phone--sm { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
