/* Brand typography — self-hosted, CSP-safe (font-src 'self').
   Fredoka: warm, rounded display face for the wordmark, hero and titles.
   Nunito Sans: humanist, highly legible companion for body copy. */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/Fredoka.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/Fredoka-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/NunitoSans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/NunitoSans-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ================= Blue water — default theme ================= */
:root,
:root[data-theme="dark"],
:root[data-brand="blue"][data-theme="dark"] {
  color-scheme: dark;
  --canvas: #03101d;
  --surface: #112b48;
  --elevated: #091d35;
  --text: #f4e8cf;
  --muted: rgba(175, 203, 232, 0.76);
  --accent: #afcbe8;
  --attention: #6fc6c1;
  --attention-ink: #03101d;
  --line: rgba(175, 203, 232, 0.22);
  --line-strong: rgba(175, 203, 232, 0.38);
  --glass: rgba(17, 43, 72, 0.82);
  --soft: rgba(175, 203, 232, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --hero-wash: radial-gradient(circle at 19% 18%, rgba(48, 91, 137, 0.28), transparent 35%);
  --logo-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
  --motif: url("assets/motif-water.svg");
  --active-print: var(--print-water);
  --wood-layer: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

:root[data-theme="light"],
:root[data-brand="blue"][data-theme="light"] {
  color-scheme: light;
  --canvas: #f4e8cf;
  --surface: #faf4e7;
  --elevated: #fffaf0;
  --text: #091d35;
  --muted: rgba(9, 29, 53, 0.68);
  --accent: #305b89;
  --attention: #1d7074;
  --attention-ink: #f4e8cf;
  --line: rgba(48, 91, 137, 0.16);
  --line-strong: rgba(48, 91, 137, 0.3);
  --glass: rgba(250, 244, 231, 0.88);
  --soft: rgba(48, 91, 137, 0.07);
  --shadow: 0 24px 70px rgba(9, 29, 53, 0.14);
  --hero-wash: radial-gradient(circle at 19% 18%, rgba(175, 203, 232, 0.42), transparent 38%);
  --logo-shadow: 0 10px 34px rgba(9, 29, 53, 0.18);
  --motif: url("assets/motif-water.svg");
  --active-print: var(--print-water);
  --wood-layer: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

/* ================= Dusty pink blossom ================= */
:root[data-brand="dusty"][data-theme="dark"] {
  color-scheme: dark;
  --canvas: #1d1118;
  --surface: #4a2938;
  --elevated: #35202b;
  --text: #f4e8cf;
  --muted: rgba(222, 169, 187, 0.82);
  --accent: #dea9bb;
  --attention: #dea9bb;
  --attention-ink: #1d1118;
  --line: rgba(222, 169, 187, 0.22);
  --line-strong: rgba(222, 169, 187, 0.4);
  --glass: rgba(74, 41, 56, 0.82);
  --soft: rgba(222, 169, 187, 0.09);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --hero-wash: radial-gradient(circle at 19% 18%, rgba(141, 63, 97, 0.34), transparent 36%);
  --logo-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
  --motif: url("assets/motif-blossom.svg");
  --active-print: var(--print-blossom);
  --wood-layer: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

:root[data-brand="dusty"][data-theme="light"] {
  color-scheme: light;
  --canvas: #f6e6ea;
  --surface: #fcedf2;
  --elevated: #fff6f8;
  --text: #3e1f2c;
  --muted: rgba(62, 31, 44, 0.7);
  --accent: #8d3f61;
  --attention: #8d3f61;
  --attention-ink: #f4e8cf;
  --line: rgba(141, 63, 97, 0.18);
  --line-strong: rgba(141, 63, 97, 0.34);
  --glass: rgba(252, 237, 242, 0.9);
  --soft: rgba(141, 63, 97, 0.07);
  --shadow: 0 24px 70px rgba(62, 31, 44, 0.14);
  --hero-wash: radial-gradient(circle at 19% 18%, rgba(222, 169, 187, 0.5), transparent 38%);
  --logo-shadow: 0 10px 34px rgba(62, 31, 44, 0.16);
  --motif: url("assets/motif-blossom.svg");
  --active-print: var(--print-blossom);
  --wood-layer: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

/* ================= Forest green ================= */
:root[data-brand="forest"][data-theme="dark"] {
  color-scheme: dark;
  --canvas: #071710;
  --surface: #173c2d;
  --elevated: #0f2a20;
  --text: #f4e8cf;
  --muted: rgba(176, 211, 185, 0.82);
  --accent: #b0d3b9;
  --attention: #b0d3b9;
  --attention-ink: #071710;
  --line: rgba(176, 211, 185, 0.22);
  --line-strong: rgba(176, 211, 185, 0.4);
  --glass: rgba(23, 60, 45, 0.82);
  --soft: rgba(176, 211, 185, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --hero-wash: radial-gradient(circle at 19% 18%, rgba(47, 107, 74, 0.32), transparent 36%);
  --logo-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
  --motif: url("assets/motif-leaf.svg");
  --active-print: var(--print-foliage);
  --wood-layer: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

:root[data-brand="forest"][data-theme="light"] {
  color-scheme: light;
  --canvas: #e9f0df;
  --surface: #f4f8ee;
  --elevated: #fbfdf6;
  --text: #143728;
  --muted: rgba(20, 55, 40, 0.7);
  --accent: #2f6b4a;
  --attention: #2f6b4a;
  --attention-ink: #f4e8cf;
  --line: rgba(47, 107, 74, 0.18);
  --line-strong: rgba(47, 107, 74, 0.34);
  --glass: rgba(244, 248, 238, 0.9);
  --soft: rgba(47, 107, 74, 0.07);
  --shadow: 0 24px 70px rgba(20, 55, 40, 0.14);
  --hero-wash: radial-gradient(circle at 19% 18%, rgba(176, 211, 185, 0.5), transparent 38%);
  --logo-shadow: 0 10px 34px rgba(20, 55, 40, 0.16);
  --motif: url("assets/motif-leaf.svg");
  --active-print: var(--print-foliage);
  --wood-layer: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

/* Shared seam tones so each section's gradient meets the next one seamlessly.
   These reference the themed variables above, so they adapt to every theme. */
:root {
  /* A distinct shade of the app's default canvas, used to alternate sections so
     each one reads as its own band. Adapts to whichever theme is active. */
  --sec-alt: color-mix(in srgb, var(--canvas) 84%, var(--text));
  --print-water: url("assets/print-water.svg");
  --print-blossom: url("assets/print-blossom.svg");
  --print-foliage: url("assets/print-foliage.svg");
}

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

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: "Nunito Sans", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color 180ms ease, background-color 180ms ease;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--attention);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(50px, 6.2vw, 86px);
  font-weight: 480;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 460;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 450;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 12px;
  color: var(--attention-ink);
  background: var(--attention);
  font-weight: 750;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--text);
}

.header-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 13px;
  box-shadow: var(--logo-shadow);
}

.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.site-nav {
  gap: 30px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.theme-toggle-symbol {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--attention-ink);
  background: var(--attention);
  font-size: 14px;
}

.hero,
.donate-hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: var(--hero-wash), var(--canvas);
}

.hero {
  min-height: 850px;
  padding: 174px 0 100px;
  background: var(--hero-wash), var(--canvas);
}

.hero::after,
.donate-hero::after {
  position: absolute;
  right: -160px;
  bottom: -230px;
  width: 540px;
  height: 540px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 84px var(--soft), 0 0 0 168px color-mix(in srgb, var(--accent) 3%, transparent);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 48%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  filter: blur(14px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.78fr);
  gap: 80px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-light {
  color: inherit;
  opacity: 0.74;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--attention);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--attention) 14%, transparent);
}

.hero-lede {
  max-width: 660px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 790;
  line-height: 1.05;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover:not([aria-disabled="true"]) {
  transform: translateY(-2px);
}

.button small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-primary {
  color: var(--attention-ink);
  background: var(--attention);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--attention) 18%, transparent);
}

