/*
 * Family Mic website: the whole design system in one file ("Sunrise", the app's look).
 *
 * Bright, warm and calm, with large type. Light only, like the app. Mobile first (works from 360px),
 * right-to-left ready: layout uses logical properties (inline-start/end), so a page with dir="rtl"
 * mirrors itself. Icons that point a way use .icon--flip.
 *
 * Contents
 *   1. Tokens            8. Cards, tiles, icon circles, badges, avatars
 *   2. Base              9. Hero and the phone preview
 *   3. Layout           10. Steps, bento, mini illustrations
 *   4. Type             11. Privacy, review card, promises
 *   5. Buttons          12. Pricing
 *   6. Header + menu    13. FAQ accordion
 *   7. Footer           14. CTA panel, store badges
 *                       15. Legal pages (terms, privacy, cookies)
 *                       16. Forms and chat (support)
 *                       17. Motion, reveal, print
 */

/* 1. Tokens ------------------------------------------------------------------------------------ */
:root {
  /* Palette (mobile/src/lib/theme.ts) */
  --peach: #FFF4EC;
  --white: #FFFFFF;
  --coral: #F06A4D;
  --coral-pressed: #D9553A;
  --coral-text: #D9553A;          /* coral words at large sizes (headings, highlights) */
  --coral-ink: #8A3320;           /* text on coral tints */
  --link: #B5432B;                /* inline links: coral, deep enough for body text (5:1 on peach) */
  --coral-tint: #FFE1D6;
  --coral-tint-strong: #FFC3B0;
  --coral-top: #F57B5E;           /* the Talk button's gentle gradient */
  --coral-bottom: #EA5C40;
  --sun: #FFD27A;
  --sun-tint: #FFE7A8;
  --sun-ink: #8A6200;
  --ink: #2B2B33;
  --ink-2: #4A4248;               /* lead paragraphs */
  --ink-soft: #766A65;            /* secondary text; a hair deeper than the app's #7B6F6A so it passes 4.5:1 on peach */
  --hairline: #F3E3D8;
  --border: #FCE3D6;
  --field-border: #E8CFC1;
  --success: #2E9E6B;
  --success-tint: #E3F5EC;
  --success-ink: #1F7A52;
  --danger: #D64545;
  --danger-tint: #FDE8E8;
  --danger-ink: #A32F2F;

  /* Type */
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Hebrew', Arial, sans-serif;
  --fs-tiny: 0.9375rem;   /* 15px, the smallest text anywhere */
  --fs-small: 1rem;       /* 16px */
  --fs-body: 1.125rem;    /* 18px, 19px from 768px */
  --fs-lead: clamp(1.1875rem, 1.06rem + 0.55vw, 1.4rem);
  --fs-h4: 1.1875rem;
  --fs-h3: clamp(1.25rem, 1.16rem + 0.4vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3.6vw, 4.125rem);
  --lh-body: 1.6;

  /* Shape */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-card: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Shadows: very soft, coral-tinted */
  --shadow-card: 0 6px 16px rgba(240, 106, 77, 0.08), 0 1px 3px rgba(240, 106, 77, 0.06);
  --shadow-lift: 0 16px 36px rgba(240, 106, 77, 0.14), 0 3px 8px rgba(240, 106, 77, 0.08);
  --shadow-raised: 0 10px 24px rgba(240, 106, 77, 0.32);

  /* Space */
  --gutter: 16px;
  --container: 1160px;
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (min-width: 480px) { :root { --gutter: 20px; } }
@media (min-width: 768px) { :root { --gutter: 32px; --fs-body: 1.1875rem; --header-h: 76px; } }

/* 2. Base -------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { flex: 1 0 auto; display: block; }
html:lang(he) { --lh-body: 1.7; }

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

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--coral-ink); }

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

::selection { background: var(--coral-tint-strong); color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--hairline); margin-block: 2rem; }

.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
  flex-shrink: 0;
}
.icon--lg { width: 1.6em; height: 1.6em; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* A value from site-config.js that is still a [placeholder]: easy for the owner to spot. */
.is-placeholder {
  background: var(--sun-tint);
  color: var(--sun-ink);
  border-radius: 6px;
  padding-inline: 0.3em;
  outline: 1px dashed var(--sun-ink);
  outline-offset: 1px;
}
[data-config="address"] { white-space: pre-line; }

/* 3. Layout ------------------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.container--text { max-width: calc(720px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-block-start: 0; }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, var(--peach) 0%, #FFEDE3 100%); }
.section--sun { background: linear-gradient(180deg, #FFF8EA 0%, var(--peach) 100%); }

.section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-block-end: clamp(36px, 5vw, 64px);
  text-align: center;
}
.section-head--start { margin-inline: 0; text-align: start; }
.section-head .eyebrow { margin-block-end: 16px; }
.section-head h2 { margin-block-end: 16px; }
.section-head p { margin: 0; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.stack > * + * { margin-block-start: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, 12px); }
.center { text-align: center; }
.center .cluster { justify-content: center; }
.mt-0 { margin-block-start: 0 !important; }
.mt-s { margin-block-start: 12px; }
.mt-m { margin-block-start: 24px; }
.mt-l { margin-block-start: 40px; }
.mb-0 { margin-block-end: 0 !important; }

/* 4. Type -------------------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 600; }
:lang(he) h1, :lang(he) h2, :lang(he) h3, :lang(he) h4 { letter-spacing: 0; line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-block-end: 0; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-small); }

.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }

/* Highlighted words in a heading: coral, with a sunny underline. */
.hl {
  color: var(--coral-text);
  background-image: linear-gradient(transparent 62%, var(--sun-tint) 62%, var(--sun-tint) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
  font-style: normal;
}

/* Small pill above a heading. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--coral-tint);
  color: var(--coral-ink);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
}
.eyebrow--sun { background: var(--sun-tint); color: var(--sun-ink); }
.eyebrow--white { background: var(--white); box-shadow: var(--shadow-card); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(240, 106, 77, 0.18); }

/* Lists with ticks. */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 36px; }
.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.18em;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%231F7A52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check-list--coral li::before {
  background-color: var(--coral-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23D9553A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-list--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 32px; }

/* 5. Buttons ----------------------------------------------------------------------------------- */
/* Labels are 19px bold: "large text", so white on coral meets contrast rules. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn--primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-raised); }
.btn--primary:hover { background: var(--coral-pressed); color: var(--white); }

.btn--secondary { background: var(--white); color: var(--coral-ink); border-color: var(--coral-tint-strong); box-shadow: var(--shadow-card); }
.btn--secondary:hover { background: var(--coral-tint); color: var(--coral-ink); border-color: var(--coral-tint-strong); }

.btn--ghost { background: transparent; color: var(--coral-ink); }
.btn--ghost:hover { background: var(--coral-tint); color: var(--coral-ink); }

.btn--soft { background: var(--coral-tint); color: var(--coral-ink); }
.btn--soft:hover { background: var(--coral-tint-strong); color: var(--coral-ink); }

.btn--sm { min-height: 48px; padding: 8px 20px; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; pointer-events: none; box-shadow: none; }

/* A text link with an arrow. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
  min-height: 48px;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* 6. Header + menu ----------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 244, 236, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: 0 6px 24px rgba(240, 106, 77, 0.07); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand__mic { color: var(--coral-text); }
@media (min-width: 768px) { .brand { font-size: 1.5rem; } .brand img { width: 44px; height: 44px; } }

/* Main navigation: inline from 1240px (below that "Get the app" would wrap to a second row), a panel below the header before that. */
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
}
.site-nav li > a:hover { color: var(--coral-ink); background: var(--coral-tint); }
.site-nav li > a[aria-current="page"] { color: var(--coral-ink); background: var(--white); box-shadow: var(--shadow-card); }
.site-nav__extra { display: none; }

/* Language switch: the current language shown filled, the other a link. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
}
.lang-switch a, .lang-switch [aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.lang-switch a { color: var(--ink-2); }
.lang-switch a:hover { background: var(--coral-tint); color: var(--coral-ink); }
.lang-switch [aria-current] { background: var(--coral-tint); color: var(--coral-ink); }
.lang-switch .icon { width: 1.15em; height: 1.15em; margin-inline: 6px 2px; color: var(--ink-soft); }
@media (max-width: 479px) {
  .site-header .lang-switch [aria-current], .site-header .lang-switch .icon { display: none; }
  .site-header .lang-switch { padding: 2px; }
}

.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--coral-tint); color: var(--coral-ink); }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: inline-block; }

@media (max-width: 1239px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--peach);
    padding: 12px var(--gutter) 40px;
    border-top: 1px solid var(--hairline);
  }
  /* A backdrop-filter would make the header the containing block of the fixed panel, so drop it while open. */
  .site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--peach); }
  .site-header.is-open .site-nav { display: block; animation: fm-menu-in 0.22s var(--ease); }
  .site-nav ul { display: grid; gap: 4px; max-width: 560px; margin-inline: auto; }
  .site-nav li a {
    min-height: 60px;
    padding-inline: 16px;
    font-size: 1.375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
  }
  .site-nav__extra { display: grid; gap: 12px; max-width: 560px; margin: 24px auto 0; }
  .site-nav__extra .btn { width: 100%; }
  html.menu-open { overflow: hidden; }

  /* Without JavaScript the menu cannot open, so it shows as a row of links instead. */
  .no-js .menu-toggle { display: none; }
  .no-js .site-nav { display: block; order: 10; position: static; width: 100%; padding: 0 0 12px; border: 0; background: none; overflow: visible; }
  .no-js .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; max-width: none; }
  .no-js .site-nav li a { min-height: 44px; font-size: var(--fs-small); padding-inline: 12px; }
  .no-js .site-nav__extra { display: none; }
}

