/* Milo Money — shared styling.
   The palette is lifted straight from the app's Palette enum so the site and the
   product look like the same thing. */

:root {
  --brand: #0FA98A;
  --brand-deep: #0B7F7C;
  --ai: #6F5BF0;
  --ai-soft: #EFECFF;
  --amber: #F59E0B;
  --pink: #EC4899;
  --blue: #3B82F6;

  --canvas: #F4F6F7;
  --surface: #FFFFFF;
  --hairline: #E3E7EA;
  --text: #11181C;
  --text-2: #5A6670;
  --text-3: #8A959D;

  --radius: 20px;
  --shadow: 0 10px 40px rgba(17, 24, 28, .08);
  --page: min(1080px, 92vw);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2BD9A6;
    --brand-deep: #1FBFA0;
    --ai: #A394FF;
    --ai-soft: #241F45;
    --canvas: #0C0F11;
    --surface: #171B1E;
    --hairline: #2A3034;
    --text: #F2F5F6;
    --text-2: #9BA6AD;
    --text-3: #6E7A81;
    --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
a { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--brand); } }

.wrap { width: var(--page); margin: 0 auto; }
.section { padding: 84px 0; }
.center { text-align: center; }
.lede { font-size: 1.15rem; max-width: 62ch; }
.center .lede { margin-inline: auto; }

/* ---------- Aurora background, the same four hues as the app's splash ---------- */
.aurora { position: relative; overflow: hidden; }
.aurora::before {
  content: "";
  position: absolute; inset: -35% -10%;
  background:
    radial-gradient(38% 38% at 22% 26%, var(--brand) 0%, transparent 70%),
    radial-gradient(34% 34% at 78% 20%, var(--ai) 0%, transparent 70%),
    radial-gradient(32% 32% at 72% 76%, var(--amber) 0%, transparent 70%),
    radial-gradient(30% 30% at 24% 82%, var(--pink) 0%, transparent 70%);
  opacity: .30;
  filter: blur(70px);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { .aurora::before { opacity: .40; } }
.aurora > * { position: relative; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-weight: 750; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
nav.site a {
  text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .95rem;
  padding: 7px 13px; border-radius: 999px;
}
nav.site a:hover { background: var(--surface); color: var(--text); }
nav.site a[aria-current="page"] { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 76px; text-align: center; }
.hero .mark {
  width: 132px; height: 132px; border-radius: 30px;
  box-shadow: 0 22px 60px rgba(15, 169, 138, .32);
  margin-bottom: 26px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--ai) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill {
  display: inline-block; padding: 6px 15px; border-radius: 999px;
  background: var(--ai-soft); color: var(--ai);
  font-size: .84rem; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; padding: 14px 27px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-deep));
  color: #fff; box-shadow: 0 10px 26px rgba(15, 169, 138, .35);
}
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.i-brand { background: rgba(15,169,138,.14); }
.i-ai    { background: var(--ai-soft); }
.i-amber { background: rgba(245,158,11,.16); }
.i-blue  { background: rgba(59,130,246,.14); }
.i-pink  { background: rgba(236,72,153,.14); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; width: 236px; }
.shots img {
  width: 100%; border-radius: 26px; display: block;
  border: 1px solid var(--hairline); box-shadow: var(--shadow);
}
.shots figcaption { margin-top: 11px; font-size: .9rem; color: var(--text-3); text-align: center; }

/* ---------- Price ---------- */
.price-card {
  max-width: 480px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 40px 32px; box-shadow: var(--shadow);
}
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--text-3); display: block; margin-top: 4px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; }
.ticks li { padding: 8px 0 8px 30px; position: relative; color: var(--text-2); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--brand); font-weight: 800;
}

/* ---------- Prose (support / privacy / how-to) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { color: var(--text-2); padding-left: 1.25em; }
.prose li { margin: .45em 0; }
.prose code {
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 2px 7px; border-radius: 7px; font-size: .9em;
}
.note {
  background: var(--surface); border: 1px solid var(--hairline);
  border-left: 4px solid var(--brand);
  border-radius: 14px; padding: 18px 20px; margin: 1.5em 0;
}
.note p:last-child { margin-bottom: 0; }
.updated { color: var(--text-3); font-size: .92rem; }

details.faq {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 15px; padding: 4px 20px; margin-bottom: 11px;
}
details.faq summary {
  cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "＋"; float: right; color: var(--brand); font-weight: 700; }
details.faq[open] summary::after { content: "－"; }
details.faq > p, details.faq > ul { padding-bottom: 6px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 44px 0; margin-top: 40px; color: var(--text-3); font-size: .93rem;
}
footer.site .cols { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--text-2); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--brand); }
footer.site .spacer { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
