/* Standalone stylesheet for the marketing/landing pages (/, /en, /uk).
   Deliberately NOT static/styles.css: that file sets `html,body{height:100%;
   overflow:hidden}` for the fixed-viewport app shell, which would break a
   normal scrolling page. The design tokens below are copied from
   styles.css's :root blocks so the landing shares the app's Liquid Glass
   look (frosted panels, ambient radial-gradient field, teal accent) without
   coupling to the app's layout rules. Keep in sync by eye, not by import. */

:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #000000;
  --muted: #8e8e93;
  --line: rgba(60, 60, 67, .29);
  --fill: rgba(120, 120, 128, .12);
  --accent: #0a89a7;
  --accent-soft: rgba(10, 137, 167, .12);
  --gold: #ff9500;
  --green: #34c759;
  --label-muted: #616166;
  --label-accent: #06748c;
  --fill-opaque: #efeff0;
  --accent-soft-opaque: #e2f1f4;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-lg: 0 1px 3px rgba(0, 0, 0, .08), 0 16px 40px rgba(0, 0, 0, .16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 40px;
  --fs-hero: clamp(2.25rem, 2.2vw + 1.6rem, 3.75rem);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --glass: color-mix(in srgb, var(--card) 74%, transparent);
  --glass-blur: blur(24px) saturate(180%);
  --glass-line-top: rgba(255, 255, 255, .85);
  --glass-line-bottom: rgba(255, 255, 255, .18);
  --glass-shadow: 0 12px 44px rgba(0, 0, 0, .16);
  --ambient:
    radial-gradient(ellipse 60% 26% at 15% 3%, rgba(10, 137, 167, .28), transparent 60%),
    radial-gradient(ellipse 55% 24% at 88% 9%, rgba(88, 86, 214, .22), transparent 60%),
    radial-gradient(ellipse 65% 22% at 82% 27%, rgba(10, 137, 167, .22), transparent 60%),
    radial-gradient(ellipse 60% 22% at 8% 42%, rgba(88, 86, 214, .2), transparent 60%),
    radial-gradient(ellipse 65% 24% at 85% 60%, rgba(10, 137, 167, .22), transparent 60%),
    radial-gradient(ellipse 60% 22% at 12% 77%, rgba(88, 86, 214, .2), transparent 60%),
    radial-gradient(ellipse 70% 26% at 50% 97%, rgba(10, 137, 167, .2), transparent 65%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #ffffff;
    --muted: #98989f;
    --line: rgba(84, 84, 88, .65);
    --fill: rgba(120, 120, 128, .24);
    --accent: #27c8e0;
    --accent-soft: rgba(39, 200, 224, .16);
    --gold: #ff9f0a;
    --green: #30d158;
    --label-muted: var(--muted);
    --label-accent: var(--accent);
    --fill-opaque: #323236;
    --accent-soft-opaque: #1e383d;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-lg: 0 1px 3px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .55);
    --glass: color-mix(in srgb, var(--card) 62%, transparent);
    --glass-line-top: rgba(255, 255, 255, .26);
    --glass-line-bottom: rgba(255, 255, 255, .05);
    --glass-shadow: 0 12px 44px rgba(0, 0, 0, .55);
    --ambient:
      radial-gradient(ellipse 60% 26% at 15% 3%, rgba(39, 200, 224, .24), transparent 60%),
      radial-gradient(ellipse 55% 24% at 88% 9%, rgba(94, 92, 230, .19), transparent 60%),
      radial-gradient(ellipse 65% 22% at 82% 27%, rgba(39, 200, 224, .19), transparent 60%),
      radial-gradient(ellipse 60% 22% at 8% 42%, rgba(94, 92, 230, .17), transparent 60%),
      radial-gradient(ellipse 65% 24% at 85% 60%, rgba(39, 200, 224, .19), transparent 60%),
      radial-gradient(ellipse 60% 22% at 12% 77%, rgba(94, 92, 230, .17), transparent 60%),
      radial-gradient(ellipse 70% 26% at 50% 97%, rgba(39, 200, 224, .17), transparent 65%);
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --text: #ffffff;
  --muted: #98989f;
  --line: rgba(84, 84, 88, .65);
  --fill: rgba(120, 120, 128, .24);
  --accent: #27c8e0;
  --accent-soft: rgba(39, 200, 224, .16);
  --gold: #ff9f0a;
  --green: #30d158;
  --label-muted: var(--muted);
  --label-accent: var(--accent);
  --fill-opaque: #323236;
  --accent-soft-opaque: #1e383d;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-lg: 0 1px 3px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .55);
  --glass: color-mix(in srgb, var(--card) 62%, transparent);
  --glass-line-top: rgba(255, 255, 255, .26);
  --glass-line-bottom: rgba(255, 255, 255, .05);
  --glass-shadow: 0 12px 44px rgba(0, 0, 0, .55);
  --ambient:
    radial-gradient(ellipse 60% 26% at 15% 3%, rgba(39, 200, 224, .24), transparent 60%),
    radial-gradient(ellipse 55% 24% at 88% 9%, rgba(94, 92, 230, .19), transparent 60%),
    radial-gradient(ellipse 65% 22% at 82% 27%, rgba(39, 200, 224, .19), transparent 60%),
    radial-gradient(ellipse 60% 22% at 8% 42%, rgba(94, 92, 230, .17), transparent 60%),
    radial-gradient(ellipse 65% 24% at 85% 60%, rgba(39, 200, 224, .19), transparent 60%),
    radial-gradient(ellipse 60% 22% at 12% 77%, rgba(94, 92, 230, .17), transparent 60%),
    radial-gradient(ellipse 70% 26% at 50% 97%, rgba(39, 200, 224, .17), transparent 65%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s, color .35s;
  min-height: 100%;
  overflow-x: clip;
}
/* Ambient field is absolutely positioned (not fixed) and stretched to the
   full document height via inset:0 on a position:relative body, so the
   radial-gradient blobs defined in --ambient (spread across ~0%-100% of
   that height) show color behind every section, not just the first
   viewport. It scrolls with the page like any other in-flow decoration. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ambient), var(--bg);
  pointer-events: none;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-5); }

/* ---- top nav --------------------------------------------------------- */
.l-nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 var(--glass-line-bottom);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .l-nav { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.l-navrow {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) 0;
}
.l-brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-md); text-decoration: none; letter-spacing: -.01em; }
.l-brand img { width: 28px; height: 28px; border-radius: 7px; }
.l-langs { display: flex; gap: 2px; background: var(--fill); border-radius: 9px; padding: 2px; }
.l-langs a {
  display: inline-block; padding: 5px 10px; border-radius: 7px;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--label-muted);
}
.l-langs a[aria-current="page"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* ---- hero -------------------------------------------------------------- */
.l-hero {
  padding: var(--sp-7) 0 var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
  position: relative;
}
.l-hero-copy { text-align: center; }
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--label-accent);
  border-radius: 999px; padding: 5px 14px; font-size: var(--fs-sm); font-weight: 700;
  margin-bottom: var(--sp-4);
}
.l-hero h1 {
  font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  margin: 0 0 var(--sp-4);
}
.l-hero .l-sub {
  font-size: var(--fs-lg); color: var(--label-muted); max-width: 560px; margin: 0 auto var(--sp-6);
  line-height: 1.5;
}
.l-cta-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  border: 0; border-radius: var(--radius); padding: 14px var(--sp-6); min-height: 50px;
  font-size: var(--fs-lg); font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; transition: opacity .15s, transform .15s;
}
.l-btn:hover { opacity: .92; }
.l-btn:active { transform: scale(.98); }
.l-btn.ghost { background: var(--fill); color: var(--text); }
.l-hero-stats {
  display: flex; gap: var(--sp-6); justify-content: center; flex-wrap: wrap;
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.l-stat b { display: block; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.l-stat span { display: block; font-size: var(--fs-sm); color: var(--label-muted); font-weight: 500; }

/* ---- hero device mockup ------------------------------------------------- */
/* align-items:center, NOT the flex default of stretch: stretch gave .l-phone a
   definite height equal to the hero row, which overrode the screenshot's aspect
   ratio and visibly squashed the UI inside the bezel. */
.l-hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.l-hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -10% -10% -10%;
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(10, 137, 167, .28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 70% 70%, rgba(88, 86, 214, .2), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .l-hero-visual::before {
    background:
      radial-gradient(ellipse 60% 55% at 50% 40%, rgba(39, 200, 224, .3), transparent 70%),
      radial-gradient(ellipse 45% 40% at 70% 70%, rgba(94, 92, 230, .22), transparent 70%);
  }
}
:root[data-theme="dark"] .l-hero-visual::before {
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(39, 200, 224, .3), transparent 70%),
    radial-gradient(ellipse 45% 40% at 70% 70%, rgba(94, 92, 230, .22), transparent 70%);
}
.l-phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(160deg, #48484c, #1c1c1e);
  box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
/* No dynamic-island notch: the screenshot is the app viewport, with no OS
   status bar beneath it, so an island would sit on top of the UI rather than
   above it — it blacked out the category picker. Clean bezel instead. */
.l-phone picture, .l-phone img {
  display: block; width: 100%; border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  /* The mockups are verbatim 390x844@2x captures of the app viewport. Pin the
     aspect ratio to the real thing: height:auto alone still renders whatever
     ratio the file happens to have, so a badly-resized export would silently
     distort the UI inside the bezel again. */
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: contain;
}

/* ---- sections / glass cards -------------------------------------------- */
.l-section { padding: var(--sp-7) 0; }
.l-section h2 {
  font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; margin: 0 0 var(--sp-2);
  text-align: center;
}
.l-section .l-lede {
  text-align: center; color: var(--label-muted); font-size: var(--fs-lg);
  max-width: 560px; margin: 0 auto var(--sp-6); line-height: 1.5;
}
.l-card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: inset 0 1px 0 var(--glass-line-top), inset 0 -1px 0 var(--glass-line-bottom), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .l-card { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--shadow); }
}