@media (min-width: 1240px) {
  .menu-toggle { display: none; }
  .site-nav { margin-inline-start: auto; }
  .brand { margin-inline-end: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .site-nav li > a { padding-inline: 14px; font-size: 1.0625rem; }
  .header-cta { margin-inline-start: 4px; }
}

@keyframes fm-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* A gentle offer to switch to Hebrew, for Hebrew browsers on English pages (site.js). */
.lang-hint {
  background: var(--sun-tint);
  color: var(--ink);
  font-size: var(--fs-small);
}
.lang-hint .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; flex-wrap: wrap; }
.lang-hint a { font-weight: 600; color: var(--coral-ink); }
.lang-hint button {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.lang-hint button:hover { background: rgba(255, 255, 255, 0.7); }

/* 7. Footer ------------------------------------------------------------------------------------ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 7vw, 80px) 28px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
.footer-brand .brand { margin-block-end: 14px; }
.footer-brand p { margin: 0 0 8px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
}
.footer-col h2 {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-block-end: 10px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--coral-ink); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-block-start: 44px;
  padding-block-start: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }
.footer-promise { display: inline-flex; align-items: center; gap: 8px; }
.footer-promise .icon { color: var(--success-ink); }

/* 8. Cards, tiles, icon circles, badges, avatars ---------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 32px);
}
.card--lg { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.card--tint { background: var(--coral-tint); box-shadow: none; }
.card--sun { background: var(--sun-tint); box-shadow: none; }
.card--outline { box-shadow: none; border: 2px solid var(--hairline); }
.card--link { display: block; color: inherit; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.card h3 { margin-block-end: 8px; }
.card p { color: var(--ink-soft); }
/* A pill above a heading keeps its own colours inside a card (".card p" would grey it). */
.card .eyebrow { color: var(--coral-ink); }
.card .eyebrow--sun { color: var(--sun-ink); }
.card h1 + .lead { margin-block-start: 16px; }

.icon-circle {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-pressed);
  flex-shrink: 0;
}
.icon-circle .icon { width: 28px; height: 28px; }
.icon-circle--sun { background: var(--sun-tint); color: var(--sun-ink); }
.icon-circle--green { background: var(--success-tint); color: var(--success-ink); }
.icon-circle--white { background: var(--white); box-shadow: var(--shadow-card); }
.icon-circle--sm { width: 44px; height: 44px; }
.icon-circle--sm .icon { width: 22px; height: 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--coral-tint);
  color: var(--coral-ink);
  font-size: var(--fs-tiny);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--sun { background: var(--sun-tint); color: var(--sun-ink); }
.badge--green { background: var(--success-tint); color: var(--success-ink); }
.badge--white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.badge--ink { background: var(--ink); color: var(--white); }

/* "This is an example" notice, for the demo family. */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--sun-tint);
  color: var(--ink);
}
.notice .icon { color: var(--sun-ink); margin-block-start: 0.15em; }
.notice--coral { background: var(--coral-tint); }
.notice--coral .icon { color: var(--coral-pressed); }

/* Initials in a soft circle; the same five tints as the app. */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-ink);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  flex-shrink: 0;
  border: 3px solid var(--white);
}
.avatar--2 { background: var(--sun-tint); color: var(--sun-ink); }
.avatar--3 { background: var(--success-tint); color: var(--success-ink); }
.avatar--4 { background: var(--coral-tint-strong); color: var(--coral-ink); }
.avatar--5 { background: var(--sun); color: #6B4B00; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.375rem; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-inline-start: -12px; }

/* A round coral play button (story clips). */
.play-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-raised);
  cursor: pointer;
  flex-shrink: 0;
}
.play-btn:hover { background: var(--coral-pressed); }
.play-btn .icon { width: 24px; height: 24px; margin-left: 3px; } /* media controls are not mirrored in Hebrew */
.play-btn--sm { width: 40px; height: 40px; box-shadow: none; }
.play-btn--sm .icon { width: 18px; height: 18px; }

/* A voice waveform (decorative). Give each bar a height with --h (0..1). */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 36px; }
.wave span {
  display: block;
  width: 4px;
  height: calc(var(--h, 0.5) * 100%);
  min-height: 4px;
  border-radius: 4px;
  background: var(--coral-tint-strong);
}
.wave--played span:nth-child(-n + 9) { background: var(--coral); }
.wave--live span { animation: fm-wave 1.2s ease-in-out infinite; transform-origin: center; }
.wave--live span:nth-child(3n) { animation-delay: -0.3s; }
.wave--live span:nth-child(3n + 1) { animation-delay: -0.6s; }
.wave--live span:nth-child(4n) { animation-delay: -0.9s; }
@keyframes fm-wave { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* The Talk button: a coral circle in two soft rings, like the app. Size with --size. */
.talk-orb {
  --size: 120px;
  position: relative;
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--coral), var(--coral-pressed)); /* deep enough for the white label */
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 0 0 calc(var(--size) * 0.15) var(--coral-tint-strong), 0 0 0 calc(var(--size) * 0.33) var(--coral-tint), var(--shadow-raised);
  margin: calc(var(--size) * 0.33);
}
.talk-orb .icon { width: 32%; height: 32%; }
.talk-orb--breathe::after {
  content: '';
  position: absolute;
  inset: calc(var(--size) * -0.33);
  border-radius: 50%;
  border: 2px solid var(--coral-tint-strong);
  animation: fm-ripple 3.2s var(--ease) infinite;
}
@keyframes fm-ripple { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }

/* A small "old photo": sepia, white border, a slight tilt. Put an <svg> or <img> inside. */
.old-photo {
  display: inline-block;
  padding: 6px 6px 16px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(138, 51, 32, 0.16);
  transform: rotate(-4deg);
}
.old-photo svg, .old-photo img { display: block; border-radius: 2px; }

