/* TotJot landing page. Colours, radii and spacing come from the app (TotJot/TotJot/Theme.swift):
   warm and calm, never pure black or white, flat cards (no drop shadows), continuous-looking corners. */

:root {
  color-scheme: light dark;
  --bg: #F7F3EC;
  --surface: #FFFEFB;
  --sand: #EAE1D2;
  --line: #E0D6C6;
  --ink: #1F1C18;
  --ink2: #575046;
  --accent: #5E6B52;
  --accent-soft: #E4E8DB;
  --on-accent: #FFFCF7;
  --clay: #A65B3F;          /* buttons: a warm clay, 5:1 with the cream label */
  --on-clay: #FFFBF5;
  --feed: #F0DEC6;
  --pump: #DCE5D1;
  --diaper: #E9DDCB;
  --vitamin: #F1E2BC;
  --sleep: #DFE0E6;
  --glow: #F4E3BD;
  --gold: #D9B36A;
  --gold-light: #F3DDA6;
  --gold-deep: #B88A3E;
  --silk: #2C3529;
  --silk-2: #3A4535;
  --cream: #F6EEDC;
  --bezel: #1C1915;

  /* Always-night band (and dark mode) */
  --n-bg: #161310;
  --n-surface: #1F1B17;
  --n-sand: #2B2621;
  --n-line: #342E28;
  --n-ink: #DDD3C4;
  --n-ink2: #9C9284;
  --n-accent: #9AA68A;

  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --gutter: 20px;
  --r-hero: 32px;
  --r-tile: 26px;
  --r-card: 24px;
  --r-btn: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161310;
    --surface: #1F1B17;
    --sand: #2B2621;
    --line: #342E28;
    --ink: #DDD3C4;
    --ink2: #9C9284;
    --accent: #9AA68A;
    --accent-soft: #2A2E26;
    --on-accent: #161310;
    --clay: #D08A6A;
    --on-clay: #1A1310;
    --feed: #262019;
    --pump: #20241E;
    --diaper: #24211D;
    --vitamin: #26221A;
    --sleep: #202024;
    --glow: #2E2618;
    --bezel: #0B0A08;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* Lenis (smooth wheel and trackpad scrolling, site.js) brings its own easing; these are its stylesheet's rules */
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis :is([data-lenis-prevent], [data-lenis-prevent-wheel], [data-lenis-prevent-touch], [data-lenis-prevent-vertical], [data-lenis-prevent-horizontal]) { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; } /* decorative halos may extend past the edges; never the page */
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2);
}
.display {
  font-family: var(--serif);
  font-size: clamp(42px, 7.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.subtitle {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink2); }
.muted { color: var(--ink2); }
.small { font-size: 14px; }

/* Doodles: the app's hand-drawn line art, recoloured through a mask */
.doodle {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.d-scribble { --src: url(/assets/doodles/scribble.png); width: 64px; aspect-ratio: 1.6; }
.d-drop { --src: url(/assets/doodles/drop.png); width: 40px; aspect-ratio: .95; }
.d-sun { --src: url(/assets/doodles/sun.png); width: 52px; aspect-ratio: 1; }
.d-sunrise { --src: url(/assets/doodles/sunrise.png); width: 76px; aspect-ratio: 2.6; }
.d-bell { --src: url(/assets/doodles/bell-off.png); width: 46px; aspect-ratio: 1; }
.d-wave { --src: url(/assets/doodles/wave.png); width: 80px; aspect-ratio: 2.6; }
.d-rings { --src: url(/assets/doodles/rings.png); width: 64px; aspect-ratio: 1.6; }
.d-sparkle { --src: url(/assets/doodles/sparkle.png); width: 64px; aspect-ratio: 1.3; }
.d-leaf { --src: url(/assets/doodles/leaf.png); width: 70px; aspect-ratio: 1.8; }
.d-cards { --src: url(/assets/doodles/cards.png); width: 48px; aspect-ratio: .95; }
.d-ring { --src: url(/assets/doodles/ring.png); width: 46px; aspect-ratio: .9; }
.d-baby { --src: url(/assets/doodles/sleeping-baby.webp); width: min(560px, 90%); aspect-ratio: 2.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: var(--r-btn);
  background: var(--clay); color: var(--on-clay);
  font: 600 17px/1 var(--sans); text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn .arrow { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 18px; }
.btn-ghost:hover { background: var(--sand); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 999px; white-space: nowrap; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--ink2); }

/* Download buttons: the sage face sits inside a thin ring of liquid chrome (site.js paints it with WebGL). This
   still warm-metal gradient shows until then, and stays if WebGL isn't available. */
.btn.chrome {
  --ring: 3px;
  --metal: linear-gradient(135deg, #FBF4E6 0%, #A08F72 28%, #FFF9EE 48%, #5C4E3C 72%, #E8DCC6 100%);
  position: relative; isolation: isolate; overflow: hidden;
  align-items: stretch; padding: var(--ring);
  background: var(--metal);
}
.btn.chrome::after { /* a lit top lip and a shaded underside, so the ring reads as a tube */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 1px rgb(0 0 0 / .35);
}
.btn.chrome .metal { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s ease; }
.btn.chrome .metal.on { opacity: 1; }
.btn.chrome .metal canvas { display: block; width: 100%; height: 100%; }
.btn.chrome .face {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: calc(56px - 2 * var(--ring)); padding: 0 calc(26px - var(--ring));
  border-radius: calc(var(--r-btn) - var(--ring));
  background: var(--clay); color: var(--on-clay);
}
.btn-small.chrome .face { min-height: calc(40px - 2 * var(--ring)); padding: 0 calc(16px - var(--ring)); border-radius: 999px; }
@media (prefers-color-scheme: dark) {
  .btn.chrome { --metal: linear-gradient(135deg, #D9CFBE 0%, #6E6250 28%, #E6DCCB 48%, #3A3127 72%, #BFB29C 100%); }
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 40px; aspect-ratio: 938 / 605; background: currentColor; -webkit-mask: url(/assets/logo.svg) center / contain no-repeat; mask: url(/assets/logo.svg) center / contain no-repeat; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.link { display: none; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink2); }
.site-nav a.link:hover { color: var(--ink); background: var(--sand); }
.site-nav .lang { display: inline-flex; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink2); }
@media (min-width: 860px) { .site-nav a.link { display: inline-flex; } }

/* ---------- Phone frame ---------- */
.phone {
  --w: min(300px, 74vw);
  position: relative;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .17);
  background: var(--bezel);
  box-shadow: inset 0 0 0 1.5px rgba(255, 245, 230, .14);
}
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .138); aspect-ratio: 1206 / 2622; background: var(--sand); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen::after { /* Dynamic Island, matched to the iPhone 17 Pro screenshots */
  content: ""; position: absolute; top: 1.35%; left: 34.2%; width: 31.6%; height: 4.25%;
  border-radius: 999px; background: #050404;
}
.phone figcaption { position: absolute; inset-inline: 0; top: calc(100% + 14px); text-align: center; font-size: 14px; color: var(--ink2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(12px, 3vw, 36px); }
.hero .copy { max-width: 820px; margin-inline: auto; text-align: center; }
.hero .logo-draw { position: relative; width: 112px; height: 72px; margin: 0 auto 20px; color: var(--ink); }
.hero .logo-draw .mark { display: block; width: 100%; height: 100%; }
.hero .logo-draw canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .logo-draw .mark { background: currentColor; -webkit-mask: url(/assets/logo.svg) center / contain no-repeat; mask: url(/assets/logo.svg) center / contain no-repeat; }
.hero .logo-draw.drawing .mark { visibility: hidden; }
.hero h1 { margin-top: 14px; }
.hero .lede { max-width: 600px; margin: 22px auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 30px; }
.hero .facts { margin-top: 14px; font-size: 14px; color: var(--ink2); }
.proof-line { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 18px; font-size: 15px; color: var(--ink2); }
.proof-line strong { color: var(--ink); font-weight: 600; }

.hero-stage { position: relative; display: grid; place-items: center; margin-top: 48px; padding-bottom: 8px; }
.hero-stage::before { /* warm halo */
  content: ""; position: absolute; inset: -6% -30% auto; height: 88%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow) 0%, transparent 70%);
}
.hero-stage .phone { --w: min(310px, 74vw); }
.hero-stage .side { display: none; }
@media (min-width: 900px) {
  .hero-stage { grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center; }
  .hero-stage .phone { --w: 330px; }
  .hero-stage .side { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
  .hero-stage .side.start { justify-self: end; }
  .hero-stage .side.end { justify-self: start; }
}
.side-card { padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); }
.side-card .eyebrow { font-size: 11px; }
.side-card p { margin-top: 6px; font-size: 15px; color: var(--ink2); }
.qr-card { display: flex; align-items: center; gap: 16px; }
.qr-card .qr { width: 92px; flex: none; color: var(--ink); background: var(--surface); }
.qr-card .qr svg { width: 100%; height: auto; }

/* "What do you jot most?" */
.chooser { margin-top: 64px; text-align: center; }
.chips { display: inline-flex; justify-content: center; gap: 2px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--sand); max-width: 100%; }
.chip {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2);
  font: 500 14px/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
