/* Ewa Cares website. Colours and type follow the app (apps/mobile/src/theme/tokens.ts):
   warm off-white ground, white and pastel tiles, near-black text, black pill buttons, Lexend throughout.
   The logo mark and the "ewa" wordmark (Righteous) come from getewa.ai, as do the layout and motion ideas.
   Motion animates transform and opacity only and is switched off under prefers-reduced-motion.
   With JavaScript off every piece of content is visible. */

@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Lexend_300Light.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Lexend_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Lexend_600SemiBold.ttf") format("truetype"); }

:root {
  --ground: #F4EFEA;
  --paper: #FFFFFF;
  --paper-soft: #FAF7F4;
  --ink: #1A1A1A;
  --ink-soft: #55514E;      /* darker than the app's #6F6B68 so small text passes WCAG AA on the ground */
  --line: #EAE3DD;
  --line-strong: #D8CFC7;
  --lavender: #C9CFF2; --lavender-soft: #E4E7F9;
  --butter: #F2D96B; --butter-soft: #F9EDB8;
  --mint: #C6DDD2; --mint-soft: #E1ECE6;
  --peach: #F3DDD0; --peach-soft: #F9EEE7;
  --sage-soft: #DCE2CC;
  --sky-soft: #DCE6FA;
  --rose: #E8798A; --rose-soft: #F9DDE2; --rose-deep: #C4515F;
  --terracotta: #D98C6E;
  --indigo: #3F46C8;
  --error: #A33326; --error-soft: #F6D9D2;
  --success: #3F6B3A; --success-soft: #DCE9D6;
  --radius: 20px;
  --radius-l: 26px;
  --shadow-card: 0 8px 18px rgba(74, 63, 56, 0.10);
  --shadow-raised: 0 8px 14px rgba(74, 63, 56, 0.18);
  --max: 1120px;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;

  /* Added for the redesign: the getewa.ai logo and wordmark; everything else reuses the tokens above. */
  --mark: #171717;          /* getewa.ai logo circle (Tailwind neutral-900) */
  --mark-border: #E2E8F0;   /* getewa.ai logo ring */
  --brand-font: "Righteous", "Lexend", sans-serif;
  --deep: var(--rose-deep); /* the deep brand colour, used for second headline lines */
  --on-dark: #E6E1DC;       /* body text on dark sections (as on the old privacy band) */
  --dot-ok: #6F9B62; --dot-warn: #E0A84C; --dot-bad: #D9584A;   /* status dots, as before */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius-xl: 36px;
  --shadow-float: 0 18px 40px rgba(74, 63, 56, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.125rem;          /* 18px: comfortable for older readers */
  line-height: 1.6;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3 { font-weight: 300; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
h1 strong, h2 strong { font-weight: 600; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand: getewa.ai mark + "ewa" in Righteous + "Cares" in Lexend ---------- */
.brand-word { font-family: var(--brand-font); font-weight: 400; font-size: 1.12em; letter-spacing: 0; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.25rem; font-weight: 400; min-height: 48px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-text { line-height: 1; }
.mark { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 3px 10px rgba(23, 23, 23, 0.18); }
.mark circle { fill: var(--mark); stroke: var(--mark-border); stroke-width: 5; }
.mark rect { fill: #fff; transform-box: fill-box; transform-origin: center; }
.on-dark .mark circle { fill: #fff; }
.on-dark .mark rect { fill: var(--mark); }
.brand:hover .mark rect, .brand:focus-visible .mark rect { animation: wave-idle 300ms ease-in-out infinite alternate; }
.brand:hover .mark rect:nth-of-type(2), .brand:focus-visible .mark rect:nth-of-type(2) { animation-delay: 75ms; }
.brand:hover .mark rect:nth-of-type(3), .brand:focus-visible .mark rect:nth-of-type(3) { animation-delay: 150ms; }
@keyframes wave-idle { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
/* The mark is the rainbow "e" (Robin, 23 Nov 2026), drawn from one sprite strip of the logo film from the yellow dot to
   the settled e (110 frames at 30 fps, img/e-reveal-strip.webp, made from design/logo-animation/ewa-e-reveal.html). The last
   frame is the still e, so every mark shows the e; .e-anim plays the film once (the navbar logo, the intro). Each stage
   is centred and fills almost the whole square (the heart on its outline, the e on its round bowl). */
.mark.e-mark { display: inline-block; flex: none; border-radius: 0; box-shadow: none; background: url(img/e-reveal-strip.webp) no-repeat 100% 0 / 11000% 100%; }
.e-anim { animation: e-reveal 3.67s steps(109) .2s both; }
.e-fast { animation-duration: 1.84s; }
.js.intro-on .nav .e-anim { animation-delay: 2.6s; }
@keyframes e-reveal { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .e-anim { animation: none; } }

/* ---------- Floating pill navbar ---------- */
.nav-shell { position: relative; z-index: 60; padding: 0 12px; margin: 12px 0; }
.js .nav-shell { position: sticky; top: 12px; margin-bottom: 0; }
@media (min-width: 900px) { .nav-shell { position: sticky; top: 12px; margin-bottom: 0; } }
.nav {
  position: relative; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 6px 6px 14px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 26px rgba(74, 63, 56, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.nav .brand { margin-right: auto; font-size: 1.2rem; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; order: 3; width: 100%; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-size: 1rem; color: var(--ink);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--rose-deep); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(244, 239, 234, 0.8); }
.nav-links a:hover::after, .nav-links a.is-active::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .sheet-cta { display: none; }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: 1rem; box-shadow: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--ground); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .ic-close { display: none; }
.nav-shell.open .nav-toggle .ic-open { display: none; }
.nav-shell.open .nav-toggle .ic-close { display: block; }
.nav-toggle[hidden] { display: none !important; }

@media (min-width: 900px) {
  .nav { flex-wrap: nowrap; border-radius: 999px; }
  .nav .brand { margin-right: 12px; }
  .nav-links { order: 0; width: auto; margin-right: auto; }
}
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); flex-direction: column; gap: 2px; padding: 10px;
    background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s .25s;
  }
  .js .nav-shell.open .nav-links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s ease, transform .3s var(--ease), visibility 0s; }
  .js .nav-links a { min-height: 52px; font-size: 1.1rem; padding: 0 18px; width: 100%; }
  .js .nav-links a::after { left: 18px; right: auto; width: 32px; bottom: 10px; }
  .js .nav-links .sheet-cta { display: block; margin-top: 6px; }
  .js .nav-links .sheet-cta a { justify-content: center; background: var(--ink); color: #fff; }
  .js .nav-links .sheet-cta a::after { display: none; }
}
@media (max-width: 479px) { .nav .nav-cta { display: none; } .nav .brand { font-size: 1.12rem; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; font: inherit; font-weight: 600;
  box-shadow: var(--shadow-raised); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.play-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; margin-left: -12px; }
.play-ic svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
.btn-sheen::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
  transform: translateX(-130%); animation: cta-sheen 4.8s ease-in-out infinite;
}
.btn-sheen:hover::after { animation-duration: 1.4s; }
@keyframes cta-sheen { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* Store "coming soon" tiles (on the dark CTA card): not links, not badges */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 22px 10px 16px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.08); border: 2px dashed rgba(255, 255, 255, 0.4); color: #fff;
}
.store svg { width: 30px; height: 30px; }
.store small { display: block; font-size: 0.85rem; color: var(--on-dark); line-height: 1.2; }
.store b { display: block; font-size: 1.05rem; line-height: 1.3; }

/* ---------- Sections ---------- */
/* 23 Nov 2026 (Robin): 80% less empty space between sections (was 56px / 88px top and bottom) */
section { padding: 11px 0; }
@media (min-width: 760px) { section { padding: 18px 0; } }
/* the dark band keeps room inside its own colour, so its text never touches the edge */
section.day { padding: 40px 0; }
@media (min-width: 760px) { section.day { padding: 56px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.eyebrow .brand-word { text-transform: none; letter-spacing: 0; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 42ch; }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head p { color: var(--ink-soft); }
.deep { color: var(--deep); }
.small-note { font-size: 1rem; color: var(--ink-soft); }

/* Drifting blurred blobs (home hero and page header bands). They reach up behind the floating navbar. */
.blobs { position: absolute; left: 0; right: 0; top: -110px; bottom: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; width: min(56vw, 600px); aspect-ratio: 1; border-radius: 50%; filter: blur(72px); opacity: .8; will-change: transform; animation: blob-drift 24s ease-in-out infinite alternate; }
.blob.b1 { background: var(--lavender); top: -14%; left: -12%; }
.blob.b2 { background: var(--rose-soft); top: 6%; right: -16%; animation-duration: 31s; animation-delay: -9s; }
.blob.b3 { background: var(--butter-soft); bottom: -26%; left: 30%; animation-duration: 27s; animation-delay: -17s; }
@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.12); }
  100% { transform: translate3d(-5%, -4%, 0) scale(.94); }
}

/* ---------- Intro loader (home page, first visit per browser session) ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--ground); cursor: pointer;
  animation: intro-out .45s ease 2.15s forwards;   /* after the e has formed (.e-fast: 0.2 s + 1.84 s) */
}
.intro-done .intro { animation: intro-out .25s ease forwards; }
.intro-stage { position: relative; width: 300px; height: 300px; }
.intro-mark { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; animation: intro-mark-in .6s var(--ease) both; }
.intro-mark .mark { width: 92px; height: 92px; box-shadow: 0 10px 30px rgba(23, 23, 23, 0.22); }
.intro-mark .mark.e-mark { box-shadow: none; }
.intro-mark .mark rect { animation: wave-idle 300ms ease-in-out .35s 4 alternate; }
.intro-mark .mark rect:nth-of-type(2) { animation-delay: .425s; }
.intro-mark .mark rect:nth-of-type(3) { animation-delay: .5s; }
.spark { position: absolute; width: var(--s, 18px); height: var(--s, 18px); left: var(--x); top: var(--y); opacity: 0; animation: spark-in .35s ease var(--d, 0s) forwards; }
.spark svg { display: block; width: 100%; height: 100%; fill: var(--c, var(--butter)); animation: intro-twinkle 1.4s ease-in-out var(--d, 0s) infinite; }
@keyframes intro-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.12) rotate(12deg); } }
@keyframes spark-in { to { opacity: 1; } }
@keyframes intro-mark-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 21px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 7.6vw, 5.6rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 0.35em; }
.hero-title > span { display: block; }
.hero .lead { margin-bottom: 1.4em; }
.hero .small-note { margin: 16px 0 0; }
.hero-head .hero-title { margin-bottom: 0; }
@media (min-width: 960px) {
  .hero { padding: 48px 0 26px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 460px; column-gap: 64px; row-gap: 36px; align-items: start; }
  .hero-head { grid-column: 1 / -1; }
  .hero-copy { padding-top: 24px; }
}
.js .hero-rise { animation: rise .85s var(--ease) both; animation-delay: var(--d, 0s); }
.js.intro-on .hero-rise { animation-delay: calc(var(--d, 0s) + 2.25s); }
.js.intro-done .hero-rise { animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.jump {
  position: absolute; left: 50%; bottom: 24px; z-index: 1; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card); color: var(--ink); animation: jump-nudge 2.4s ease-in-out infinite;
}
.jump:hover { color: var(--ink); background: var(--paper); }
.jump svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes jump-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Soft breathing glow behind the story card */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.glow { position: absolute; inset: 4% 0 -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 207, 242, 0.95), rgba(249, 221, 226, 0.6) 60%, transparent); filter: blur(30px); z-index: 0; animation: glow-breathe 8s ease-in-out infinite; }
@media (min-width: 960px) { .glow { inset: 4% -8% -4%; } }
@keyframes glow-breathe { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }

/* ---------- Tabbed cards with chip timers (story card, three steps) ---------- */
.tabs { position: relative; z-index: 1; background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow-float); }
.chip-tabs { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.js .chip-tabs { display: flex; }
.chip-tab {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 15px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.98rem; cursor: pointer;
  transition: border-color .2s ease;
}
.chip-tab:hover { border-color: var(--ink); }
.chip-tab .num { font-weight: 600; }
.chip-bar { position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.chip-tab.is-on { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }
.chip-tab.is-on .chip-bar { transform: scaleX(1); }
.chip-tab.is-on.timing .chip-bar { animation: chip-timer var(--dur, 3.2s) linear both; }
.tabs.paused .chip-bar, .tabs.offscreen .chip-bar, .tabs.held .chip-bar { animation-play-state: paused !important; }
@keyframes chip-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.panels { display: grid; gap: 12px; }
.panel { min-width: 0; }
.js .panels { gap: 0; }
.js .panel { grid-area: 1 / 1; min-width: 0; }
.js .panel[hidden] { display: block; visibility: hidden; }
.js .panel.is-on { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: 1rem; font-weight: 600; margin: 4px 6px 8px; }
.js .story .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.panel:focus-visible { outline-offset: -3px; border-radius: 28px; }

/* Story scenes: small app moments drawn in HTML and CSS */
.scene { position: relative; min-height: 340px; border-radius: 26px; padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.scene p { margin: 0; }
.scene-med { background: linear-gradient(160deg, var(--butter-soft), var(--peach-soft)); align-items: center; text-align: center; }
.scene-chat { background: linear-gradient(160deg, var(--lavender-soft), var(--sky-soft)); }
.scene-sos { justify-content: flex-end; }
.scene-family { background: linear-gradient(160deg, var(--rose-soft), var(--peach-soft)); }
.scene-cap { font-size: 1rem; color: #3C3936; }

.alarm { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 4px; }
.alarm-ic { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow-card); }
.alarm-ic svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ring { position: absolute; inset: 10px; border-radius: 50%; border: 3px solid var(--rose); opacity: 0; animation: pulse-ring 2s ease-out infinite; }
.ring.r2 { animation-delay: 1s; }
@keyframes pulse-ring { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.65); } }
.big-time { font-size: 2.6rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.scene-title { font-size: 1.15rem; font-weight: 600; }
.pill-taken { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); font-size: 1rem; box-shadow: 0 3px 6px rgba(74, 63, 56, 0.08); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-ok); flex: none; }
.dot.amber { background: var(--dot-warn); }
.dot.red { background: var(--dot-bad); }
.js .panel.is-on .pop { animation: pop .45s var(--ease) both; animation-delay: var(--pd, 1s); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }

.chat { display: grid; gap: 10px; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.me { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 20px; background: var(--paper); box-shadow: 0 3px 8px rgba(74, 63, 56, 0.08); font-size: 1rem; line-height: 1.4; }
.bubble-row.me .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble-row:not(.me) .bubble { border-bottom-left-radius: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: 2px solid #fff; flex: none; }
.bubble-row .mark { width: 36px; height: 36px; box-shadow: none; }
.reply-slot { display: grid; }
.reply-slot > * { grid-area: 1 / 1; }
.typing { display: inline-flex; gap: 5px; align-items: center; justify-self: end; align-self: end; padding: 14px 16px; border-radius: 20px; background: var(--paper); opacity: 0; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); animation: typing-dot 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.js .panel.is-on .typing { animation: show-then-hide 1.5s ease .5s both; }
@keyframes show-then-hide { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }

.map { position: absolute; inset: 0; background:
  linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.9) 46.5%, rgba(255, 255, 255, 0.9) 49%, transparent 49.5%),
  linear-gradient(20deg, transparent 58%, rgba(255, 255, 255, 0.75) 58.5%, rgba(255, 255, 255, 0.75) 60.5%, transparent 61%),
  linear-gradient(160deg, var(--mint-soft), var(--sage-soft)); }
.pin { position: absolute; left: 50%; top: 36%; width: 44px; height: 44px; margin: -44px 0 0 -22px; }
.pin svg { position: relative; z-index: 1; width: 44px; height: 44px; fill: var(--rose-deep); stroke: #fff; stroke-width: 1.5; }
.ping { position: absolute; left: 50%; bottom: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--rose); opacity: .55; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.alert-card { position: relative; z-index: 1; background: var(--paper); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow-card); display: grid; gap: 6px; }
.alert-card .row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.alert-card .sub { color: var(--ink-soft); font-size: 1rem; }
.faces { display: flex; align-items: center; }
.faces img { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: 3px solid #fff; }
.faces img + img { margin-left: -12px; }
.faces.big img { width: 64px; height: 64px; }
.faces.big img + img { margin-left: -16px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); font-size: 1rem; }
.feed li .when { margin-left: auto; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Marquee of the six languages ---------- */
.ribbon { position: relative; z-index: 1; padding: 20px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }
.ribbon-label { text-align: center; margin: 0 0 12px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-inner { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-track { display: flex; gap: 14px; padding: 0 14px 0 0; margin: 0; list-style: none; }
.marquee-track li { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; padding: 10px 20px; border-radius: 999px; background: var(--paper); box-shadow: 0 3px 8px rgba(74, 63, 56, 0.06); font-size: 1.1rem; }
.marquee-track li small { font-size: 0.9rem; color: var(--ink-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Scroll reveal (only once site.js has run and motion is allowed) ---------- */
.ready .reveal:not(.done) { transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.ready .reveal:not(.in) { opacity: 0; transform: translateY(16px); }

/* ---------- Cards and tiles ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--paper); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow-card); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.lift { transition: transform .3s var(--ease), box-shadow .3s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.tile-lavender { background: var(--lavender-soft); }
.tile-butter { background: var(--butter-soft); }
.tile-mint { background: var(--mint-soft); }
.tile-peach { background: var(--peach-soft); }
.tile-sage { background: var(--sage-soft); }
.tile-sky { background: var(--sky-soft); }
.tile-rose { background: var(--rose-soft); }
.tile-lavender p, .tile-butter p, .tile-mint p, .tile-peach p, .tile-sage p, .tile-sky p, .tile-rose p { color: #3C3936; }

.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 6px rgba(74, 63, 56, 0.10); margin-bottom: 12px; }
.icon-circle svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature-scene { display: grid; gap: 8px; align-content: space-between; }
.feature-scene img { justify-self: end; height: 120px; width: auto; margin-top: -8px; }

/* "What ewa Cares does": 12 features in 4 reading tabs of 3 (was a 12-card grid; about 60% less scrolling).
   Phones: chips wrap, three rows of icon + text, no picture. Tablets: picture beside the list. Wide: three columns. */
.feature-tabs .chip-tabs { gap: 8px; margin-bottom: 14px; }
.feature-tabs .chip-tab { min-height: 44px; font-size: 1rem; padding-inline: 16px; }
.js .feature-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.feature-panel { display: grid; gap: 20px; align-items: center; border-radius: var(--radius-l); padding: 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-list .icon-circle { width: 44px; height: 44px; margin: 0; }
.feature-list .icon-circle svg { width: 22px; height: 22px; }
.feature-list h4 { font-size: 1.08rem; line-height: 1.3; margin: 2px 0 4px; }
.feature-list p { margin: 0; line-height: 1.5; }
.feature-art { display: none; }
.js .panel.is-on .feature-list li { animation: pop .4s var(--ease) both; animation-delay: calc(.08s + var(--n) * 90ms); }
@media (min-width: 760px) {
  .feature-panel { grid-template-columns: 1fr auto; padding: 28px; }
  .feature-panel.no-art { grid-template-columns: 1fr; }
  .feature-art { display: block; height: 220px; width: auto; justify-self: end; }
}
@media (min-width: 1100px) {
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .feature-list li { grid-template-columns: 1fr; gap: 10px; }
}

/* How it works: three steps, then two phones */
.steps-card { margin-bottom: 20px; }
.step-panel { display: grid; gap: 20px; align-items: center; padding: 18px; border-radius: 26px; background: var(--paper-soft); }
.step-panel h3 { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; }
.step-panel p { color: #3C3936; }
.step-kicker { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; }
.step-art { min-height: 230px; border-radius: 22px; display: grid; place-items: center; padding: 18px; }
@media (min-width: 760px) { .step-panel { grid-template-columns: 1.1fr 0.9fr; padding: 28px; min-height: 300px; } }
.mini-phone { width: 150px; height: 210px; border-radius: 26px; background: var(--paper); border: 6px solid var(--ink); display: grid; place-items: center; align-content: center; gap: 12px; box-shadow: var(--shadow-card); }
.mini-phone .mark { width: 56px; height: 56px; }
.mini-phone span { font-size: 1.05rem; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 280px; }
.setup-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--paper); font-size: 1rem; box-shadow: 0 3px 6px rgba(74, 63, 56, 0.06); }
.setup-list .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin-left: auto; flex: none; }
.setup-list .tick svg { width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .panel.is-on .setup-list li { animation: pop .4s var(--ease) both; animation-delay: calc(.2s + var(--n) * 120ms); }
.code-art { display: grid; gap: 14px; justify-items: center; }
.code { display: flex; gap: 6px; }
.code span { width: 38px; height: 50px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; font-size: 1.4rem; font-weight: 600; box-shadow: 0 3px 6px rgba(74, 63, 56, 0.08); }
.js .panel.is-on .code span { animation: pop .4s var(--ease) both; animation-delay: calc(.25s + var(--n) * 90ms); }

.phone-card { display: grid; gap: 14px; align-content: start; }
.phone-card .faces img { width: 84px; height: 84px; border: 3px solid rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.75); }
.phone-card .faces img + img { margin-left: -18px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 48px; margin-bottom: 14px; color: #3C3936; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Dark "A day with ewa" section ---------- */
.day { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.day h2 { color: #fff; }
.day .section-head p, .day .small-note { color: var(--on-dark); }
.day .eyebrow { color: var(--on-dark); }
.day .deep { color: var(--rose); }
.day-glow { position: absolute; width: min(70vw, 640px); aspect-ratio: 1; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: glow-breathe 9s ease-in-out infinite; }
.day-glow.g1 { background: rgba(63, 70, 200, 0.55); top: -30%; left: -18%; }
.day-glow.g2 { background: rgba(196, 81, 95, 0.4); bottom: -35%; right: -15%; animation-delay: -4s; }
.day .wrap { position: relative; z-index: 1; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.timeline::after { background: linear-gradient(var(--mint), var(--rose) 75%, var(--lavender)); transform-origin: top; transition: transform 2.3s linear .15s; }
.t-item { position: relative; padding-left: 48px; }
.t-dot { position: absolute; left: 4px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(198, 221, 210, 0.18), 0 0 22px rgba(198, 221, 210, 0.6); }
.t-item.alert .t-dot { background: var(--rose); box-shadow: 0 0 0 6px rgba(232, 121, 138, 0.2), 0 0 22px rgba(232, 121, 138, 0.7); }
.t-time { display: block; font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
.t-label { display: block; font-weight: 600; color: #fff; }
.t-note { display: block; font-size: 1rem; color: var(--on-dark); }
.t-item.alert .t-label { color: var(--rose-soft); }
.t-dot, .t-text { display: block; transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(var(--i) * 380ms + 150ms); }
.ready .day:not(.play) .t-dot { opacity: .25; transform: scale(.6); }
.ready .day:not(.play) .t-text { opacity: .3; transform: translateY(6px); }
.ready .day:not(.play) .timeline::after { transform: scaleY(0); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .timeline::before, .timeline::after { left: 10px; right: 10px; top: 9px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { background: linear-gradient(90deg, var(--mint), var(--rose) 75%, var(--lavender)); transform-origin: left; }
  .ready .day:not(.play) .timeline::after { transform: scaleX(0); }
  .t-item { padding-left: 0; padding-top: 40px; }
  .t-dot { left: 0; top: 0; }
}

/* ---------- Languages ---------- */
.lang-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .lang-grid { grid-template-columns: 1.1fr .9fr; } }
.langs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.langs li { background: var(--paper); border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-card); font-size: 1.05rem; }
.langs li span + span { color: var(--ink-soft); font-size: 0.9rem; margin-left: 6px; }
.lang-art { position: relative; justify-self: center; max-width: 460px; width: 100%; }
.lang-art::before { content: ""; position: absolute; inset: 10% 4% 0; border-radius: 50%; background: var(--lavender-soft); z-index: 0; }
.lang-art img { position: relative; z-index: 1; width: 100%; }

/* Privacy promise */
.band { position: relative; overflow: hidden; background: var(--mint-soft); border-radius: var(--radius-xl); padding: 36px 24px; }
.band::after { content: ""; position: absolute; width: 380px; aspect-ratio: 1; right: -120px; top: -140px; border-radius: 50%; background: var(--paper); opacity: .55; filter: blur(40px); pointer-events: none; }
.band > * { position: relative; z-index: 1; }
.band p, .band li { color: #3C3936; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (min-width: 760px) { .band { padding: 56px; } .ticks { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.price { font-size: 3rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: 16px 18px 4px; font-weight: 600; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; background: var(--paper-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* FAQ accordion */
.faq details { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); margin-bottom: 12px; transition: box-shadow .25s ease; }
.faq details[open] { box-shadow: var(--shadow-float); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 62px 18px 22px; min-height: 60px; font-weight: 600; position: relative; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border-radius: 50%; background: var(--peach-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); background: var(--rose-soft); }
.faq details > div { padding: 0 22px 20px; color: #3C3936; }
.faq details[open] > div { animation: faq-in .35s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq details > div p:last-child, .faq details > div ol:last-child, .faq details > div ul:last-child { margin-bottom: 0; }

/* Download CTA card on a dark gradient */
.cta-card {
  position: relative; overflow: hidden; border-radius: 40px; padding: 48px 24px; color: #fff;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(63, 70, 200, 0.55), transparent 70%),
    radial-gradient(55% 75% at 100% 100%, rgba(196, 81, 95, 0.55), transparent 70%),
    var(--ink);
}
.cta-card h2 { color: #fff; max-width: 20ch; }
.cta-card h2 .deep { color: var(--rose); }
.cta-card p { color: var(--on-dark); max-width: 54ch; }
.cta-card a { color: #fff; }
.cta-card a:hover { color: var(--peach); }
.cta-card .eyebrow { color: var(--on-dark); }
.cta-card .btn-row { margin: 26px 0 8px; }
@media (min-width: 760px) { .cta-card { padding: 72px 64px; } }

/* Notices */
.notice { border-radius: var(--radius); padding: 18px 20px; background: var(--butter-soft); margin: 0 0 24px; }
.notice.danger { background: var(--error-soft); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Page header band (legal, help, 404) ---------- */
.page-hero { position: relative; padding: 40px 0 10px; }
@media (min-width: 760px) { .page-hero { padding: 56px 0 13px; } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.2rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.3em; }
.page-hero h1 strong { font-weight: 300; color: var(--deep); }
.page-hero .meta, .page-hero .lead { color: var(--ink-soft); margin: 0; }
.page-hero .lead { max-width: 60ch; margin-top: 8px; }
.page-hero .blob { width: min(48vw, 520px); }
.page-hero .blobs { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.rise { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Long-form pages (policies, help) ---------- */
.doc-layout { display: grid; gap: 28px; padding-top: 8px; padding-bottom: 72px; }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 250px minmax(0, 70ch); gap: 64px; justify-content: center; align-items: start; }
  .doc-aside { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
}
.doc { max-width: 70ch; min-width: 0; }
.doc h2 { font-size: 1.6rem; font-weight: 600; margin-top: 1.8em; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.doc .table-wrap { margin: 0 0 1.4em; }
.doc address { font-style: normal; }
.doc .card h2, .doc .card h3 { margin-top: 0; }
.doc .steps { padding-left: 0; }
.doc .faq { margin-bottom: 8px; }
.toc { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.toc h2 { margin: 0 0 8px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 1rem; }
.toc li { margin-bottom: 0; }
.toc a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink); line-height: 1.35; }
.toc a:hover { color: var(--rose-deep); text-decoration: underline; }
.toc a.is-active { color: var(--rose-deep); font-weight: 600; }
@media (min-width: 700px) and (max-width: 999px) { .toc ol { columns: 2; column-gap: 32px; } .toc li { break-inside: avoid; } }
.todo { background: var(--butter); padding: 0 4px; border-radius: 4px; font-size: 0.95em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 64px 0 40px; background: var(--paper-soft); border-top: 1px solid var(--line); font-size: 1rem; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { color: var(--ink-soft); max-width: 38ch; margin: 12px 0 0; }
.foot-col h2 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); display: grid; gap: 8px; }
.foot-bottom p, .foot-bottom address { margin: 0; font-style: normal; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

.to-top {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--ink); color: #fff; box-shadow: var(--shadow-raised);
  opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity .3s ease, transform .3s var(--ease), visibility 0s .3s;
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.js .to-top { display: flex; }
.to-top.show { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s var(--ease), visibility 0s; }
.to-top:hover { color: #fff; background: #000; }

/* 404 */
.link-row { list-style: none; padding: 0; margin: 20px 0 0 -12px; display: flex; flex-wrap: wrap; }
.link-row a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; }

/* ---------- Reduced motion: no looping or entrance motion; everything shown in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none !important; }
  .typing { display: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-inner { width: auto; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .ready .reveal:not(.in) { opacity: 1; transform: none; }
  .jump { display: none; }
}

/* ---------- Compact pass (23 Nov 2026: 30% less scrolling) ---------- */
/* "How it works": the step panel no longer reserves 300px, its picture is smaller, and the phone pair is two short cards */
@media (min-width: 760px) { .step-panel { min-height: 0; padding: 20px 24px; } }
.step-panel h3 { font-size: 1.4rem; margin-bottom: 6px; }
.step-panel p { margin: 0; }
.step-art { min-height: 0; height: 170px; padding: 12px; }
.step-art .mini-phone { width: 104px; height: 146px; border-width: 5px; border-radius: 20px; gap: 6px; }
.phone-pair { margin-top: 14px; gap: 14px; }
.phone-card.compact { padding: 18px 20px; gap: 8px; }
.phone-head { display: flex; align-items: center; gap: 12px; }
.phone-head h3 { margin: 0; font-size: 1.2rem; }
.phone-card.compact .faces img { width: 40px; height: 40px; border-width: 2px; }
.phone-card.compact .faces img + img { margin-left: -10px; }
.dot-list { margin: 0; padding-left: 1.15em; display: grid; gap: 4px; color: #3C3936; }
.dot-list li::marker { color: var(--ink-soft); }
/* Pricing: one plan card beside the price table */
.pricing-grid { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card { padding: 20px 22px; }
.price-card h3 { margin: 8px 0 2px; }
.price-card p { margin: 6px 0 0; }
.price-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge.alt { background: var(--mint-soft); }
.price-pair { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: baseline; }
.price-pair .price { font-size: 2.4rem; margin: 2px 0; }
.pricing-grid .table-wrap { margin: 0; }
.pricing-grid table th, .pricing-grid table td { padding-top: 10px; padding-bottom: 10px; }
/* Download card: less padding; on wide screens the text and the two store tiles sit side by side */
.cta-card { padding: 26px 22px; }
@media (min-width: 760px) { .cta-card { padding: 34px 40px; } }
.cta-card h2 { max-width: 26ch; margin-bottom: 8px; }
.cta-card .btn-row { margin: 16px 0 4px; }
@media (min-width: 960px) {
  .cta-card { display: grid; grid-template-columns: 1.2fr 0.8fr; column-gap: 32px; align-items: center; }
  .cta-card > * { grid-column: 1; }
  .cta-card .btn-row { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: stretch; margin: 0; }
}
/* Section titles a step smaller so most fit on one line; heads a little wider */
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
.section-head { max-width: 880px; margin-bottom: 18px; }
.section-head p { margin-bottom: 0; }
/* Hero on wide screens: headline and text in the left column, the story card beside them (no row of its own) */
@media (min-width: 960px) {
  .hero-grid { row-gap: 18px; }
  .hero-head { grid-column: 1; }
  .hero-copy { grid-column: 1; padding-top: 0; }
  .hero-visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero-title { font-size: clamp(3rem, 5.2vw, 4.4rem); }
}
/* Privacy band and the languages picture: tighter */
@media (min-width: 760px) { .band { padding: 32px 40px; } }
.lang-art { max-width: 340px; }
/* Phones: the same content in fewer screens */
@media (max-width: 759px) {
  .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .hero .lead { margin-bottom: 1em; }
  /* "A day with ewa": two columns of moments, no long vertical line */
  .timeline { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .timeline::before, .timeline::after { display: none; }
  .t-item { padding-left: 24px; }
  .t-dot { left: 0; top: 8px; width: 14px; height: 14px; }
  .t-time { font-size: 1.25rem; }
  /* features: the four chips in one row that scrolls sideways, instead of three wrapped rows */
  .feature-tabs .chip-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
  .feature-tabs .chip-tabs::-webkit-scrollbar { display: none; }
  .feature-tabs .chip-tab { flex: 0 0 auto; scroll-snap-align: start; }
  .feature-panel { padding: 16px; }
  .feature-list { gap: 14px; }
  /* languages: a smaller picture */
  .lang-art { max-width: 220px; }
  /* footer: link groups side by side */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { margin-top: 18px; padding-top: 14px; }
  .site-footer { padding: 32px 0 24px; }
}
/* phones: the setup steps' pictures are decoration only (aria-hidden), so they give way to the words */
@media (max-width: 759px) { .step-art { display: none; } .step-panel { gap: 8px; padding: 16px; } }
@media (max-width: 759px) {
  .card { padding: 18px; }
  .pricing-grid table th, .pricing-grid table td { padding-top: 8px; padding-bottom: 8px; }
  .small-note { margin-top: 10px !important; }
}

/* ---------- Pricing, redesigned (23 Nov 2026: "too dull, not matching the theme") ---------- */
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.js .people.js-only { display: block !important; }
.price-stage { position: relative; display: grid; gap: 16px; isolation: isolate; }
@media (min-width: 900px) { .price-stage { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; } }
.price-blob { position: absolute; z-index: -1; width: min(60vw, 520px); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; animation: blob-drift 26s ease-in-out infinite alternate; }
.price-blob.pb1 { background: var(--lavender); top: -18%; left: -10%; }
.price-blob.pb2 { background: var(--butter-soft); bottom: -22%; right: -8%; animation-duration: 33s; animation-delay: -11s; }
.price-picker { position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-float); backdrop-filter: blur(10px); }
@media (min-width: 760px) { .price-picker { padding: 28px 30px; } }
.price-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.price-badges .badge { margin: 0; background: var(--butter-soft); }
.price-badges .badge.alt { background: var(--mint-soft); }
/* Monthly / Yearly: a dark pill slides behind the chosen one */
.billing { position: relative; gap: 4px; padding: 4px; width: max-content; border-radius: 999px; background: var(--paper-soft); border: 1px solid var(--line); }
.billing button { position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: color .25s ease; }
.billing button[aria-checked="true"] { color: #fff; }
.billing::before { content: ""; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: var(--pill-x, 4px); width: var(--pill-w, 50%); border-radius: 999px; background: var(--ink); transition: left .35s var(--ease), width .35s var(--ease); }
.billing .save { font-size: .8rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--mint-soft); color: var(--ink); margin-left: 4px; }
.price-big { margin: 4px 0 0; display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.price-big .amount { font-size: clamp(3.4rem, 9vw, 4.6rem); font-weight: 300; letter-spacing: -0.045em; display: inline-block; }
.price-big .per { font-size: 1.05rem; color: var(--ink-soft); }
.price-big.bump .amount { animation: pop .45s var(--ease) both; }
.price-for { margin: 0; color: #3C3936; }
.price-alt { color: var(--ink-soft); }
.people-label { margin: 6px 0 8px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.people-chips { display: flex; gap: 8px; }
.people-chips button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 1.15rem; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease; }
.people-chips button:hover { border-color: var(--ink); transform: translateY(-2px); }
.people-chips button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-cta { justify-self: start; margin-top: 8px; }
/* the four family sizes */
.price-side { display: grid; gap: 12px; align-content: start; }
.plan-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-tile { width: 100%; height: 100%; text-align: left; display: grid; gap: 2px; align-content: start; padding: 16px 18px; border: 2px solid transparent; border-radius: var(--radius-l); font: inherit; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-card); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .25s ease; }
.plan-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.plan-tile.is-on { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-float); }
.pt-people { font-weight: 700; font-size: 1.05rem; }
.pt-who { font-size: .92rem; color: #3C3936; }
.pt-price { margin-top: 8px; font-size: 1.9rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.pt-price small { font-size: .9rem; letter-spacing: 0; color: var(--ink-soft); font-weight: 400; }
.pt-year { font-size: .92rem; color: var(--ink-soft); }
.plan-included { margin: 0; padding: 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.7); color: #3C3936; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .price-blob { animation: none; } .billing::before { transition: none; } .price-big.bump .amount { animation: none; } }