/* 9. Hero and the phone preview ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 64px) clamp(48px, 8vw, 104px);
  overflow: clip;
}
.hero::before {
  /* Morning light from the top corner. */
  content: '';
  position: absolute;
  inset-block-start: -260px;
  inset-inline-end: -220px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 168, 0.95) 0%, rgba(255, 231, 168, 0) 68%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
.hero__copy h1 { margin-block: 20px; }
@media (min-width: 350px) { .hero__copy h1 .hl, .hero__copy h1 .nowrap { white-space: nowrap; } }
.hero__copy .lead { max-width: 34em; }
.hero__actions { margin-block-start: 32px; }
.hero__notes {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.hero__notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero__notes .icon { color: var(--success-ink); }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 24px;
  isolation: isolate;
}
.hero__visual figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.hero__visual figcaption { font-size: var(--fs-tiny); color: var(--ink-soft); }

/* The top of an inner page (pricing, FAQ, support, family...): centred, with the same morning light. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset-block-start: -300px;
  inset-inline-end: -200px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 168, 0.9) 0%, rgba(255, 231, 168, 0) 68%);
  pointer-events: none;
  z-index: -1;
}
.page-hero h1 { margin-block: 18px 16px; }
.page-hero .lead { max-width: 640px; margin-inline: auto; }
.page-hero .notice { max-width: 640px; margin: 28px auto 0; text-align: start; }

/* Sound rings behind the phone: the mark, made large. */
.rings {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(620px, 135vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}
.rings span:nth-child(1) { width: 100%; height: 100%; background: radial-gradient(circle, rgba(255, 225, 214, 0.55) 0%, rgba(255, 225, 214, 0.25) 60%, rgba(255, 225, 214, 0) 71%); }
.rings span:nth-child(2) { width: 74%; height: 74%; background: rgba(255, 225, 214, 0.9); }
.rings span:nth-child(3) { width: 54%; height: 54%; background: rgba(255, 195, 176, 0.75); }
.rings span:nth-child(4),
.rings span:nth-child(5) { width: 74%; height: 74%; border: 2px solid var(--coral-tint-strong); animation: fm-ripple 5s var(--ease) infinite; }
.rings span:nth-child(5) { animation-delay: -2.5s; }

.phone {
  --w: min(300px, 74vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 18.6;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(145deg, #3A3A44, #22222A);
  box-shadow: 0 40px 70px -24px rgba(138, 51, 32, 0.42), 0 14px 28px -12px rgba(43, 43, 51, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  container-type: inline-size;
  text-align: start;
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: var(--peach);
  padding: 0 6.5cqw;
  font-size: 4.6cqw;
  line-height: 1.35;
  color: var(--ink);
}
.phone__screen::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 16%;
  background: linear-gradient(rgba(255, 244, 236, 0), var(--peach) 80%);
  pointer-events: none;
}
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 13cqw;
  font-size: 4.3cqw;
  font-weight: 600;
  direction: ltr;
}
.phone__island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 29cqw;
  height: 8.4cqw;
  border-radius: 99px;
  background: #1C1C22;
}
.phone__bars { display: inline-flex; gap: 1cqw; align-items: flex-end; }
.phone__bars i { display: block; width: 1.1cqw; background: var(--ink); border-radius: 1px; }
.phone__bars i:nth-child(1) { height: 1.6cqw; } .phone__bars i:nth-child(2) { height: 2.4cqw; } .phone__bars i:nth-child(3) { height: 3.2cqw; } .phone__bars i:nth-child(4) { height: 4cqw; }
.phone__battery { display: inline-block; width: 6.4cqw; height: 3.2cqw; border: 0.45cqw solid var(--ink); border-radius: 1cqw; position: relative; margin-inline-start: 1.4cqw; }
.phone__battery::after { content: ''; position: absolute; inset: 0.45cqw; width: 70%; background: var(--ink); border-radius: 0.4cqw; }

.ph-date { margin: 2cqw 0 0; font-size: 4.1cqw; color: var(--ink-soft); }
.ph-greeting { margin: 0.5cqw 0 0; font-size: 7.4cqw; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.ph-orb { display: grid; justify-items: center; margin-block: 1cqw 0; }
.ph-orb .talk-orb { --size: 31cqw; font-size: 5.4cqw; margin: 10.5cqw; }
.ph-orb .talk-orb .icon { width: 10.5cqw; height: 10.5cqw; }
.ph-ready { margin: 0; text-align: center; font-size: 4.3cqw; color: var(--ink-soft); }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-block-start: 5cqw; }
.ph-tile { background: var(--white); border-radius: 5cqw; padding: 3.6cqw; box-shadow: 0 2cqw 5cqw rgba(240, 106, 77, 0.08); }
.ph-tile__icon { display: grid; place-items: center; width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: var(--coral-tint); color: var(--coral-pressed); margin-block-end: 2cqw; }
.ph-tile__icon--sun { background: var(--sun-tint); color: var(--sun-ink); }
.ph-tile__icon .icon { width: 5.4cqw; height: 5.4cqw; }
.ph-tile b { display: block; font-size: 4.3cqw; font-weight: 700; line-height: 1.2; }
.ph-tile small { display: block; font-size: 3.5cqw; color: var(--ink-soft); line-height: 1.3; margin-block-start: 0.6cqw; }
.ph-section { margin: 5cqw 0 2.4cqw; font-size: 4.6cqw; font-weight: 700; }
.ph-question { background: var(--white); border-radius: 5cqw; padding: 4cqw; box-shadow: 0 2cqw 5cqw rgba(240, 106, 77, 0.08); }
.ph-q__head { display: flex; align-items: center; gap: 2.4cqw; font-size: 3.9cqw; color: var(--ink-soft); }
.ph-q__head .avatar { width: 8.6cqw; height: 8.6cqw; font-size: 3.8cqw; border-width: 0; }
.ph-q__body { display: flex; align-items: center; gap: 3.4cqw; margin-block: 3cqw; }
.ph-q__body .old-photo { padding: 1.2cqw 1.2cqw 3cqw; flex-shrink: 0; }
.ph-q__body .old-photo svg { width: 17cqw; height: 15cqw; }
.ph-q__body p { margin: 0; font-size: 4.3cqw; font-weight: 500; line-height: 1.3; }
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 2.2cqw 4cqw;
  border-radius: 99px;
  background: var(--coral-tint);
  color: var(--coral-ink);
  font-size: 3.9cqw;
  font-weight: 600;
}
.ph-btn .icon { width: 4cqw; height: 4cqw; }

/* Little cards that float beside the phone. */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 12px 16px 12px 12px;
  padding-inline: 12px 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lift);
  font-size: var(--fs-tiny);
  line-height: 1.35;
  animation: fm-float 7s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; color: var(--ink); }
.float-card span.muted { display: block; }
.float-card .wave { height: 26px; gap: 2px; }
.float-card .wave span { width: 3px; }
.float-card--a { inset-block-start: 1%; inset-inline-start: -3%; }
.float-card--b { inset-block-end: 9%; inset-inline-end: -4%; animation-delay: -3.5s; }
.float-card .heart { display: inline-flex; align-items: center; gap: 4px; color: var(--coral-pressed); font-weight: 600; }
.float-card .heart .icon { width: 18px; height: 18px; }
@keyframes fm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 559px) {
  .float-card { max-width: 220px; padding: 10px 12px; gap: 10px; }
  .float-card--a { inset-inline-start: 0; inset-block-start: 0; }
  .float-card--b { inset-inline-end: 0; inset-block-end: 6%; }
  .float-card .play-btn--sm { width: 34px; height: 34px; }
}
@media (max-width: 389px) { .float-card--a { display: none; } }

/* 10. Steps, bento, mini illustrations -------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.step__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  margin-block-end: 10px;
  border-radius: 18px;
  background: var(--peach);
  overflow: hidden;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1;
  box-shadow: var(--shadow-raised);
}
.step h3 { font-size: 1.375rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* Mini illustrations used inside step and feature cards (all decorative, aria-hidden). */
.mini-col { display: grid; justify-items: center; gap: 14px; }
.mini-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  font-size: var(--fs-tiny);
  line-height: 1.35;
}
.mini-code { text-align: center; }
.mini-code small { display: block; color: var(--ink-soft); font-size: var(--fs-tiny); }
.mini-code b { display: block; margin-block-start: 4px; font-size: 1.625rem; font-weight: 700; letter-spacing: 0.08em; direction: ltr; color: var(--ink); }
.mini-link { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 12px; }
.mini-link .icon { color: var(--coral-pressed); }
.mini-bubble {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  border-end-start-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 10px 14px;
  font-size: var(--fs-tiny);
  line-height: 1.35;
  max-width: 220px;
}
.mini-bubble b { font-weight: 600; }
.mini-talk { display: grid; justify-items: center; }
.mini-talk .talk-orb { --size: 52px; margin: 17px; }
.mini-talk .talk-orb .icon { width: 24px; height: 24px; }
.mini-talk .mini-bubble { margin-block-start: -12px; position: relative; z-index: 1; text-align: center; border-radius: 16px; }
.mini-story { display: grid; gap: 8px; width: min(260px, 88%); }
.mini-story .mini-card { display: grid; gap: 4px; }
.mini-story .badge { justify-self: start; }
.mini-story b { font-weight: 600; font-size: var(--fs-tiny); line-height: 1.3; }
.mini-story__row { display: flex; align-items: center; gap: 10px; }
.mini-story__row b { flex: 1; }
.mini-story__row .wave { flex: 1; height: 24px; gap: 2px; }
.mini-story__row .wave span { width: 3px; }

.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tile h3 { margin-block-start: 4px; }
.tile p { margin: 0; color: var(--ink-soft); }
/* The wide and full tiles wrap their words in a <div>: give it the same rhythm as a plain tile. */
.tile--wide > div:first-child, .tile--full > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tile p.mt-s { margin-block-start: 6px; }
.tile__art { margin-block-start: auto; padding-block-start: 20px; display: flex; justify-content: center; }
@media (min-width: 1040px) {
  .tile--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
  .tile--wide .tile__art { margin: 0; padding: 0; }
}
@media (min-width: 768px) {
  .tile--full { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
  .tile--full .tile__art { margin: 0; padding: 0; }
}
.tile--sun { background: linear-gradient(135deg, #FFF6DD, var(--white) 60%); }
.tile--coral { background: linear-gradient(135deg, #FFEDE5, var(--white) 60%); }

/* Timeline (vertical, like the app). */
.mini-timeline { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 440px; display: grid; gap: 12px; position: relative; }
.mini-timeline::before {
  content: '';
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 11px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--sun), var(--coral-tint-strong));
}
.mini-timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding-inline-start: 36px; }
.mini-timeline li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 50%;
  width: 17px; height: 17px;
  margin-block-start: -8.5px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--coral);
}
.mini-timeline .mini-card { flex: 1; display: flex; align-items: center; gap: 12px; }
.mini-timeline .mini-card div { flex: 1; min-width: 0; }
.mini-timeline .mini-card b { display: block; font-weight: 600; color: var(--ink); }
.mini-timeline .badge { margin-block-end: 4px; }

/* Voice clip. */
.mini-voice { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px; }
.mini-voice .wave { flex: 1; height: 44px; justify-content: space-between; }
.mini-voice__meta { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: var(--fs-tiny); margin-block-start: 6px; width: 100%; max-width: 340px; }

/* Photo question. */
.mini-photo { display: flex; align-items: flex-end; gap: 4px; }
.mini-photo .old-photo svg { width: 120px; height: 104px; }
.mini-photo .mini-bubble { margin-block-end: 18px; margin-inline-start: -14px; transform: rotate(1.5deg); }

/* Family tree. */
.mini-tree { width: 100%; max-width: 300px; }
.mini-tree text { font-family: var(--font); font-weight: 600; }

/* Hearts and replies. */
.mini-replies { display: grid; gap: 10px; width: 100%; max-width: 300px; }
.mini-replies .mini-bubble { max-width: none; }
.mini-replies .mini-bubble--me { justify-self: end; background: var(--coral-tint); border-radius: 16px; border-end-end-radius: 4px; box-shadow: none; }
.mini-hearts { display: inline-flex; align-items: center; gap: 6px; color: var(--coral-pressed); font-weight: 600; }
.mini-hearts .icon { width: 20px; height: 20px; }

/* The printed book. */
.mini-book { position: relative; width: 168px; height: 212px; margin-inline: auto; perspective: 900px; }
.mini-book__pages {
  position: absolute;
  inset: 8px -8px -6px 8px;
  border-radius: 6px 14px 14px 6px;
  background: repeating-linear-gradient(90deg, #FFFDF9 0 2px, #F3E3D8 2px 3px);
  box-shadow: var(--shadow-card);
}
.mini-book__cover {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 26px 18px 20px;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(160deg, var(--coral-top), var(--coral-bottom));
  color: var(--white);
  text-align: center;
  box-shadow: inset 8px 0 0 rgba(0, 0, 0, 0.08), var(--shadow-lift);
  transform: rotateY(-14deg);
  transform-origin: left center;
}
[dir="rtl"] .mini-book__pages { inset: 8px 8px -6px -8px; border-radius: 14px 6px 6px 14px; }
[dir="rtl"] .mini-book__cover { border-radius: 14px 6px 6px 14px; box-shadow: inset -8px 0 0 rgba(0, 0, 0, 0.08), var(--shadow-lift); transform: rotateY(14deg); transform-origin: right center; }
.mini-book__cover img { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(138, 51, 32, 0.25)); }
.mini-book__cover b { font-size: 1.1875rem; line-height: 1.2; font-weight: 700; }
.mini-book__cover small { font-size: var(--fs-tiny); opacity: 0.95; }

/* 11. Privacy, review card, promises ----------------------------------------------------------- */
.privacy-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .privacy-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } .privacy-grid__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.privacy-grid__intro h2 { margin-block: 16px; }

.review-card {
  margin-block: 32px 24px;
  padding: 22px;
  border-radius: 24px;
  background: var(--peach);
  border: 2px solid var(--hairline);
  max-width: 440px;
}
.review-card__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sun-ink); font-size: var(--fs-small); }
.review-card h3 { margin-block: 10px 6px; font-size: 1.25rem; }
.review-card p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0 0 16px; }
.review-card .cluster { --cluster: 10px; }
.review-card .btn { min-height: 48px; font-size: 1.1875rem; padding-inline: 20px; }
/* The card is a picture of the app, not a control: its buttons don't look pressable, and a tag says so. */
.review-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.review-card .btn { pointer-events: none; cursor: default; box-shadow: none; }

.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.promise { display: flex; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--hairline); }
.promise:last-child { border-bottom: 0; }
.promise h3 { font-size: 1.25rem; margin-block-end: 4px; }
.promise p { margin: 0; color: var(--ink-soft); }

/* 12. Pricing ---------------------------------------------------------------------------------- */
.plans { display: grid; gap: 20px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
}
.plan--featured { border-color: var(--coral); box-shadow: var(--shadow-lift); }
.plan__ribbon { position: absolute; top: -16px; inset-inline-start: 28px; }
.plan h2, .plan h3 { font-size: 1.375rem; letter-spacing: 0; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.price__unit { color: var(--ink-soft); font-size: var(--fs-small); font-weight: 500; }
.plan p { margin: 0; color: var(--ink-soft); }
.plan .btn { margin-block-start: auto; }
.plan .check-list { font-size: var(--fs-small); gap: 10px; }

.price-teaser {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) { .price-teaser { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; } }
.price-teaser h2 { margin-block: 14px 10px; }
.price-teaser__box { padding: 24px; border-radius: 24px; background: var(--peach); }
.price-teaser__or { margin-block: 6px 16px; color: var(--ink-soft); }
.free-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(90deg, var(--sun-tint), #FFF3D1);
  color: var(--ink);
  font-weight: 500;
}
.free-banner .icon-circle { background: var(--white); color: var(--sun-ink); }
.fine-print { font-size: var(--fs-small); color: var(--ink-soft); }

/* 13. FAQ accordion (native <details>, works without JavaScript) ------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-lift); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  padding-inline-start: 24px;
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ''; }
.faq summary:hover { color: var(--coral-ink); }
.faq summary .chev {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-pressed);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq summary .chev .icon { width: 20px; height: 20px; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq__body p { margin-block-end: 0.75em; }
.faq__body p:last-child { margin: 0; }
.faq-group + .faq-group { margin-block-start: 48px; }
.faq-group > h2 { font-size: var(--fs-h3); max-width: 860px; margin: 0 auto 16px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* 14. CTA panel, store badges ------------------------------------------------------------------ */
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--coral-tint) 0%, #FFEBD9 48%, var(--sun-tint) 100%);
  text-align: center;
}
.cta-panel::before, .cta-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.cta-panel::before { width: 520px; height: 520px; inset-block-start: -260px; inset-inline-start: -200px; background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 30%, rgba(255, 255, 255, 0.35) 30.5% 48%, rgba(255, 255, 255, 0.15) 48.5% 66%, transparent 66.5%); }
.cta-panel::after { width: 440px; height: 440px; inset-block-end: -240px; inset-inline-end: -160px; background: radial-gradient(circle, rgba(255, 210, 122, 0.5) 0 34%, rgba(255, 210, 122, 0.25) 34.5% 56%, transparent 56.5%); }
.cta-panel__mark { width: 96px; height: 96px; margin: 0 auto 20px; }
.cta-panel h2 { max-width: 760px; margin-inline: auto; }
.cta-panel .lead { max-width: 640px; margin: 16px auto 0; }
.cta-panel__actions { justify-content: center; margin-block-start: 32px; }
.cta-panel__stores { justify-content: center; margin-block-start: 28px; }
.cta-panel__note { margin: 20px auto 0; max-width: 560px; font-size: var(--fs-small); color: var(--ink-2); }
/* Links on the coral-to-sun gradient: the deeper coral ink keeps them above 4.5:1. */
.cta-panel a:not(.btn):not(.store-badge), .cta-panel .link-arrow { color: var(--coral-ink); }

/* Store badges. Until the store links are filled in (site-config.js) they are soft "coming soon" pills
   in the Sunrise colours; site.js adds .store-badge--live with the real link, and only then they take
   the dark, official-looking style. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 22px 8px 18px;
  padding-inline: 18px 22px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-2);
  text-decoration: none;
  text-align: start;
  line-height: 1.15;
}
.store-badge .icon { width: 26px; height: 26px; color: var(--ink-soft); }
.store-badge small { display: block; font-size: var(--fs-tiny); }
.store-badge small[data-store-soon] { display: inline-block; margin-block-end: 3px; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--sun-tint); color: var(--sun-ink); font-weight: 600; }
.store-badge b { display: block; font-size: 1.1875rem; font-weight: 600; color: var(--ink); }
.store-badge[aria-disabled="true"] { cursor: default; }
.store-badge--live { border-color: var(--ink); background: var(--ink); color: var(--white); border-radius: 16px; }
.store-badge--live .icon, .store-badge--live b { color: var(--white); }
.store-badge--live small { opacity: 0.85; }
a.store-badge--live[href]:hover { background: #000; color: var(--white); }
.store-badge .badge { margin-inline-start: 6px; }

/* 15. Legal pages (terms, privacy, cookies) ---------------------------------------------------- */
/*
 * <main class="legal-page">
 *   <header class="legal-hero"> eyebrow, h1, .legal-meta (Last updated <time data-config="updated">) </header>
 *   <div class="container legal">
 *     <nav class="legal-toc" aria-label="On this page"> <h2>On this page</h2> <ol> <li><a href="#x">… </ol> </nav>
 *     <article class="legal-body"> <div class="callout"> In short… </div> <section id="x"><h2>…</h2>… </article>
 *   </div>
 * </main>
 */
.legal-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 40px); text-align: center; }
.legal-hero h1 { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem); margin-block: 16px 12px; }
.legal-meta { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }
.legal {
  display: grid;
  gap: 32px;
  padding-block-end: var(--section-y);
}
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; } }
.legal-toc {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-small);
}
@media (min-width: 1000px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.legal-toc h2 { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); margin-block-end: 8px; letter-spacing: 0; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.35;
}
.legal-toc a::before { content: counter(toc) '.'; color: var(--ink-soft); min-width: 1.4em; }
.legal-toc a:hover, .legal-toc a[aria-current="true"] { background: var(--coral-tint); color: var(--coral-ink); }
.legal-body {
  max-width: 760px;
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.legal-body > section + section { margin-block-start: 44px; }
.legal-body h2 { font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem); margin-block-end: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h3 { font-size: 1.1875rem; font-weight: 600; margin-block: 24px 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul, .legal-body ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.legal-body li + li { margin-block-start: 0.4em; }
.legal-body li::marker { color: var(--coral); }
.callout {
  margin-block-end: 36px;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--sun-tint);
  color: var(--ink);
}
.callout h2, .callout h3 { font-size: 1.1875rem; margin: 0 0 10px; }
.callout ul { margin: 0; }
.callout p, .callout li { color: var(--ink); }
.callout--coral { background: var(--coral-tint); }

.table-wrap { overflow-x: auto; margin-block: 16px 24px; border-radius: var(--radius-md); border: 1px solid var(--hairline); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.table th { background: var(--peach); font-weight: 600; color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }

/* Contact card used at the end of legal pages and on support. */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card dl { margin: 0; display: grid; gap: 8px; }
.contact-card dt { font-weight: 600; }
.contact-card dd { margin: 0; }

/* 16. Forms and chat (support) ----------------------------------------------------------------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-block-start: 18px; }
.field label, .label { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.field .hint { font-size: var(--fs-small); color: var(--ink-soft); }
.input, .textarea, .select,
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid var(--field-border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea, .field textarea { min-height: 140px; resize: vertical; }
.input:hover, .textarea:hover, .field input:hover, .field textarea:hover { border-color: var(--coral-tint-strong); }
.input:focus, .textarea:focus, .select:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(240, 106, 77, 0.2);
}
::placeholder { color: #9A8D87; opacity: 1; }

.chat {
  display: flex;
  flex-direction: column;
  height: min(640px, 78vh);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.chat__head b { display: block; }
.chat__head small { color: var(--ink-soft); font-size: var(--fs-tiny); }
.chat__log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--peach); }
.bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 20px;
  line-height: 1.5;
  font-size: 1.0625rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble--them { align-self: flex-start; background: var(--white); border-end-start-radius: 6px; box-shadow: var(--shadow-card); }
.bubble--me { align-self: flex-end; background: var(--coral-tint); color: var(--ink); border-end-end-radius: 6px; }
.bubble--typing { display: inline-flex; gap: 5px; align-items: center; }
.bubble--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-tint-strong); animation: fm-dot 1.2s infinite ease-in-out; }
.bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes fm-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.6; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat__form { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--hairline); background: var(--white); }
.chat__form .textarea, .chat__form textarea { min-height: 52px; max-height: 160px; resize: none; }
.chat__form .play-btn { width: 52px; height: 52px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--coral-tint-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--coral-ink);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { background: var(--coral-tint); }

/* 17. Motion, reveal, print -------------------------------------------------------------------- */
/* site.js adds .reveal only to elements below the fold, then .is-visible as they scroll in. */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rings span:nth-child(4), .rings span:nth-child(5), .talk-orb--breathe::after { display: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .lang-hint, .legal-toc, .hero__visual { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .legal-body, .card { box-shadow: none; padding: 0; }
  a { color: inherit; }
}

/* 18. Page not found (404.html, he/404.html) --------------------------------------------------- */
.nf-art { position: relative; isolation: isolate; width: 128px; height: 128px; margin: 36px auto 52px; }
.nf-art .rings { top: 50%; width: 240px; }
.nf-hero .eyebrow { position: relative; }
.nf-art img { position: relative; display: block; width: 100%; height: 100%; }
.nf-actions { justify-content: center; margin-block-start: 28px; }
.nf-tip { max-width: 640px; margin: 28px auto 0; text-align: start; }
.nf-tip a { font-weight: 600; }
.nf-links { list-style: none; margin: 0; padding: 0; }
.nf-links > li { display: flex; }
.nf-link { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.nf-link h3 { margin: 4px 0 0; }
.nf-link p { margin: 0; }
.nf-link .link-arrow { margin-block-start: auto; min-height: 0; }

/* The "Join the beta" form (beta.html, assets/beta.js). */
.beta-form { margin-block-start: 28px; display: grid; gap: 4px; }
.beta-form fieldset { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--hairline); border-radius: 14px; background: #fff; font-size: var(--fs-body); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--coral); background: var(--coral-tint); }
.choice input { width: 22px; height: 22px; accent-color: var(--coral); }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 18px 0 0; font-size: var(--fs-small); color: var(--ink-soft); }
.form-status { min-height: 1.5em; margin: 10px 0 14px; font-weight: 500; }
.form-status--ok { color: #1F7A52; }
.form-status--error { color: #A32F2F; }
.beta-form .btn { justify-self: start; }

/* Cloudflare Turnstile (assets/turnstile.js): takes no room unless Cloudflare asks the visitor to click. */
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-block: 8px 4px; }
.fmc-turnstile { padding-inline: 16px; }
.turnstile--asking::before { content: attr(data-ask); display: block; margin-block-end: 6px; font-size: var(--fs-small); color: var(--ink-soft); }