@media (min-width: 480px) { .chips { gap: 6px; padding: 6px; } .chip { padding: 0 18px; font-size: 15px; } }
.chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.chooser .hint { margin-top: 12px; font-size: 14px; color: var(--ink2); min-height: 22px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 24px; }
.section { padding-block: clamp(72px, 10vw, 132px); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head .title { margin-top: 12px; }
.section-head .lede { margin-top: 18px; }

.empathy { padding-block: clamp(72px, 9vw, 120px) 0; }
.empathy .q { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink2); max-width: 900px; margin-inline: auto; text-align: center; }
.empathy .q strong { color: var(--ink); font-weight: 400; }
.empathy .doodle { display: block; margin: 0 auto 26px; color: var(--ink2); }

/* Feature rows: phone in a tinted card + two notes (zig-zag on desktop) */
.features { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; gap: 32px; align-items: center; }
.feature .art {
  position: relative; overflow: hidden; display: grid; place-items: center; padding-top: 44px;
  border-radius: var(--r-hero); background: var(--tint, var(--sand));
  max-height: 560px; align-items: start;
}
.feature .art .phone { --w: min(300px, 68vw); }
.feature .text .doodle { color: var(--ink2); }
.feature .text .subtitle { margin-top: 16px; }
.feature .text .lede { margin-top: 14px; }
.notes { display: grid; gap: 16px; margin-top: 28px; padding: 0; list-style: none; }
.notes li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--ink2); }
.notes li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.notes li strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .feature.flip .art { order: 2; }
  .feature .art { max-height: 600px; }
  .feature .art .phone { --w: 310px; }
}