.button-primary:hover:not([aria-disabled="true"]) {
  background: color-mix(in srgb, var(--attention) 88%, var(--text));
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--soft);
  backdrop-filter: blur(10px);
}

.button-secondary:hover:not([aria-disabled="true"]) {
  background: var(--surface);
}

.button-light {
  color: var(--attention-ink);
  background: var(--text);
}

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-icon {
  width: 23px;
  color: currentColor;
  font-size: 18px;
  text-align: center;
}

.laptop-icon,
.mac-mark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.laptop-icon::after,
.mac-mark::after {
  position: absolute;
  right: -5px;
  bottom: -6px;
  left: -5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.availability-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-stage {
  position: relative;
  min-height: 610px;
}

.device {
  position: absolute;
  z-index: 3;
  top: -46px;
  left: 50%;
  width: min(300px, 74vw);
  padding: 11px;
  transform: translateX(-50%);
  border-radius: 54px;
  background:
    linear-gradient(148deg, #3a4653 0%, #11151b 34%, #0a0d12 62%, #2b333d 100%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.device::before {
  position: absolute;
  inset: 4px;
  border-radius: 50px;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.device-btn {
  position: absolute;
  z-index: 2;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#414b56, #1c232b);
}

.device-btn-power {
  top: 148px;
  right: -3px;
  height: 62px;
}

.device-btn-vol {
  top: 120px;
  left: -3px;
  height: 34px;
  box-shadow: 0 52px 0 0 #2a323b, 0 52px 0 0 rgba(0, 0, 0, 0);
}

.device-btn-vol::after {
  position: absolute;
  top: 48px;
  left: 0;
  width: 3px;
  height: 34px;
  border-radius: 3px;
  background: linear-gradient(#414b56, #1c232b);
  content: "";
}

.device-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: 44px;
  background: #03101d;
  box-shadow: inset 0 0 0 2px #05080d;
  --hero-shot: url("assets/screen-nearby.png");
}

:root[data-theme="light"] .device-screen {
  --hero-shot: url("assets/screen-nearby-light.png");
}

.device-shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* Pinned status bar and tab bar so only the content scrolls, like the app */
.device-chrome {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  background: var(--hero-shot) no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

.device-chrome-top {
  top: 0;
  height: 6.4%;
  background-position: top;
}

.device-chrome-bottom {
  bottom: 0;
  height: 14.5%;
  background-position: bottom;
}

.device-island {
  position: absolute;
  z-index: 4;
  top: 21px;
  left: 50%;
  width: 33%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Gentle "in use" scroll — only the content moves; the pinned status and tab
   bars stay locked in place, exactly like scrolling in the real app. */
@keyframes screenScroll {
  0%,
  10% {
    transform: translateY(0);
  }
  50%,
  60% {
    transform: translateY(-2.4%);
  }
  100% {
    transform: translateY(0);
  }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 470px;
  height: 470px;
}

.orbit-two {
  width: 600px;
  height: 600px;
}

.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  width: 215px;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  font-size: 12px;
  line-height: 1.35;
}

.floating-card strong {
  display: block;
  color: var(--text);
}

.floating-card-top {
  top: 95px;
  right: -22px;
}

.floating-card-bottom {
  bottom: 63px;
  left: -50px;
}

.floating-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--attention-ink);
  background: var(--attention);
  font-size: 19px;
  font-weight: 900;
}

.trust-bar {
  border-top: 1px solid var(--line-strong);
  background: var(--sec-alt);
}

.trust-grid {
  display: grid;
  min-height: 100px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.trust-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid span {
  color: var(--accent);
  font-size: 22px;
}

.section {
  padding: 120px 0;
}

#features {
  border-top: 1px solid var(--line-strong);
  background: var(--canvas);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 62px;
  text-align: center;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.section-heading-left {
  margin: 0;
  text-align: left;
}

.section-heading-left > p:last-child {
  margin-left: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 50px color-mix(in srgb, var(--canvas) 50%, transparent);
}

.feature-card > p:not(.card-kicker),
.feature-card > div > p:not(.card-kicker),
.principles-copy,
.use-card p,
.compact-cta p,
.donation-principle p {
  color: var(--muted);
}

.feature-card-wide {
  display: grid;
  min-height: 390px;
  grid-column: 1 / -1;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 17px;
  color: var(--attention-ink);
  background: var(--attention);
  font-size: 27px;
  font-weight: 850;
}

.card-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.distance-stack {
  display: grid;
  gap: 10px;
  padding: 24px;
  transform: rotate(-1.5deg);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--elevated);
}

.distance-stack span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}

.distance-stack span:last-child {
  border-bottom: 0;
}

.distance-stack i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--attention);
}

.distance-stack b {
  color: var(--muted);
  font-size: 12px;
}

.feature-card-dark {
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 15%, transparent), transparent 42%), var(--elevated);
}

.privacy-card {
  background: var(--elevated);
}

.check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 19px 0 19px 40px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 730;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  position: absolute;
  top: 19px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--attention-ink);
  background: var(--attention);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.download-section {
  border-top: 1px solid var(--line-strong);
  background: var(--canvas);
}

.download-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.platform-list {
  display: grid;
  gap: 17px;
}

.platform-card {
  display: grid;
  grid-template-columns: 74px 1fr 52px;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--canvas) 45%, transparent);
}

.platform-card h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.platform-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.platform-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 20px;
  color: var(--attention-ink);
  background: var(--attention);
  font-size: 22px;
}

.platform-mark.mac-mark {
  width: 66px;
  height: 50px;
  border-width: 4px;
  border-radius: 8px;
  color: var(--accent);
  background: transparent;
}

.platform-mark.mac-mark::after {
  right: -9px;
  bottom: -10px;
  left: -9px;
  height: 4px;
}

.tag {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.round-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--attention-ink);
  background: var(--attention);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.support-band {
  padding: 100px 0;
  color: var(--attention-ink);
  background: linear-gradient(180deg, var(--seam-2), var(--attention) 24%, var(--attention) 76%, var(--seam-1));
}

.support-band h2,
.support-band .eyebrow,
.support-band p {
  color: inherit;
}

.support-band .button-light {
  color: var(--text);
  background: var(--canvas);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
  align-items: end;
}

.support-grid h2 {
  margin-bottom: 20px;
}

.support-grid p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  opacity: 0.78;
}

.principles-section {
  border-top: 1px solid var(--line-strong);
  background: var(--sec-alt);
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.principles-copy p:first-child {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--canvas);
}

.footer-main {
  display: grid;
  min-height: 230px;
  grid-template-columns: 1fr 1fr auto;
  gap: 55px;
  align-items: center;
}

.footer-main > p {
  color: var(--muted);
}

.footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 28px;
}

.footer-main nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-main nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.donate-hero {
  min-height: 720px;
  padding: 180px 0 100px;
}

.donate-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}

.donate-button {
  margin-top: 4px;
}

.support-emblem {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.support-emblem img {
  position: relative;
  z-index: 3;
  width: 250px;
  border-radius: 56px;
  box-shadow: var(--shadow);
}

.support-ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.support-ring-one {
  width: 340px;
  height: 340px;
}

.support-ring-two {
  width: 450px;
  height: 450px;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.use-card {
  min-height: 300px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.use-number {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.donation-principle {
  padding: 100px 0;
  border-block: 1px solid var(--line);
  background: var(--elevated);
}

.donation-principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.donation-principle-grid h2 {
  margin-bottom: 0;
}

.donation-principle-grid p:first-child {
  margin-top: 0;
}

.compact-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
  align-items: end;
}

.compact-cta-inner > div {
  max-width: 700px;
}

.text-link {
  color: var(--accent);
  font-weight: 780;
}

.error-theme-toggle {
  position: fixed;
  z-index: 5;
  top: 22px;
  right: 22px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 120px 24px;
  place-items: center;
  text-align: center;
  background: var(--hero-wash), var(--canvas);
}

.error-page > div {
  max-width: 650px;
}

.error-page img {
  margin: 0 auto 34px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.error-page > div > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

/* Feature showcase — three most important features with screenshots */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.showcase-card {
  text-align: center;
}

.showcase-media {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.showcase-card .card-kicker {
  margin-bottom: 10px;
}

.showcase-card h3 {
  font-size: clamp(22px, 2.1vw, 29px);
}

.showcase-card > p {
  max-width: 33ch;
  margin: 0 auto;
  color: var(--muted);
}

.mini-device {
  position: relative;
  width: min(238px, 100%);
  padding: 9px;
  border-radius: 42px;
  background:
    linear-gradient(148deg, #3a4653 0%, #11151b 38%, #0a0d12 66%, #2b333d 100%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  transition: transform 220ms ease;
}

.showcase-card:hover .mini-device {
  transform: translateY(-6px);
}

.mini-island {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 50%;
  width: 30%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #000;
}

.mini-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: 34px;
  background: #03101d;
}

.mini-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-watch {
  display: grid;
  width: min(206px, 92%);
  aspect-ratio: 1 / 1.16;
  place-items: center;
  padding: 15px;
  border-radius: 64px;
  background:
    linear-gradient(150deg, #45505c 0%, #11151b 44%, #0a0d12 70%, #333c46 100%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 220ms ease;
}

.showcase-card:hover .mini-watch {
  transform: translateY(-6px);
}

.mini-watch-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  background: #03101d;
}

.mini-watch-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mini-watch-screen::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20%;
  background: linear-gradient(rgba(3, 16, 29, 0), #03101d);
  content: "";
}

.privacy-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  margin-top: 72px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 13%, transparent), transparent 46%),
    var(--elevated);
}

.privacy-band h3 {
  margin-bottom: 12px;
}

.privacy-band > div > p {
  margin: 0;
  color: var(--muted);
}

/* Themes gallery — faithful recreations using the app's own palette */
.themes-section {
  border-top: 1px solid var(--line-strong);
  background: var(--sec-alt);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

/* Real printed nature prints around the edges of each theme tile */
.theme-card::before,
.theme-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 172px;
  height: 172px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  opacity: 0.95;
}

.theme-card::before {
  top: -20px;
  left: -14px;
}

.theme-card::after {
  top: 150px;
  right: -16px;
  transform: scaleX(-1) rotate(-4deg);
}

.theme-blue::before,
.theme-blue::after {
  background-image: var(--print-water);
}

.theme-dusty::before,
.theme-dusty::after {
  background-image: var(--print-blossom);
}

.theme-forest::before,
.theme-forest::after {
  background-image: var(--print-foliage);
}

.theme-card figcaption {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.theme-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 22px;
}

.theme-card figcaption p {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.theme-swatches {
  display: inline-flex;
  gap: 5px;
}

.theme-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.theme-blue {
  --tp-canvas: #03101d;
  --tp-surface: #112b48;
  --tp-text: #f4e8cf;
  --tp-muted: rgba(175, 203, 232, 0.74);
  --tp-accent: #afcbe8;
  --tp-attention: #6fc6c1;
  --tp-line: rgba(175, 203, 232, 0.20);
}

.theme-dusty {
  --tp-canvas: #1d1118;
  --tp-surface: #4a2938;
  --tp-text: #f4e8cf;
  --tp-muted: rgba(222, 169, 187, 0.80);
  --tp-accent: #dea9bb;
  --tp-attention: #dea9bb;
  --tp-line: rgba(222, 169, 187, 0.22);
}

.theme-forest {
  --tp-canvas: #071710;
  --tp-surface: #173c2d;
  --tp-text: #f4e8cf;
  --tp-muted: rgba(176, 211, 185, 0.80);
  --tp-accent: #b0d3b9;
  --tp-attention: #b0d3b9;
  --tp-line: rgba(176, 211, 185, 0.22);
}

.theme-swatch.sw-1 {
  background: var(--tp-canvas);
}

.theme-swatch.sw-2 {
  background: var(--tp-surface);
}

.theme-swatch.sw-3 {
  background: var(--tp-accent);
}

.theme-phone {
  position: relative;
  z-index: 1;
  width: min(252px, 100%);
  padding: 9px;
  border-radius: 46px;
  background:
    linear-gradient(148deg, #3a4653 0%, #11151b 38%, #0a0d12 66%, #2b333d 100%);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  transition: transform 220ms ease;
}

.theme-card:hover .theme-phone {
  transform: translateY(-6px);
}

.tp-island {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  width: 30%;
  height: 19px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #000;
}

.tp-screen {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 1206 / 2622;
  padding: 36px 14px 12px;
  border-radius: 37px;
  color: var(--tp-text);
  background: var(--tp-canvas);
  font-size: 10px;
  line-height: 1.25;
  text-align: left;
}

.tp-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
}

.tp-status-icons {
  letter-spacing: 1px;
  opacity: 0.85;
}

.tp-title {
  margin: 1px 0 3px;
  color: var(--tp-text);
  font-size: 15px;
  font-weight: 820;
  text-align: center;
}

.tp-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--tp-muted);
  background: var(--tp-surface);
  font-weight: 650;
}

.tp-search-icon {
  font-size: 12px;
}

.tp-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--tp-surface);
}

.tp-next-label {
  color: var(--tp-attention);
  font-size: 11px;
  font-weight: 820;
}

.tp-next-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--tp-attention);
  font-weight: 850;
}

.tp-next-name,
.tp-next-time {
  font-size: 21px;
}

.tp-section {
  margin: 2px 2px 0;
  color: var(--tp-text);
  font-size: 12px;
  font-weight: 820;
}

.tp-mosque-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 800;
}

.tp-mosque-name {
  color: var(--tp-text);
  font-size: 12px;
}

.tp-mosque-dist {
  color: var(--tp-muted);
  font-size: 11px;
}

.tp-mosque-times {
  display: flex;
  gap: 14px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--tp-line);
}

.tp-mosque-times > span {
  display: flex;
  flex-direction: column;
  color: var(--tp-text);
  font-size: 12px;
  font-weight: 800;
}

.tp-mosque-times i {
  margin-bottom: 3px;
  color: var(--tp-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.tp-tabbar {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 9px 6px 2px;
  border-top: 1px solid var(--tp-line);
}

.tp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--tp-muted);
  font-size: 7px;
  font-weight: 700;
}

.tp-tab b {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tp-tab-on {
  color: var(--tp-accent);
}

/* Light/dark app screenshots — swap with the site theme */
.shot-light {
  display: none;
}

:root[data-theme="light"] .shot-dark {
  display: none;
}

:root[data-theme="light"] .shot-light {
  display: block;
}

/* Per-theme decorative prints (painted water / cherry blossom / foliage) */
.brand-motif {
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 220px;
  background: var(--active-print) no-repeat center / contain;
  opacity: 0.5;
  pointer-events: none;
}

:root[data-theme="light"] .brand-motif {
  opacity: 0.62;
}

.themes-section,
.principles-section {
  position: relative;
  overflow: hidden;
}

.motif-hero-tr {
  top: 128px;
  right: 2%;
  width: 260px;
  height: 230px;
}

.motif-hero-bl {
  bottom: 40px;
  left: 1%;
  width: 210px;
  height: 190px;
  transform: scaleX(-1) rotate(6deg);
}

.motif-themes-tl {
  top: 32px;
  left: 1%;
  transform: scaleX(-1);
}

.motif-themes-br {
  right: 1%;
  bottom: 24px;
  transform: rotate(4deg);
}

.motif-principles {
  right: 2%;
  bottom: 10px;
  width: 220px;
  height: 200px;
}

/* Brand theme switcher */
.brand-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.brand-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 140ms ease;
}

.brand-swatch:hover {
  transform: scale(1.12);
}

.brand-swatch[aria-pressed="true"] {
  border-color: var(--text);
}

.bs-blue {
  background: linear-gradient(135deg, #305b89, #6fc6c1);
}

.bs-dusty {
  background: linear-gradient(135deg, #8d3f61, #dea9bb);
}

.bs-forest {
  background: linear-gradient(135deg, #2f6b4a, #b0d3b9);
}

.theme-use {
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: var(--soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.theme-use:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.theme-use[aria-pressed="true"] {
  color: var(--attention-ink);
  background: var(--attention);
  border-color: transparent;
}

@media (max-width: 950px) {
  .hero-grid,
  .download-layout,
  .donate-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .donate-hero-grid > div:first-child {
    max-width: 760px;
  }

  .product-stage {
    min-height: 660px;
    margin-top: 45px;
  }

  .device {
    top: 0;
  }

  .floating-card-top {
    right: 8%;
  }

  .floating-card-bottom {
    left: 8%;
  }

  .download-layout {
    gap: 54px;
  }

  .support-grid,
  .compact-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }

  .donate-hero-grid {
    gap: 30px;
  }

  .support-emblem {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 78px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .site-nav {
    display: none;
  }

  .theme-toggle {
    padding-inline: 11px;
  }

  .hero,
  .donate-hero {
    padding-top: 132px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .product-stage {
    min-height: 600px;
  }

  .orbit-two {
    width: 440px;
    height: 440px;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .floating-card {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading {
    margin-bottom: 44px;
    text-align: left;
  }

  .section-heading > p:last-child {
    margin-left: 0;
  }

  .feature-grid,
  .feature-card-wide,
  .use-grid,
  .principles-grid,
  .donation-principle-grid,
  .showcase-grid,
  .themes-grid,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .showcase-grid,
  .themes-grid {
    gap: 48px;
    justify-items: center;
  }

  .showcase-card > p,
  .theme-card figcaption p {
    max-width: 42ch;
  }

  .privacy-band {
    gap: 26px;
    padding: 32px;
  }

  .feature-card-wide {
    gap: 36px;
  }

  .feature-card {
    min-height: auto;
    padding: 30px;
  }

  .distance-stack {
    transform: none;
  }

  .platform-card {
    grid-template-columns: 64px 1fr 48px;
    gap: 15px;
    padding: 22px;
  }

  .platform-mark {
    width: 58px;
    height: 58px;
  }

  .platform-mark.mac-mark {
    width: 54px;
    height: 42px;
  }

  .support-band,
  .donation-principle {
    padding: 76px 0;
  }

  .principles-grid,
  .donation-principle-grid {
    gap: 34px;
  }

  .footer-main {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 64px;
  }

  .footer-main nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }

  .support-emblem {
    min-height: 410px;
  }

  .support-emblem img {
    width: 210px;
  }

  .support-ring-one {
    width: 290px;
    height: 290px;
  }

  .support-ring-two {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 38px;
  }

  .theme-toggle [data-theme-label] {
    display: none;
  }

  .theme-toggle {
    width: 42px;
    padding: 8px;
  }

  .theme-toggle-symbol {
    width: 24px;
    height: 24px;
  }

  .product-stage {
    min-height: 560px;
  }

  .device {
    width: min(278px, 83vw);
  }

  .platform-card {
    grid-template-columns: 56px 1fr;
  }

  .platform-card .round-link {
    grid-column: 2;
  }

  .platform-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .support-emblem {
    min-height: 330px;
  }

  .support-emblem img {
    width: 170px;
    border-radius: 40px;
  }

  .support-ring-one {
    width: 230px;
    height: 230px;
  }

  .support-ring-two {
    width: 310px;
    height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
