/* SunCare — site stylesheet
   Warm, light design system matching the app UI. No framework. */

:root {
  --bg: #fffaf2;
  --bg-deep: #fff3e0;
  --surface: #ffffff;
  --ink: #1f1a14;
  --ink-2: #4a4036;
  --muted: #7a6f63;
  --line: #f0e4d2;
  --line-strong: #e6d5bb;

  --accent: #f59e0b;
  --accent-deep: #e8870e;
  --accent-ink: #b45309;
  --accent-soft: #fff1d6;
  --peach: #fde3c3;

  --uv-low: #34c35f;
  --uv-mod: #f5c518;
  --uv-high: #f7931e;
  --uv-vhigh: #ef4444;
  --uv-ext: #a855f7;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(60, 40, 10, .05), 0 4px 14px rgba(60, 40, 10, .05);
  --shadow-md: 0 6px 24px rgba(60, 40, 10, .08), 0 2px 6px rgba(60, 40, 10, .04);
  --shadow-lg: 0 30px 60px -20px rgba(60, 40, 10, .25), 0 12px 24px -12px rgba(60, 40, 10, .12);

  --container: 1120px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }

p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }

::selection { background: var(--peach); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 10px; z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
[id] { scroll-margin-top: 88px; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-block; border-radius: 10px; transition: transform .15s ease, opacity .2s ease; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 52px; width: auto; }
@media (max-width: 480px) { .stores img { height: 46px; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(60, 40, 10, .06); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 500; font-size: .95rem; color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease; content: "";
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; padding: 8px 0 20px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.mobile-menu a:hover { background: var(--accent-soft); color: var(--ink); }
.mobile-menu.is-open { display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Language switcher */
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none;
  transition: background .2s ease, color .2s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: var(--accent-soft); color: var(--ink); }
.lang-switch summary svg { width: 16px; height: 16px; }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-md);
}
.lang-switch__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .95rem; color: var(--ink-2); }
.lang-switch__menu a:hover { background: var(--accent-soft); color: var(--ink); }
.lang-switch__menu a[aria-current] { color: var(--ink); font-weight: 600; background: var(--bg-deep); }
@media (max-width: 860px) { .lang-switch summary { height: 44px; } }

/* Scripts without Latin letter-spacing conventions */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3,
:lang(th) h1, :lang(th) h2, :lang(th) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(th) body { line-height: 1.75; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 32px 0 40px;
  display: flex; align-items: center;
}
@media (min-width: 961px) {
  /* Fill the first screen below the 72px header, so the hero is complete without scrolling */
  .hero { min-height: min(calc(100vh - 72px), 860px); min-height: min(calc(100svh - 72px), 860px); }
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(253, 186, 116, .55), rgba(253, 186, 116, 0));
  z-index: 0; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -20%; bottom: -40%;
  width: 60vw; max-width: 700px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(254, 240, 199, .9), rgba(254, 240, 199, 0));
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; width: 100%; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px;
}
.hero-copy .lede { margin-top: 24px; max-width: 520px; }
.hero-copy .stores { margin-top: 28px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill__dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); }
.pill__dot svg { width: 13px; height: 13px; }
.hero-copy .pill { margin-bottom: 24px; }

.hero-facts {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: .9rem; color: var(--muted); font-weight: 500;
}
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--uv-low); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(100%, 360px);
  filter: drop-shadow(0 40px 60px rgba(90, 50, 0, .25));
}
/* Scale the hero phone to the viewport height so it never gets cut off on the first screen */
@media (min-width: 961px) {
  .hero .phone { width: clamp(240px, (100vh - 160px) * .46, 360px); width: clamp(240px, (100svh - 160px) * .46, 360px); }
}
.phone img { width: 100%; }
.phone--float { animation: float 7s ease-in-out infinite; }

