/* GlowApp website. Tokens mirror native-ios/GlowApp/Core/Design/Theme.swift. */
:root {
  --accent: #bf562a;
  --accent-ink: #893e1e;
  --accent-tint: rgba(191, 86, 42, .12);
  --grad-a: #f39a6b;
  --grad-b: #d9622f;
  --canvas: #f7f2ed;
  --hero: #fce6d6;
  --card: #ffffff;
  --card-muted: #fbf7f3;
  --line: #ede5de;
  --ink: #1f1a17;
  --muted: #6b635c;
  --sage: #3e7a52;
  --sage-tint: #e4f2e8;
  --night: #5b4b9a;
  --night-tint: #ece6fa;
  --sun: #a8650c;
  --sun-tint: #fff0d9;
  --shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 12px 32px rgba(120, 60, 20, .08);
  --radius: 26px;
  --radius-sm: 18px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f08a5c;
    --accent-ink: #f6a77e;
    --accent-tint: rgba(240, 138, 92, .18);
    --canvas: #110d0b;
    --hero: #3a2116;
    --card: #1d1815;
    --card-muted: #27201c;
    --line: #3a302a;
    --ink: #f6efe9;
    --muted: #b4a89f;
    --sage: #8fd3a2;
    --sage-tint: #1e3324;
    --night: #b9a9f2;
    --night-tint: #2a2440;
    --sun: #f5b95a;
    --sun-tint: #3a2c14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 {
  font-family: -apple-system-ui-rounded, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.grad-text {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-tint); padding: .35em .8em; border-radius: 99px; margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .85rem !important; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 0; cursor: pointer;
}
.btn-store { background: #000; color: #fff; padding: 0 18px 0 14px; border: 1px solid #a6a6a6; }
.btn-store:hover { color: #fff; background: #1a1a1a; }
.btn-store svg { width: 24px; height: 28px; fill: currentColor; flex: none; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store small { font-size: .7rem; font-weight: 500; }
.btn-store b { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* Hero */
.hero {
  background: radial-gradient(1200px 520px at 75% -10%, color-mix(in srgb, var(--grad-a) 32%, transparent), transparent 70%),
              linear-gradient(var(--hero), var(--canvas));
  padding: 64px 0 40px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { width: min(300px, 70vw); transform: rotate(3deg); }
.hero-art .mascot { position: absolute; width: 150px; left: 4%; bottom: -6px; filter: drop-shadow(0 18px 24px rgba(217, 98, 47, .3)); }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✦"; color: var(--accent); margin-right: 6px; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .hero-points { justify-content: center; }
  .hero-art .mascot { width: 110px; left: 50%; margin-left: -180px; }
}
@media (max-width: 420px) { .hero-art .mascot { margin-left: -150px; width: 96px; } }

/* Phone frame around raw app screenshots */
.phone {
  border-radius: 44px; padding: 9px; background: #1c1917;
  box-shadow: 0 0 0 1.5px #3b332e inset, 0 30px 60px rgba(120, 50, 15, .22), 0 8px 18px rgba(0, 0, 0, .12);
}
.phone img { border-radius: 36px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: #f7f2ed; }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .lead { margin: 0 auto; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature + .feature { margin-top: 36px; }
.feature.flip .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; gap: 18px; position: relative; }
.feature-art .phone { width: min(260px, 44vw); }
.feature-art .phone.small { width: min(220px, 38vw); margin-top: 48px; }
.feature-art .mascot { position: absolute; width: 96px; right: 6%; top: -24px; }
.feature ul { padding-left: 1.2em; color: var(--muted); margin: 0; }
.feature li { margin: .35em 0; }
.feature li::marker { color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--accent-ink); margin-bottom: .6rem; }
.tag i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); font-style: normal; }
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-art { order: 0; }
}

/* Small feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: .8rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; }
.ico.sun { background: var(--sun-tint); } .ico.night { background: var(--night-tint); } .ico.sage { background: var(--sage-tint); }
.ico.peach { background: var(--accent-tint); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Gallery strip */
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 8px 20px 28px; scroll-snap-type: x mandatory; max-width: var(--wrap); margin: 0 auto; }
.strip .phone { flex: 0 0 210px; scroll-snap-align: center; }
.strip figure { margin: 0; flex: 0 0 210px; scroll-snap-align: center; }
.strip figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 12px; font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--line); }
.plan.pro { background: linear-gradient(150deg, var(--grad-a), var(--grad-b)); color: #fff; border: 0; }
.plan.pro .plan-sub, .plan.pro li { color: rgba(255, 255, 255, .92); }
.plan h3 { font-size: 1.5rem; margin: 0; }
.plan-sub { color: var(--muted); margin: .3rem 0 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: .55em 0 .55em 30px; position: relative; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.plan li::before { content: "✓"; position: absolute; left: 4px; font-weight: 800; color: var(--accent); }
.plan.pro li::before { color: #fff; }
.plan .mascot { position: absolute; width: 84px; right: 16px; top: -40px; }
.fineprint { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Note + CTA band */
.note { background: var(--card-muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: 880px; margin: 0 auto; display: flex; gap: 20px; align-items: center; }
.note img { width: 72px; flex: none; }
.note p { margin: 0; color: var(--muted); font-size: .97rem; }
.band { text-align: center; background: linear-gradient(var(--canvas), var(--hero)); }
.band .mascot { width: 140px; margin: 0 auto 12px; }
.band .cta-row { justify-content: center; }
@media (max-width: 560px) { .note { flex-direction: column; text-align: center; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

/* Legal pages */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.6em; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: .4em 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1em 0 1.4em; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--card-muted); }
.legal .summary { background: var(--card); border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow); margin: 1.5em 0; }
.legal .summary ul { margin: 0; }
.legal .toc { columns: 2; font-size: .95rem; }
@media (max-width: 560px) { .legal .toc { columns: 1; } }
