/* Family Tasks — familytasks.today
   2026-07-19 redesign, take two: LIGHT PREMIUM EDITORIAL. White canvas,
   huge centered ink headlines, the phone screenshots carry the color,
   green appears sparingly — soft glow halos, small accents — and ONE
   green gradient moment: the final CTA panel (which keeps the star
   dust). Inspired by the classic minimal app-landing school
   (Things/Flighty/Apple product pages). Mobile-first.
   Brand: accent #52A339, hero gradient #70C047→#35801F, member palette
   coral #FF7357 / teal #21B59E / amber #FAA81C / rose #F570A1.
   Logical properties throughout: the same sheet serves LTR and RTL.
   Zero JavaScript — everything here is plain CSS. */

:root {
  --accent: #52A339;
  --accent-deep: #35801F;
  --accent-light: #70C047;
  --coral: #FF7357;
  --teal: #21B59E;
  --amber: #FAA81C;
  --rose: #F570A1;
  --ink: #1E1D3A;
  --ink-soft: #5A5878;
  --paper: #FFFFFF;
  --paper-tint: #F6F7F4;
  --hairline: rgba(30, 29, 58, 0.10);
  --radius: 24px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  line-height: 1.15;
  text-wrap: balance;
  margin-block: 0 0.5em;
  letter-spacing: -0.022em;
  font-weight: 750;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin-block: 0 1em; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* Cursive scripts: tracking breaks joining. Never letter-space ar/he. */
:lang(ar), :lang(he) { letter-spacing: 0; }
:lang(ar) h1, :lang(he) h1, :lang(ar) h2, :lang(he) h2,
:lang(ar) h3, :lang(he) h3 { letter-spacing: 0; }

/* ---------- Header: quiet and airy ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  max-width: calc(var(--max) + 160px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; }

.header-nav { display: flex; align-items: center; gap: 20px; }
.header-link { text-decoration: none; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.header-link:hover { color: var(--ink); }

.cta-pill {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.cta-pill:hover { background: var(--accent-deep); }

/* Language pill: jumps to the footer language list (#languages) — every
   language is a plain crawlable link, no dropdown to wrangle. */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); }
.lang-pill svg { width: 17px; height: 17px; }

/* ---------- Hero: centered editorial, glow behind the phone ---------- */
.hero {
  background:
    radial-gradient(640px 460px at 50% 92%, rgba(112, 192, 71, 0.22), transparent 72%),
    radial-gradient(420px 320px at 18% 80%, rgba(33, 181, 158, 0.10), transparent 70%),
    radial-gradient(420px 320px at 82% 82%, rgba(250, 168, 28, 0.10), transparent 70%),
    var(--paper);
  /* The hero owns the space down to the trust hairline, so its glow
     runs all the way to the line (owner 2026-07-19 — a phone overhang
     left the glow cut off mid-air). */
  padding-block-end: clamp(28px, 4vw, 44px);
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(28px, 4vw, 44px);
}
.hero-copy h1 { color: var(--ink); }
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 36em;
  margin-inline: auto;
}
.hero-actions { margin-block-start: 26px; }
.hero-trust { font-size: 0.92rem; color: var(--ink-soft); margin-block-start: 14px; }
.store-badge { display: inline-block; height: 52px; width: auto; }
.final-cta .store-badge { height: 54px; }

.hero-motif { display: none; }

/* Phone frame around real screenshots (screenshots stay LTR). */
.phone {
  margin: 0;
  justify-self: center;
  background: #14132B;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 34px 80px rgba(30, 29, 58, 0.30);
  line-height: 0;
  max-width: 330px;
}
.phone img { border-radius: 36px; width: 100%; }
.phone-small { max-width: 280px; box-shadow: 0 22px 54px rgba(30, 29, 58, 0.22); }
/* Graphite frame for the dark-mode shot (same pick as the store panels). */
.phone-dark { background: #48484A; }

/* ---------- Trust line: quiet, hairline-framed ---------- */
.trust-strip { border-block: 1px solid var(--hairline); }
.trust-strip ul {
  max-width: var(--max);
  margin-inline: auto;
  padding: 16px clamp(16px, 4vw, 40px);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  justify-content: center;
  margin-block: 0;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.trust-strip svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ---------- Benefits: airy alternating rows ---------- */
.benefit { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 40px) 0; }
.benefit:last-of-type { padding-block-end: clamp(56px, 8vw, 110px); }
.benefit-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}
.benefit-alt .benefit-inner { direction: rtl; }
.benefit-alt .benefit-inner > * { direction: ltr; }
[dir="rtl"] .benefit-alt .benefit-inner { direction: ltr; }
[dir="rtl"] .benefit-alt .benefit-inner > * { direction: rtl; }
.benefit-copy p:last-child { color: var(--ink-soft); font-size: 1.08rem; max-width: 34em; }

/* Soft per-row halo behind each phone, in the row's accent tint. */
.benefit figure {
  background: radial-gradient(320px 300px at 50% 55%, rgba(112, 192, 71, 0.16), transparent 72%);
}
.benefit:nth-of-type(odd) figure {
  background: radial-gradient(320px 300px at 50% 55%, rgba(33, 181, 158, 0.14), transparent 72%);
}

