/* DoRem marketing site. Tokens mirror apps/mobile/src/theme/tokens.ts ("Studio"): warm paper neutrals,
   one pine accent, Fraunces for display, system type for reading, soft category tints. */

:root {
  --bg: #F5EFE2;
  --bg-top: #FAF6EE;
  --bg-band: #EFE6D4;
  --surface: #FFFDF8;
  --surface-muted: #F2EBDD;
  --border: #E6DCC7;
  --divider: rgba(33, 28, 21, 0.08);
  --text: #211C15;
  --text-muted: #7C6F58;
  --text-soft: #5B4F3D;
  --accent: #2F6B4F;
  --accent-strong: #245942;
  --accent-muted: #E9F3EC;
  --on-accent: #FFFFFF;
  --success: #3E8F5C;
  --warning: #B8722A;
  --danger: #B8452F;

  /* App card ("Card" component) */
  --card-bg: rgba(255, 253, 248, 0.68);
  --card-border: rgba(255, 255, 255, 0.85);
  --card-hi: rgba(255, 255, 255, 0.98);
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  --screen-bg: linear-gradient(180deg, #FAF6EE, #EFE6D4);
  --tabbar-bg: rgba(255, 255, 255, 0.92);
  --field-bg: #FFFFFF;
  --ring: #B4A88F;
  --ring-hi: #8C7F63;
  --rule: #C9D9EF;
  /* Thin metal edge around the bezel + one soft drop shadow */
  --push-bg: #FFFFFF;
  --phone-shadow: inset 0 0 0 1.5px #3A342B, 0 24px 48px -16px rgba(33, 28, 21, 0.35);

  /* Category tints (tint.light) */
  --timeline-bg: #E4EAF7; --timeline-label: #45527A; --timeline-text: #2A3358; --timeline-muted: #5C6690;
  --tasks-bg: #DEEBE1; --tasks-label: #2F6B4F; --tasks-text: #244033; --tasks-muted: #4E6F5C;
  --shopping-bg: #F3E7CE; --shopping-label: #7A5A1E; --shopping-text: #5B4211; --shopping-muted: #7A5A1E;
  --inbox-bg: #EBE1F2; --inbox-label: #5B3E80; --inbox-text: #3E2A5C; --inbox-muted: #6B5488;
  --attention-bg: #F5DEE0; --attention-label: #9B4A55; --attention-text: #6E2E38; --attention-muted: #9B4A55;
  --amber-bg: #FBE7A4; --amber-text: #5C430E; --rose-bg: #F5CFD6; --rose-text: #732A38;

  /* Family member colours (avatarPalette) */
  --m1: #C9705A; --m2: #4A6FA5; --m3: #B5892C; --m4: #8A5FA8;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-hand: 'Patrick Hand', 'Segoe Print', cursive;

  --r-sm: 10px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px;
  --gutter: 16px;
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110B;
    --bg-top: #241E15;
    --bg-band: #1A160F;
    --surface: #221D14;
    --surface-muted: #2A2419;
    --border: #3A3226;
    --divider: rgba(255, 250, 240, 0.09);
    --text: #F5EFE0;
    --text-muted: #AB9F8B;
    --text-soft: #C4B9A5;
    --accent: #7FBE9B;
    --accent-strong: #9FD4B5;
    --accent-muted: rgba(127, 190, 155, 0.2);
    --on-accent: #14110B;
    --card-bg: rgba(255, 250, 240, 0.06);
    --card-border: rgba(255, 250, 240, 0.13);
    --card-hi: rgba(255, 250, 240, 0.24);
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    --screen-bg: linear-gradient(180deg, #241E15, #14110B);
    --tabbar-bg: rgba(34, 29, 20, 0.92);
    --field-bg: #221D14;
    --ring: #8A7F6A;
    --ring-hi: #5C5343;
    --rule: rgba(140, 170, 220, 0.22);
    --push-bg: #2E271C;
    --phone-shadow: inset 0 0 0 1.5px #3A342B, 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    --timeline-bg: rgba(93, 122, 189, 0.16); --timeline-label: #AAB9E2; --timeline-text: #DCE2F5; --timeline-muted: #9BA8D4;
    --tasks-bg: rgba(127, 190, 155, 0.14); --tasks-label: #9FD4B5; --tasks-text: #DCF0E3; --tasks-muted: #8FC2A5;
    --shopping-bg: rgba(212, 166, 90, 0.16); --shopping-label: #E4C083; --shopping-text: #F5E4C4; --shopping-muted: #D4B27A;
    --inbox-bg: rgba(181, 140, 214, 0.16); --inbox-label: #D3B8E8; --inbox-text: #EFE1F7; --inbox-muted: #C4A6DA;
    --attention-bg: rgba(224, 140, 150, 0.16); --attention-label: #F0AAB4; --attention-text: #FBE1E4; --attention-muted: #E098A3;
    --amber-bg: rgba(212, 166, 90, 0.26); --amber-text: #EFD9A2; --rose-bg: rgba(214, 120, 140, 0.24); --rose-text: #F3C7D1;
    color-scheme: dark;
  }
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --nav-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.band { background: var(--bg-band); }

h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; max-width: 20ch; }
h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--text-soft); max-width: 54ch; text-wrap: pretty; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.kicker { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.k-timeline { color: var(--timeline-label); }
.k-tasks { color: var(--tasks-label); }
.k-shopping { color: var(--shopping-label); }
.k-inbox { color: var(--inbox-label); }

/* ---------- Buttons (app Button: radius.md, 44pt+ target, pine shadow) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  box-shadow: 0 5px 12px rgba(36, 89, 66, 0.3);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(36, 89, 66, 0.32); }
.btn:active { transform: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: none; padding: 0 12px; }
.btn-quiet:hover { background: var(--surface-muted); box-shadow: none; }
.btn-quiet .i { transition: transform .2s; }
.btn-quiet:hover .i { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--divider); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.35rem/1 var(--f-display); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--text-soft); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-muted); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-end > .lang, .nav-end > .btn { display: none; }

/* SegmentedControl look: pills, the selected one in pine */
.lang { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-muted); }
.lang a { padding: 6px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: var(--text-soft); transition: background-color .2s, color .2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--accent); color: var(--on-accent); }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.menu-btn:hover { background: var(--surface-muted); }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu { border-top: 1px solid var(--divider); background: var(--bg); padding: 12px 0 24px; }
.menu .wrap { display: grid; gap: 4px; }
.menu .wrap > a:not(.btn) { padding: 12px 0; font: 600 1.35rem/1.2 var(--f-display); text-decoration: none; border-bottom: 1px solid var(--divider); }
.menu .lang { justify-self: start; margin: 20px 0 16px; }
.menu .lang a { font-size: 0.9rem; padding: 8px 14px; }