/* Night band: always the warm night palette */
.night {
  --bg: var(--n-bg); --surface: var(--n-surface); --sand: var(--n-sand); --line: var(--n-line);
  --ink: var(--n-ink); --ink2: var(--n-ink2); --accent: var(--n-accent); --on-accent: #161310;
  background: var(--n-bg); color: var(--ink); position: relative; overflow: hidden;
}
.night .stars-bg { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #EADFCC 50%, transparent 51%), radial-gradient(1px 1px at 78% 12%, #EADFCC 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 64% 30%, #EADFCC 50%, transparent 51%), radial-gradient(1px 1px at 30% 40%, #EADFCC 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 52%, #EADFCC 50%, transparent 51%), radial-gradient(1.2px 1.2px at 6% 64%, #EADFCC 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 8%, #EADFCC 50%, transparent 51%), radial-gradient(1px 1px at 22% 82%, #EADFCC 50%, transparent 51%); }
.night .grid { position: relative; display: grid; gap: 48px; align-items: center; }
.night .phone { --w: min(300px, 70vw); justify-self: center; }
.night .baby { display: block; color: #E8D9C1; opacity: .5; margin: 0 0 24px; }
.night blockquote { margin: 34px 0 0; padding-inline-start: 18px; border-inline-start: 2px solid var(--n-line); font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink); }
.night blockquote cite { display: block; margin-top: 8px; font: 14px/1.4 var(--sans); font-style: normal; color: var(--ink2); }
@media (min-width: 900px) { .night .grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } .night .phone { --w: 320px; } }

/* Timeline + Lock Screen pair */
.pair { display: grid; gap: 20px; margin-top: 48px; }
.pair .card { position: relative; overflow: hidden; border-radius: var(--r-hero); background: var(--surface); padding: 32px 28px 0; display: grid; gap: 28px; justify-items: center; text-align: center; max-height: 640px; align-content: start; }
.pair .card .phone { --w: min(270px, 64vw); }
.pair .card p { max-width: 380px; color: var(--ink2); }
.pair .card .subtitle { font-size: clamp(24px, 2.6vw, 30px); }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Social proof ---------- */
.loved { text-align: center; }
.loved .big-count {
  margin-top: 10px; font-family: var(--serif); font-size: clamp(92px, 18vw, 232px); line-height: .88; letter-spacing: -.045em;
  font-variant-numeric: lining-nums tabular-nums;
}
.loved .moms { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; color: var(--accent); }
.loved .nights { margin-top: 22px; font-size: 15px; color: var(--ink2); text-wrap: balance; }
:lang(ar) .loved .moms { font-style: normal; font-weight: 600; }
:lang(ar) .loved .big-count { letter-spacing: -.02em; }

/* Rotating imagined lines: the note saying so stays visible beside them */
.made-for { position: relative; max-width: 760px; margin-inline: auto; text-align: center; }
.made-for .lines { list-style: none; margin: 22px 0 0; padding: 0; display: grid; min-height: 3.6em; align-items: center; }
.made-for .lines li { grid-area: 1 / 1; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.25; text-wrap: balance; }
:lang(ar) .made-for .lines li { line-height: 1.45; }
html.js .made-for .lines li { opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
html.js .made-for .lines li.on { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .made-for .lines li:not(:first-child) { display: none; }
.rotate-pause { display: none; width: 44px; height: 44px; margin: 6px auto 0; border: 0; background: none; color: var(--ink2); cursor: pointer; place-items: center; }
html.js .rotate-pause { display: grid; }
.rotate-pause span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.rotate-pause[aria-pressed="true"] span { width: 0; height: 0; border-block: 6px solid transparent; border-inline: 0; border-inline-start: 10px solid currentColor; }

/* ---------- Pro ---------- */
.pro { background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .pro { background: linear-gradient(180deg, #1C1A14 0%, var(--bg) 100%); } }
.pro::before { content: ""; position: absolute; inset: -20% -10% auto; height: 60%; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 30%, rgba(244, 227, 189, .55), transparent 70%), radial-gradient(40% 50% at 75% 20%, rgba(220, 229, 209, .5), transparent 70%); }
@media (prefers-color-scheme: dark) { .pro::before { opacity: .12; } }
.pro .wrap { position: relative; }
.pro-badge { display: inline-flex; align-items: center; gap: 10px; }
.pro-badge b { padding: 3px 9px; border-radius: 8px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3B2A0E; font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.pro .title { font-family: var(--serif); }
.pro-phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; margin-top: 52px; } /* the second phone sits lower; the first must not stretch to match */
.pro-phones .phone { --w: min(270px, 44vw); }
.pro-phones .phone:last-child { margin-top: 48px; }
@media (max-width: 599px) { .pro-phones .phone { --w: 46vw; } }

.compare { display: grid; gap: 14px; margin-top: 64px; }
.compare .col { border-radius: var(--r-card); padding: 24px 24px 26px; }
.compare .without { background: var(--sand); }
.compare .with { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 30%, transparent); }
.compare h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.compare ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; }
.compare li svg { width: 18px; height: 18px; margin-top: 3px; }
.compare .without li { color: var(--ink2); }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }

.pro-features { display: grid; gap: 14px; margin-top: 64px; }
.pf { border-radius: var(--r-card); background: var(--surface); padding: 24px; display: grid; gap: 8px; align-content: start; }
.pf h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.pf p { font-size: 15px; color: var(--ink2); }
.pf .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--ink); margin-bottom: 6px; }
.pf .ico svg { width: 20px; height: 20px; }
.pf.hero-pf { background: radial-gradient(120% 120% at 0% 0%, var(--silk-2) 0%, var(--silk) 60%); color: var(--cream); padding: 30px; gap: 12px; }
.pf.hero-pf .eyebrow { color: var(--gold-light); }
.pf.hero-pf h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; }
.pf.hero-pf p { color: rgba(246, 238, 220, .78); font-size: 16px; max-width: 420px; }
.pf.hero-pf .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 14px; color: rgba(246, 238, 220, .85); }
.monogram { display: flex; margin-bottom: 6px; }
.monogram span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-light); box-shadow: inset 0 0 0 1.5px var(--gold); background: rgba(0, 0, 0, .12); }
.monogram span + span { margin-inline-start: -10px; }
.pf .shot { margin-top: 14px; border-radius: 16px; overflow: hidden; background: var(--sand); aspect-ratio: 16 / 10; }
.pf .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 7%; }
.pf .shot.doc { background: #FFFEFB; aspect-ratio: 16 / 10; }
.pf .shot.doc img { object-position: 50% 0; }
@media (min-width: 760px) { .pro-features { grid-template-columns: repeat(2, 1fr); } .pf.hero-pf { grid-column: span 2; } }
@media (min-width: 1000px) {
  .pro-features { grid-template-columns: repeat(4, 1fr); }
  .pf.hero-pf { grid-column: span 2; grid-row: span 2; align-content: end; }
  .pf.wide { grid-column: span 2; }
}

.plans { display: grid; gap: 14px; margin-top: 64px; }
.plan { position: relative; border-radius: var(--r-card); background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.plan.best { box-shadow: inset 0 0 0 2px var(--accent); }
.plan .tag { position: absolute; top: 18px; inset-inline-end: 18px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--ink2); letter-spacing: .02em; }
.plan .price { font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: -.02em; }
.plan .price small { font: 400 17px/1 var(--sans); color: var(--ink2); letter-spacing: 0; }
.plan .note { font-size: 15px; color: var(--ink2); }
.plan .btn { margin-top: 10px; width: 100%; }
.plan.alt .btn { background: var(--ink); color: var(--bg); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plans-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink2); }

.trial { display: grid; gap: 0; margin-top: 40px; padding: 0; list-style: none; max-width: 640px; margin-inline: auto; }
.trial li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 0 0 22px; }
.trial li::before { content: ""; position: absolute; top: 26px; bottom: 0; inset-inline-start: 37px; width: 1.5px; background: var(--line); }
.trial li:last-child::before { display: none; }
.trial b { justify-self: center; display: grid; place-items: center; min-width: 76px; height: 28px; border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 600; }
.trial li:first-child b { background: var(--accent); color: var(--on-accent); }
.trial span { padding-top: 3px; color: var(--ink2); }
.reassure { margin-top: 8px; text-align: center; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; }

/* ---------- Privacy values ---------- */
.values { display: grid; gap: 14px; margin-top: 48px; }
.value { border-radius: var(--r-card); background: var(--surface); padding: 26px; display: grid; gap: 10px; align-content: start; }
.value svg { width: 28px; height: 28px; color: var(--accent); }
.value h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.value p { color: var(--ink2); font-size: 16px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.label-note { margin-top: 20px; text-align: center; font-size: 14px; color: var(--ink2); }

/* ---------- Story ---------- */
.story { text-align: center; }
.story .doodle { color: var(--ink2); margin: 0 auto 26px; }
.story .body { max-width: 700px; margin: 24px auto 0; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; color: var(--ink2); }
.story .sign { margin-top: 22px; font-size: 15px; color: var(--ink2); }

/* ---------- Answers (FAQ) and help ---------- */
.faq-grid { display: grid; gap: 40px; margin-top: 44px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1.4fr .8fr; align-items: start; gap: 56px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 2px 22px; color: var(--ink2); max-width: 640px; }
.help { position: sticky; top: 24px; border-radius: var(--r-hero); background: var(--accent-soft); padding: 30px; display: grid; gap: 14px; }
.help .subtitle { font-size: 30px; }
.help p { color: var(--ink2); }
.help .btn { justify-self: start; }
.help .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }

/* ---------- Final CTA + footer ---------- */
.final { background: var(--ink); color: var(--bg); text-align: center; overflow: hidden; position: relative; }
@media (prefers-color-scheme: dark) { .final { background: #0E0C0A; color: var(--ink); } }
.final .title { color: inherit; }
.final .lede { color: color-mix(in srgb, currentColor 72%, transparent); margin-top: 16px; }
.final .btn { margin-top: 30px; }
.final .qr-row { display: none; }
@media (min-width: 900px) {
  .final .qr-row { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-align: start; font-size: 14px; color: color-mix(in srgb, currentColor 70%, transparent); }
  .final .qr-row .qr { width: 84px; padding: 8px; border-radius: 14px; background: var(--bg); color: var(--ink); }
  @media (prefers-color-scheme: dark) { .final .qr-row .qr { background: var(--ink); color: #0E0C0A; } }
}
.wordmark { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 28px); margin-top: clamp(64px, 9vw, 110px); opacity: .95; }
.wordmark .mark { width: clamp(80px, 13vw, 170px); aspect-ratio: 938 / 605; background: currentColor; -webkit-mask: url(/assets/logo.svg) center / contain no-repeat; mask: url(/assets/logo.svg) center / contain no-repeat; }
.wordmark span { font-size: clamp(64px, 14vw, 190px); font-weight: 600; letter-spacing: -.045em; line-height: .9; }

.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 72%, transparent); }
@media (prefers-color-scheme: dark) { .site-footer { background: #0E0C0A; color: var(--ink2); } }
.site-footer .bar { display: grid; gap: 18px; padding-block: 34px 44px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fine { font-size: 13px; opacity: .8; max-width: 760px; }

/* ---------- Sticky CTA (phones) ---------- */
.sticky {
  position: fixed; z-index: 30; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .sticky { padding: 10px 16px 10px 10px; }
.sticky.show { transform: none; }
.sticky .mark { width: 34px; aspect-ratio: 938 / 605; background: currentColor; -webkit-mask: url(/assets/logo.svg) center / contain no-repeat; mask: url(/assets/logo.svg) center / contain no-repeat; }
.sticky .t { flex: 1; line-height: 1.2; }
.sticky .t b { display: block; font-size: 15px; }
.sticky .t span { font-size: 13px; color: var(--ink2); }
.sticky .btn { min-height: 44px; padding: var(--ring); border-radius: 16px; font-size: 15px; }
.sticky .btn .face { min-height: calc(44px - 2 * var(--ring)); padding: 0 calc(18px - var(--ring)); border-radius: calc(16px - var(--ring)); }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---------- Motion ----------
   Only when the script runs (html.js) and the visitor hasn't asked for reduced motion. Words rise out of a mask,
   text arrives out of a soft blur, cards unfold from an inset, doodles draw themselves, quotes light up word by
   word as you scroll. If the script never runs, everything appears after 2.5 s anyway. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, .05, .36, 1); }
@keyframes appear { to { opacity: 1; transform: none; filter: none; clip-path: none; } }
html.js:not(.js-ready) :is(.reveal, .split, .rise) { opacity: 0; animation: appear 0s 2.5s forwards; }

html.js .reveal {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 90ms);
}
/* The soft blur only on lines of text: blurring whole cards and phones repaints them on every frame */
html.js p.reveal { filter: blur(6px); transition-property: opacity, transform, filter; transition-duration: .9s, 1.1s, 1s; }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* Headlines: each word rises out of its own mask */
html.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .03em .18em; margin: -.06em -.03em -.18em; }
html.js .split .wi {
  display: inline-block; transform: translate3d(0, 112%, 0) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 65ms);
}
html.js[dir="rtl"] .split .wi { transform: translate3d(0, 112%, 0) rotate(-5deg); transform-origin: 100% 100%; }
html.js .split:lang(ar) .w { padding: .24em .05em .36em; margin: -.24em -.05em -.36em; }
html.js .split.in .wi { transform: none; }
@media (min-width: 900px) { html.js [data-parallax] { will-change: translate; } } /* drifting phones move on the GPU */

/* Phones and cards */
html.js .rise { opacity: 0; transform: translate3d(0, 80px, 0) scale(.96); transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .rise.in { opacity: 1; transform: none; }
html.js .feature .art { clip-path: inset(16% 12% 0 12% round var(--r-hero)); transition: clip-path 1.3s var(--ease-out); }
html.js .feature.in .art { clip-path: inset(0 0 0 0 round var(--r-hero)); }
html.js .feature .art .phone { transform: translate3d(0, 24%, 0); transition: transform 1.5s var(--ease-out) .08s; }
html.js .feature.in .art .phone { transform: none; }
html.js .hero-stage::before { opacity: 0; transform: scale(.85); transition: opacity 2.2s ease .5s, transform 2.6s var(--ease-out) .5s; }
html.js .hero-stage.in::before { opacity: 1; transform: none; }

/* Doodles draw themselves, in reading direction */
html.js .doodle.draw { clip-path: inset(-10% 100% -10% -10%); transition: clip-path 1.7s var(--ease-io); transition-delay: var(--d, 0s); }
html.js[dir="rtl"] .doodle.draw { clip-path: inset(-10% -10% -10% 100%); }
html.js .doodle.draw.in { clip-path: inset(-10% -10% -10% -10%); }
html.js .night .doodle.draw { transition-duration: 2.6s; }

/* The free-week timeline's line grows step by step */
html.js .trial li::before { transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-io); transition-delay: calc(.4s + var(--i, 0) * 260ms); }
html.js .trial li.in::before { transform: none; }