.kicker {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-block-end: 10px;
}
:lang(ar) .kicker, :lang(he) .kicker { letter-spacing: 0; text-transform: none; }
.kicker-coral { color: #D84B2E; }
.kicker-teal { color: #12836F; }
.kicker-amber { color: #A96A05; }

/* ---------- Feature grid: borderless, Apple-quiet ---------- */
.features {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 40px);
  text-align: center;
}
.feature-grid {
  list-style: none;
  margin: clamp(30px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3.5vw, 40px) clamp(20px, 3vw, 36px);
  text-align: start;
}
/* Icon sits beside the title — the Apple feature-list idiom; a lone
   icon floating above its heading read as unfinished on mobile
   (owner 2026-07-19). */
.feature-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}
.feature-grid svg {
  grid-row: 1;
  grid-column: 1;
  /* content-box: the global border-box reset was swallowing the
     padding out of the 30px — the glyph rendered 10px tiny. */
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  color: var(--accent-deep);
  background: rgba(82, 163, 57, 0.18);
  border-radius: 14px;
  padding: 10px;
  stroke-width: 2;
}
/* Same quiet voice as the footer's language list (owner 2026-07-19):
   normal weight, ink-soft — the icon chip carries each item. */
.feature-grid h3 {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.feature-grid p { grid-row: 2; grid-column: 2; margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Privacy: soft tinted statement panel ---------- */
.privacy {
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  margin-block-end: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: #F2F8EE;
  text-align: center;
  padding: clamp(44px, 6vw, 76px) clamp(20px, 4vw, 48px);
}
.privacy img { opacity: 0.85; margin-block-end: 12px; width: 96px; height: 96px; }
.privacy h2 { color: var(--ink); }
.privacy p {
  max-width: 42em;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* ---------- Final CTA: the one green moment, with star dust ---------- */
.final-cta {
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  border-radius: var(--radius);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12Z' fill='white' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat 12% 20% / 22px 22px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12Z' fill='white' fill-opacity='.45'/%3E%3C/svg%3E") no-repeat 86% 72% / 28px 28px,
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.30) 2px, transparent 3px),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.22) 1.6px, transparent 2.6px),
    radial-gradient(circle at 55% 68%, rgba(255,255,255,.18) 1.4px, transparent 2.4px),
    radial-gradient(circle at 30% 84%, rgba(255,255,255,.24) 1.8px, transparent 2.8px),
    radial-gradient(circle at 92% 55%, rgba(255,255,255,.20) 1.5px, transparent 2.5px),
    linear-gradient(160deg, var(--accent-light), var(--accent-deep));
  background-size: 22px 22px, 28px 28px, 540px 420px, 540px 420px, 540px 420px, 540px 420px, 540px 420px, cover;
  color: #fff;
  text-align: center;
  padding: clamp(52px, 7vw, 96px) clamp(20px, 4vw, 40px);
  box-shadow: 0 24px 60px rgba(53, 128, 31, 0.26);
}
.final-cta img[aria-hidden] {
  border-radius: 22px;
  margin-block-end: 18px;
  filter: drop-shadow(0 12px 28px rgba(10, 40, 5, 0.35));
}
.final-cta h2 { color: #fff; }
.final-cta p { opacity: 0.92; margin-block-end: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
  margin-block-start: clamp(28px, 4vw, 44px);
  border-block-start: 1px solid var(--hairline);
  padding: 40px clamp(16px, 4vw, 40px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 36px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .brand img { width: 30px; height: 30px; }
.footer-copy { font-size: 0.85rem; }
.footer-langs { scroll-margin-block-start: 24px; }
.footer-langs h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
:lang(ar) .footer-langs h3, :lang(he) .footer-langs h3 { letter-spacing: 0; text-transform: none; }
.footer-langs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px 16px;
}
.footer-main a { text-decoration: none; color: var(--accent); }
.footer-main a:hover { color: var(--accent-deep); }
.footer-langs a { text-decoration: none; color: var(--ink-soft); }
.footer-langs a:hover { color: var(--accent-deep); }
.footer-langs a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Legal pages (privacy policy + FAQ) ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal-date { color: var(--ink-soft); margin-top: 0; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.6; }
.legal strong { color: var(--ink); }
.legal ul { padding-inline-start: 22px; }

/* ---------- FAQ (native details/summary — zero JS) ---------- */
.faq .faq-topic { margin-block-start: 34px; }
.faq details { border-block-end: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding-block: 13px;
  padding-inline-end: 8px;
}
.faq summary:hover { color: var(--accent); }
.faq details[open] > summary { color: var(--accent-deep); }
.faq .faq-answer { padding-block: 2px 16px; }
.faq .faq-answer p { margin: 0 0 10px; }
.faq .faq-answer p:last-child { margin-block-end: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .benefit-inner { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .benefit-alt .benefit-inner { direction: inherit; }
  .privacy, .final-cta { margin-inline: 12px; }
  .hero .phone { max-width: 280px; }
}

@media (max-width: 480px) {
  .cta-pill { padding: 8px 14px; font-size: 0.9rem; }
  .header-link { font-size: 0.9rem; }
  .brand span { display: none; }
  .hero .phone { max-width: 250px; }
  .phone-small { max-width: 250px; }
}

/* Motion is a garnish: only for prefers-reduced-motion: no-preference. */
@media (prefers-reduced-motion: no-preference) {
  .cta-pill { transition: background 0.15s; }
}
