/* Familoosh marketing site: shared by index.html (he, RTL) and en/index.html (en, LTR).
   Logical properties only, so every rule works in both directions. */

/* ---------- font ---------- */
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #FBF8F2;
  --surface: #FFFFFF;
  --ink: #2A2950;
  --muted: #625D7D;
  --primary: #6A5AE0;
  --primary-hover: #5747CF;
  --primary-soft: #EEEAFB;
  --line: #E9E3F3;
  --note-yellow: #FCF0B0;
  --note-pink: #FADCE8;
  --note-mint: #DDF0E8;
  --member-sky: #DCE6F5;
  --member-lilac: #E6E0FA;
  --warn-bg: #FFF4DF;
  --app-grad: linear-gradient(100deg, #5B8DEF 0%, #8B5CF6 55%, #E07BC4 100%);

  --font: "Rubik", "Segoe UI", system-ui, sans-serif;
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(2.75rem, 1.4rem + 5vw, 5.5rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h3: 1.375rem;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(42, 41, 80, .05), 0 12px 32px -12px rgba(42, 41, 80, .18);

  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  --wrap: 1180px;
  --gutter: 24px;
  --section-gap: clamp(72px, 9vw, 128px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  border-radius: var(--radius-pill); border: 0;
  font: 600 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-quiet { background: var(--primary-soft); color: var(--ink); }
.btn-quiet:hover { background: #E3DDF8; color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 242, .88);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-block-end-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { width: auto; height: 46px; margin-inline-start: -10px; }
.site-nav { display: flex; gap: 24px; margin-inline-start: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.site-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding-inline: 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.header-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section-gap); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
/* rotating question: every question sits in the same grid cell, so the tallest sets the height and nothing jumps.
   Hebrew: sized to the column (longest question is ~8.1em) so each question stays on one line.
   English keeps its own size from the rule above: every question there takes two lines */
.hero-copy { container-type: inline-size; }
.hero .hero-q { font-size: min(var(--fs-h1), 12cqi); }
.q-stack { display: grid; }
.q {
  grid-area: 1 / 1; align-self: start;
  opacity: 0; transform: translateY(.22em);
  transition: opacity .35s ease, transform .35s ease;
}
/* the next question comes in once the previous one is nearly gone, so they don't overlap mid-fade */
.q.is-on { opacity: 1; transform: none; transition-delay: .25s; }
.q.is-out { opacity: 0; transform: translateY(-.22em); }
/* English words are longer than the Hebrew headline: a bit smaller, so it breaks into two lines next to the demo */
:lang(en) .hero h1 { font-size: clamp(2.75rem, 1.4rem + 3.9vw, 4.5rem); }
.hero-lead { margin-block-start: 20px; font-size: 1.375rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }
.hero-note { margin-block-start: 16px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- demo (signature: from the group chat to the family schedule, inside a phone) ---------- */
.demo { --dir: 1; position: relative; width: 100%; max-width: 560px; justify-self: center; display: flex; align-items: center; gap: 28px; }
[dir="rtl"] .demo { --dir: -1; }

.demo-phone {
  flex: none; position: relative; width: 280px; padding: 10px; border-radius: 44px;
  background: var(--ink); box-shadow: 0 34px 70px -34px rgba(42, 41, 80, .6);
}
.demo-display {
  position: relative; overflow: hidden; aspect-ratio: 9 / 19.5; border-radius: 34px;
  background: var(--bg); font-size: 13px; line-height: 1.45;
}
.chat-shell, .app-shell { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
/* the next app comes in from the inline end, the previous one leaves toward the inline start */
.app-shell { background: var(--bg); transform: translateX(calc(100% * var(--dir))); }
.demo[data-scene="app"] .chat-shell { transform: translateX(calc(-100% * var(--dir))); }
.demo[data-scene="app"] .app-shell { transform: none; }

/* taps: a fingertip ripple on whatever is pressed */
.tap { position: relative; }
.tap::after {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 38px; height: 38px;
  margin: -19px; border-radius: 50%; background: rgba(42, 41, 80, .28); opacity: 0; transform: scale(.4); pointer-events: none;
}
.tap.is-tapped::after { animation: tap .5s ease-out both; }
.tap.is-holding::after { animation: hold .9s ease-out both; }
@keyframes tap { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes hold { 0% { opacity: .7; transform: scale(.4); } 70% { opacity: .55; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.4); } }

/* chat app (generic group chat) */
.chat-shell { background: #ECE5DD; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 30px 12px 10px; background: #1F6F63; color: #fff; }
.chat-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #D3ECE6; font-size: 15px; }
.chat-head strong { display: block; font-size: 13px; line-height: 1.2; }
.chat-head small { font-size: 10.5px; opacity: .8; }
.chat-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 14px 10px; }
.chat-day { align-self: center; padding: 2px 10px; border-radius: 8px; background: #E1F2FB; color: #54656F; font-size: 10.5px; }
.chat-msg {
  position: relative; align-self: flex-start; max-width: 84%; padding: 6px 9px 18px; border-radius: 10px;
  background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); font-size: 12.5px; line-height: 1.4;
  transition: box-shadow .25s ease, transform .25s ease;
}
.chat-msg.is-out { align-self: flex-end; background: #D9FDD3; }
.chat-from { display: block; font-size: 11px; font-weight: 700; color: #B5487E; }
.chat-time { position: absolute; inset-inline-end: 8px; bottom: 3px; font-size: 9.5px; color: #8A8F94; }
.demo[data-chat="menu"] .chat-key, .demo[data-chat="copied"] .chat-key { box-shadow: 0 0 0 2.5px #8B7CF6, 0 6px 16px rgba(0, 0, 0, .15); transform: scale(1.02); }
.chat-menu {
  align-self: flex-start; width: 150px; padding: 4px; border-radius: 12px; background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(-6px) scale(.95);
  transition: opacity .2s ease, transform .2s ease;
}
.chat-menu span { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding-inline: 10px; border-radius: 8px; font-size: 12px; }
.chat-menu .is-copy { color: var(--ink); font-weight: 600; }
.demo[data-chat="menu"] .chat-menu { opacity: 1; transform: none; }
.chat-toast {
  position: absolute; inset-inline: 0; bottom: 64px; margin-inline: auto; width: max-content;
  padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(32, 33, 36, .88); color: #fff; font-size: 11.5px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.demo[data-chat="copied"] .chat-toast { opacity: 1; transform: none; }
.chat-input { position: absolute; inset-inline: 8px; bottom: 12px; min-height: 38px; display: flex; align-items: center; padding-inline: 14px; border-radius: var(--radius-pill); background: #fff; color: #9AA0A6; font-size: 12px; }

/* Familoosh app */
.app-bar { display: flex; justify-content: center; padding: 18px 0 8px; }
.app-bar img { height: 26px; width: auto; }
.app-screen {
  position: absolute; inset: 52px 0 0; padding: 12px 14px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
}
.app-screen.is-modal { inset: 0; padding: 120px 12px 12px; background: rgba(42, 41, 80, .28); }
.demo[data-screen="ai"] .scr-ai, .demo[data-screen="review"] .scr-review, .demo[data-screen="day"] .scr-day { opacity: 1; visibility: visible; }
.app-sheet { background: var(--surface); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.app-h { font-weight: 700; font-size: 17px; line-height: 1.25; }
.app-sub { color: var(--muted); font-size: 12px; }
.app-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-toggle span { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; border-radius: 12px; background: #F4F2FA; color: var(--muted); font-size: 12px; }
.app-toggle .is-on { background: #E8E3FB; color: var(--primary); box-shadow: inset 0 0 0 1.5px #CFC6F6; }
.app-textarea { position: relative; min-height: 104px; padding: 10px 12px; border: 1.5px solid #DCD7EA; border-radius: 14px; font-size: 12.5px; }
.demo-placeholder { position: absolute; inset: 10px 12px auto; color: #A29DB8; transition: opacity .2s ease; }
.demo-pasted { opacity: 0; transition: opacity .2s ease; }
.demo[data-ai="pasted"] .demo-placeholder { opacity: 0; }
.demo[data-ai="pasted"] .demo-pasted { opacity: 1; }
.demo[data-ai="pasted"] .app-textarea { border-color: #B8ADF3; }
.paste-pop {
  position: absolute; top: -16px; inset-inline-start: 14px; padding: 5px 12px; border-radius: 8px;
  background: #2B2B30; color: #fff; font-size: 11.5px; font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
.demo[data-ai="paste"] .paste-pop { opacity: 1; transform: none; }
.app-link { color: var(--primary); font-size: 12px; text-align: center; }
.app-btn {
  display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 13px;
}
.app-btn-grad { background: linear-gradient(100deg, #5B8DEF, #8B5CF6 55%, #E07BC4); }
.app-fine { font-size: 10.5px; color: var(--muted); }
.app-item { background: #FAF8FF; border-radius: 14px; padding: 12px; }
.app-item strong { display: block; font-size: 14px; }
.app-item > span { display: block; margin-block-start: 6px; font-size: 11.5px; color: var(--muted); }

.app-hello { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.app-hello span { color: var(--muted); font-size: 12px; }
.app-hello strong { font-size: 17px; }
.app-avatars { display: flex; gap: 6px; margin-block-start: 10px; }
.app-avatars span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(42, 41, 80, .12);
  font-size: 11px; font-weight: 700; color: #4A4570;
}
.app-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-block-start: 12px; }
.app-tabs span { display: grid; place-items: center; min-height: 30px; border-radius: 10px; background: #EFECF8; font-size: 12px; font-weight: 600; color: var(--muted); }
.app-tabs .is-on { background: linear-gradient(180deg, #8F82F7, #6A5AE0); color: #fff; }
.app-date { margin-block-start: 10px; text-align: center; font-weight: 700; font-size: 13px; }
.app-timeline { position: relative; height: 218px; margin-block-start: 8px; background: var(--surface); border-radius: 16px; }
.tl-hour { position: absolute; inset-inline: 8px; top: calc(14px + var(--h) * 70px); display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.tl-hour::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tl-event {
  position: absolute; top: calc(14px + var(--from) * 70px); height: calc(var(--len) * 70px);
  width: 40%; padding: 6px 8px; border-radius: 10px; font-size: 11px; line-height: 1.35; overflow: hidden;
}
.tl-event strong { display: block; font-size: 12px; }
.ev-orit { inset-inline-start: 50px; background: #E4DEFA; box-shadow: inset 0 0 0 1px #CFC5F4; }
.ev-new { inset-inline-end: 8px; background: #D5E2F6; box-shadow: inset 0 0 0 1px #A9C1EA; }
.app-toast {
  position: absolute; inset-inline: 14px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 14px; background: var(--note-mint); font-weight: 600; font-size: 12.5px;
  box-shadow: 0 10px 24px -14px rgba(42, 41, 80, .4);
}
.app-toast svg { flex: none; width: 30px; height: 30px; }
.demo.is-ticking .ev-new { animation: ev-pop .6s cubic-bezier(.2, .8, .2, 1.2) both; }
.demo.is-ticking .app-toast { animation: toast-in .45s .35s ease both; }
@keyframes ev-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.clock-hand { transform-box: view-box; transform-origin: 128px 150px; }
.clock-hand-h { transform: rotate(300deg); }
.clock-hand-m { transform: rotate(30deg); }
.demo.is-ticking .clock-hand-h { animation: hand-h 1.3s .4s cubic-bezier(.2, .7, .2, 1) both; }
.demo.is-ticking .clock-hand-m { animation: hand-m 1.3s .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hand-h { from { transform: rotate(180deg); } to { transform: rotate(300deg); } }
@keyframes hand-m { from { transform: rotate(-690deg); } to { transform: rotate(30deg); } }

/* the four steps beside the phone, joined by a line; the current one lights up */
.demo-side { display: grid; gap: 20px; min-width: 190px; }
.demo-steps { position: relative; list-style: none; display: grid; gap: 22px; counter-reset: demo-step; }
.demo-steps::before { content: ""; position: absolute; inset-inline-start: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.demo-steps li {
  position: relative; counter-increment: demo-step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center;
  color: var(--muted); font-size: 1rem; line-height: 1.35; transition: color .3s ease;
}
.demo-steps li::before {
  content: counter(demo-step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: .875rem;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.demo[data-caption="1"] .demo-steps li:nth-child(1),
.demo[data-caption="2"] .demo-steps li:nth-child(2),
.demo[data-caption="3"] .demo-steps li:nth-child(3),
.demo[data-caption="4"] .demo-steps li:nth-child(4) { color: var(--ink); font-weight: 600; }
.demo[data-caption="1"] .demo-steps li:nth-child(1)::before,
.demo[data-caption="2"] .demo-steps li:nth-child(2)::before,
.demo[data-caption="3"] .demo-steps li:nth-child(3)::before,
.demo[data-caption="4"] .demo-steps li:nth-child(4)::before { background: var(--primary); color: #fff; box-shadow: none; }

.demo-replay {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; margin-inline-start: -14px; border: 0; background: none; border-radius: var(--radius-pill);
  color: var(--muted); font: 500 .9375rem var(--font); cursor: pointer;
}
.demo-replay:hover { color: var(--primary); background: var(--primary-soft); }
.demo-replay[hidden] { display: none; }

@media (max-width: 1100px) {
  .demo { flex-direction: column; gap: 24px; }
  .demo-side { justify-items: center; }
  .demo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; max-width: 360px; }
  .demo-steps::before { display: none; }
  .demo-steps li { font-size: .9375rem; }
  .demo-replay { justify-self: center; margin: 0; }
}

/* ---------- pain (the family's questions as chat bubbles, then the answer) ---------- */
/* the pain section flows straight into the features heading: "אתם חיים. אנחנו מסדרים." then "כל מה שהמשפחה צריכה לזכור…" */
.pain { padding-block-end: 14px; }
.pain h2, .features-head h2, .steps h2, .faq h2 { font-size: var(--fs-h2); }
.pain h2 { text-align: center; }
.talk { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin: 40px auto 0; list-style: none; }
.talk li {
  max-width: 30em; padding: 14px 20px 10px; border-radius: 22px;
  font-size: 1.125rem; line-height: 1.5; box-shadow: 0 10px 22px -16px rgba(42, 41, 80, .45);
}
/* each speaker on its own side, tail on the speaking side */
.talk li:nth-child(odd) { align-self: flex-start; border-end-start-radius: 6px; }
.talk li:nth-child(even) { align-self: flex-end; border-end-end-radius: 6px; }
.talk li:nth-child(1) { background: var(--member-lilac); }
.talk li:nth-child(2) { background: var(--note-mint); }
.talk li:nth-child(3) { background: var(--member-sky); }
.talk li:nth-child(4) { background: #FBE5DA; }
.talk li:nth-child(5) { background: var(--note-yellow); }
.talk-time { display: block; margin-block-start: 2px; font-size: .8125rem; color: var(--muted); text-align: end; }

.answer { max-width: 780px; margin: 64px auto 0; text-align: center; }
.answer-lead { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); font-weight: 700; line-height: 1.2; }
.answer-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-block-start: 22px; list-style: none; }
.answer-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 14px 18px;
  background: var(--surface); border-radius: var(--radius-pill); box-shadow: var(--shadow); font-weight: 600;
}
.answer-chips li::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--primary);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.answer-punch { margin-block-start: 28px; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); font-weight: 700; line-height: 1.15; color: var(--primary); }

/* ---------- features ---------- */
.features { padding-block-end: var(--section-gap); }
.features-head { max-width: 40rem; margin-inline: auto; margin-block-end: clamp(56px, 8vw, 104px); text-align: center; }
.features-head h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); line-height: 1.15; }
.features-head h2 span { display: block; } /* each sentence on its own line */
.features-head p { margin-block-start: 16px; color: var(--muted); font-size: 1.25rem; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.feature + .feature { margin-block-start: clamp(48px, 6vw, 88px); }
.feature:nth-of-type(even) .feature-media { order: -1; }
.feature-text h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); }
.feature-text p { margin-block-start: 16px; color: var(--muted); max-width: 32em; }
.feature-text .example {
  display: inline-block; margin-block-start: 18px; padding: 10px 16px;
  background: var(--surface); border-radius: var(--radius-md); border-start-end-radius: 6px;
  box-shadow: var(--shadow); font-size: 1rem; color: var(--ink);
}
.feature-media { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw); padding: 10px; border-radius: 40px;
  background: var(--ink); box-shadow: 0 30px 60px -30px rgba(42, 41, 80, .55);
}
.phone img { border-radius: 30px; width: 100%; }
.shot-placeholder {
  display: grid; place-items: center; aspect-ratio: 600 / 1169; border-radius: 30px;
  background: repeating-linear-gradient(-45deg, #F3F0FB 0 14px, #ECE7FA 14px 28px);
  color: var(--muted); text-align: center; padding: 24px; font-size: .9375rem; font-weight: 500;
}

/* ---------- steps ---------- */
.steps { padding-block-end: var(--section-gap); }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-block-start: 40px; list-style: none; counter-reset: step; }
.steps-list li { counter-increment: step; border-block-start: 2px solid var(--ink); padding-block-start: 20px; }
.steps-list li::before {
  content: counter(step); display: block; font-size: 3rem; font-weight: 700; line-height: 1;
  color: var(--primary); margin-block-end: 14px;
}
.steps-list h3 { font-size: var(--fs-h3); }
.steps-list p { margin-block-start: 8px; color: var(--muted); }

/* ---------- pilot ---------- */
.pilot { background: var(--primary-soft); padding-block: var(--section-gap); }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pilot h2 { font-size: var(--fs-h2); }
.pilot-lead { margin-block-start: 16px; font-size: 1.25rem; color: var(--muted); }
.pilot-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-block-start: 36px; }
.pilot-lists h3 { font-size: 1.125rem; margin-block-end: 10px; }
.pilot-lists ul { list-style: none; display: grid; gap: 10px; }
.pilot-lists li { position: relative; padding-inline-start: 26px; }
.pilot-lists li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em;
  width: 18px; height: 18px; background: var(--primary);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.pilot-callout { margin-block-start: 32px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius-md); }
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: var(--fs-h3); }
.form-placeholder {
  margin-block-start: 20px; padding: 20px; border: 2px dashed #C9C0F2; border-radius: var(--radius-md);
  color: var(--muted); font-size: 1rem;
}
.form-placeholder ul { margin-block-start: 10px; padding-inline-start: 20px; display: grid; gap: 4px; }
.form-privacy { margin-block-start: 16px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- faq ---------- */
.faq { padding-block: var(--section-gap); }
.faq-list { max-width: 760px; margin-block-start: 32px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; background: var(--primary);
  -webkit-mask: var(--icon-chevron-down) center / contain no-repeat; mask: var(--icon-chevron-down) center / contain no-repeat;
  transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { padding-block-end: 20px; color: var(--muted); max-width: 40em; }

/* ---------- footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 40px 48px; font-size: var(--fs-small); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-row img { height: 30px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-inline-start: auto; }
.footer-links a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- placeholder marker (visible TODOs) ---------- */
[data-todo] { outline: 2px dashed #E0A93B; outline-offset: 2px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --fs-body: 1.0625rem; }
  .site-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .brand img { height: 32px; }
  .hero-grid, .feature, .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-lead { font-size: 1.125rem; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .talk li { max-width: 88%; font-size: 1.0625rem; }
  .pilot-lists { grid-template-columns: minmax(0, 1fr); }
  .demo-phone { width: 272px; }
  .phone { width: min(250px, 70vw); }
}
@media (max-width: 420px) {
  .header-actions .btn { padding-inline: 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  /* the demo always shows its final screen: the saved event in Familoosh */
  .demo .app-shell { transform: none !important; }
  .demo .chat-shell { visibility: hidden !important; }
  .demo .scr-day { opacity: 1 !important; visibility: visible !important; }
  .demo .scr-ai, .demo .scr-review, .demo .chat-menu, .demo .chat-toast, .demo .paste-pop { opacity: 0 !important; visibility: hidden !important; }
  .demo .ev-new, .demo .app-toast { opacity: 1 !important; transform: none !important; }
  .demo-replay { display: none !important; }
  /* the headline shows only its first question */
  .q { opacity: 0 !important; }
  .q:first-child { opacity: 1 !important; transform: none !important; }
}