.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.l-feature h3 { margin: var(--sp-3) 0 6px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.l-feature p { margin: 0; color: var(--label-muted); font-size: var(--fs-md); line-height: 1.5; }
.l-feature .l-ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 1px 0 var(--glass-line-top), inset 0 -1px 0 rgba(0, 0, 0, .06);
}
.l-feature .l-ico svg { width: 22px; height: 22px; }

.l-steps { display: grid; gap: var(--sp-3); }
.l-step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.l-step .l-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--fs-sm);
  display: flex; align-items: center; justify-content: center;
}
.l-step h3 { margin: 2px 0 4px; font-size: var(--fs-lg); font-weight: 700; }
.l-step p { margin: 0; color: var(--label-muted); }

/* ---- FAQ ---------------------------------------------------------------- */
.l-faq { display: grid; gap: var(--sp-3); }
.l-faq details {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: inset 0 1px 0 var(--glass-line-top), inset 0 -1px 0 var(--glass-line-bottom);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .l-faq details { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.l-faq summary {
  font-weight: 700; font-size: var(--fs-md); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; color: var(--accent); font-size: var(--fs-xl); font-weight: 400; flex: none; }
.l-faq details[open] summary::after { content: "\2212"; }
.l-faq p { margin: var(--sp-3) 0 0; color: var(--label-muted); line-height: 1.6; }

/* ---- donate --------------------------------------------------------------- */
.l-donate {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; align-items: stretch;
}
.l-donate-card {
  flex: 1 1 220px; max-width: 320px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.l-donate-card img { width: 40px; height: 40px; border-radius: 10px; }
.l-donate-card h3 { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.l-donate-card p { margin: 0; color: var(--label-muted); font-size: var(--fs-sm); line-height: 1.5; }
.l-donate-card .l-btn { margin-top: var(--sp-2); padding: 10px var(--sp-5); min-height: 40px; font-size: var(--fs-md); }

/* ---- final CTA ------------------------------------------------------------ */
.l-final { text-align: center; padding: var(--sp-6) 0 var(--sp-4); }
.l-final h2 { margin-bottom: var(--sp-4); }

/* ---- footer ---------------------------------------------------------------- */
.l-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-6) 0 var(--sp-7);
  color: var(--label-muted); font-size: var(--fs-sm); line-height: 1.6;
}
.l-footer nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.l-footer nav a { text-decoration: underline dotted var(--muted) 1px; text-underline-offset: 3px; }
.l-footer .l-disclaimer { max-width: 640px; }

/* ---- desktop hero: two columns, copy left / device mockup right -------- */
@media (min-width: 900px) {
  .l-hero { grid-template-columns: 1.05fr .95fr; text-align: left; padding: var(--sp-8) 0 var(--sp-7); }
  .l-hero-copy { text-align: left; }
  .l-hero .l-sub { margin-left: 0; margin-right: 0; }
  .l-cta-row { justify-content: flex-start; }
  .l-hero-stats { justify-content: flex-start; }
  .l-phone { max-width: 300px; transform: rotate(-2deg); }
}

@media (min-width: 641px) and (max-width: 899px) {
  .l-grid { grid-template-columns: repeat(2, 1fr); }
  .l-phone { max-width: 220px; }
}

@media (max-width: 640px) {
  .l-hero { padding: var(--sp-6) 0 var(--sp-5); gap: var(--sp-5); }
  .l-grid { grid-template-columns: 1fr; }
  .l-section { padding: var(--sp-6) 0; }
  .wrap { padding: 0 var(--sp-3); }
  .l-phone { max-width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .l-nav, .l-card, .l-faq details {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: var(--card) !important;
  }
}
