/* Heartpact marketing site, direction C ("The Fold"): the couple's two colours side by side, joined by the heart.
   Motion is opt-in: boot.js adds .motion only when JavaScript runs and the visitor hasn't asked for reduced motion,
   so without either every element is simply there. */

@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --navy: #1F2557;
  --peri: #7480D4;
  --peri-ink: #3F49A8;
  --ink: #161A3D;
  --ink-2: #474C72;
  --ink-soft: #C9CDF2;
  --tint: #ECEEFC;
  --tint-2: #EEF0FD;
  --wash: #F2F3FA;
  --night: #161A3D;
  --night-2: #262C55;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 500 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--peri-ink); }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
/* Hidden above the page rather than far to the left, which right-to-left pages would turn into scrollable width. */
.skip { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #FFFFFF; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type. Ligatures off: Bricolage joins "lf" at large sizes. */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "calt" 0; }
.eyebrow { margin: 0; font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.lede { font-size: 19px; }
h2.display { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1; }

/* Brand mark and the Play button */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
/* The app's own launcher icon, with a faint ring so it holds its shape on the navy grounds. */
.brand .app-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 14px -8px rgba(13, 16, 38, 0.6); }
.topbar .brand .app-icon { width: 32px; height: 32px; box-shadow: 0 4px 10px -6px rgba(13, 16, 38, 0.5); }
/* Google's own badge, unaltered; its transparent margin is the clear space Google asks for. */
.play { display: inline-block; border-radius: 12px; transition: transform .25s var(--ease-out); }
.play:hover { transform: translateY(-2px); }
.play img { width: auto; height: 84px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; background: #FFFFFF; color: var(--navy); text-decoration: none; font-weight: 700; }

/* The bar that appears once the hero has scrolled away */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(31, 37, 87, 0.08); transform: translateY(-100%); transition: transform .45s var(--ease-out); }
.topbar.shown { transform: none; }
.topbar .brand { font-size: 19px; }
.topbar .pill { background: var(--ink); color: #FFFFFF; min-height: 40px; }

/* ---------- Hero: the fold ---------- */
.hero { position: relative; display: flex; color: #FFFFFF; overflow: hidden; }
.half { flex: 1 1 50%; display: flex; flex-direction: column; min-height: min(100svh, 860px); padding: 28px clamp(24px, 4vw, 48px) 80px; }
.half.you { background: var(--navy); }
.half.them { background: var(--peri); color: var(--ink); text-align: right; }
.half .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.phone-only { display: none; }
.half nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 24px; font-weight: 700; font-size: 15px; }
.half nav a:not(.pill) { color: #FFFFFF; text-decoration: none; }
.half .copy { margin-top: auto; padding-top: 80px; }
.half h1, .half .h1 { margin: 10px 0 0; font-size: clamp(64px, 8.4vw, 124px); line-height: 0.92; }
.half .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.half .line > span { display: inline-block; }
.half p.lede { margin: 26px 0 0; max-width: 400px; }
.half.you p.lede { color: #DADDF7; }
.half.them p.lede { margin-left: auto; }
.half.you .eyebrow { color: var(--ink-soft); }

.half.them { position: relative; }
/* The heart sits on the seam: the left edge of their half (the top edge once stacked). */
.fold-heart { position: absolute; z-index: 3; left: 0; top: 50%; width: clamp(150px, 15vw, 210px); transform: translate(-50%, -50%); filter: drop-shadow(0 14px 20px rgba(13, 16, 38, 0.35)); pointer-events: none; }
.fold-heart svg { width: 100%; height: auto; overflow: visible; }
.fold-heart path { stroke: #FFFFFF; stroke-width: 9; stroke-linejoin: round; paint-order: stroke; transform-box: fill-box; }
.fold-heart .whole { fill: url(#foldAcross); transform-origin: 50% 55%; }
.fold-heart .half { display: none; }
.fold-heart .half.l { fill: #7480D4; transform-origin: 100% 60%; }
.fold-heart .half.r { fill: #1F2557; transform-origin: 0% 60%; }
.fold-heart svg { transform-origin: 50% 58%; }

/* Little live cards around the heart, like notifications from the two phones */
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 14px; line-height: 1.25; box-shadow: 0 18px 40px -20px rgba(13, 16, 38, 0.6); }
.float b { display: block; font-size: 14px; }
.float small { color: var(--ink-2); font-size: 12.5px; }
.float i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--tint); }
.float i svg { width: 18px; height: 18px; }
/* Kept in the upper band, clear of the headlines at the bottom of each half. */
.float.f1 { left: calc(50% - 330px); top: 22%; }
.float.f2 { right: calc(50% - 370px); top: 14%; }
.float.f3 { left: calc(50% + 120px); top: 34%; }
/* Between phone and wide desktop the cards would crowd the headlines. */
@media (max-width: 1100px) { .float { display: none; } }

/* ---------- Statement ---------- */
.statement { padding: 96px 24px 88px; text-align: center; background: var(--wash); }
.statement p { margin: 0 auto; max-width: 820px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; letter-spacing: -0.03em; }
.statement .play { margin-top: 24px; }
.statement .note { margin: 8px auto 0; font-size: 15px; color: var(--ink-2); }

/* ---------- One dare, two phones ---------- */
.story { padding: 110px 0; }
.story h2 { text-align: center; margin-bottom: 52px; }
.sides { display: flex; flex-wrap: wrap; gap: 24px; }
.side { flex: 1 1 420px; min-width: 0; border-radius: 30px; padding: 38px 38px 0; overflow: hidden; }
.side.mine { background: var(--tint); }
.side.theirs { background: var(--tint-2); }
.side .eyebrow { color: var(--navy); }
.side.theirs .eyebrow { color: var(--peri-ink); }
.side ol { margin: 18px 0 0; padding-inline-start: 22px; display: grid; gap: 14px; }
.side li span { color: var(--ink-2); }
/* Waits for site.js to pick its region's image; without JavaScript the <noscript> copy shows instead. */
.side img.phone:not([src]) { display: none; }
.motion .side img.phone:not([src]), .js .side img.phone:not([src]) { display: block; }
.side .phone { width: min(250px, 70%); margin: 40px auto -60px; border-radius: 32px; box-shadow: 0 34px 60px -30px var(--navy); }

/* ---------- Fair play ---------- */
.fair { background: var(--night); color: #FFFFFF; padding: 120px 0 160px; overflow: hidden; }
.fair .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.fair .text { flex: 1 1 440px; min-width: 0; }
.fair .text p { color: var(--ink-soft); max-width: 520px; }
.fair ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.fair li { display: flex; gap: 14px; align-items: flex-start; }
.fair li svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.fair li b { display: block; }
.fair li span { color: var(--ink-soft); font-size: 15.5px; }
.stage { flex: 1 1 420px; position: relative; min-height: 460px; }
.counter { position: relative; margin: 44px auto 0; width: min(360px, 100%); padding: 26px; border-radius: 28px; background: #FFFFFF; color: var(--ink); box-shadow: 0 40px 80px -30px #000000; }
.counter .head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.counter .big { margin: 14px 0 0; font-family: var(--display); font-weight: 800; font-size: 84px; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.counter .of { margin: 6px 0 0; font-weight: 700; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 86px; margin-top: 22px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--tint); transform-origin: bottom; }
.bars i:nth-child(1) { height: 34%; } .bars i:nth-child(2) { height: 48%; } .bars i:nth-child(3) { height: 41%; }
.bars i:nth-child(4) { height: 58%; } .bars i:nth-child(5) { height: 52%; } .bars i:nth-child(6) { height: 67%; }
.bars i:nth-child(7) { height: 61%; } .bars i:nth-child(8) { height: 76%; } .bars i:nth-child(9) { height: 84%; }
.bars i:nth-child(10) { height: 100%; }
.bars i.done { background: var(--navy); }
.counter .foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 2px dashed #E4E6F3; font-size: 14px; color: var(--ink-2); }
.counter .foot svg { width: 30px; height: 28px; flex: none; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.3; box-shadow: 0 24px 50px -24px #000000; }
.chip b { display: block; }
/* Chips sit on the counter's corners, never over its text. */
.chip.c1 { right: 0; top: 0; background: var(--night-2); color: #FFFFFF; }
.chip.c1 small { color: var(--ink-soft); }
.chip.c2 { left: 0; bottom: 4%; background: var(--peri); color: var(--ink); }
.chip svg { width: 20px; height: 20px; flex: none; }

/* ---------- A private corner: a light panel that rises over the dark ---------- */
.corner-shell { background: var(--night); }
.corner { background: #FFFFFF; border-radius: 40px 40px 0 0; margin-top: -60px; padding: 110px 0; position: relative; }
.corner .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.corner .shot { flex: 1 1 320px; display: flex; justify-content: center; }
.corner .shot img { width: min(290px, 80%); border-radius: 34px; box-shadow: 0 40px 70px -30px var(--navy); }
.corner .text { flex: 1 1 500px; min-width: 0; }
.features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; }
.features li { padding: 16px 0; border-top: 1px solid #E4E6F3; }
.features b { display: block; }
.features span { color: var(--ink-2); font-size: 15.5px; }
.features em { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--peri); margin-inline-end: 8px; font-size: 14px; }

/* ---------- Plans: the fold again ---------- */
.plans { display: flex; flex-wrap: wrap; overflow: hidden; }
.plan { flex: 1 1 50%; min-width: min(100%, 400px); padding: 72px clamp(24px, 5vw, 64px); }
.plan.free { background: var(--tint); }
.plan.plus { background: var(--peri); color: var(--ink); }
.plan h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.plan .price { margin: 8px 0 4px; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 0.4em; letter-spacing: 0; margin-inline-start: 4px; }
.plan .per { margin: 0 0 22px; font-weight: 700; }
.plan ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; max-width: 420px; }
.plan.free ul { color: var(--ink-2); }
.plans-note { text-align: center; padding: 22px 24px 0; margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; }
.faq .wrap { max-width: 860px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-top: 2px dashed #E4E6F3; padding: 18px 0; }
.faq details:last-of-type { border-bottom: 2px dashed #E4E6F3; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--peri); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 720px; }

/* ---------- Closing ---------- */
.cta { padding: 120px 24px; text-align: center; overflow: hidden; }
.cta h2 { margin: 0; font-size: clamp(46px, 7.6vw, 104px); line-height: 0.92; }
.cta h2 span { display: block; }
.cta h2 .them { color: var(--peri); }
.cta .play { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--ink-soft); padding: 40px 0; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: #FFFFFF; }
.footer p { margin: 0; }

/* ---------- Text pages: privacy, terms, deletion ---------- */
.page-head { background: var(--navy); color: #FFFFFF; }
.page-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.page-head .brand { color: #FFFFFF; }
.page-head .pill { min-height: 40px; }
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 10px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #E4E6F3; }
.doc th { background: var(--wash); color: var(--ink); }
.doc .table-scroll { overflow-x: auto; }
.doc .updated { color: var(--ink-2); font-size: 15px; }

/* Deletion form */
.form { display: grid; gap: 16px; margin-top: 24px; padding: 28px; border-radius: 24px; background: var(--wash); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input { font: inherit; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid #C8CBE3; background: #FFFFFF; color: var(--ink); }
.form input:focus { border-color: var(--peri); outline: none; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { min-height: 0; width: 20px; height: 20px; margin-top: 3px; }
.form button { font: inherit; font-weight: 700; min-height: 52px; border: 0; border-radius: 26px; background: #B3261E; color: #FFFFFF; cursor: pointer; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.status { margin: 0; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; font-weight: 600; }
.status.error { color: #B3261E; }
.status.done { color: var(--navy); }
.status[hidden] { display: none; }

/* ---------- Phones and narrow screens ---------- */
@media (max-width: 860px) {
  .hero { flex-direction: column; }
  .half { min-height: auto; padding-bottom: 72px; }
  .half.you { padding-bottom: 110px; }
  .half.them { padding-top: 110px; }
  .half .copy { padding-top: 56px; }
  .half.them .copy { padding-top: 0; }
  .half.them nav { display: none; }
  .phone-only { display: inline-flex; }
  /* Stacked, the fold runs across: the heart turns its split to match. */
  .fold-heart { left: 50%; top: 0; }
  .fold-heart .whole { fill: url(#foldDown); }
  .float { display: none; }
  .stage { min-height: 400px; }
  .chip.c1 { top: -6px; }
  .chip.c2 { bottom: -58px; }
  .fair { padding-bottom: 200px; }
}

/* ---------- Motion (only with .motion) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion [data-stagger].in > * { opacity: 1; transform: none; }
.motion [data-stagger].in > :nth-child(2) { transition-delay: .08s; }
.motion [data-stagger].in > :nth-child(3) { transition-delay: .16s; }
.motion [data-stagger].in > :nth-child(4) { transition-delay: .24s; }
.motion [data-stagger].in > :nth-child(5) { transition-delay: .32s; }
.motion [data-stagger].in > :nth-child(6) { transition-delay: .40s; }
.motion .d1 { transition-delay: .12s; }
.motion .d2 { transition-delay: .24s; }
.motion .d3 { transition-delay: .36s; }

/* Hero entrance: the halves close in, the words rise out of their lines, the heart lands and settles. */
.motion .hero .half.you { animation: fromLeft 1.1s var(--ease-out) both; }
.motion .hero .half.them { animation: fromRight 1.1s var(--ease-out) both; }
.motion .hero .line > span { animation: rise 1s var(--ease-out) both; }
.motion .hero .you .line:nth-child(2) > span { animation-delay: .1s; }
.motion .hero .them .line > span { animation-delay: .25s; }
.motion .hero .them .line:nth-child(2) > span { animation-delay: .35s; }
.motion .hero .eyebrow, .motion .hero p.lede { animation: fade .9s .55s var(--ease-out) both; }
/* The heart: each half flies in from its own side and they stick, the seamless whole takes over, then it beats. */
.motion .fold-heart .half { display: inline; }
.motion .fold-heart .half.l { animation: halfLeft .85s .45s var(--ease-out) both, gone .18s 1.32s forwards; }
.motion .fold-heart .half.r { animation: halfRight .85s .45s var(--ease-out) both, gone .18s 1.32s forwards; }
.motion .fold-heart .whole { animation: appear .18s 1.28s both; }
.motion .fold-heart svg { animation: press .55s 1.28s ease-out, beat 4s 2.6s ease-in-out infinite; }
.motion .float { animation: pop .8s var(--ease-out) both, bob 6s ease-in-out infinite; }
.motion .float.f1 { animation-delay: 1.2s, 2s; }
.motion .float.f2 { animation-delay: 1.4s, 2.6s; }
.motion .float.f3 { animation-delay: 1.6s, 3.1s; }
@keyframes fromLeft { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes fromRight { from { clip-path: inset(-400px 100% 0 0); } to { clip-path: inset(-400px 0 0 -400px); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes halfLeft { from { opacity: 0; transform: translate(-70px, -8px) rotate(-16deg); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes halfRight { from { opacity: 0; transform: translate(70px, -8px) rotate(16deg); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes gone { to { opacity: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
/* Like the app's sticking moment: pressed flat, then settled. */
@keyframes press { 0% { transform: scale(1); } 40% { transform: scale(1.06, .92); } 75% { transform: scale(.97, 1.04); } 100% { transform: scale(1); } }
/* A heartbeat: two quick beats, then rest. */
@keyframes beat { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.09); } 15% { transform: scale(.98); } 22% { transform: scale(1.06); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-40px) scale(1.2); } 60% { opacity: 1; transform: translateY(0) scale(.94); } to { opacity: 1; transform: none; } }

/* Scroll-linked: the statement lights up word by word; parallax; the panel rises; the closing lines meet. */
.motion [data-words] .w { opacity: .16; transition: opacity .25s linear; }
.motion [data-words] .w.lit { opacity: 1; }
.motion [data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.motion .corner { transform: scale(calc(.94 + .06 * var(--p, 1))); border-radius: calc(40px + 24px * (1 - var(--p, 1))) calc(40px + 24px * (1 - var(--p, 1))) 0 0; transform-origin: 50% 0; }
.motion .cta h2 .you { transform: translateX(calc(-18vw * (1 - var(--p, 1)))); }
.motion .cta h2 .them { transform: translateX(calc(18vw * (1 - var(--p, 1)))); }
.motion .plans .plan.free { transform: translateX(calc(-8% * (1 - var(--p, 1)))); }
.motion .plans .plan.plus { transform: translateX(calc(8% * (1 - var(--p, 1)))); }
.motion .bars i { transform: scaleY(0); transition: transform 1s var(--ease-out); }
.motion .counter.in .bars i { transform: none; }
.motion .counter.in .bars i:nth-child(2) { transition-delay: .05s; }
.motion .counter.in .bars i:nth-child(3) { transition-delay: .1s; }
.motion .counter.in .bars i:nth-child(4) { transition-delay: .15s; }
.motion .counter.in .bars i:nth-child(5) { transition-delay: .2s; }
.motion .counter.in .bars i:nth-child(6) { transition-delay: .25s; }
.motion .counter.in .bars i:nth-child(7) { transition-delay: .3s; }
.motion .counter.in .bars i:nth-child(8) { transition-delay: .35s; }
.motion .counter.in .bars i:nth-child(9) { transition-delay: .4s; }
.motion .counter.in .bars i:nth-child(10) { transition-delay: .45s; }
.motion .chip { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.motion .stage.in .chip { opacity: 1; transform: none; }
.motion .stage.in .chip.c1 { transition-delay: .6s; }
.motion .stage.in .chip.c2 { transition-delay: 1.9s; }

/* Stacked, the halves would cross the fold the wrong way: the whole heart drops in instead (after the rules above). */
@media (max-width: 860px) {
  .motion .fold-heart .half { display: none; }
  .motion .fold-heart .whole { animation: dropIn .9s .5s var(--ease-out) both; }
}

/* ---------- Other languages (docs/translation.md) ---------- */
/* The hero's halves are a picture of the couple, you on the left and them on the right, with the heart on their seam:
   right-to-left pages keep them in place, and only the words inside read right to left. */
[dir="rtl"] .hero { direction: ltr; }
[dir="rtl"] .hero .half { direction: rtl; }
/* Side by side, each half's words hug its outer edge, clear of the heart on the seam, as in English. */
@media (min-width: 861px) {
  [dir="rtl"] .hero .half.you .copy { direction: ltr; }
  [dir="rtl"] .hero .half.you .copy > * { direction: rtl; text-align: left; }
}
/* Arabic and Devanagari come from the system fonts (the site's fonts are Latin only). Their letters join or stack,
   so no tight letter spacing, and they stand taller. */
:root:lang(ar), :root:lang(hi) { --display: system-ui, sans-serif; --body: system-ui, sans-serif; }
:lang(ar) *, :lang(hi) * { letter-spacing: normal !important; }
:lang(ar) .display, :lang(hi) .display { line-height: 1.2; }
.footer .languages a[aria-current] { text-decoration: none; font-weight: 800; }
.translation-note { padding: 12px 16px; border-radius: 12px; background: #F1F2FB; color: var(--ink-2); font-size: 15px; }

/* ---------- Christmas (docs/website.md) ---------- */
/* festive.js adds .christmas to <html> while the admin dashboard's Christmas flag is on. The app's festive palette:
   cranberry #A61B29, pine #1E6B45, gold #D4A537, ivory #F8F3EA, ink #1F1A17. Every text pair stays WCAG AA. Nothing
   here changes a size or a position in the flow: the lights, the hat and the snow are absolutely placed. */
html.christmas {
  --navy: #A61B29;
  --peri: #1E6B45;
  --peri-ink: #17563A;
  --ink: #1F1A17;
  --ink-2: #5A4E46;
  --ink-soft: #E8DCC4;
  --tint: #F1E6D3;
  --tint-2: #E9EFE4;
  --wash: #F3ECDF;
  --night: #143D2A;
  --night-2: #1E6B45;
}
html.christmas body, html.christmas .corner { background: #F8F3EA; }
html.christmas .topbar { background: rgba(248, 243, 234, 0.88); border-bottom-color: rgba(31, 26, 23, 0.08); }
/* Pine grounds take light text where the periwinkle ones had dark. */
html.christmas .half.them, html.christmas .plan.plus, html.christmas .chip.c2 { color: #FFFFFF; }
html.christmas .half.you p.lede { color: #F6E7E2; }
html.christmas .status.done { color: #1E6B45; }
html.christmas .features li, html.christmas .doc th, html.christmas .doc td { border-color: #E6DCCB; }
html.christmas .faq details, html.christmas .faq details:last-of-type, html.christmas .counter .foot { border-color: #E6DCCB; }
html.christmas .form input { border-color: #C9BBA4; }
html.christmas .translation-note { background: #F1E6D3; }
/* The fold heart: their half pine, yours cranberry, like the hero's halves. */
html.christmas #foldAcross stop:first-child, html.christmas #foldDown stop:first-child { stop-color: #1E6B45; }
html.christmas #foldAcross stop:last-child, html.christmas #foldDown stop:last-child { stop-color: #A61B29; }
html.christmas .fold-heart .half.l { fill: #1E6B45; }
html.christmas .fold-heart .half.r { fill: #A61B29; }

/* Fairy lights strung along the top of the header, with a soft glow on every other bulb. */
html.christmas .page-head { position: relative; }
html.christmas .hero::before, html.christmas .page-head::before,
html.christmas .hero::after, html.christmas .page-head::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 22px; z-index: 4; pointer-events: none;
  background-repeat: repeat-x; background-size: 120px 22px;
}
html.christmas .hero::before, html.christmas .page-head::before {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'><path d='M0 3Q30 13 60 3T120 3' fill='none' stroke='%231F1A17' stroke-opacity='.55' stroke-width='1.3'/><g fill='%233A2F28'><rect x='18.7' y='6.3' width='2.6' height='3' rx='.6'/><rect x='38.7' y='6.3' width='2.6' height='3' rx='.6'/><rect x='78.7' y='6.3' width='2.6' height='3' rx='.6'/><rect x='98.7' y='6.3' width='2.6' height='3' rx='.6'/></g><ellipse cx='20' cy='13.4' rx='3.3' ry='4.5' fill='%23D4A537'/><ellipse cx='40' cy='13.4' rx='3.3' ry='4.5' fill='%23F8F3EA'/><ellipse cx='80' cy='13.4' rx='3.3' ry='4.5' fill='%234FB37E'/><ellipse cx='100' cy='13.4' rx='3.3' ry='4.5' fill='%23E8545F'/></svg>");
}
html.christmas .hero::after, html.christmas .page-head::after {
  opacity: 0.7;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'><circle cx='20' cy='13.4' r='8' fill='%23D4A537' opacity='.35'/><circle cx='80' cy='13.4' r='8' fill='%234FB37E' opacity='.35'/></svg>");
}

/* A Santa hat on the logo mark. */
html.christmas .brand { position: relative; z-index: 5; }
html.christmas .brand::before {
  content: ""; position: absolute; top: -16px; inset-inline-start: -9px; width: 30px; height: 26px; pointer-events: none;
  transform: rotate(-16deg); transform-origin: 50% 100%;
  background: no-repeat center / contain url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'><path d='M5 26C7 13 16 4 28 5C34 5.5 38 10 37 17L33.5 17C33 13 30.5 11.5 28 12.5C30 17 31 21 31.5 26Z' fill='%23C62A36' stroke='%237E1420' stroke-width='1.2' stroke-linejoin='round'/><path d='M13 23C15 15 20 10 26 8.5' fill='none' stroke='%23E8545F' stroke-width='2' stroke-linecap='round' opacity='.7'/><rect x='2' y='23' width='33' height='9' rx='4.5' fill='%23F8F3EA' stroke='%23D9CFBF'/><circle cx='36' cy='19' r='4' fill='%23F8F3EA' stroke='%23D9CFBF'/></svg>");
}
/* The bar sits at the very top of the window: a smaller hat, a little lower, so its tip isn't cut off. */
html.christmas .topbar .brand::before { top: -11px; inset-inline-start: -7px; width: 26px; height: 22px; }
[dir="rtl"] .hero .brand::before, [dir="rtl"] .page-head .brand::before, [dir="rtl"] .topbar .brand::before { transform: scaleX(-1) rotate(-16deg); }

/* Gentle snow, only for visitors who haven't asked for reduced motion: two fixed layers of a few dozen flakes, each a
   tile of dots slid down by exactly one tile so the loop has no seam. White with a silver edge, so it shows on ivory. */
@media (prefers-reduced-motion: no-preference) {
  html.christmas .hero::after, html.christmas .page-head::after { animation: twinkle 2.6s ease-in-out infinite alternate; }
  html.christmas body::before, html.christmas body::after {
    content: ""; position: fixed; left: 0; right: 0; z-index: 60; pointer-events: none; will-change: transform;
    background-repeat: repeat;
  }
  html.christmas body::before {
    top: -420px; height: calc(100vh + 420px); background-size: 420px 420px; animation: snowfall 26s linear infinite;
    background-image:
      radial-gradient(circle at 40px 60px, #FFFFFF 0 2px, rgba(190, 200, 210, 0.85) 2.6px, transparent 3.4px),
      radial-gradient(circle at 210px 170px, #FFFFFF 0 2.4px, rgba(190, 200, 210, 0.85) 3px, transparent 3.8px),
      radial-gradient(circle at 330px 40px, #FFFFFF 0 1.8px, rgba(190, 200, 210, 0.85) 2.4px, transparent 3.2px),
      radial-gradient(circle at 120px 330px, #FFFFFF 0 2.2px, rgba(190, 200, 210, 0.85) 2.8px, transparent 3.6px);
  }
  html.christmas body::after {
    top: -300px; height: calc(100vh + 300px); background-size: 300px 300px; animation: snowfall-near 17s linear infinite;
    opacity: 0.85;
    background-image:
      radial-gradient(circle at 80px 120px, #FFFFFF 0 1.4px, rgba(190, 200, 210, 0.8) 2px, transparent 2.6px),
      radial-gradient(circle at 250px 230px, #FFFFFF 0 1.2px, rgba(190, 200, 210, 0.8) 1.8px, transparent 2.4px),
      radial-gradient(circle at 170px 20px, #FFFFFF 0 1.5px, rgba(190, 200, 210, 0.8) 2.1px, transparent 2.7px);
  }
}
@keyframes snowfall { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(18px, 210px, 0); } 100% { transform: translate3d(0, 420px, 0); } }
@keyframes snowfall-near { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-14px, 150px, 0); } 100% { transform: translate3d(0, 300px, 0); } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }
