/* Pomorix website styles. Plain CSS, no build step.
   Colours come from the app: primary #3F8E6D, icon teal #13846A → #023D3A,
   tomato red and cream from the logo. */

:root {
  --brand: #3f8e6d;
  --brand-strong: #2c6e53;
  --brand-soft: #e5f1eb;
  --teal-1: #13846a;
  --teal-2: #023d3a;
  --tomato: #e4513f;
  --cream: #fbeedb;

  --bg: #f6f9f7;
  --bg-alt: #edf4f0;
  --surface: #ffffff;
  --ink: #10261e;
  --muted: #4b5f57;
  --line: rgba(16, 38, 30, 0.1);
  --shadow-sm: 0 2px 8px rgba(16, 38, 30, 0.06);
  --shadow-md: 0 18px 50px -18px rgba(16, 60, 44, 0.28);
  --shadow-phone: 0 40px 80px -30px rgba(8, 40, 30, 0.45), 0 12px 30px -12px rgba(8, 40, 30, 0.25);

  --radius: 22px;
  --radius-lg: 32px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4caf7d;
    --brand-strong: #6cc597;
    --brand-soft: rgba(76, 175, 125, 0.14);
    --bg: #0b1411;
    --bg-alt: #101c18;
    --surface: #14211c;
    --ink: #e8f1ec;
    --muted: #a6b8b0;
    --line: rgba(255, 255, 255, 0.09);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
    --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--bg); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); background: var(--brand-soft); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(63, 142, 109, 0.7); }
.btn-primary:hover { color: #fff; background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--brand-soft); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

/* Google Play button (drawn in SVG/CSS, follows the official badge layout) */
.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; min-height: 60px; border-radius: 14px;
  background: #0b0f0d; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.play-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.6); }
.play-btn svg { width: 30px; height: 33px; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-btn small { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; font-weight: 600; }
.play-btn strong { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-strong);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-lead { margin-top: 16px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); }
.accent { color: var(--brand); }

/* ---------- Phone mockup ---------- */
.phone {
  --w: 280px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.15);
  background: linear-gradient(145deg, #2a332f, #0b100e 55%, #1c2420);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone::after { /* punch-hole camera */
  content: ""; position: absolute; top: calc(var(--w) * 0.06); left: 50%;
  width: calc(var(--w) * 0.042); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #070a09; box-shadow: inset 0 0 0 2px #1d2622;
}
.phone img {
  width: 100%; aspect-ratio: 1080 / 2400; object-fit: cover;
  border-radius: calc(var(--w) * 0.12); background: #f9f9f9;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(63, 142, 109, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.hero-badge b { padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.78rem; letter-spacing: 0.02em; }
.hero h1 { margin-top: 22px; font-size: clamp(2.7rem, 6.4vw, 4.9rem); letter-spacing: -0.045em; line-height: 1.02; }
.hero-lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.08rem, 1.7vw, 1.22rem); color: var(--muted); }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.4; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.orbit { position: absolute; inset: 50% auto auto 50%; width: 620px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.orbit circle { fill: none; stroke: var(--brand); }
.orbit .ring-1 { stroke-opacity: 0.16; stroke-width: 1.2; }
.orbit .ring-2 { stroke-opacity: 0.1; stroke-width: 1.2; }
.orbit .ring-3 { stroke-opacity: 0.35; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 180 1600; }
.orbit .spin { transform-origin: 50% 50%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-phones { position: relative; width: 100%; display: flex; justify-content: center; }
.hero-phones .phone-front { --w: 290px; z-index: 2; transform: translateX(-46px); }
.hero-phones .phone-back { --w: 255px; position: absolute; top: 56px; left: 50%; transform: translateX(32px) rotate(6deg); z-index: 1; opacity: 0.98; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 0.86rem; line-height: 1.3; color: var(--muted);
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: 0.98rem; }
.float-card .chip-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.float-card .chip-icon.warm { background: #fff1e6; color: #e2702b; }
.float-a { left: 0; top: 18%; }
.float-b { right: 0; bottom: 14%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-list { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; }
.trust-list li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; text-align: center;
  font-weight: 700; font-size: 0.95rem;
}
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list .icon { color: var(--brand); width: 26px; height: 26px; }
.trust-list span { color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-top: -6px; }

/* ---------- Spotlight features ---------- */
.spotlights { display: grid; gap: clamp(28px, 4vw, 40px); }
.spotlight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.spotlight:nth-child(even) .spotlight-media { order: -1; }
.spotlight h3 { margin-top: 12px; font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
.spotlight p { margin-top: 14px; color: var(--muted); }
.checklist { margin-top: 22px; display: grid; gap: 12px; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong);
}
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.spotlight-media {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px;
  min-height: 100%; padding: 36px 12px 0; margin-bottom: calc(clamp(28px, 5vw, 64px) * -1 - 1px);
  border-radius: 26px 26px 0 0;
  background: radial-gradient(120% 90% at 50% 0%, var(--brand-soft), transparent 70%);
}
.spotlight-media .phone { --w: 240px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.spotlight-media .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 1080 / 1950; object-position: top; }
.spotlight-media .phone.offset { margin-bottom: -40px; transform: translateY(-28px); }
.spotlight.dark { background: linear-gradient(150deg, #123a31, #08201b 60%, #0b2a24); color: #e9f3ee; border-color: transparent; }
.spotlight.dark p, .spotlight.dark .checklist li { color: #b7cbc2; }
.spotlight.dark .eyebrow { color: #7dd3a8; }
.spotlight.dark .checklist .tick { background: rgba(125, 211, 168, 0.16); color: #7dd3a8; }
.spotlight.dark .spotlight-media { background: radial-gradient(120% 90% at 50% 0%, rgba(125, 211, 168, 0.18), transparent 70%); }

/* ---------- Feature grid ---------- */
.feature-grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.feature-card {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card .f-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.feature-card .f-icon.c2 { background: #fdeceb; color: #d1453a; }
.feature-card .f-icon.c3 { background: #eef0ff; color: #5562c9; }
.feature-card .f-icon.c4 { background: #fff3e2; color: #c9741d; }
.feature-card .f-icon.c5 { background: #f4ecfb; color: #8a4fc0; }
.feature-card .f-icon.c6 { background: #e5f5f8; color: #1f8197; }
@media (prefers-color-scheme: dark) {
  .feature-card .f-icon.c2, .feature-card .f-icon.c3, .feature-card .f-icon.c4,
  .feature-card .f-icon.c5, .feature-card .f-icon.c6 { background: rgba(255, 255, 255, 0.07); }
  .float-card .chip-icon.warm { background: rgba(226, 112, 43, 0.16); }
}
.feature-card h3 { margin-top: 18px; font-size: 1.2rem; letter-spacing: -0.02em; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Numbers band ---------- */
.numbers { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
.numbers li { padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--teal-1), var(--teal-2)); color: #e7f4ee; }
.numbers strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.numbers span { display: block; margin-top: 10px; font-size: 0.95rem; color: #bfe0d1; }

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: clamp(18px, 3vw, 30px); list-style: none;
  /* Bleed to the viewport edges while the first item lines up with the container */
  --edge: max(var(--gutter), (100vw - var(--container)) / 2);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 20px var(--edge) 40px; margin-inline: calc(50% - 50vw);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; flex: none; }
.gallery figure { margin: 0; }
.gallery .phone { --w: 236px; }
.gallery figcaption { margin-top: 18px; text-align: center; font-weight: 700; font-size: 0.98rem; }
.gallery figcaption span { display: block; color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.gallery-controls { display: flex; justify-content: center; gap: 12px; }
.gallery-btn {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: background-color 0.2s, opacity 0.2s;
}
.gallery-btn:hover { background: var(--brand-soft); }
.gallery-btn[disabled] { opacity: 0.4; cursor: default; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { display: grid; gap: 14px; list-style: none; counter-reset: step; margin-top: 30px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(160deg, var(--teal-1), var(--teal-2)); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.steps h3 { font-size: 1.12rem; letter-spacing: -0.02em; margin-top: 2px; }
.steps p { color: var(--muted); font-size: 0.97rem; margin-top: 4px; }
.steps-phones { display: flex; justify-content: center; align-items: center; }
.steps-phones .phone { --w: 210px; }
.steps-phones .phone:nth-child(1) { transform: translateX(28px) rotate(-6deg) scale(0.9); z-index: 1; }
.steps-phones .phone:nth-child(2) { z-index: 2; }
.steps-phones .phone:nth-child(3) { transform: translateX(-28px) rotate(6deg) scale(0.9); z-index: 1; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
.audience li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.audience .emoji { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand-strong); }
.audience h3 { margin-top: 18px; font-size: 1.15rem; letter-spacing: -0.02em; }
.audience p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.why {
  margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.why img { width: 92px; height: 92px; border-radius: 26px; box-shadow: var(--shadow-md); }
.why h3 { font-size: 1.35rem; }
.why p { margin-top: 8px; color: var(--muted); }

/* ---------- Privacy band ---------- */
.privacy-band {
  position: relative; overflow: hidden; color: #e6f2ec;
  background: radial-gradient(80% 120% at 100% 0%, rgba(19, 132, 106, 0.55), transparent 60%), linear-gradient(160deg, #0d2e27, #051a16);
}
.privacy-band .section-title { color: #fff; }
.privacy-band .section-lead { color: #b5cbc1; }
.privacy-band .eyebrow { color: #7dd3a8; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; }
.privacy-list li { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.privacy-list .icon { color: #7dd3a8; width: 26px; height: 26px; }
.privacy-list strong { display: block; margin-top: 12px; color: #fff; }
.privacy-list span { display: block; margin-top: 4px; font-size: 0.93rem; color: #a9c0b6; }
.privacy-band a { color: #9be3bf; }
.privacy-band a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow 0.2s; }
.faq-list details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c6e53' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
@media (prefers-color-scheme: dark) {
  .faq-list summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc597' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
  }
}
.faq-list .answer { padding: 0 24px 22px; color: var(--muted); }
.faq-list .answer p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */
.cta-panel {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px); border-radius: clamp(28px, 4vw, 44px);
  background: radial-gradient(70% 90% at 50% 0%, rgba(124, 214, 170, 0.35), transparent 70%), linear-gradient(160deg, var(--teal-1), var(--teal-2));
  box-shadow: var(--shadow-md);
}
.cta-panel::before, .cta-panel::after {
  content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.12); pointer-events: none;
}
.cta-panel::before { width: 560px; height: 560px; left: -220px; bottom: -320px; }
.cta-panel::after { width: 420px; height: 420px; right: -160px; top: -220px; }
.cta-panel img { width: 88px; height: 88px; margin: 0 auto; border-radius: 24px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5); }
.cta-panel h2 { margin-top: 26px; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.cta-panel p { margin: 16px auto 0; max-width: 36rem; color: #cfe8dc; font-size: 1.1rem; }
.cta-panel .play-btn { margin-top: 32px; }
.cta-note { margin-top: 16px !important; font-size: 0.9rem !important; color: #a8d2be !important; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 14px; color: var(--muted); font-size: 0.95rem; max-width: 22rem; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 800; }
.footer-grid ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-grid ul a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(48px, 7vw, 88px) 24px; }
.legal-hero h1 { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-hero .lead { margin-top: 16px; max-width: 46rem; color: var(--muted); font-size: 1.08rem; }
.legal-hero .nav-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.legal-body { padding-bottom: 96px; }
.legal-body .policy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 880px; }
.legal-hero .container, .legal-body .container { max-width: 880px; }
.legal-body .section-card { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal-body .section-card h2 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal-body .section-card p, .legal-body .section-card li { color: var(--muted); }
.legal-body .section-card p + p { margin-top: 10px; }
.legal-body .section-card ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }
.legal-body .notice { border-left: 4px solid var(--brand); }
.legal-body .caps { text-transform: uppercase; font-size: 0.92rem; }
.legal-body .table-wrap { overflow-x: auto; margin-top: 10px; }
.legal-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.93rem; }
.legal-body th, .legal-body td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal-body th { color: var(--ink); }
.legal-body strong { color: var(--ink); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list li:nth-child(4) { border-left: 0; }
  .trust-list li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-grid, .steps-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-visual { min-height: 0; padding-top: 12px; }
  .spotlight { grid-template-columns: minmax(0, 1fr); }
  .spotlight:nth-child(even) .spotlight-media { order: 0; }
  .steps-grid .steps-phones { order: -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; gap: 4px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.02rem; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-phones .phone-front { --w: 230px; transform: translateX(-30px); }
  .hero-phones .phone-back { --w: 200px; top: 40px; transform: translateX(14px) rotate(6deg); }
  .orbit { width: 460px; }
  .float-card { padding: 10px 12px; font-size: 0.78rem; }
  .float-card .chip-icon { width: 32px; height: 32px; border-radius: 10px; }
  .float-a { top: 6%; left: -4px; }
  .float-b { bottom: 6%; right: -4px; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(odd) { border-left: 0; }
  .trust-list li:nth-child(4) { border-left: 1px solid var(--line); }
  .trust-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature-grid, .audience, .privacy-list { grid-template-columns: 1fr; }
  .numbers li { padding: 20px; }
  .spotlight-media .phone { --w: 200px; }
  .spotlight-media .phone.offset { display: none; }
  .gallery .phone { --w: 210px; }
  .steps-phones .phone { --w: min(140px, 36vw); }
  .steps-phones .phone:nth-child(1) { transform: translateX(16%) rotate(-6deg) scale(0.88); }
  .steps-phones .phone:nth-child(3) { transform: translateX(-16%) rotate(6deg) scale(0.88); }
  .why { grid-template-columns: 1fr; text-align: center; }
  .why img { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .play-btn { min-height: 56px; }
}

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

/* =====================================================================
   Blog (blog/index.html and blog/<slug>/index.html, built by _blog/build.py)
   ===================================================================== */
.footer-grid-5 { grid-template-columns: 1.3fr 1fr 1.35fr 1fr 0.9fr; }

/* Topic colours */
.cat-pomodoro { --cat-1: #d6543c; --cat-2: #5c1a14; --cat-ink: #b93b2b; --cat-soft: #fdeceb; }
.cat-study { --cat-1: #5460d6; --cat-2: #1c2068; --cat-ink: #4651b8; --cat-soft: #eef0ff; }
.cat-focus { --cat-1: #13846a; --cat-2: #023d3a; --cat-ink: #2c6e53; --cat-soft: #e5f1eb; }
.cat-habits { --cat-1: #d68a2c; --cat-2: #68360c; --cat-ink: #9a5610; --cat-soft: #fff3e2; }
@media (prefers-color-scheme: dark) {
  .cat-pomodoro { --cat-ink: #f2917f; --cat-soft: rgba(242, 145, 127, 0.13); }
  .cat-study { --cat-ink: #a3abf5; --cat-soft: rgba(163, 171, 245, 0.13); }
  .cat-focus { --cat-ink: #7dd3a8; --cat-soft: rgba(125, 211, 168, 0.13); }
  .cat-habits { --cat-ink: #f0b56a; --cat-soft: rgba(240, 181, 106, 0.13); }
}
.cat-pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--cat-soft, var(--brand-soft)); color: var(--cat-ink, var(--brand-strong));
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.5;
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* Blog home */
.blog-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.blog-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(63, 142, 109, 0.15), transparent 70%); pointer-events: none;
}
.blog-hero .container { position: relative; }
.blog-hero .eyebrow { margin-top: 26px; }
.blog-hero h1 { margin-top: 14px; max-width: 16ch; font-size: clamp(2.3rem, 5.6vw, 4.2rem); letter-spacing: -0.045em; line-height: 1.04; }
.blog-hero .lead { margin-top: 18px; max-width: 40rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.featured-card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.featured-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.featured-media { position: relative; display: block; min-height: 300px; overflow: hidden; background: linear-gradient(150deg, var(--cat-1), var(--cat-2)); }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.featured-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.featured-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.read-more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-strong); font-weight: 700; }
.read-more .icon { width: 18px; height: 18px; }

.blog-list { padding-block: clamp(48px, 7vw, 88px) 0; }
.blog-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.blog-list-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.chip:hover { background: var(--brand-soft); }
.chip span { margin-left: 2px; color: var(--muted); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip[aria-pressed="true"] span { color: inherit; opacity: 0.7; }

.post-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card[hidden] { display: none; }
.post-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.post-card a:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-card-media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: linear-gradient(150deg, var(--cat-1), var(--cat-2)); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card a:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; }
.post-card-title { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.28; }
.post-card-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.post-card-meta { width: 100%; margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.post-card-meta .icon { width: 16px; height: 16px; }

/* Home page "From the blog" */
.home-blog-more { margin-top: 32px; text-align: center; }

/* Article page */
.post-hero { padding-top: clamp(28px, 5vw, 56px); }
.post-hero-inner, .post-hero .post-cover { max-width: calc(250px + clamp(36px, 5vw, 72px) + 720px); }
.post-hero .cat-pill { margin-top: 24px; }
.post-hero h1 { margin-top: 14px; font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.07; }
.post-dek { margin-top: 18px; max-width: 46rem; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.24rem); }
.post-meta { margin-top: 18px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.post-cover { margin-top: clamp(28px, 4vw, 44px); }
.post-cover img {
  width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--cat-1), var(--cat-2)); box-shadow: var(--shadow-md);
}

.post-layout {
  display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center;
  gap: clamp(36px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px) 16px;
}
.post-aside {
  position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto;
  display: grid; gap: 22px; scrollbar-width: thin;
}
.toc-title { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc-title .icon { width: 18px; height: 18px; }
.toc ol { list-style: none; margin-top: 12px; border-left: 2px solid var(--line); }
.toc a {
  display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 0.9rem; line-height: 1.4; text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand-strong); border-left-color: var(--brand); font-weight: 600; }
.aside-app { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.aside-app img { border-radius: 13px; }
.aside-app p { margin-top: 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.aside-app p strong { display: block; color: var(--ink); font-size: 1.05rem; }
.aside-app ul { list-style: none; margin: 12px 0 16px; display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; }
.aside-app li { display: flex; align-items: center; gap: 8px; }
.aside-app li .icon { width: 15px; height: 15px; color: var(--brand); stroke-width: 2.6; }

.play-btn-sm { min-height: 48px; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 12px; }
.play-btn-sm svg { width: 22px; height: 24px; }
.play-btn-sm small { font-size: 0.58rem; }
.play-btn-sm strong { font-size: 1.05rem; }

.toc-mobile { display: none; margin-bottom: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.toc-mobile ol { padding: 0 18px 16px 38px; display: grid; gap: 6px; font-size: 0.95rem; }
.toc-mobile a { color: var(--muted); text-decoration: none; }

.takeaways { margin-bottom: 36px; padding: 22px 26px; border-radius: var(--radius); background: var(--brand-soft); }
.takeaways-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brand-strong); }
.takeaways ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; }
.takeaways li::marker { color: var(--brand); }

/* Article text */
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.2; }
.prose h3 { margin-top: 1.7em; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0.65em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose a { font-weight: 600; }
.prose blockquote { margin: 1.6em 0 0; padding: 2px 0 2px 22px; border-left: 4px solid var(--brand); font-size: 1.18rem; font-weight: 600; }
.prose .tip { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.prose .tip strong:first-child { color: var(--brand-strong); }
.prose .table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.97rem; line-height: 1.55; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-alt); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }

.app-callout {
  margin-block: 2em; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: end;
  padding: 26px 28px 0; border-radius: var(--radius-lg); overflow: hidden; color: #e7f4ee;
  background: radial-gradient(90% 120% at 0% 0%, rgba(124, 214, 170, 0.28), transparent 60%), linear-gradient(160deg, var(--teal-1), var(--teal-2));
}
.prose > .app-callout { margin-top: 2em; }
.app-callout .phone { --w: 150px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); }
.app-callout .phone img { aspect-ratio: 1080 / 1500; object-position: top; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.app-callout-copy { padding-bottom: 26px; align-self: center; }
.app-callout-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #9be3bf; }
.app-callout-tag img { border-radius: 6px; }
.app-callout h3 { margin-top: 10px; color: #fff; font-size: 1.3rem; }
.app-callout p { margin-top: 8px; color: #cfe8dc; font-size: 1rem; line-height: 1.6; }
.app-callout a:not(.play-btn) { color: #9be3bf; }
.app-callout-cta { margin-top: 16px; }

.post-faq { margin-top: 56px; }
.post-faq h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.post-faq .faq-list { max-width: none; }

.related { padding-block: clamp(48px, 7vw, 80px) 0; }
.related-title { margin-bottom: 24px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.blog-cta-section { padding-block: clamp(48px, 7vw, 88px); }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1001px) and (max-height: 860px) {
  .aside-app ul { display: none; }
  .aside-app { padding: 16px; }
  .aside-app p { margin-bottom: 12px; }
  .toc a { padding-block: 4px; }
}
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-hero-inner { max-width: 720px; }
  .post-aside { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 860px) {
  .featured-card { grid-template-columns: minmax(0, 1fr); }
  .featured-media { min-height: 0; aspect-ratio: 1200 / 630; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid-5 { grid-template-columns: 1fr; }
  .prose { font-size: 1.04rem; }
  .post-cover img { border-radius: 20px; }
  .app-callout { grid-template-columns: minmax(0, 1fr); padding: 24px 22px 0; gap: 8px; }
  .app-callout-media { order: 2; display: flex; justify-content: center; }
  .app-callout-copy { padding-bottom: 10px; }
  .takeaways { padding: 20px; }
  .read-more { margin-left: 12px; }
}