@media (min-width: 640px) { .nav-end > .btn { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links, .nav-end > .lang { display: inline-flex; }
  .nav-links + .nav-end { margin-left: 8px; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-top), var(--bg)); padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.1rem); line-height: 1; letter-spacing: -0.03em; max-width: 12ch; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: var(--text-soft); font-size: 0.93rem; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .i { color: var(--accent); font-size: 1.05rem; }
/* --w and the em scale match the phone, so the banner below sits on its screen at any width */
.hero-visual { --w: min(320px, 82vw); position: relative; justify-self: center; font-size: calc(var(--w) * 16 / 390); }
.hero-visual .phone { --w: min(320px, 82vw); }
.push {
  /* An iOS-style banner on the phone's screen, just under the status bar */
  position: absolute; z-index: 2; top: 4.4em; left: 1.2em; right: 1.2em;
  display: flex; gap: 0.7em; align-items: flex-start; padding: 0.75em 0.85em;
  background: var(--push-bg); border-radius: 1.5em;
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.18); font-size: 0.9em; line-height: 1.35; color: var(--text);
}
.push > div { flex: 1; }
.push img { width: 2.4em; height: 2.4em; border-radius: 0.6em; }
.push p:first-child { display: flex; justify-content: space-between; gap: 8px; }
.push p:first-child span { color: var(--text-muted); font-size: 0.9em; }
.push p + p { margin-top: 0.1em; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-visual { justify-self: end; margin-right: 24px; }
}