/* Quotes light up word by word as they scroll through */
html.js .scrub .sw { opacity: .16; transition: opacity .45s ease; }
html.js .scrub .sw.lit { opacity: 1; }

/* The big wordmark rises letter by letter */
html.js .wordmark .letters { display: inline-flex; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
html.js .wordmark .ch { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.3s var(--ease-out); transition-delay: calc(.15s + var(--i, 0) * 75ms); }
html.js .wordmark .mark { opacity: 0; transform: rotate(-18deg) scale(.85); transition: opacity 1s ease, transform 1.6s var(--ease-out); }
html.js .wordmark.in .ch, html.js .wordmark.in .mark { opacity: 1; transform: none; }

/* The header settles in */
html.js .site-header .bar { animation: header-in 1s var(--ease-out) both; }
@keyframes header-in { from { opacity: 0; transform: translate3d(0, -12px, 0); } }

.count { display: inline-block; font-variant-numeric: tabular-nums; }

/* Hero choreography (on load) */
.hero .copy > .eyebrow { --d: .15s; }
.hero h1 { --d: .3s; }
.hero .copy > .lede { --d: .8s; }
.hero .copy > .actions { --d: 1s; }
.hero .copy > .facts { --d: 1.12s; }
.hero .copy > .proof-line { --d: 1.22s; }
.hero-stage .phone { --d: .65s; }
.hero-stage .side .side-card { --d: 1.15s; }

@media (prefers-reduced-motion: reduce) {
  html.js :is(.reveal, .rise, .split .wi, .feature .art, .feature .art .phone, .doodle.draw, .trial li::before, .wordmark .ch, .wordmark .mark, .hero-stage::before) {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; animation: none !important;
  }
  html.js .scrub .sw { opacity: 1; }
  html.js .site-header .bar { animation: none; }
}

/* ---------- Arabic ---------- */
/* Alexandria by Mohamed Gaber (SIL Open Font License, fonts/OFL.txt), self-hosted. One variable file per script
   covers every weight. Only the Arabic page uses it: the English page's «العربية» link stays in the system font,
   so the English page never downloads it. */
@font-face {
  font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/alexandria-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/alexandria-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
html:lang(ar) { --sans: "Alexandria", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif; }
:lang(ar) { --serif: var(--sans); }
html:lang(ar) body { font-weight: 300; line-height: 1.75; }
html:lang(ar) :is(strong, b) { font-weight: 600; }
html:lang(ar) :is(.brand, .wordmark, .sticky .t b) { font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; } /* the TotJot name keeps its English letterforms */
:lang(ar) .display, :lang(ar) .title, :lang(ar) .subtitle { font-weight: 600; letter-spacing: 0; line-height: 1.3; }
:lang(ar) .display { font-size: clamp(38px, 6.6vw, 72px); }
:lang(ar) .eyebrow, :lang(ar) .compare h3 { letter-spacing: 0; text-transform: none; font-size: 13px; }
:lang(ar) .empathy .q, :lang(ar) .story .body, :lang(ar) .reassure, :lang(ar) .night blockquote { line-height: 1.6; letter-spacing: 0; }
:lang(ar) .pf.hero-pf h3, :lang(ar) .plan .price, :lang(ar) .help .subtitle { font-weight: 600; }
:lang(ar) .monogram span { font-style: normal; font-weight: 500; }
@media (max-width: 400px) { /* Alexandria runs wider: keep the header on one line on small phones */
  html:lang(ar) .site-header .bar { gap: 10px; }
  html:lang(ar) .site-header .btn-small { font-size: 14px; }
  html:lang(ar) .site-header .btn-small .face { padding-inline: 10px; }
  html:lang(ar) .site-nav .lang { padding-inline: 9px; }
  html:lang(ar) .chip { padding-inline: 10px; }
}
:lang(ar) .wordmark span { letter-spacing: -.03em; }
[dir="rtl"] .flip-x { transform: scaleX(-1); }
