:root {
  --cream: #FFF8E6;
  --cream-2: #FFEFC7;
  --gold: #FFD54A;
  --gold-deep: #F2A81D;
  --navy: #0B1F45;
  --navy-2: #17325F;
  --blue: #2459C4;
  --blue-light: #4C86F0;
  --red: #E0322B;
  --red-deep: #A51A1A;
  --muted: #4E6189;
  --card: #FFFFFF;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(11, 31, 69, .12), 0 2px 6px rgba(11, 31, 69, .08);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.6 var(--body);
  color: var(--navy);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, #1C3F8E 0%, var(--navy) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(11, 31, 69, .25);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 20px; white-space: nowrap; }
.brand:hover { color: var(--gold); }
.brand img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--gold); }
.nav { display: flex; gap: 4px; }
.nav a { color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 10px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: var(--gold); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } .nav a { padding: 8px 14px; } }
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- hero */
.hero { position: relative; }
.hero-art {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 40%;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
@media (min-width: 720px) { .hero-art { aspect-ratio: 3840 / 1646; max-height: 620px; } }
.hero-card {
  position: relative; z-index: 2;
  margin: -56px auto 0;
  max-width: 760px;
  background: var(--card);
  border: 4px solid var(--gold);
  border-radius: 32px;
  box-shadow: var(--shadow), inset 0 -6px 0 rgba(242, 168, 29, .18);
  padding: 72px 20px 28px;
  text-align: center;
}
.hero-icon {
  position: absolute; left: 50%; top: -58px; transform: translateX(-50%);
  width: 116px; height: 116px; border-radius: 28px;
  border: 4px solid #fff; box-shadow: 0 8px 22px rgba(11, 31, 69, .3);
}
.hero h1 { font-size: clamp(30px, 7.4vw, 52px); color: var(--navy); }
.hero h1 .sub { display: block; color: var(--blue); font-size: .62em; margin-top: 4px; }
.pitch { font-size: clamp(17px, 2.6vw, 20px); color: var(--navy-2); margin: 14px auto 20px; max-width: 34em; font-weight: 700; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 22px; }
.chips li {
  font-weight: 800; font-size: 14px; color: var(--navy);
  background: linear-gradient(180deg, #FFF3C4, var(--gold));
  border: 2px solid var(--gold-deep); border-radius: 999px; padding: 4px 12px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7);
}
.store-badge { display: inline-block; border-radius: 12px; transition: transform .15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: 180px; height: 60px; }
@media (min-width: 720px) {
  .hero-card { margin-top: -110px; padding: 80px 40px 34px; }
  .hero-icon { width: 132px; height: 132px; top: -66px; border-radius: 32px; }
}

/* ---------- ribbon headings */
.section { padding: 56px 0 8px; }
.section-head { text-align: center; margin-bottom: 26px; }
.ribbon {
  position: relative; display: inline-block;
  font-family: var(--display); font-size: clamp(24px, 5vw, 34px); color: #fff;
  padding: 8px 30px 10px;
  background: linear-gradient(180deg, #FF5A4E 0%, var(--red) 55%, #C42420 100%);
  border-radius: 10px;
  text-shadow: 0 2px 0 var(--red-deep);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 6px 0 var(--red-deep), 0 10px 18px rgba(165, 26, 26, .25);
  margin: 0 22px;
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 12px; width: 30px; height: 100%; z-index: -1;
  background: #B91F1B;
}
.ribbon::before { left: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.ribbon::after { right: -22px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.section-head p { color: var(--muted); font-weight: 700; margin: 18px auto 0; max-width: 36em; }

/* ---------- screenshots */
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 16px 22px; margin: 0 -16px;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
  -webkit-overflow-scrolling: touch;
}
.shots figure { flex: 0 0 auto; width: min(62vw, 240px); margin: 0; scroll-snap-align: center; }
.shots img {
  width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover;
  border-radius: 24px; border: 4px solid var(--navy);
  box-shadow: var(--shadow); background: var(--navy-2);
}
.shots figcaption { text-align: center; font-weight: 800; font-size: 14px; margin-top: 8px; color: var(--navy-2); }
@media (min-width: 1120px) { .shots { justify-content: flex-start; } }

/* ---------- features */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 2px solid #F4E3B5;
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature img { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(11, 31, 69, .18)); }
.feature h3 { font-size: 21px; color: var(--blue); margin-bottom: 4px; }
.feature p { margin: 0; color: var(--navy-2); font-size: 16px; }

.howto { display: grid; gap: 20px; align-items: center; margin-top: 34px; grid-template-columns: 1fr; }
.howto img { width: 180px; margin: 0 auto; }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.howto li { counter-increment: step; display: flex; gap: 12px; align-items: center; font-weight: 700; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); }
.howto li::before {
  content: counter(step); flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 18px; color: #fff;
  background: linear-gradient(180deg, var(--blue-light), var(--blue)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35);
}
@media (min-width: 720px) { .howto { grid-template-columns: 220px 1fr; } .howto img { width: 220px; } }

/* ---------- faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 2px solid #F4E3B5; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 800; font-size: 17px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 20px; color: var(--navy);
  background: linear-gradient(180deg, #FFF3C4, var(--gold)); border: 2px solid var(--gold-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--navy-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- support */
.support {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2E6BE0 0%, var(--blue) 45%, #173E95 100%);
  color: #fff; border-radius: 30px; padding: 30px 20px; text-align: center;
  border: 4px solid var(--gold); box-shadow: var(--shadow);
}
.support img { width: 140px; margin: 0 auto 6px; }
.support h2 { font-size: clamp(28px, 6vw, 40px); text-shadow: 0 3px 0 rgba(11, 31, 69, .35); }
.support p { max-width: 32em; margin: 10px auto 18px; font-weight: 700; color: #EAF1FF; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--display); font-size: 20px; letter-spacing: .02em; text-decoration: none;
  color: var(--navy); padding: 12px 26px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #FFF1A8 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border: 3px solid #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 5px 0 #B9740F, 0 10px 18px rgba(11, 31, 69, .3);
  transition: transform .12s;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { color: var(--navy); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.support .email { display: block; margin-top: 16px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.support .help-links { display: grid; gap: 10px; margin: 26px auto 0; max-width: 760px; text-align: left; grid-template-columns: 1fr; }
@media (min-width: 720px) { .support { padding: 40px; } .support .help-links { grid-template-columns: 1fr 1fr 1fr; } }
.support .help-links div { background: rgba(255, 255, 255, .12); border-radius: 16px; padding: 14px 16px; font-size: 15px; }
.support .help-links strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--gold); }
.support .help-links a { color: #fff; }

/* ---------- legal pages */
.legal-hero { background: linear-gradient(180deg, #1C3F8E, var(--navy)); color: #fff; text-align: center; padding: 34px 16px 70px; }
.legal-hero h1 { font-size: clamp(32px, 7vw, 48px); }
.legal-hero p { margin: 8px 0 0; color: #CFE0FF; font-weight: 700; }
.legal {
  position: relative; max-width: 780px; margin: -44px auto 0; background: var(--card);
  border-radius: 28px; border: 4px solid var(--gold); box-shadow: var(--shadow);
  padding: 26px 20px 30px;
}
@media (min-width: 720px) { .legal { padding: 36px 44px 40px; } }
.legal .summary { background: var(--cream); border: 2px dashed var(--gold-deep); border-radius: 18px; padding: 14px 18px; font-weight: 700; margin-bottom: 8px; }
.legal .summary ul { margin: 6px 0 0; padding-left: 20px; }
.legal h2 { font-size: 24px; color: var(--blue); margin: 28px 0 8px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #F0E2BC; }
.legal th { background: var(--cream-2); font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* ---------- footer */
.footer { margin-top: 64px; background: var(--navy); color: #C7D5F2; border-top: 4px solid var(--gold); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: #fff; font-weight: 800; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer small { font-size: 14px; }
.deco { display: flex; gap: 6px; }
.deco img { width: 30px; height: 30px; }