/* ---------- Problem → solution ---------- */
.scatter { display: grid; gap: 4px; max-width: none; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12; }
.scatter span { color: var(--text-muted); }
.scatter strong { font-weight: 700; color: var(--text); margin-top: 16px; }
.before-after { display: grid; gap: 28px; align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.ba-arrow { font-size: 28px; color: var(--text-muted); justify-self: center; transform: rotate(90deg); }
.mess { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.frag { padding: 14px 16px; font-size: 0.92rem; line-height: 1.4; }
.frag-from { font-weight: 700; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.chat { background: var(--surface); border-radius: 18px 18px 18px 6px; border: 1px solid var(--border); }
.chat span { display: block; text-align: right; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.paper { background: var(--amber-bg); color: var(--amber-text); font: 1.3rem/1.25 var(--f-hand); transform: rotate(-2deg); box-shadow: 0 6px 14px rgba(33, 28, 21, 0.1); min-height: 112px; }
.notif { display: flex; gap: 12px; background: var(--surface); border-radius: 18px; border: 1px solid var(--border); }
.cal-ico { flex: none; width: 40px; height: 42px; border-radius: 9px; background: var(--field-bg); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; line-height: 1; }
.cal-ico em { font-style: normal; font-size: 0.55rem; font-weight: 800; color: var(--danger); text-transform: uppercase; padding-top: 4px; }
.cal-ico b { font: 600 1.15rem/1 var(--f-body); padding-bottom: 4px; }
.sticky { background: var(--rose-bg); color: var(--rose-text); font: 1.3rem/1.25 var(--f-hand); transform: rotate(1.5deg); box-shadow: 0 6px 14px rgba(33, 28, 21, 0.1); }
.sorted { font-size: 15px; max-width: 440px; width: 100%; justify-self: center; }
@media (min-width: 960px) {
  .before-after { grid-template-columns: 1fr auto 1fr; gap: 40px; }
  .ba-arrow { transform: none; }
  .mess { max-width: 480px; }
  .sorted { font-size: 16px; }
}

/* ---------- Today ---------- */
.today-grid { display: grid; gap: 56px; align-items: start; }
.today-copy .lead { margin-top: 20px; }
.points { display: grid; gap: 26px; margin-top: 40px; counter-reset: p; }
.points li { position: relative; padding-left: 52px; counter-increment: p; }
.points li::before {
  content: counter(p); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 700 0.95rem/1 var(--f-display); background: var(--pt-bg); color: var(--pt-fg);
}
.points h3 { font-size: 1.15rem; margin-bottom: 4px; }
.points p { color: var(--text-soft); max-width: 46ch; }
.p-timeline { --pt-bg: var(--timeline-bg); --pt-fg: var(--timeline-label); }
.p-danger { --pt-bg: var(--attention-bg); --pt-fg: var(--danger); }
.p-tasks { --pt-bg: var(--tasks-bg); --pt-fg: var(--tasks-label); }
.p-attention { --pt-bg: var(--attention-bg); --pt-fg: var(--attention-label); }
.today-visual { font-size: clamp(15px, 1.5vw, 18px); width: 100%; max-width: 520px; justify-self: center; padding: 1.25em; border-radius: var(--r-xl); background: var(--screen-bg); border: 1px solid var(--border); }
@media (min-width: 960px) {
  .today-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .today-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- Features (Today's bento grid, scaled up) ---------- */
.features { display: grid; gap: 14px; }
.feat { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; background: var(--tile-bg); color: var(--tile-text); }
.feat .tile-label { font-size: 0.8rem; }
.feat h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.8rem); letter-spacing: -0.015em; }
.feat > p:not(.tile-label) { color: var(--tile-muted); max-width: 42ch; }
.feat-ui { margin-top: auto; padding-top: 22px; font-size: 15px; }
.feat.t-family { background: var(--surface); border: 1px solid var(--border); --tile-text: var(--text); --tile-muted: var(--text-soft); --tile-label: var(--accent); }
.reminders { display: grid; gap: 0.75em; }
.rem { display: flex; gap: 0.6em; align-items: flex-start; }
.rem .i { font-size: 1.25em; color: var(--attention-label); margin-top: 0.1em; }
.family { display: grid; gap: 0.6em; }
.fam { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6em; }
.fam b { width: 2em; height: 2em; border-radius: 50%; background: var(--m); color: #fff; display: grid; place-items: center; font-size: 0.95em; }
.fam em { font-style: normal; font-size: 0.8em; font-weight: 700; color: var(--text-muted); background: var(--surface-muted); padding: 0.2em 0.6em; border-radius: 999px; }
.inbox-pair { display: grid; gap: 1em; align-items: start; }
.ai-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; max-width: 760px; color: var(--text-soft); font-size: 0.97rem; }
.ai-note .i { color: var(--inbox-label); font-size: 1.15rem; margin-top: 3px; }
.ai-note b { color: var(--text); }
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(12, 1fr); }
  .feat { grid-column: span 6; }
  .inbox-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .feat { grid-column: span 5; }
  .feat.wide { grid-column: span 7; }
}
@media (min-width: 720px) { .feat.full { grid-column: 1 / -1; } }
/* Allowance screen: approval card + savings goal */
.allowance { display: grid; gap: 1em; align-items: start; }
@media (min-width: 560px) { .allowance { grid-template-columns: 1fr 1fr; } }
.al-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }
.al-plus { font-weight: 600; color: var(--success); white-space: nowrap; }
.al-bar { height: 0.5em; border-radius: 0.25em; background: var(--surface-muted); overflow: hidden; }
.al-bar i { display: block; height: 100%; background: var(--accent); border-radius: 0.25em; }

/* ---------- Real life week ---------- */
.week {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 300px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 8px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 24px;
  font-size: 16px; scrollbar-width: thin;
}
.week .day { scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.75em; }
.celebration { font-size: 0.875em; font-weight: 600; color: var(--success); }
@media (min-width: 1200px) {
  .week { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter) 0; }
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 40px; }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--border); }
.step-n { font: 700 2.6rem/1 var(--f-display); color: var(--accent); margin-bottom: 8px; }
.steps p { color: var(--text-soft); max-width: 36ch; }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Showcase ---------- */
.show-stage { display: none; }
.show-steps { display: grid; gap: 72px; }
.show-step h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.12; max-width: 16ch; }
.show-step > p:not(.kicker) { color: var(--text-soft); margin-top: 14px; max-width: 42ch; font-size: 1.06rem; }
.step-phone { margin-top: 32px; display: flex; justify-content: center; }
.step-phone .phone { --w: min(330px, 84vw); }
@media (min-width: 960px) {
  .show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .show-stage { display: block; position: sticky; top: calc(50vh - 361px + var(--nav-h) / 2); height: 722px; justify-self: center; width: 352px; }
  .stage-screen { position: absolute; inset: 0; opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity .45s ease, transform .45s ease; }
  .stage-screen.is-active { opacity: 1; transform: none; }
  .stage-screen .phone { --w: 352px; }
  .show-steps { gap: 0; }
  .show-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity .35s; }
  .show-step.is-active { opacity: 1; }
  .step-phone { display: none; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 48px; align-items: center; }