/* floating UI cards in hero */
.ui-card {
  position: absolute;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
}
.ui-card--forecast { left: -10%; bottom: 9%; animation: float 8s ease-in-out infinite 1.2s; }
.ui-card--reminder { right: -8%; top: 33%; animation: float 7.5s ease-in-out infinite 2.4s; }
.ui-card__label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.uv-strip { display: flex; gap: 10px; }
.uv-strip div { text-align: center; }
.uv-strip small { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 6px; }
.uv-strip b {
  display: inline-block; min-width: 38px; padding: 4px 6px; border-radius: 10px;
  font-weight: 700; font-size: .8rem;
}
.uv-strip b[data-level="low"] { background: #e3f7e8; color: #1f9d49; }
.uv-strip b[data-level="mod"] { background: #fff6d6; color: #b7850a; }
.uv-strip b[data-level="high"] { background: #ffe8d1; color: #d8710c; }
.uv-strip b[data-level="vhigh"] { background: #ffe1e1; color: #d63b3b; }

.ui-card--reminder { display: flex; align-items: center; gap: 12px; }
.ui-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0; }
.ui-card__icon svg { width: 20px; height: 20px; }
.ui-card strong { display: block; font-size: .95rem; color: var(--ink); }
.ui-card span.sub { color: var(--muted); }

@media (max-width: 1200px) {
  .ui-card--reminder { right: 0; }
  .ui-card--forecast { left: 0; }
}
@media (max-width: 960px) {
  .hero { padding: 36px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy .pill { margin-bottom: 18px; }
  .hero-copy .lede { margin-top: 18px; font-size: 1.08rem; }
  .hero-copy .stores { margin-top: 24px; }
  .hero-facts { margin-top: 22px; gap: 8px 20px; font-size: .88rem; }
  .hero-visual { margin-top: 0; }
  .phone { width: min(100%, 280px); }
  .ui-card--forecast { left: 0; bottom: 6%; }
  .ui-card--reminder { right: 0; top: 30%; }
}
@media (max-width: 480px) {
  .hero { padding-top: 28px; }
  .ui-card--forecast { display: none; }
  .ui-card--reminder { right: 4px; top: 28%; padding: 12px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Trust strip ---------- */
.trust-band { padding: 28px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line);
}
.trust__item svg { width: 22px; height: 22px; color: var(--accent-deep); flex-shrink: 0; }
.trust__item strong { display: block; font-size: .95rem; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; gap: 10px; } .trust__item { padding: 12px 16px; } .trust-band { padding: 20px 0; } }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
  margin-bottom: 20px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } .feature { padding: 24px; } }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media { position: relative; display: flex; justify-content: center; }
.split__media::before {
  content: ""; position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(253, 211, 150, .7), rgba(253, 211, 150, 0));
  z-index: 0;
}
.split__media .phone { position: relative; z-index: 1; width: min(100%, 320px); }

.checklist { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist__icon {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.checklist__icon svg { width: 16px; height: 16px; }
.checklist strong { display: block; font-weight: 700; margin-bottom: 2px; }
.checklist span { color: var(--ink-2); font-size: .97rem; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- UV scale ---------- */
.uv-scale { margin-top: 48px; }
.uv-bar {
  display: grid; grid-template-columns: 2fr 3fr 2fr 3fr 1.5fr; gap: 6px;
  height: 14px; border-radius: var(--r-pill); overflow: hidden;
}
.uv-bar div:nth-child(1) { background: var(--uv-low); }
.uv-bar div:nth-child(2) { background: var(--uv-mod); }
.uv-bar div:nth-child(3) { background: var(--uv-high); }
.uv-bar div:nth-child(4) { background: var(--uv-vhigh); }
.uv-bar div:nth-child(5) { background: var(--uv-ext); }

.uv-bands {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.uv-band {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px;
}
.uv-band__range {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em;
}
.uv-band__name { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 10px; }
.uv-band p { color: var(--ink-2); font-size: .9rem; }
.uv-band[data-level="low"] .uv-band__name { color: #1f9d49; }
.uv-band[data-level="mod"] .uv-band__name { color: #b7850a; }
.uv-band[data-level="high"] .uv-band__name { color: #d8710c; }
.uv-band[data-level="vhigh"] .uv-band__name { color: #d63b3b; }
.uv-band[data-level="ext"] .uv-band__name { color: #8b3fd9; }
@media (max-width: 960px) { .uv-bands { grid-template-columns: repeat(2, 1fr); } .uv-band:last-child { grid-column: span 2; } }
@media (max-width: 480px) { .uv-bands { grid-template-columns: 1fr; } .uv-band:last-child { grid-column: auto; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Blog teaser / cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.post-card__img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; width: 100%; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); font-weight: 500; }
.post-card h2, .post-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.post-card p { color: var(--ink-2); font-size: .95rem; }
.post-card__more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent-ink); font-size: .92rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.faq summary .chev svg { width: 16px; height: 16px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--ink); color: #fff; }
.faq .faq__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq .faq__body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: 72px 40px; text-align: center;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f0801d 100%);
  color: var(--ink);
}
.cta h2 { color: #2a1b05; }
.cta .lede { color: #4a3107; margin: 18px auto 0; max-width: 560px; }
.cta .stores { justify-content: center; margin-top: 36px; }
.cta__sun {
  position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
@media (max-width: 600px) { .cta { padding: 56px 24px; border-radius: 24px; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: .95rem; }
.footer ul a:hover { color: var(--accent-ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: var(--muted);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Blog pages ---------- */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; max-width: 800px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(253, 186, 116, .45), rgba(253, 186, 116, 0)); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .lede { margin-top: 16px; max-width: 600px; }

.article { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 80px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.article__title { margin-top: 16px; font-size: clamp(2rem, 5vw, 3rem); }
.article__cover { margin: 36px 0 8px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.article__cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.7rem; margin: 48px 0 14px; color: var(--ink); }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid #f9dfae; border-radius: var(--r-md);
  padding: 18px 20px; margin: 24px 0; color: var(--ink);
}
.callout svg { width: 22px; height: 22px; color: var(--accent-deep); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; }

.article-cta {
  margin-top: 56px; padding: 40px 32px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.article-cta h2 { font-size: 1.7rem; }
.article-cta p { margin: 12px auto 0; max-width: 480px; }
.article-cta .stores { justify-content: center; margin-top: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; color: var(--accent-ink); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Bottom download bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(115%);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.sticky-cta.is-visible { transform: translateY(0); pointer-events: auto; }
.sticky-cta__card {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 14px;
  background: rgba(31, 26, 20, .94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: 0 -8px 40px rgba(60, 40, 10, .25), 0 20px 50px rgba(60, 40, 10, .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sticky-cta__logo { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.sticky-cta__text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta__text strong { display: block; font-size: .95rem; font-weight: 700; }
.sticky-cta__text span { display: block; font-size: .8rem; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__stores { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-cta__stores a { display: inline-block; border-radius: 8px; transition: transform .15s ease; }
.sticky-cta__stores a:hover { transform: translateY(-1px); }
.sticky-cta__stores img { height: 40px; width: auto; }
.sticky-cta__close {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: rgba(255, 255, 255, .45); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sticky-cta__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sticky-cta__close svg { width: 16px; height: 16px; }
.sticky-cta__close:focus-visible { outline-color: #fff; }

/* On phones show only the visitor's own store */
html[data-platform="ios"] .sticky-cta .store-android,
html[data-platform="android"] .sticky-cta .store-ios { display: none; }
html[data-platform="android"] .stores .store-android { order: -1; }

@media (max-width: 600px) {
  .sticky-cta .container { padding: 0 10px; }
  .sticky-cta__card { gap: 10px; padding: 8px 8px 8px 12px; border-radius: 16px; }
  .sticky-cta__logo { display: none; }
  .sticky-cta__text strong { font-size: .9rem; }
  .sticky-cta__text span { display: none; }
  .sticky-cta__stores img { height: 38px; }
}
