/* getracetap.com: the homepage and the legal pages. The live app under
   /live/ is Flutter and has its own look. Colours follow the app
   (lib/utils/app_theme.dart): purple #6200EE, deep #3700B3, teal #03DAC6. */

:root {
  --brand: #6200ee;
  --brand-deep: #3700b3;
  --teal: #03dac6;
  --ink: #16131f;
  --muted: #5d5970;
  --bg: #ffffff;
  --soft: #f5f2fc;
  --card: #ffffff;
  --line: #e6e1f1;
  --accent-ink: #5a00db;
  --shadow: 0 1px 2px rgba(22, 19, 31, .06), 0 8px 28px rgba(55, 0, 179, .08);
  --radius: 18px;
  --hero-a: #3d00c4;
  --hero-b: #6200ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #efebf8;
    --muted: #aaa4bf;
    --bg: #0f0d16;
    --soft: #16131f;
    --card: #1b1826;
    --line: #2c2740;
    --accent-ink: #b9a1ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    --hero-a: #24006f;
    --hero-b: #4500b0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #efe9ff; }
.btn-ghost { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--soft); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 8px 18px 8px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.store .ic { width: 22px; height: 22px; opacity: .85; }
.store small { display: block; font-size: .75rem; opacity: .8; line-height: 1.2; }
.store b { display: block; font-size: 1.05rem; line-height: 1.25; }

/* ------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.lang { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.lang:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 380px) { .top .btn-small { display: none; } }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 520px at 85% 15%, rgba(3, 218, 198, .22), transparent 60%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  padding: 56px 0 40px;
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: var(--teal); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 900; letter-spacing: -.035em; margin-bottom: 20px; }
.lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 34em; margin-bottom: 28px; }
.notes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.notes li { display: inline-flex; align-items: center; gap: 6px; }
.notes .ic { width: 18px; height: 18px; color: var(--teal); }

.hero-art { position: relative; height: 560px; }
.phone {
  position: relative; border-radius: 40px; padding: 10px; background: #0d0c12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(10, 0, 40, .45);
}
.phone img { border-radius: 30px; width: 100%; background: #fff; }
.hero-art .phone { position: absolute; width: 270px; }
.hero-art .front { right: 120px; top: 10px; z-index: 2; }
.hero-art .back { right: 0; top: 70px; transform: rotate(6deg); opacity: .96; }
@media (max-width: 920px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-art .phone { width: 230px; }
  .hero-art .front { left: 0; right: auto; }
  .hero-art .back { right: 0; }
}
@media (max-width: 480px) {
  .hero-art { height: 400px; }
  .hero-art .phone { width: 200px; }
}

.follow {
  margin-top: 28px; padding: 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.follow label { font-weight: 700; }
.follow-row { display: flex; gap: 10px; flex: 1; min-width: 260px; }
.follow input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: #fff; color: #16131f;
}
.follow input::placeholder { letter-spacing: normal; text-transform: none; font-weight: 500; color: #8a8599; }
.follow .btn { background: var(--teal); color: #10002f; }
.follow .btn:hover { background: #5ff0e0; }
@media (max-width: 480px) { .follow-row { flex-direction: column; min-width: 0; } }

/* ------------------------------------------------------------- trust */
.trust { border-bottom: 1px solid var(--line); background: var(--soft); }
.trust ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.trust .ic { width: 22px; height: 22px; color: var(--accent-ink); flex: none; }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section h2 { margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
@media (max-width: 720px) { .section { padding: 60px 0; } }

.step-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step-list h3 { margin-bottom: 8px; }
.step-list p { color: var(--muted); }
@media (max-width: 860px) { .step-list { grid-template-columns: 1fr; } }

.features { background: var(--soft); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.feature.flip .feature-copy { order: 2; }
.kicker { font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.feature h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.feature-copy p:last-child { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.feature-art { display: flex; justify-content: center; }
.feature-art .phone { width: 290px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-art .phone { width: min(280px, 78vw); }
}

.more-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more-grid h3 { margin: 14px 0 8px; }
.more-grid p { color: var(--muted); }
@media (max-width: 960px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }

.tablet-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.tablet-copy p:last-child { color: var(--muted); font-size: 1.08rem; margin-top: 4px; }
.tablet { border-radius: 30px; padding: 14px; background: #0d0c12; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tablet img { border-radius: 18px; width: 100%; background: #fff; }
@media (max-width: 860px) { .tablet-in { grid-template-columns: 1fr; gap: 28px; } }

.who { background: var(--soft); }
.who-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); }
.ic.big { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--accent-ink); }
.sports { margin-top: 28px; color: var(--muted); text-align: center; }
@media (max-width: 960px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- pricing */
.plans { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--brand); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan-desc { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.price { margin: 10px 0 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; }
.per { color: var(--muted); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: .97rem; }
.ticks .ic { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--teal); }
@media (prefers-color-scheme: light) { .ticks .ic { color: #00a896; } }
.fine { margin-top: 22px; color: var(--muted); font-size: .92rem; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- faq */
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* ------------------------------------------------------------- final */
.final { color: #fff; text-align: center; padding: 88px 0; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final .logo { width: 64px; height: 64px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); border-radius: 15px; }
.final p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.final .stores { justify-content: center; }

/* ------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-brand p { color: var(--muted); margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }
.foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------- legal + 404 */
.prose { padding-top: 48px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.prose h2 { font-size: 1.3rem; margin: 2em 0 .5em; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.nf { padding-top: 80px; padding-bottom: 96px; text-align: center; }
.nf .logo { width: 72px; height: 72px; margin: 0 auto 24px; }
.nf h1 { font-size: 2.2rem; margin-bottom: 10px; }
.nf p { color: var(--muted); }
.nf-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px !important; }