.pricing .lead { margin-top: 20px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 40px); box-shadow: 0 18px 44px rgba(33, 28, 21, 0.08); display: flex; flex-direction: column; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top h3 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 700; }
.pill { font-size: 0.8rem; font-weight: 700; color: var(--accent); background: var(--accent-muted); padding: 5px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 24px; }
.amount { font: 700 clamp(2.8rem, 6vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.03em; }
.per { color: var(--text-soft); font-size: 1.05rem; }
.price-note { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }
.ticks { display: grid; gap: 12px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--divider); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--accent); margin-top: 4px; }
.fine { margin-top: 16px; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
@media (min-width: 960px) { .pricing { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
.faq .lead { margin-top: 20px; }
.faq .lead a { color: var(--accent); font-weight: 600; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 1.15rem/1.35 var(--f-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--text-soft); max-width: 62ch; }
@media (min-width: 960px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }

/* ---------- Final CTA: the app's espresso-ink dark palette ---------- */
.final { background: #1A160F; color: #F5EFE0; padding: clamp(88px, 12vw, 150px) 0; }
.final-inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.final img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.13); }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; margin-top: 10px; }
.final .lead { color: #C4B9A5; margin: 0 auto; }
.final .fine { color: #AB9F8B; margin-top: 4px; }
.btn-store { background: #7FBE9B; color: #14110B; min-height: 60px; padding: 0 28px; gap: 12px; margin-top: 12px; box-shadow: none; }
.btn-store:hover { background: #9FD4B5; box-shadow: none; }
.btn-store .i { font-size: 1.6rem; }
.btn-store > span { display: grid; text-align: left; line-height: 1.15; font-size: 1.1rem; }
.btn-store small { font-size: 0.72rem; font-weight: 600; opacity: 0.8; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--divider); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; max-width: 30ch; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav a { text-decoration: none; color: var(--text-soft); font-size: 0.95rem; }
.footer nav a:hover { color: var(--accent); }
.footer-h { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.footer .lang { margin-top: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--divider); font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* =====================================================================
   App UI — rebuilt from the React Native components. Everything is in em,
   1em = 16 app points, so one font-size scales a whole screen.
   ===================================================================== */
.app, .phone { --tile-bg: transparent; }
.phone {
  --w: 340px;
  width: var(--w);
  font-size: calc(var(--w) * 16 / 390);
  /* explicit height: as a flex item, aspect-ratio alone lets the screen content stretch the phone */
  height: calc(var(--w) * 800 / 390);
  flex: none;
  padding: 0.6em;
  border-radius: 3.6em;
  background: #121009;
  box-shadow: var(--phone-shadow);
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 3em; background: var(--screen-bg); color: var(--text);
  font-family: var(--f-body); line-height: 1.4375; text-align: left;
}
.statusbar { position: relative; display: flex; justify-content: space-between; align-items: center; height: 3.4em; padding: 0 2em; font-weight: 600; font-size: 0.95em; }
.statusbar .sb { font-size: 0.6em; letter-spacing: 0.05em; }
.island { position: absolute; left: 50%; top: 0.7em; width: 7.2em; height: 2.1em; margin-left: -3.6em; border-radius: 999px; background: #000; }
.app-body { display: flex; flex-direction: column; gap: 1.5em; padding: 0.75em 1em 7em; }

.a-head { display: flex; justify-content: space-between; align-items: flex-start; }
.a-head > div:first-child { display: grid; gap: 0.125em; }
.a-head-icons { display: flex; gap: 0.5em; font-size: 1.5em; padding-top: 0.15em; }
.a-title { font: 700 2em/1.1875 var(--f-display); letter-spacing: -0.0125em; }
.a-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }
.a-sub { font: 600 1.1875em/1.3 var(--f-display); }
.a-muted { color: var(--text-muted); }
.a-strong { font-weight: 600; }
.a-caption { font-size: 0.875em; font-weight: 600; color: var(--text-muted); line-height: 1.35; }
.a-caption.center { text-align: center; }
.a-stack { display: flex; flex-direction: column; gap: 0.5em; }

.a-avatars { display: flex; gap: 1em; }
.a-av { display: flex; flex-direction: column; align-items: center; gap: 0.375em; }
.a-av b { width: 2.875em; height: 2.875em; border-radius: 50%; background: var(--m); color: #fff; display: grid; place-items: center; font-weight: 600; }
.a-av > span { font-size: 0.875em; font-weight: 600; color: var(--text-muted); }
/* MemberAvatarRow as a filter: while someone is picked, everyone else fades */
.a-avatars.picking .a-av:not(.on) { opacity: 0.35; }
.m5 { --m: #2E9AA6; }
.m1 { --m: var(--m1); } .m2 { --m: var(--m2); } .m3 { --m: var(--m3); } .m4 { --m: var(--m4); }

.a-chips { display: flex; flex-wrap: wrap; gap: 0.5em; }
.a-chip { padding: 0.5em 1em; border-radius: 999px; background: var(--surface-muted); font-size: 0.875em; font-weight: 600; line-height: 1.35; }
.a-chip.on { background: var(--accent); color: var(--on-accent); }

.a-card { background: var(--card-bg); border: 1px solid var(--card-border); border-top-color: var(--card-hi); border-radius: 1.25em; padding: 1em; box-shadow: var(--card-shadow); color: var(--text); }
.a-period { display: flex; justify-content: space-between; align-items: center; font: 600 1.1875em/1.3 var(--f-display); }
.a-period .i { font-size: 1.15em; }

/* BentoTile */
.bento { display: flex; flex-direction: column; gap: 0.5em; }
.tile { border-radius: 1.25em; padding: 1em; display: flex; flex-direction: column; gap: 0.25em; background: var(--tile-bg); color: var(--tile-text); }
.tile-row { display: flex; gap: 0.5em; }
.tile-row .tile { flex: 1; min-height: 6.75em; justify-content: space-between; }
.tile-label { font-size: 0.875em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--tile-label); }
.tile-value { font: 700 1.4375em/1.26 var(--f-display); }
.tile-meta, .tile-line { font-size: 0.875em; font-weight: 600; color: var(--tile-muted); line-height: 1.35; }
.tile-line { color: var(--tile-text); }
.t-timeline { --tile-bg: var(--timeline-bg); --tile-label: var(--timeline-label); --tile-text: var(--timeline-text); --tile-muted: var(--timeline-muted); }
.t-tasks { --tile-bg: var(--tasks-bg); --tile-label: var(--tasks-label); --tile-text: var(--tasks-text); --tile-muted: var(--tasks-muted); }
.t-shopping { --tile-bg: var(--shopping-bg); --tile-label: var(--shopping-label); --tile-text: var(--shopping-text); --tile-muted: var(--shopping-muted); }
.t-inbox { --tile-bg: var(--inbox-bg); --tile-label: var(--inbox-label); --tile-text: var(--inbox-text); --tile-muted: var(--inbox-muted); }
.t-attention { --tile-bg: var(--attention-bg); --tile-label: var(--attention-label); --tile-text: var(--attention-text); --tile-muted: var(--attention-muted); }
.feat .tile-label { color: var(--tile-label); }

/* TimelineRow: dot on a connecting line, Fraunces time, title, who */
.tl { --dot: var(--timeline-label); --tl-text: var(--timeline-text); --tl-muted: var(--timeline-muted); }
.a-card .tl { --tl-text: var(--text); --tl-muted: var(--text-muted); }
.tl li { display: grid; grid-template-columns: 0.625em 1fr; gap: 0.5em; padding-bottom: 0.875em; }
.tl li:last-child { padding-bottom: 0; }
.tl li.is-task { --dot: var(--tasks-label); }
.tl li.is-reminder { --dot: var(--attention-label); }
.tl li.is-now { --dot: var(--success); --tl-text: var(--success); }
.tl-dot { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 0.25em; }
.tl-dot::before { content: ''; width: 0.5625em; height: 0.5625em; border-radius: 50%; background: var(--dot); flex: none; }
.is-now .tl-dot::before { width: 0.75em; height: 0.75em; }
.tl-dot::after { content: ''; flex: 1; width: 1.5px; margin-top: 2px; background: color-mix(in srgb, var(--dot) 30%, transparent); }
.tl li:last-child .tl-dot::after { display: none; }
.tl-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.25em; color: var(--tl-text); line-height: 1.35; }
.tl-now { font-size: 0.875em; font-weight: 800; text-transform: uppercase; }
.tl-time { font: 700 0.875em/1.35 var(--f-display); }
.tl-title { font-size: 0.84375em; font-weight: 600; }
.is-now .tl-title { font-weight: 800; }
.tl-check { display: inline-block; width: 0.8125em; height: 0.8125em; border-radius: 0.25em; border: 1.5px solid var(--tile-label, var(--tasks-label)); margin-left: 0.1em; align-self: center; }
.tl .rep { font-size: 0.875em; color: var(--text-muted); align-self: center; }
.tl-sub { font-size: 0.875em; color: var(--tl-muted); padding-top: 1px; line-height: 1.35; }
.tl-alert { font-size: 0.875em; font-weight: 600; color: var(--danger); padding-top: 1px; line-height: 1.35; }
.chip-av { display: flex; align-items: center; gap: 0.25em; padding-top: 0.125em; }
/* 18pt circle with 0.48-size initials: font-size is set first, so the box is 18 / 8.64 = 2.08em */
.chip-av b { font-size: 0.54em; width: 2.08em; height: 2.08em; border-radius: 50%; background: var(--m); color: #fff; display: grid; place-items: center; font-weight: 700; }
.chip-av span { font-size: 0.875em; font-weight: 600; color: var(--text-muted); }

/* MonthGrid */
.month { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 0.1em; text-align: center; }
.month span { display: grid; place-items: center; height: 2.55em; font-weight: 600; position: relative; }
.month .wd { height: 1.8em; font-size: 0.875em; color: var(--text-muted); }
.month .wd.we, .month .we { color: var(--warning); }
.month .out { color: var(--text-muted); }
.month .sel { color: var(--on-accent); }
.month .sel::before { content: ''; position: absolute; width: 2.1em; height: 2.1em; top: 0.12em; left: 50%; margin-left: -1.05em; border-radius: 50%; background: var(--timeline-label); z-index: -1; }
.month span { z-index: 0; }
.month .ev::after { content: ''; position: absolute; bottom: 0.05em; width: 4px; height: 4px; border-radius: 50%; background: var(--timeline-label); }
.month .cel::after { box-shadow: 6px 0 0 var(--success); margin-left: -6px; }

/* WorkloadSummary */
.workload { display: flex; flex-direction: column; gap: 1em; }
.wl-bar { display: flex; gap: 2px; height: 0.625em; border-radius: 0.3125em; overflow: hidden; background: var(--surface-muted); }
.wl-bar i { background: var(--m); }
.wl-people { display: flex; justify-content: space-around; }
.wl-people > span { display: flex; flex-direction: column; align-items: center; gap: 0.25em; width: 4em; }
.wl-people b { position: relative; width: 2.75em; height: 2.75em; border-radius: 50%; background: var(--m); color: #fff; display: grid; place-items: center; font-size: 0.94em; }
.wl-people em { position: absolute; top: -0.25em; right: -0.4em; min-width: 1.35em; height: 1.35em; padding: 0 0.3em; border-radius: 1em; background: var(--text); color: var(--surface); font-style: normal; font-size: 0.8em; font-weight: 800; display: grid; place-items: center; }
.wl-people > span > span { font-size: 0.875em; font-weight: 600; }

/* TaskNoteCard: arrow-flag sticky note in the assignee's colour */
.notes { display: flex; flex-direction: column; gap: 0.75em; }
.note {
  --note-bg: var(--m); --note-text: #fff;
  background: var(--note-bg); color: var(--note-text);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
  padding: 0.25em 1em 0.25em calc(15% + 0.5em);
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.07));
}
.note.n-amber { --note-bg: var(--amber-bg); --note-text: var(--amber-text); }
.note-title { font: 1.1875em/1.375em var(--f-hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; font-size: 0.875em; }
.note-meta > span { display: flex; align-items: center; gap: 0.4em; opacity: 0.9; }
.note-meta .i { font-size: 1em; }
.note-check { width: 1.85em; height: 1.85em; border-radius: 50%; border: 2px solid var(--note-text); display: grid; place-items: center; font-size: 1em; }
.badge { font-style: normal; font-size: 0.6875em; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, transparent); }
.b-shopping { color: var(--shopping-label); font-size: 0.75em; }
.feat .notes { font-size: 17px; }

/* NotebookCard + ShoppingItemRow */
.notebook .rings { position: relative; z-index: 1; display: flex; justify-content: space-evenly; padding: 0 1.5em; margin-bottom: -0.5625em; }
.notebook .rings i { width: 0.875em; height: 0.875em; border-radius: 50%; background: var(--ring); border: 1.5px solid var(--ring-hi); }
.notebook .a-card { padding-top: 1em; border-top-color: var(--card-border); }
.nb-title { text-align: center; text-transform: uppercase; letter-spacing: 0.025em; font-size: 0.875em; font-weight: 600; color: var(--text-muted); }
.rule { height: 1.5px; background: var(--rule); margin: 0.25em 0; border-radius: 2px; }
.shop-row { display: flex; align-items: center; gap: 0.5em; min-height: 2.75em; }
.shop-row > .i { font-size: 1.5em; margin: 0 0.4em; color: var(--text-muted); }
.shop-row p:first-child { font-weight: 600; }
.shop-row.done > div { opacity: 0.5; text-decoration: line-through; }
.shop-row.done > .i { color: var(--success); }
.feat .a-card { background: var(--surface); }

/* Inbox */
.a-field { background: var(--field-bg); border: 0.5px solid var(--border); border-radius: 1em; padding: 0.5em 1em; min-height: 5em; line-height: 1.45; }
.a-sendrow { display: flex; gap: 0.5em; }
.a-mic { width: 3em; height: 3em; border-radius: 1em; background: var(--surface-muted); display: grid; place-items: center; font-size: 1em; }
.a-mic .i { font-size: 1.375em; }
.a-btn { flex: 1; min-height: 2.75em; border-radius: 1em; background: var(--accent); color: var(--on-accent); font-weight: 600; display: grid; place-items: center; box-shadow: 0 0.3em 0.75em rgba(36, 89, 66, 0.3); }
.a-btn.ghost { background: transparent; color: var(--text); box-shadow: none; }
.suggestion { display: flex; flex-direction: column; gap: 0.6em; }
.sg-head { display: flex; align-items: center; gap: 0.5em; }
.sg-head .i { font-size: 1.25em; color: var(--inbox-label); }
.glance { display: flex; gap: 0.5em; }

/* Floating tab bar + add button */
.tabbar {
  position: absolute; left: 50%; bottom: 0.8em; transform: translateX(-50%);
  display: flex; align-items: center; height: 3.875em; padding: 0 0.5em;
  border-radius: 999px; background: var(--tabbar-bg);
  border: 1px solid var(--card-border); border-top-color: var(--card-hi);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0.25em 0.35em; color: var(--text-muted); }
.tab .i { font-size: 1.375em; }
.tab .on { display: none; }
.tab > span { font-size: 0.65625em; line-height: 1.15; font-weight: 700; white-space: nowrap; }
[data-tab="today"] .tab-today, [data-tab="calendar"] .tab-calendar, [data-tab="tasks"] .tab-tasks,
[data-tab="shopping"] .tab-shopping, [data-tab="inbox"] .tab-inbox { color: var(--accent); }
[data-tab="today"] .tab-today .on, [data-tab="calendar"] .tab-calendar .on, [data-tab="tasks"] .tab-tasks .on,
[data-tab="shopping"] .tab-shopping .on, [data-tab="inbox"] .tab-inbox .on { display: block; }
[data-tab="today"] .tab-today .off, [data-tab="calendar"] .tab-calendar .off, [data-tab="tasks"] .tab-tasks .off,
[data-tab="shopping"] .tab-shopping .off, [data-tab="inbox"] .tab-inbox .off { display: none; }
.fab { position: absolute; right: 1em; bottom: 5.6em; width: 3.5em; height: 3.5em; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0.3em 0.75em rgba(36, 89, 66, 0.3); }
.fab .i { font-size: 1.75em; }
.f-timeline { background: var(--timeline-label); }
.f-tasks { background: var(--tasks-label); }
.f-shopping { background: var(--shopping-label); }
@media (prefers-color-scheme: dark) { .fab { color: #14110B; } }

/* ShoppingItemRow details: quantity + store line, italic note, edit | delete */
.a-titlerow.start { justify-content: flex-start; }
.shop-row > div { flex: 1; min-width: 0; padding: 0.25em 0; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 0 0.5em; font-size: 0.875em; font-weight: 600; color: var(--text-muted); }
.shop-meta > span { display: inline-flex; align-items: center; gap: 0.2em; }
.shop-meta .i { font-size: 0.86em; }
.shop-note { font-size: 0.875em; font-style: italic; color: var(--text-muted); }
.shop-act { display: flex; align-items: center; color: var(--text-muted); }
.shop-act .i { width: 2em; font-size: 1.125em; }
.shop-act .i:last-child { font-size: 1.25em; }
.shop-act i { width: 1px; height: 1.25em; background: var(--divider); }

/* Legal pages (adatvedelem/) */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal section + section { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--divider); }
.legal h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h3 { margin-top: 32px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal-date { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }
.legal-lang > .lang { display: inline-flex; }
.footer-base a { color: inherit; }

/* Calendar mock, packed tighter so the picked person's day still shows under the month */
[data-tab="calendar"] .app-body { gap: 1.05em; padding-top: 0.5em; }
[data-tab="calendar"] .a-avatars { gap: 0.8em; }
[data-tab="calendar"] .a-av { gap: 0.2em; }
[data-tab="calendar"] .a-av b { width: 2.6em; height: 2.6em; font-size: 0.95em; }
[data-tab="calendar"] .a-chip { padding: 0.35em 0.9em; }
[data-tab="calendar"] .a-card { padding: 0.6em 0.8em; }
[data-tab="calendar"] .month span { height: 2.4em; }
[data-tab="calendar"] .month .wd { height: 1.5em; }
[data-tab="calendar"] .month .sel::before { width: 1.9em; height: 1.9em; top: 0.12em; margin-left: -0.95em; }
[data-tab="calendar"] .a-sub { margin-bottom: 0.4em; }
.a-wallet { font-size: 1.75em; color: var(--tasks-label); }

/* Family memory + templates tiles */
.facts-list { display: grid; gap: 0.7em; }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; }
.fact .chip-av { padding: 0; flex: none; }
.tpl-pair { display: grid; gap: 0.75em; }
.tpl { display: grid; gap: 0.35em; }
.tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }
.b-tpl { color: var(--shopping-label); }
.b-check { color: var(--inbox-label); }
.a-btn.secondary { background: var(--surface-muted); color: var(--text); box-shadow: none; flex: none; padding: 0 1em; font-size: 0.9em; min-height: 2.5em; justify-self: start; }
