/* BeFriends web v8, round 3. Tokens from the app (befriends-app/lib/design/tokens.dart).
   Rules: flat colour only (no gradients), no shadows of any kind, warm cream page, one neutral tile colour,
   hairline rules instead of cards, hover changes colour only. Mobile first: 600 / 768 / 900 / 1024. */
:root {
  --plum: #3E065F; --plum-2: #55207A;
  --pink: #E0527F;          /* text-safe brand pink */
  --pink-tint: #FBE6EE;
  --sky: #E8EFFB;           /* hero sky only */
  --page: #FFF9F2;          /* warm cream page */
  --surface: #F4F1F8;       /* the one neutral tile colour (app surfaceMuted) */
  --paper: #FFFFFF;
  --leaf: #2F7552; --gold: #C98F00;
  --ink: #1E1526; --sub: #615868; --eyebrow: #6A4C86;
  --rule: #E6DDE9; --rule-strong: #D3C6DA;
  --on-dark: #F9F6FC; --on-dark-muted: #DCCDEB;
  --r: 14px; --r-sm: 10px; --btn-r: 12px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px; --nav-h: 64px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --nav-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 28px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--page); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(1140px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 12px 18px; border-radius: var(--btn-r); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.i-heart { color: var(--pink); }

/* ---------- type ---------- */
h1, h2, .big-line, .need, .price { font-family: var(--serif); font-weight: 400; color: var(--plum); letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.06; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; color: var(--ink); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 12px; }
.lead { font-size: clamp(1.0625rem, 2.2vw, 1.2rem); color: var(--ink); max-width: 38ch; }
.sub { color: var(--sub); font-size: 1.0625rem; max-width: 54ch; }
.small { font-size: .9375rem; color: var(--sub); }
.small a, .sub a { color: var(--plum); font-weight: 600; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 5vw, 44px); max-width: 640px; }
.sec-head .eyebrow { margin-bottom: 0; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tint { background: var(--surface); }

/* ---------- buttons, labels, links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--btn-r); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-pri { background: var(--plum); color: #fff; }
.btn-pri:hover { background: var(--plum-2); }
.btn-sec { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-sec:hover { background: var(--surface); }
.btn-wa { background: #1F7A4A; color: #fff; }
.btn-wa:hover { background: #17633E; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .acts, .final .acts { justify-content: center; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.label-web { color: var(--leaf); }
.label-app { color: var(--eyebrow); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--plum); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--pink); }

/* ---------- nav ---------- */
.top { position: fixed; inset: 12px 0 auto; z-index: 50; padding-inline: 12px; pointer-events: none; }
.nav { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 8px; max-width: 1140px; margin-inline: auto; min-height: var(--nav-h); padding: 8px 8px 8px 18px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 18px; }
.nav-mark { flex: none; margin-right: auto; }
.nav-mark img { height: 34px; width: auto; }
.nav-links { display: none; }
.nav-links a { text-decoration: none; color: var(--sub); font-weight: 600; font-size: .9375rem; padding: 10px 12px; border-radius: var(--r-sm); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--plum); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.help-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--btn-r); background: var(--pink-tint); color: var(--plum); font-weight: 700; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.nav-cta { display: none; }
.nav-menu { flex: none; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--btn-r); background: var(--paper); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.nav-menu i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--plum); }
.nav.is-open .nav-links { display: grid; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 8px; }
.nav.is-open .nav-links a { padding: 12px 14px; color: var(--ink); }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav-links { display: flex; gap: 2px; margin-right: auto; } .nav-menu { display: none; } .nav-mark { margin-right: 12px; } }

/* ---------- help sheet (static on purpose) ---------- */
.help-sheet { border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 28px; max-width: min(420px, calc(100vw - 32px)); color: var(--ink); background: var(--paper); }
.help-sheet::backdrop { background: rgba(30, 21, 38, .5); }
.help-sheet h2 { font-size: 1.6rem; margin-bottom: 12px; }
.help-sheet p { margin-bottom: 8px; }
.help-sheet a:not(.btn) { color: var(--plum); font-weight: 700; }
.help-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.help-note { font-size: .875rem; color: var(--sub); }
.help-close { margin-top: 8px; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--plum); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- sky, clouds, hills (flat colour) ---------- */
.sky-clouds { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.cloud { position: absolute; display: block; width: clamp(150px, 22vw, 340px); }
.cloud img { width: 100%; height: auto; }
.c1 { top: 13%; left: -3%; } .c2 { top: 24%; right: -3%; width: clamp(150px, 18vw, 280px); }
.c3 { top: 44%; left: 22%; width: clamp(80px, 8vw, 130px); } .c4 { top: 47%; right: 25%; width: clamp(70px, 7vw, 110px); }
 .c8 { top: 22%; right: -3%; width: clamp(120px, 16vw, 240px); } 
.c-p1 { top: 18%; left: -5%; width: clamp(130px, 18vw, 280px); } .c-p2 { top: 14%; right: -4%; width: clamp(120px, 15vw, 230px); } .c-p3 { top: 58%; right: 34%; width: clamp(70px, 7vw, 110px); }
 
.hills{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.hills img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + 40px); text-align: center; background: var(--sky); }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }

.hero h1 { font-size: clamp(2.8rem, 11vw, 5.4rem); max-width: 11ch; line-height: .98; }





.stage { position: relative; height: clamp(330px, 50vw, 560px); margin-top: clamp(4px, 2vw, 16px); }
@media (min-width: 1024px) { .hero { padding-top: calc(var(--nav-h) + 28px); } .hero-copy { gap: 14px; } .stage { margin-top: -96px; height: clamp(330px, 36vw, 500px); } }
.stage .hills { height: clamp(120px, 22vw, 300px); }
.who { position: absolute; z-index: 2; bottom: clamp(26px, 5vw, 70px); }
.who img { width: auto; height: clamp(150px, 21vw, 300px); }
   

.kozy-group { position: absolute; z-index: 3; left: 50%; bottom: clamp(14px, 2.6vw, 40px); width: clamp(170px, 16vw, 250px); transform: translateX(-50%); }
.kozy-hero { position: relative; z-index: 1; }
.kozy-hero img { width: 100%; height: auto; }
/* flat ground patch so Kozy sits on the hill (illustration, not a drop shadow) */

/* drawn speech bubble: same charcoal outline as the art, one line only */
.bubble { position: absolute; z-index: 2; left: 74%; bottom: 96%; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 12px 18px 13px; background: #fff; border: 2.5px solid #2C2C34; border-radius: 22px; }

.bubble .i-heart { flex: none; width: .9em; height: .9em; font-size: clamp(1.15rem, 1.9vw, 1.6rem); }

@media (max-width: 599px) { .bubble { left: 50%; bottom: 100%; padding: 9px 14px 10px; } }

/* ---------- statement ---------- */
.statement { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.statement .eyebrow, .big-line { text-align: center; }
.big-line { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.14; max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.chip-ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 1.3em; height: .96em; margin: -.1em .04em 0; border-radius: .5em; background: var(--paper); border: 1px solid var(--rule-strong); overflow: hidden; }
.chip-ico svg, .chip-ico img { width: .7em; height: .7em; object-fit: contain; }
.chip-kozy { width: 1.5em; background: var(--surface); align-items: flex-end; }
.chip-kozy img { width: 1.05em; height: auto; margin-bottom: -.14em; }

.stats li { display: grid; grid-template-columns: minmax(7.2ch, auto) 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule-strong); }
.stats li:first-child { border-top: 1px solid var(--rule-strong); }
.stats b { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1; display: inline-flex; align-items: center; gap: 6px; }
.stats span { color: var(--sub); }






/* ---------- send a hug: a moment, a letter, a WhatsApp ---------- */
.send { padding: 0 0 clamp(64px, 9vw, 112px); }






/* keepsakes floating around the envelope (illustration style: charcoal outlines, flat fills) */
.keep { margin: 0; }













/* the envelope: liner, side and bottom flaps, a two-stage top flap and a wax seal.
   Sizes scale with the envelope width (container units), so nothing distorts on phones.
   The letter grows with its text; only its empty foot (--tuck) slides inside. Transforms and opacity only. */
.env-float { container-type: inline-size; width: min(100%, 420px); }
.env { --env-h: calc(100cqw * 170 / 420); --tuck: calc(var(--env-h) * .62); --flap-h: calc(100cqw * 110 / 420);
  position: relative; width: 100%; margin-bottom: calc(var(--env-h) - var(--tuck)); perspective: 1100px; transform: rotate(-2deg); }
.env-back, .env-front, .env-flap-in, .env-flap-out { position: absolute; left: 0; width: 100%; display: block; overflow: visible; }
.env-back { top: calc(100% - var(--tuck)); height: var(--env-h); z-index: 1; }
.env-front { top: calc(100% - var(--tuck)); height: var(--env-h); z-index: 3; }
.env-flap-in { top: calc(100% - var(--tuck) - var(--flap-h)); height: var(--flap-h); z-index: 0; transform-origin: 50% 100%; }
.env-flap-out { top: calc(100% - var(--tuck)); height: var(--flap-h); z-index: 4; transform-origin: 50% 0; }
.env-seal { position: absolute; z-index: 5; left: 50%; top: calc(100% - var(--tuck) + var(--env-h) * .58); width: 58px; height: 58px; margin: -29px 0 0 -29px; transform: rotate(-8deg); }

/* closed: letter tucked away, top flap down */
.env-card { opacity: 0; transform: translateY(60px) rotate(1.5deg); transition: transform .3s ease, opacity .25s ease, translate .3s ease; }
.env-flap-in { transform: rotateX(90deg); visibility: hidden; transition: transform .2s ease-in .22s, visibility 0s linear .42s; }
.env-flap-out { transform: rotateX(0deg); visibility: visible; transition: transform .24s ease-out .42s, visibility 0s linear .42s; }
/* open: outer flap folds up, liner flap rises, letter slides out, seal presses */
.env.is-open .env-flap-out { transform: rotateX(90deg); visibility: hidden; transition: transform .22s ease-in 0s, visibility 0s linear .22s; }
.env.is-open .env-flap-in { transform: rotateX(0deg); visibility: visible; transition: transform .28s cubic-bezier(.3, 1.3, .5, 1) .22s, visibility 0s linear .22s; }
.env.is-open .env-card { opacity: 1; transform: translateY(0) rotate(1.5deg); transition: transform .5s cubic-bezier(.3, .8, .3, 1) .42s, opacity .3s ease .42s, translate .3s ease 0s; }
.env.is-open .env-seal { animation: seal-press .45s ease .3s both; }
@keyframes seal-press { 0% { transform: rotate(-8deg) scale(1); } 45% { transform: rotate(-8deg) scale(.86); } 75% { transform: rotate(-8deg) scale(1.06); } 100% { transform: rotate(-8deg) scale(1); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .env.is-open:hover .env-card { translate: 0 -12px; } }

/* the letter: cream paper held by a strip of washi tape */
.env-card { position: relative; z-index: 2; margin: 0 32px; padding: 26px 24px calc(var(--tuck) + 14px); text-align: left; background: #FFFBF3; border: 2.4px solid #2C2C34; border-radius: 6px; }
.env-card::before { content: ""; position: absolute; top: -13px; left: 22px; width: 96px; height: 26px; transform: rotate(-7deg);
  background: repeating-linear-gradient(-45deg, rgba(240, 108, 155, .55) 0 7px, rgba(240, 108, 155, .32) 7px 14px);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%); }
.lt-top { position: relative; height: 62px; }

.pc-stamp { position: absolute; top: -12px; right: -8px; width: 58px; height: 66px; transform: rotate(6deg); }
.pc-postmark { position: absolute; top: 16px; right: 32px; width: 84px; height: 42px; transform: rotate(-8deg); }
.env-note { font-family: var(--serif); color: var(--plum); font-size: 1.95rem; line-height: 1.15; margin: 4px 0 0; overflow-wrap: break-word; text-wrap: balance; }
.env-note.is-long { font-size: 1.55rem; }
.lt-sign { display: grid; gap: 2px; margin-top: 22px; font-size: .9375rem; color: var(--sub); }
.pc-sign { font-family: var(--serif); color: var(--ink); font-size: 1.15rem; }

/* steps */
.step { display: grid; gap: 12px; align-content: start; min-width: 0; }

.moments { display: grid; gap: 10px; }
@media (min-width: 600px) { .moments { grid-template-columns: repeat(2, 1fr); } }
.moment { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; text-align: left; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.moment:hover { border-color: var(--plum); }

.moment[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); }

.moment:focus-visible { outline-offset: 2px; }
/* Surprise me: a dashed "wild card" tile, set apart from the moments; the dice rolls on tap */
.surprise { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left; cursor: pointer;
  background: var(--pink-tint); border: 1.5px dashed var(--plum); border-radius: var(--r-sm); color: var(--plum); transition: background-color .15s ease; }
.surprise:hover { background: #F8D7E3; }
.surprise .dice { flex: none; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.surprise.is-rolling .dice { transform: rotate(360deg) scale(1.12); }



@media (prefers-reduced-motion: reduce) { .surprise.is-rolling .dice { transform: none; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--sub); }
.field input { min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--rule-strong); background: var(--paper); }
.field input:focus-visible { outline: 3px solid var(--plum); outline-offset: 1px; }
.field input:disabled { background: var(--surface); color: var(--sub); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--plum); }
.make { justify-self: start; }
/* Make my hug link: heart beats on hover; on click the heart flies off, the label rolls through
   "Sealing it…" to "Your hug is ready" while the preview envelope seals and reopens. Transforms and opacity only. */
.btn-hug { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 24px 8px 9px; border: 0; border-radius: 16px; background: var(--plum); color: #fff; font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: background-color .15s ease, transform .12s ease; }
.btn-hug:hover { background: var(--plum-2); }
.btn-hug:active { transform: scale(.97); }
.hug-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #FBE6EE; flex: none; }
.hug-ico svg { display: block; }

.hug-labels { position: relative; display: grid; justify-items: start; height: 1.5em; overflow: hidden; line-height: 1.5; text-align: left; }
.hl { grid-area: 1 / 1; transition: transform .38s cubic-bezier(.3, .8, .3, 1), opacity .25s ease; }
.hl:nth-child(2), .hl:nth-child(3) { transform: translateY(110%); opacity: 0; }
.btn-hug.is-sealing .hl:nth-child(1) { transform: translateY(-110%); opacity: 0; }
.btn-hug.is-sealing .hl:nth-child(2) { transform: translateY(0); opacity: 1; }
.btn-hug.is-done .hl:nth-child(1), .btn-hug.is-done .hl:nth-child(2) { transform: translateY(-110%); opacity: 0; }
.btn-hug.is-done .hl:nth-child(3) { transform: translateY(0); opacity: 1; }
.btn-hug.is-done { background: #1F7A4A; }
@media (prefers-reduced-motion: no-preference) {
  .btn-hug:hover .hug-ico svg:first-child { animation: hug-beat .9s ease-in-out infinite; }
  
}
@keyframes hug-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.22); } 40% { transform: scale(.96); } 60% { transform: scale(1.12); } }
@keyframes hug-fly { 0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); } 100% { opacity: 0; transform: translate(150px, -70px) scale(.6) rotate(24deg); } }
.share:not([hidden]) { animation: share-in .35s ease both; }
@keyframes share-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.share { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--rule); }
.share[hidden] { display: none; }
.linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.linkbox code { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-size: .875rem; color: var(--plum); background: var(--surface); border-radius: 8px; padding: 10px 12px; }
.status { min-height: 1.6em; font-weight: 600; color: var(--leaf); }

/* phones: tighter letter */
@media (max-width: 599px) {
  .env-card { margin: 0 20px; padding-left: 18px; padding-right: 18px; }
  .env-note { font-size: 1.6rem; }
  .env-note.is-long { font-size: 1.3rem; }
  .pc-postmark { display: none; }
}

/* ---------- editorial row lists (features, join, ways, blog) ---------- */
.row-list { display: grid; border-top: 1px solid var(--rule-strong); }
.row-item { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--rule-strong); min-width: 0; }
.row-art { display: grid; place-items: center; width: 112px; height: 112px; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.row-art img { width: 84%; height: 84%; object-fit: contain; }
.row-art picture { display: contents; }
.row-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.row-text .need { font-size: clamp(1.35rem, 3.6vw, 1.6rem); line-height: 1.15; }
.row-text .need a { text-decoration: none; }
.row-text .need a:hover { text-decoration: underline; text-underline-offset: 4px; }
.row-text p { color: var(--sub); }
.row-text .tool { color: var(--ink); font-weight: 700; }
.min { font-size: .8125rem; font-weight: 700; color: var(--eyebrow); }
@media (min-width: 600px) { .row-item { grid-template-columns: 160px 1fr; gap: 24px; } .row-art { width: 160px; height: 160px; } }
@media (min-width: 900px) {
  .row-list.two { grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-top: 0; }
  .row-list.two .row-item:nth-child(-n+2) { border-top: 1px solid var(--rule-strong); }
}

/* ---------- info list (why, teams, listen) ---------- */
.teaser { max-width: 900px; margin: 0 auto clamp(32px, 5vw, 56px); }
.teaser video { width: 100%; height: auto; border-radius: var(--r); background: #E2D6F0; }
.teaser figcaption { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--sub); }
.info-list { display: grid; border-top: 1px solid var(--rule-strong); }
.info-list li { padding: 24px 0; border-bottom: 1px solid var(--rule-strong); }
.info-list h3 { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.15; margin-bottom: 6px; }
.info-list p { color: var(--sub); }
@media (min-width: 768px) {
  .info-list { grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-top: 0; }
  .info-list li:nth-child(-n+2) { border-top: 1px solid var(--rule-strong); }
}

/* ---------- press: editorial quotes ---------- */
.quote-list { display: grid; border-top: 1px solid var(--rule-strong); }
.quote-list li { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--rule-strong); }
.outlet { display: flex; align-items: center; gap: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); }
.outlet img { width: auto; height: 34px; border-radius: 6px; }
.outlet .duo { display: flex; gap: 6px; }
.quote-list blockquote { font-family: var(--serif); color: var(--plum); font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.22; max-width: 34ch; }
.also { font-size: .9375rem; color: var(--sub); }
.also a { color: var(--plum); font-weight: 600; }
.read { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--plum); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.read:hover { color: var(--pink); }
@media (min-width: 900px) { .quote-list li { grid-template-columns: 260px 1fr; column-gap: 48px; align-items: start; } .quote-list li > *:not(.outlet) { grid-column: 2; } .quote-list .outlet { grid-row: 1 / span 3; padding-top: 6px; } }
.backers-h { margin: clamp(44px, 7vw, 72px) 0 18px; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.backers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; align-items: center; justify-items: center; padding: 28px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 600px) { .backers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .backers { grid-template-columns: repeat(5, 1fr); } }
.backers li { display: flex; align-items: center; justify-content: center; height: 56px; }
.backers img { height: auto; width: auto; max-height: 52px; max-width: 120px; filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.backers li:hover img { filter: none; opacity: 1; transform: translateY(-4px); }
@media (hover: none) { .backers img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .backers li:hover img { transform: none; } }

/* ---------- plans: one table, no checkmarks ---------- */
.plan-table { border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.plan-row:last-child { border-bottom: 0; }
.plan-ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; }
.plan-ico img { width: 42px; height: 42px; object-fit: contain; }
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-name h3 { font-size: 1.125rem; }
.price { font-size: 1.6rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: .875rem; color: var(--sub); letter-spacing: 0; }
.plan-inc { color: var(--sub); }
.plan-row.plan-hi { background: var(--surface); }
.plan-row.plan-hi h3 { color: var(--plum); }
@media (min-width: 768px) {
  .plan-row { grid-template-columns: 56px minmax(220px, 300px) 1fr; padding: 20px 28px; }
  .plan-ico { grid-row: auto; }
  .plan-name { justify-content: flex-start; gap: 18px; }
}

/* Crisis strip: static. Nothing in here moves. */
.helpline { display: grid; gap: 16px; align-items: center; margin-top: 28px; padding: 22px; border-radius: var(--r); background: var(--pink-tint); }
.helpline-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--plum); }
.helpline-ico svg { width: 22px; height: 22px; }
.helpline p { font-size: 1.0625rem; }
.helpline a:not(.btn) { color: var(--plum); font-weight: 700; }
.helpline-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.helpline .btn-sec { background: var(--paper); }
@media (min-width: 768px) { .helpline { grid-template-columns: auto 1fr auto; padding: 22px 26px; } }

/* ---------- final + meadow ---------- */
.final { position: relative; isolation: isolate; padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.final-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; }
.final-copy .eyebrow { margin-bottom: 0; }
.final h2 { font-size: clamp(2.3rem, 7.5vw, 4.2rem); line-height: 1; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge img { height: 48px; width: auto; }
.cooked { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 4px; border-radius: var(--btn-r); background: var(--paper); border: 1px solid var(--rule-strong); color: var(--plum); font-weight: 700; text-decoration: none; }
.cooked:hover { border-color: var(--plum); }
.cooked-kozy { display: grid; place-items: end center; width: 40px; height: 40px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.cooked-kozy img { width: 40px; height: auto; margin-bottom: -2px; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--plum); }
.social a:hover { color: var(--pink); }
.legal { display: grid; gap: 4px; text-align: center; font-size: .8125rem; color: var(--sub); }
.legal a { color: var(--plum); font-weight: 700; }

/* ---------- sub-pages ---------- */
.pagehead { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + 48px); background: var(--sky); overflow: hidden; }
.ph-grid { position: relative; z-index: 2; display: grid; gap: 20px; align-items: end; padding-bottom: calc(clamp(70px, 11vw, 150px) + 28px); }
.ph-art { margin-bottom: calc(clamp(70px, 11vw, 150px) * -.72); display: flex; justify-content: center; align-items: flex-end; min-height: 200px; }
.ph-copy { display: grid; gap: 16px; justify-items: start; }
.ph-copy .eyebrow { margin-bottom: 0; }






@media (min-width: 900px) { .ph-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; } }



.case { display: grid; gap: 28px; align-items: center; }
.facts { display: grid; border-top: 1px solid rgba(255, 255, 255, .22); }
.facts li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: #fff; line-height: 1; }
.facts span { color: var(--on-dark-muted); }
@media (min-width: 900px) { .case { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.split { display: grid; gap: 32px; align-items: start; }
.pilot-copy { display: grid; gap: 16px; justify-items: start; }
.faq { display: grid; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.card { background: transparent; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 60px; padding: 16px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--plum); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--sub); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.team { display: grid; gap: 28px; align-items: center; }
.team-art img { width: min(100%, 420px); border-radius: var(--r); }
.team .lead { margin-top: 14px; }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.note-center { margin-top: 20px; font-size: .9375rem; color: var(--sub); }

/* blog article */
.more-h { margin-bottom: 20px; }
.article-head { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 48px) 0 clamp(36px, 6vw, 64px); background: var(--sky); overflow: hidden; margin-bottom: clamp(36px, 6vw, 56px); }
.article-grid { position: relative; z-index: 2; display: grid; gap: 24px; align-items: center; }
.article-head h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); line-height: 1.08; max-width: 20ch; margin-top: 10px; }
.article-head .lead { margin-top: 14px; }
.meta { margin-top: 12px; font-size: .875rem; color: var(--sub); }
.crumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--plum); text-decoration: none; }
.crumb svg { width: 18px; height: 18px; }
.article-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--paper); }
.article-art picture { display: contents; }
.article-art img { height: clamp(170px, 24vw, 240px); width: auto; max-width: 86%; object-fit: contain; }
@media (min-width: 900px) { .article-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

/* long-form text: articles and legal */
.prose { max-width: 700px; margin-inline: auto; padding-bottom: clamp(56px, 8vw, 96px); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.15; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; color: var(--plum); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--sub); }
.prose a { color: var(--plum); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal-doc { padding-top: clamp(40px, 6vw, 64px); }
.prose.legal { display: block; text-align: left; font-size: 1.0625rem; color: var(--ink); }
.legal .last-updated { display: inline-block; font-size: .875rem; font-weight: 700; color: var(--eyebrow); }
.legal .summary-box { padding: 22px 24px; border-radius: var(--r); background: var(--surface); }
.legal .summary-box h2 { margin-top: 0; font-size: 1.5rem; }
.legal .contact-info { padding: 18px 22px; border-radius: var(--r); background: var(--surface); }
.legal .table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); border-radius: var(--r); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; background: var(--paper); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.legal th { background: var(--surface); color: var(--plum); font-weight: 700; }

/* sub-page footer land */

/* image placeholders while loading: flat tile colour in sized boxes (no layout shift) */
.row-art, .article-art, .teaser video { background-color: var(--surface); }

/* Phones: keep clouds out of the copy. */
@media (max-width: 767px) {
  .c2, .c3, .c-p1, .c-p3 { display: none; }
  .c1 { top: 5%; left: -14%; width: 120px; }
  .c4 { top: 63%; left: 3%; right: auto; width: 74px; }
  .c-p2 { top: 9%; right: -10%; width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
.outlet .duo { flex: none; }
.outlet .duo img, .outlet > img { flex: none; height: 34px; width: auto; }
.outlet .duo img { width: 34px; object-fit: contain; }
/* Fixed-height figures must never be squeezed (keeps their aspect ratio). */

 .who img { max-width: none; }


/* ---------- stress meter: one question at a time ---------- */
.quiz-sec { padding-top: clamp(40px, 6vw, 64px); }
.quiz-wrap { max-width: 720px; }
.quiz { display: grid; gap: 20px; }
.quiz[hidden] { display: none; }
.quiz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.quiz-ask { font-size: .9375rem; color: var(--sub); }
.quiz-count { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.quiz-bar { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--plum); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q[hidden] { display: none; }
.q legend { padding: 0; margin-bottom: 20px; font-family: var(--serif); color: var(--plum); font-size: clamp(1.6rem, 4.4vw, 2.3rem); line-height: 1.15; text-wrap: balance; }
.q-opts { display: grid; gap: 10px; }
@media (min-width: 600px) { .q-opts { grid-template-columns: repeat(2, 1fr); } }
.q-opt { position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 18px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--paper); font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.q-opt:hover { border-color: var(--plum); }
.q-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-opt:has(input:checked) { background: var(--plum); border-color: var(--plum); color: #fff; }
.q-opt:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 3px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.quiz-nav .btn:disabled { opacity: .45; cursor: default; }
.err { min-height: 1.4em; color: #A23A4A; font-weight: 600; }
.result { display: grid; gap: 24px; }
.result[hidden] { display: none; }
.res-main { display: grid; gap: 20px; align-items: center; }
@media (min-width: 640px) { .res-main { grid-template-columns: 180px 1fr; gap: 32px; } }
.res-kozy img { width: 100%; max-width: 180px; height: auto; margin-inline: auto; }
.res-kozy[hidden] { display: none; }
.res-copy { display: grid; gap: 12px; }
.res-copy .eyebrow { margin-bottom: 0; }
.res-copy h2:focus { outline: none; }
.verdict { white-space: nowrap; }
/* four toast shades from light to dark, with a marker for the score */
.toast-scale { position: relative; margin-top: 10px; padding-top: 16px; }
.toast-scale ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.toast-scale li { display: grid; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--sub); }
.toast-scale li i { display: block; height: 12px; border-radius: 3px; border: 1.5px solid #2C2C34; }
.toast-scale li:nth-child(1) i { background: #F3DEB0; } .toast-scale li:nth-child(2) i { background: #E2B46A; }
.toast-scale li:nth-child(3) i { background: #C27C3A; } .toast-scale li:nth-child(4) i { background: #7E4521; }
.toast-scale li.is-on { color: var(--plum); font-weight: 700; }
.toast-mark { position: absolute; top: 0; width: 0; height: 0; margin-left: -8px; border: 8px solid transparent; border-top: 11px solid var(--plum); border-bottom: 0; }
.res-acts { justify-content: flex-start; }
.res-note { color: var(--sub); }

/* ---------- hug page: the friend opens the envelope ---------- */
.hug-open { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 calc(clamp(70px, 11vw, 150px) + 40px); background: var(--sky); }
.hug-grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hug-grid { grid-template-columns: 1fr minmax(0, 440px); gap: 64px; } }
.hug-copy { display: grid; gap: 16px; justify-items: start; }
.hug-copy .eyebrow { margin-bottom: 0; }
.hug-copy h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.02; }
.hug-before, .hug-after { display: grid; gap: 16px; justify-items: start; }
.hug-before[hidden], .hug-after[hidden] { display: none; }
.hug-stage { position: relative; display: grid; justify-items: center; padding-top: 70px; cursor: pointer; }
.is-opened .hug-stage { cursor: default; }
/* Kozy peeks over the closed envelope, then ducks behind it as the letter comes out */



.hug-stage .env-float { width: min(100%, 420px); }
/* closed: the letter takes no space, so the envelope sits right under Kozy */
.hug-stage .env:not(.is-open) .env-card { height: var(--tuck); padding: 0; overflow: hidden; border-color: transparent; background: none; }
.hug-stage .env:not(.is-open) .env-card::before { display: none; }
.hug-stage { padding-top: 0; }



.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- send a hug v3: one letter you handle, one button ---------- */



.deck-hint { font-size: .875rem; color: var(--sub); margin-bottom: 20px; }
/* two sheets behind the letter make it read as a stack you can flip through */
.env-sheet { position: absolute; z-index: 1; left: 32px; right: 32px; top: 0; bottom: calc(var(--tuck) * .5); background: #FFF7EA; border: 2.4px solid #2C2C34; border-radius: 6px; opacity: 0; transition: opacity .3s ease .42s; }
.env.is-open .env-sheet { opacity: 1; }
.env-sheet.sh1 { transform: rotate(-4deg) translate(-6px, 6px); }
.env-sheet.sh2 { transform: rotate(3deg) translate(8px, 10px); background: #FDF1F6; }
.env-card { cursor: grab; touch-action: pan-y; user-select: none; }
.env-card.is-dragging { cursor: grabbing; transition: none !important; }
.env-card:focus-visible { outline: 3px solid var(--plum); outline-offset: 6px; }
.env-card.out-left, .env-card.out-right { opacity: 0 !important; transition: translate .28s ease-in, rotate .28s ease-in, opacity .28s ease-in !important; }
.env-card.out-left { translate: -125% 0; rotate: -10deg; }
.env-card.out-right { translate: 125% 0; rotate: 10deg; }
.env-card.in { translate: 0 22px; scale: .94; opacity: 0 !important; }
.env-card.no-anim { transition: none !important; }
.lt-for { position: absolute; left: 0; bottom: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.lt-sign label { font-size: .9375rem; color: var(--sub); }
.lt-input { width: 100%; max-width: 260px; padding: 2px 2px 4px; border: 0; border-bottom: 1.5px dashed #B9A6D6; background: transparent; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); cursor: text; user-select: text; }
.lt-input::placeholder { color: #9C90A6; }
.lt-input:focus { outline: none; border-bottom-color: var(--plum); border-bottom-style: solid; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.deck-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--plum); background: var(--paper); color: var(--plum); cursor: pointer; transition: background-color .15s ease; }
.deck-btn:hover { background: var(--lav-soft); }
.deck-count { min-width: 64px; margin: 0; text-align: center; font-size: .875rem; font-weight: 700; color: var(--plum); }
.deck-dice { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; margin-left: 6px; border-radius: 999px; border: 1.5px dashed var(--plum); background: var(--pink-tint); color: var(--plum); font-weight: 700; cursor: pointer; }
.deck-dice:hover { background: #F8D7E3; }
.deck-dice .dice { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.deck-dice.is-rolling .dice { transform: rotate(360deg) scale(1.15); }
.send-act { display: grid; justify-items: center; gap: 14px; width: min(100%, 520px); }
.send-act .make { justify-self: center; }
.send-act .share { width: 100%; text-align: left; }
@media (prefers-reduced-motion: reduce) { .deck-dice.is-rolling .dice { transform: none; } }
@media (max-width: 599px) { .deck-dice span { display: none; } .deck-dice { padding: 0 13px; } .env-sheet { left: 20px; right: 20px; } }



.send-act .make { align-self: start; }
/* the seal action lives on the stage, under the letter: one object, one flow */



.hug-seal { display: block; transform: rotate(-8deg); }

@media (prefers-reduced-motion: no-preference) {
  .btn-hug:hover .hug-ico .hug-seal { animation: seal-wiggle .6s ease-in-out; }
  .btn-hug:active .hug-seal { transform: rotate(-8deg) scale(.85); }
}
@keyframes seal-wiggle { 0%, 100% { transform: rotate(-8deg); } 30% { transform: rotate(4deg) scale(1.06); } 60% { transform: rotate(-14deg); } }
.btn-hug:hover .hug-ico svg:first-child { animation-name: seal-wiggle; animation-iteration-count: 1; }
.deck-btn { width: 44px; height: 44px; }
/* send a hug on the site grid: full content width, intro left, the letter object right (one column on phones) */







/* signature line: a sign-here flag shows where to write; it steps away once you type */
.sign-line { display: flex; align-items: flex-end; gap: 10px; max-width: 320px; }
.sign-line .lt-input { flex: 1; min-width: 0; max-width: none; border-radius: 0; }
.lt-input:focus-visible { outline: none; }
.lt-input::placeholder { color: #8E7FA8; }
.sign-flag { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; margin-bottom: 3px; padding: 0 11px 0 17px; background: #F9CBDB; color: var(--plum); font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .01em; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); cursor: text; transition: opacity .25s ease, transform .25s ease; }
.sign-flag svg { width: 14px; height: 14px; }
.sign-line:focus-within .sign-flag, .lt-input:not(:placeholder-shown) + .sign-flag { opacity: 0; transform: translateX(10px); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .sign-line.nudge .sign-flag { animation: sign-nudge .9s ease-in-out 2; }
  @keyframes sign-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-7px); } 70% { transform: translateX(-2px); } }
}
.sign-line { gap: 6px; }
@media (max-width: 420px) { .sign-flag { padding: 0 9px 0 15px; font-size: .75rem; gap: 4px; } .sign-flag svg { width: 12px; height: 12px; } }
/* statement chips: tap for a small moment (hearts, music, Kozy ducks) */
[data-fx] { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; transition: border-color .2s ease, background-color .2s ease; }
@media (hover: hover) { [data-fx]:hover { border-color: #C9B6E4; background-color: #EFE8F8; } [data-fx="hearts"]:hover { background-color: #FDEFF4; border-color: #F3B8CC; } }
[data-fx] img, [data-fx] svg { pointer-events: none; }
.fx-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.fx-bit { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; }
.fx-bit svg { display: block; width: 100%; height: 100%; }
/* sign flag morph: "Sign here" rolls to "Optional" while the empty field is focused, then steps away once you type */
.sign-flag { display: inline-grid; overflow: hidden; }
.sign-flag > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: transform .34s cubic-bezier(.3, 1.35, .45, 1), opacity .2s ease; }
.sign-flag .sf-b { transform: translateY(110%); opacity: 0; }
.sign-line:focus-within .lt-input:placeholder-shown + .sign-flag { opacity: 1; transform: none; }
.sign-line:focus-within .lt-input:placeholder-shown + .sign-flag .sf-a { transform: translateY(-110%); opacity: 0; }
.sign-line:focus-within .lt-input:placeholder-shown + .sign-flag .sf-b { transform: none; opacity: 1; }
.sign-line:focus-within .lt-input:placeholder-shown + .sign-flag { background: #EFE8F8; }
/* copy link: label rolls to "Copied" and back */
.btn-copy .roll { display: inline-grid; overflow: hidden; }
.btn-copy .roll > span { grid-area: 1 / 1; text-align: center; transition: transform .32s cubic-bezier(.3, 1.35, .45, 1); }
.btn-copy .roll > span + span { transform: translateY(110%); }
.btn-copy.is-copied { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-copy.is-copied .roll > span:first-child { transform: translateY(-110%); }
.btn-copy.is-copied .roll > span + span { transform: none; }
/* stats ticker: digits roll into place once */
.tick { display: inline-flex; align-items: baseline; }
.tick-col { position: relative; display: inline-block; height: 1em; line-height: 1; clip-path: inset(-.06em -.4em -.26em -.4em); }
.tick-col > i { visibility: hidden; font-style: normal; }
.tick-strip { position: absolute; left: 50%; top: 0; display: grid; justify-items: center; translate: -50% 0; line-height: 1; will-change: transform; }
.tick-strip > span { height: 1.4em; line-height: 1; }  /* 1.4em steps keep the old-style figure descenders apart */
/* stress meter: the marker swings to the score with a little overshoot */
.toast-mark.swing { transition: left 1.1s cubic-bezier(.25, 1.25, .4, 1); }
@media (prefers-reduced-motion: reduce) { .sign-flag > span, .btn-copy .roll > span, .toast-mark.swing { transition: none; } }

/* ---------- chat with Kozy (v7/pages/chat.html) ---------- */
.kc-stage { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 32px) 0 calc(clamp(70px, 11vw, 150px) + 24px); background: var(--sky); }

.kc-grid { display: grid; gap: 18px; }
.kc-intro { display: grid; gap: 10px; align-content: center; }
.kc-intro .eyebrow { margin: 0; }
.kc-intro h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 3.2rem); line-height: 1.05; }
.kc-art, .kc-intro .lead, .kc-points, .kc-intro .badges { display: none; }
.kc-points { list-style: none; margin: 8px 0 4px; padding: 0; max-width: 34ch; }
.kc-points li { padding: 12px 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink); }
.kc-points li:first-child { border-top: 1px solid var(--rule-strong); }
.kc-intro .badges { justify-content: flex-start; margin-top: 10px; }

.kc-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100svh - var(--nav-h) - 128px); min-height: 460px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 20px; overflow: hidden; }
.kc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.kc-avatar { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule-strong); overflow: hidden; }
.kc-avatar img { width: 40px; height: auto; margin-bottom: -2px; }
.kc-who { flex: 1; min-width: 0; }
.kc-who h2 { margin: 0; font-size: 1.25rem; line-height: 1.1; }
.kc-who p { margin: 2px 0 0; font-size: .875rem; color: var(--sub); }
.kc-quota { flex: none; display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--plum); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#quotaText { display: inline-block; }
#quotaText.bump { animation: kc-bump .42s cubic-bezier(.3, 1.4, .45, 1); }
@keyframes kc-bump { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }

.kc-messages { overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px; background: var(--page); scroll-behavior: smooth; }
.kc-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.kc-page .msg { display: flex; flex-direction: column; gap: 4px; max-width: 86%; animation: kc-in .34s cubic-bezier(.3, 1.3, .45, 1) both; }
.kc-page .msg-kozy { align-self: flex-start; transform-origin: 0 100%; }
.kc-page .msg-user { align-self: flex-end; align-items: flex-end; transform-origin: 100% 100%; }
.kc-bubble { padding: 11px 15px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg-kozy .kc-bubble { background: var(--paper); border: 1px solid var(--rule-strong); border-bottom-left-radius: 6px; color: var(--ink); }
.msg-user .kc-bubble { background: var(--plum); color: #fff; border-bottom-right-radius: 6px; }
.msg-error .kc-bubble { background: #FDF0F0; border-color: #F2C4C4; color: #9B1C1C; }
.kc-meta { font-size: .75rem; color: var(--sub); padding: 0 6px; }
.kc-retry { align-self: flex-start; min-height: 36px; margin-top: 2px; padding: 0 14px; border: 1px solid #F2C4C4; border-radius: 999px; background: var(--paper); color: #9B1C1C; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; transition: background-color .15s ease; }
.kc-retry:hover { background: #FDF0F0; }
.kc-page .typing .kc-bubble { display: inline-flex; gap: 5px; align-items: center; padding: 15px 16px; }
.kc-page .typing .dot { width: 7px; height: 7px; border-radius: 50%; background: #9C86C2; animation: kc-type 1.2s infinite ease-in-out; }
.kc-page .typing .dot:nth-child(2) { animation-delay: .15s; }
.kc-page .typing .dot:nth-child(3) { animation-delay: .3s; }
.kc-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.kc-chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); color: var(--plum); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.kc-chip:hover { border-color: var(--plum); background: var(--surface); }
.kc-chip:active, .kc-send:active { transform: scale(.96); }

.kc-composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); }
.kc-composer form { max-width: 720px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; }
.kc-composer textarea { flex: 1; resize: none; min-height: 48px; max-height: 160px; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color .15s ease, background-color .15s ease; }
.kc-composer textarea::placeholder { color: #857A8C; }
.kc-composer textarea:focus { outline: none; border-color: var(--plum); background: var(--paper); }
.kc-send { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; background: var(--plum); color: #fff; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.kc-send svg { width: 20px; height: 20px; }
.kc-send:hover { background: var(--plum-2); }
.kc-send:disabled, .kc-composer textarea:disabled { opacity: .5; cursor: not-allowed; }
.kc-note { max-width: 720px; margin: 8px auto 0; font-size: .8125rem; color: var(--sub); text-align: center; }
.kc-note a { color: var(--plum); font-weight: 700; }

.kc-overlay { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 21, 38, .6); }
.kc-overlay.show { display: flex; }
.kc-dialog { width: min(100%, 460px); display: grid; justify-items: center; gap: 10px; padding: 28px 24px 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--rule-strong); text-align: center; animation: kc-in .34s cubic-bezier(.3, 1.3, .45, 1) both; }
.kc-dialog-art img { width: 110px; height: auto; }
.kc-dialog h2 { margin: 0; font-size: 1.6rem; }
.kc-dialog h2:focus { outline: none; }
.kc-dialog p { margin: 0 0 6px; color: var(--sub); }
.kc-home { margin-top: 6px; }

@keyframes kc-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes kc-type { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .kc-page .msg, .kc-dialog, #quotaText.bump, .kc-page .typing .dot { animation: none; } .kc-messages { scroll-behavior: auto; } }

@media (max-width: 599px) { .kc-quota-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .kc-quota::after { content: "left"; } }
@media (min-width: 960px) {
  .kc-stage { padding-top: calc(var(--nav-h) + 44px); }
  .kc-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 64px); align-items: center; }
  .kc-art { display: block; width: clamp(150px, 14vw, 200px); margin-bottom: 4px; }
  .kc-art img { width: 100%; height: auto; }
  .kc-intro .lead, .kc-points { display: block; }
  .kc-intro .badges { display: flex; }
  .kc-panel { height: min(780px, calc(100svh - var(--nav-h) - 80px)); min-height: 540px; }
  .kc-messages { padding: 24px; }
  .kc-head { padding: 14px 20px; }
  .kc-composer { padding: 12px 20px 14px; }
}
.kc-grid { position: relative; z-index: 1; }
/* cooked button: Kozy peeks up from the button's own bottom edge, no separate tile */
.cooked { position: relative; overflow: hidden; gap: 0; min-height: 52px; padding: 0 18px 0 64px; }
.cooked-kozy { position: absolute; left: 12px; bottom: 0; width: 44px; height: auto; display: block; border-radius: 0; background: none; overflow: visible; transition: transform .3s cubic-bezier(.3, 1.4, .45, 1); }
.cooked-kozy img { display: block; width: 44px; height: auto; margin-bottom: -3px; }
.cooked:hover .cooked-kozy, .cooked:focus-visible .cooked-kozy { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .cooked-kozy { transition: none; } }
/* "anonymous": Kozy peeks over the top of the word, paws on the letters; he ducks behind the word's top edge */
.anon { position: relative; display: inline-block; }
.anon-kozy { position: absolute; left: 50%; bottom: .66em; width: .92em; height: .56em; translate: -50% 0; overflow: hidden; cursor: pointer; }
.anon-kozy img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.kc-avatar { align-items: center; background: var(--surface); }
.kc-avatar img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
/* hug + chat pages: one sky runs straight into the footer's hills (no second strip of ground) */
.kc-stage, .hug-open { padding-bottom: clamp(24px, 4vw, 48px); }
.anon-kozy, .anon-kozy:hover { background: none !important; border: 0 !important; }
/* hug + chat pages: one sky runs straight into the footer's hills (no second strip of ground) */
.kc-stage, .hug-open { padding-bottom: clamp(16px, 3vw, 32px); }
.kc-avatar img { object-fit: contain; }
/* cooked: bigger Kozy, eyes closer to the text line */
.cooked { min-height: 58px; padding: 6px 20px 0 96px; font-size: 1.0625rem; }
.cooked-kozy { left: 14px; width: 74px; }
.cooked-kozy img { width: 74px; margin-bottom: -4px; }

/* hug page: the addressed front of the envelope flips to the sealed back */
.hug-stage { perspective: 1400px; }
.hug-flip { position: relative; display: grid; width: min(100%, 420px); transform-style: preserve-3d; }
.hug-flip > * { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .75s cubic-bezier(.45, .05, .25, 1); }
.env-back-face { transform: rotateY(180deg); }
.env-back-face .env-float { width: 100%; }
.is-flipped .env-face { transform: rotateY(-180deg); }
.is-flipped .env-back-face { transform: rotateY(0deg); }
.env-face { position: relative; align-self: end; aspect-ratio: 420 / 170; padding: 6% 7%; background: #EFE6F8; border: 2.4px solid #2C2C34; border-radius: 14px; color: var(--plum); container-type: inline-size; }
.ef-return { position: absolute; left: 6%; top: 9%; margin: 0; font-size: 3.1cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; color: var(--eyebrow); }
.ef-stamps { position: absolute; right: 5%; top: 9%; display: flex; align-items: center; }
.ef-stamps .pc-stamp { width: 15cqw; height: auto; transform: rotate(4deg); }
.ef-stamps .pc-postmark { width: 26cqw; height: auto; margin-right: -9cqw; position: relative; z-index: 1; transform: rotate(-8deg); }
.ef-addr { position: absolute; left: 30%; right: 8%; bottom: 13%; display: grid; gap: 1.6cqw; }
.ef-addr p { margin: 0; padding-bottom: 1.2cqw; border-bottom: 1.5px solid #B9A6D6; }
.ef-to { font-family: var(--serif); font-size: 7.4cqw; line-height: 1.05; }
.ef-from { font-size: 3.6cqw; color: var(--sub); }
.ef-from span { font-family: var(--serif); color: var(--plum); font-size: 4.4cqw; }
@media (prefers-reduced-motion: reduce) { .hug-flip > * { transition: none; } }
.ef-stamps .pc-postmark { width: 36cqw; margin-right: -15cqw; transform: rotate(-10deg); }
.ef-stamps .pc-stamp { width: 16cqw; }
.cooked:hover .cooked-kozy, .cooked:focus-visible .cooked-kozy { transform: none; }  /* paws stay on the edge: no lift, no gap */

/* ---------- hero: official Kozy (Artboard 5) with his real eyes as layers, and a tiny real chat ---------- */
.kozy-hero { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kh-eye { position: absolute; z-index: 2; display: block; will-change: transform; pointer-events: none; }
.kh-eye img { display: block; width: 100%; height: 100%; transform-origin: 50% 55%; }
.kh-eye.blink img { animation: kh-blink .18s ease-in-out; }
@keyframes kh-blink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(.08); } }
.kozy-group { width: clamp(170px, 15vw, 230px); }
.bubble { display: none; }
.hero-chat { position: absolute; z-index: 4; left: 86%; bottom: 58%; display: grid; justify-items: start; gap: 8px; width: max-content; max-width: min(300px, 42vw); cursor: pointer; text-align: left; }


.hc-kozy { background: #fff; color: var(--ink); border: 2.5px solid #2C2C34; border-bottom-left-radius: 6px; }
.hc-you { justify-self: end; background: var(--plum); color: #fff; border: 2.5px solid var(--plum); border-bottom-right-radius: 6px; }
.hc-typing.is-on { display: inline-flex; gap: 5px; align-items: center; padding: 13px 15px; }
.hc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9C86C2; animation: kc-type 1.2s infinite ease-in-out; }
.hc-typing i:nth-child(2) { animation-delay: .15s; } .hc-typing i:nth-child(3) { animation-delay: .3s; }

@media (max-width: 767px) {
  /* phones: one message at a time, above Kozy's head */
  .hero-chat { left: 50%; bottom: 100%; transform: translateX(-50%); justify-items: center; max-width: min(260px, 80vw); }
  
  .hc-you { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {  .hc-typing i, .kh-eye.blink img { animation: none; } }

/* join us: Kozy leans back-to-back on the listener, faces you, blinks and winks */


.kz-lean { position: relative; z-index: 1; margin-left: clamp(-58px, -4.4vw, -34px); margin-bottom: 2px; transform: rotate(-9deg); transform-origin: 30% 100%; }
.kz-lean img { width: clamp(124px, 14.5vw, 196px); height: auto; display: block; }
.kz-lean .kh-eye img { width: 100%; height: 100%; }
.kh-eye.wink img { animation: kh-wink .62s ease-in-out; }
@keyframes kh-wink { 0%, 100% { transform: scaleY(1); } 18%, 72% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .kh-eye.wink img { animation: none; } }
/* teams: the desk scene lines up with the text block (bottom on the buttons' line), it has its own ground */

/* hero chat clears Kozy's head: it starts right of his waving paw */
@media (min-width: 768px) { .hero-chat { left: 104%; bottom: 46%; } }

/* join us (static): Kozy stands just behind the listener's back, a slight lean toward him */
.kz-lean { transform: rotate(-4deg); transform-origin: 20% 100%; margin-left: clamp(-70px, -5vw, -40px); }
@media (min-width: 768px) { .hero-chat { max-width: min(260px, 22vw); } }
/* statement: same breathing room above and below now that the stats are gone; taller lines so the chips and Kozy never touch a neighbouring line */
.statement { padding: clamp(72px, 9vw, 128px) 0 clamp(72px, 9vw, 128px); }
.big-line { line-height: 1.3; }
.anon-kozy { width: .82em; height: .56em; bottom: .62em; }
.statement { padding-bottom: calc(clamp(72px, 9vw, 128px) + 56px); }
/* join us: one illustration, the listener and Kozy back to back */

/* tile art sits on the tile's bottom edge, edge to edge */
.row-art { display: flex; align-items: flex-end; justify-content: center; }
.row-art img { width: 90%; height: 90%; object-fit: contain; object-position: 50% 100%; display: block; }
/* article header art sits on the box's bottom edge too, like the tiles */
.article-art { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0 !important; }
.article-art img { display: block; width: auto; max-width: 86%; height: auto; max-height: 86%; object-fit: contain; object-position: 50% 100%; }
.article-art picture { display: contents; }
/* the headphones cover has no ground line: keep it centred in its box */
/* phones: one steady bubble above Kozy's head, same width each time, a tail pointing down at him, clear of his ears */
@media (max-width: 767px) {
  .hero-chat { bottom: calc(100% + 16px); width: min(250px, 74vw); max-width: none; justify-items: center; }
  
  .hc-typing.is-on.is-latest { width: auto; justify-content: center; padding: 13px 20px; }
  
}
/* backers: one straight line at every width; greyscale until hovered (or tapped on phones) */
.backers { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0 clamp(10px, 3vw, 24px); }
.backers li { height: clamp(40px, 9vw, 56px); width: 100%; min-width: 0; }
.backers img { max-width: 100%; max-height: clamp(28px, 7vw, 52px); }
@media (hover: none) { .backers img { filter: grayscale(1); opacity: .75; } }
.backers li.is-tapped img { filter: none; opacity: 1; }
.backers li > * { display: flex; align-items: center; justify-content: center; max-width: 100%; min-width: 0; height: 100%; }
.backers li picture { display: contents; }
.backers img { width: auto; height: auto; object-fit: contain; }
/* phones: no help button in the bar (the menu has it), footer flows instead of stacking on the wordmark */
.nav-help { display: none; }
@media (max-width: 1023px) { .nav.is-open .nav-links .nav-help { display: block; margin-top: 4px; border-top: 1px solid var(--rule); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--plum); font-weight: 700; } }
@media (max-width: 767px) {
  .help-pill { display: none; }
  .nav-menu { margin-left: auto; }
}

/* ---------- phones/tablets: menu is a drawer from the left (about 70% wide, the rest dimmed) ---------- */
.drawer-head, .drawer-foot, .nav-scrim { display: none; }
@media (max-width: 1023px) {
  .nav-links, .nav.is-open .nav-links {
    display: flex; flex-direction: column; position: fixed; z-index: 81; top: 0; bottom: 0; left: 0; right: auto;
    width: min(70vw, 340px); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); margin: 0;
    background: var(--paper); border: 0; border-right: 1px solid var(--rule-strong); border-radius: 0 20px 20px 0;
    transform: translateX(-104%); visibility: hidden; overflow-y: auto; pointer-events: auto;
    transition: transform .34s cubic-bezier(.3, .8, .3, 1), visibility 0s linear .34s;
  }
  .nav.is-open .nav-links { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.3, .8, .3, 1), visibility 0s; }
  .nav-links a, .nav.is-open .nav-links a { display: block; padding: 14px 10px; font-size: 1.0625rem; color: var(--ink); border-radius: var(--r-sm); }
  .nav-links a[aria-current="page"] { color: var(--plum); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 14px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
  .drawer-head img { height: 34px; width: auto; }
  .drawer-close { position: relative; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--btn-r); background: var(--paper); cursor: pointer; }
  .drawer-close span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--plum); transform: rotate(45deg); }
  .drawer-close span + span { transform: rotate(-45deg); }
  .nav.is-open .nav-links .nav-help, .nav-links .nav-help { display: block; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); border-radius: 0; color: var(--plum); font-weight: 700; }
  .drawer-foot { display: block; padding-top: 12px; }
  .drawer-foot .btn { display: flex; justify-content: center; width: 100%; color: #fff; padding: 14px 18px; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(30, 21, 38, .45); opacity: 0; visibility: hidden; pointer-events: auto; transition: opacity .3s ease, visibility 0s linear .3s; }
  .nav.is-open .nav-scrim { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
  html.nav-locked { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .nav-links, .nav.is-open .nav-links, .nav-scrim { transition: none !important; } }
@media (max-width: 1023px) { .nav .nav-links .drawer-foot a.btn, .nav.is-open .nav-links .drawer-foot a.btn { color: #fff; font-weight: 700; } }
@media (max-width: 1023px) { .nav .nav-links .drawer-foot a.btn { display: block; text-align: center; } }
/* drawer opens from the right, next to the menu button */
@media (max-width: 1023px) {
  .nav-links, .nav.is-open .nav-links { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--rule-strong); border-radius: 20px 0 0 20px; }
  .nav-links { transform: translateX(104%); }
  .nav.is-open .nav-links { transform: none; }
}

/* ---------- chat (Lizzy uses msg-bot) ---------- */
.kc-page .msg-bot { align-self: flex-start; transform-origin: 0 100%; }
.msg-bot .kc-bubble { background: var(--paper); border: 1px solid var(--rule-strong); border-bottom-left-radius: 6px; color: var(--ink); }
.kc-avatar img[src^="http"] { width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* ---------- web tools: Color Check and Diary ---------- */
.tl-page { --happy: #FFCC00; --excited: #FF6801; --sad: #5C76A9; --angry: #B31B1A; --bored: #8C9C9C; --fear: #6E4685; --pos: #2F7552; --neu: #A79CB0; --neg: #B3324A; }
:root { --happy: #FFCC00; --excited: #FF6801; --sad: #5C76A9; --angry: #B31B1A; --bored: #8C9C9C; --fear: #6E4685; --pos: #2F7552; --neu: #A79CB0; --neg: #B3324A; }
.tl-grid { align-items: start; }

.mini-palette { display: none; gap: 6px; margin-top: 6px; }
.mini-palette span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #2C2C34; }
@media (min-width: 960px) {  .mini-palette { display: flex; } }

.tl [hidden] { display: none !important; }
.tl { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 20px; overflow: hidden; }
.tl .panel-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.tl .panel-header h2 { margin: 0; flex: 1; font-size: 1.35rem; }
.tl .step-pill, .tl .date-pill { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--plum); font-size: .8125rem; font-weight: 700; }
.tl .progress { height: 4px; background: var(--surface); }
.tl .progress span { display: block; height: 100%; width: 0; background: var(--plum); transition: width .45s cubic-bezier(.3, .8, .3, 1); }
.tl .content { padding: clamp(20px, 3.4vw, 32px); outline: none; }
.tl .step, .tl .view { display: grid; gap: 14px; align-content: start; }
.tl h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.15; outline: none; }
.tl h4 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 1.15rem; }
.tl .lead { margin: 0; max-width: 60ch; font-size: 1rem; color: var(--sub); }
.tl .disclaimer { margin: 8px 0 0; font-size: .8125rem; color: var(--sub); }
.tl .disclaimer a { color: var(--plum); font-weight: 700; }
.tl .card { margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); background: none; }
.tl form.card { border-top: 0; padding-top: 0; display: grid; gap: 18px; }
.tl .field { display: grid; gap: 8px; }
.tl .field label, .tl legend, .tl .prompt-row label { font-weight: 700; font-size: .9375rem; color: var(--ink); padding: 0; }
.tl fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl .input, .tl .entry { width: 100%; max-width: 220px; min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--paper); font: inherit; color: var(--ink); }
.tl .entry { max-width: none; min-height: 200px; padding: 14px; line-height: 1.55; resize: vertical; }
.tl .input:focus, .tl .entry:focus { outline: none; border-color: var(--plum); }
.tl .hint, .tl .meta-row { margin: 0; font-size: .8125rem; color: var(--sub); }
.tl .meta-row { display: flex; justify-content: space-between; gap: 10px; }
.tl .error { margin: 0; font-size: .875rem; font-weight: 600; color: #9B1C1C; }
.tl .options { display: flex; flex-wrap: wrap; gap: 8px; }
.tl .option { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); font-weight: 600; color: var(--plum); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tl .option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl .option:hover { border-color: var(--plum); }
.tl .option:has(input:checked) { background: var(--plum); border-color: var(--plum); color: #fff; }
.tl .option:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.tl .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tl .btn-primary, .tl .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--btn-r); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tl .btn-primary { background: var(--plum); color: #fff; border: 1px solid var(--plum); }
.tl .btn-primary:hover { background: var(--plum-2); }
.tl .btn-ghost { background: var(--paper); color: var(--plum); border: 1px solid var(--plum); }
.tl .btn-ghost:hover { background: var(--surface); }
.tl .btn-primary:disabled, .tl .btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.tl .notice { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: .9375rem; }
.tl .notice.err { background: #FDF0F0; color: #9B1C1C; font-weight: 600; outline: none; }
.tl .badges { justify-content: flex-start; }

/* color check */
.tl .swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; margin-top: 4px; }
.tl .swatch { display: grid; justify-items: center; gap: 8px; padding: 10px 4px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; color: var(--ink); cursor: pointer; transition: background-color .15s ease; }
.tl .swatch:hover:not(:disabled) { background: var(--surface); }
.tl .swatch .chip-color { position: relative; width: clamp(48px, 9vw, 64px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #2C2C34; }
.tl .swatch .badge { position: absolute; margin-top: clamp(14px, 2.6vw, 20px); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--plum); font-weight: 700; font-size: .875rem; line-height: 26px; text-align: center; border: 2px solid #2C2C34; }
.tl .swatch .badge:empty { display: none; }
.tl .swatch .name { font-weight: 600; font-size: .875rem; }
.tl .swatch:disabled { cursor: default; }
.tl .swatch:disabled .chip-color { opacity: .35; }
.tl .tray-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-weight: 700; color: var(--ink); }
.tl .tray-label small { font-weight: 600; color: var(--sub); }
.tl .tray { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tl .tray li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1.5px dashed var(--rule-strong); border-radius: var(--r-sm); font-size: .875rem; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; white-space: nowrap; }
.tl .tray li .dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--sub); font-size: .75rem; font-weight: 700; }
.tl .tray li.filled { border-style: solid; border-color: var(--rule-strong); }
.tl .tray li.filled .dot { border: 1.5px solid #2C2C34; }
@media (max-width: 520px) { .tl .tray { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl .loading { justify-items: center; text-align: center; padding: 28px 0; }
.tl .orbit { position: relative; width: 96px; height: 96px; margin-bottom: 8px; animation: tl-orbit 6s linear infinite; }
.tl .orbit span { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 1.5px solid #2C2C34 !important; }
@keyframes tl-orbit { to { rotate: 360deg; } }
.tl .order-strip { display: flex; height: 14px; border-radius: 999px; overflow: hidden; border: 1.5px solid #2C2C34; }
.tl .order-strip span { flex: 1; }
.tl .report { display: grid; }
.tl .report-card { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.tl .report-card p { margin: 0; line-height: 1.6; color: var(--ink); }
.tl .report-card.locked { position: relative; }
.tl .lock-tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--plum); font-size: .75rem; font-weight: 700; }
.tl .fake { display: grid; gap: 8px; }
.tl .fake span { display: block; height: 10px; border-radius: 999px; background: var(--rule); }
.tl .fake span:nth-child(1) { width: 92%; } .tl .fake span:nth-child(2) { width: 78%; } .tl .fake span:nth-child(3) { width: 56%; }
.tl .unlock { display: grid; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--surface); }
.tl .unlock p { margin: 0; color: var(--sub); }

/* diary */
.tl .prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl .link-btn { border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 700; font-size: .875rem; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tl .prompt-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-family: var(--serif); color: var(--plum); }
.tl .prompt-box span { flex: 1; }
.tl .icon-btn { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--plum); border-radius: 999px; background: var(--paper); font: inherit; font-family: var(--sans); font-size: .8125rem; font-weight: 700; color: var(--plum); cursor: pointer; }
.tl-dots { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.tl-dots i { width: 10px; height: 10px; border-radius: 50%; background: #9C86C2; animation: kc-type 1.2s infinite ease-in-out; }
.tl-dots i:nth-child(2) { animation-delay: .15s; } .tl-dots i:nth-child(3) { animation-delay: .3s; }
.tl .entry-quote { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); font-family: var(--serif); color: var(--plum); line-height: 1.55; }
.tl .entry-quote button { margin-top: 6px; border: 0; background: none; padding: 0; font: inherit; font-family: var(--sans); font-size: .8125rem; font-weight: 700; color: var(--plum); text-decoration: underline; cursor: pointer; }
.tl .grid2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tl .grid2 .card { margin: 0; padding: 16px 0; border: 0; }
.tl .grid2 .card + .card { padding-left: 18px; border-left: 1px solid var(--rule); }
.tl .stat .label { display: block; margin-bottom: 8px; color: var(--eyebrow); }
.tl .mood { display: flex; align-items: center; gap: 10px; }
.tl .mood-icon { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #2C2C34; }
.tl .mood-icon i { display: none; }
.tl .mood-name, .tl .stress-value strong { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 1.35rem; }
.tl .stress-value { display: flex; align-items: baseline; gap: 8px; }
.tl .stress-value .small { font-size: .8125rem; }
.tl .meter { position: relative; height: 8px; margin-top: 12px; border-radius: 999px; background: var(--surface); }
.tl .meter span { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--plum); border: 2px solid #fff; outline: 1px solid var(--plum); transition: left .9s cubic-bezier(.25, 1.2, .4, 1); }
.tl .section-title { margin-bottom: 12px; }
.tl .stack-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface); }
.tl .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .8125rem; color: var(--sub); }
.tl .legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl .legend i { width: 10px; height: 10px; border-radius: 3px; }
.tl .emotions { display: grid; gap: 10px; }
.tl .emo { display: grid; grid-template-columns: 84px 1fr 44px; gap: 12px; align-items: center; font-size: .9375rem; }
.tl .emo-name i { display: none; }
.tl .emo-track { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.tl .emo-track span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .8s cubic-bezier(.3, .8, .3, 1); }
.tl .emo-val { text-align: right; font-weight: 700; color: var(--ink); }
.tl .reflection { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); }
.tl .reflection p { margin: 0; font-family: var(--serif); color: var(--plum); line-height: 1.55; }
.tl .support { padding: 18px; border: 0; border-radius: var(--r); background: var(--pink-tint); display: grid; gap: 8px; }
.tl .support p { margin: 0; }
.tl .cta { display: grid; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--surface); }
.tl .cta p { margin: 0; color: var(--sub); }
.tl .week { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.tl .week span { width: 14px; border-radius: 4px; background: var(--rule-strong); }
.tl .week span.today { background: var(--plum); }
.tl .cta .next { font-size: .8125rem; font-weight: 600; color: var(--plum); }
@media (prefers-reduced-motion: reduce) { .tl .orbit, .tl-dots i { animation: none; } .tl .meter span, .tl .emo-track span, .tl .progress span { transition: none; } }
.tl #reportBody { display: grid; gap: 16px; }
.tl #reportBody > .lead { margin-top: -8px; }
.tl .grid2 { border-bottom: 0; }
.tl .grid2 + .card { margin-top: 0 !important; }
.tl .options label.option { padding: 0 16px; font-weight: 600; }
html { font-variant-numeric: lining-nums; }  /* Young Serif defaults to old-style figures (1 like I, 0 like o) */
/* statement pills: listening Kozy (head + cupped paw) and incognito Kozy, both sitting on the pill's bottom edge */
.chip-listen img { width: 1.08em; margin-bottom: -.06em; }
.chip-anon img { width: 1.02em; margin-bottom: -.1em; }
@media (min-width: 768px) { .big-line { max-width: 24ch; } }
/* send a hug: equal breathing room above and below. The empty status line (for "Link copied" etc.) takes no space until it has text,
   and on desktop the top gets back the 11px the washi tape pokes up. */



/* plan icons: one family, the site's Remix line icons in plum, each in the same round tile */
.plan-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule-strong); color: var(--plum); }
.plan-ico svg { width: 24px; height: 24px; display: block; }
.plan-row.plan-hi .plan-ico { background: var(--paper); }
/* teams pilot story: the site's pale-blue rounded card (as in Send a hug), not a full-bleed plum band */
.case-sec .case { padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4.5vw, 56px); border-radius: var(--r); background: var(--sky); }
.case-sec h2 { color: var(--plum); }
.case-sec .lead { margin-top: 14px; color: var(--sub); }
.case-sec .facts { border-top: 1px solid var(--rule-strong); }
.case-sec .facts li { border-bottom: 1px solid var(--rule-strong); }
.case-sec .facts b { color: var(--plum); }
.case-sec .facts span { color: var(--sub); }
.section.case-sec { padding-block: clamp(24px, 4vw, 56px); }
/* hero landscape: no fake shadow, Kozy in proportion, people at two depths, chat clear of the flowers */

.kozy-group { width: clamp(150px, 12.5vw, 196px); }
@media (min-width: 768px) {
         /* further back up the hill */
  
  
  .hero-chat { left: 108%; bottom: 62%; }
}
@media (min-width: 768px) {
  /* far pair: in front of the hills art, feet on the far (lighter) hill, a bit smaller */
  
  
  
  .hero-chat { bottom: 74%; }
}
/* 768–1279px: no room beside Kozy, so one bubble at a time above his head (same as phones) */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero-chat { left: 50%; right: auto; bottom: calc(100% + 16px); transform: translateX(-50%); width: min(250px, 30vw); max-width: none; justify-items: center; }
  
  
  .hc-typing.is-on.is-latest { width: auto; justify-content: center; padding: 13px 20px; }
  
  .hc-you { justify-self: center; }
}
/* no tiny all-caps labels anywhere: sentence case, normal tracking, readable size */
.eyebrow, .label, .outlet, .backers-h, .quiz-count, .lt-for, .ef-return, .tl .stat .label {
  text-transform: none !important; letter-spacing: 0 !important;
}
.eyebrow { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.label { font-size: .875rem; font-weight: 600; }
.outlet { font-size: .9375rem; font-weight: 600; }
.backers-h { font-size: 1rem; font-weight: 600; }
.quiz-count { font-size: .9375rem; font-weight: 600; }
.lt-for { font-size: .9375rem; font-weight: 600; }
.tl .stat .label { font-size: .9375rem; }
.ef-return { font-size: 3.6cqw; font-weight: 600; }
/* footer Kozy lands on the top edge of the footer card, at every width */

/* ---------- hero: the painted park (a still painting) with the copy centred over it ---------- */
.hero.park-hero { position: relative; isolation: isolate; min-height: clamp(640px, 92vh, 900px); padding: calc(var(--nav-h) + 52px) 0 64px; background: #A9BF5E; text-align: center; overflow: hidden; }
.pr-world { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #A9BF5E; }
.hz-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.pr-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; }
.pr-copy h1 { margin: 0; font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: .96; letter-spacing: -.02em; color: var(--plum); max-width: 12ch; }
.pr-copy .lead { margin: 0; max-width: 32ch; color: #2E3B16; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; }
.pr-copy .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.pr-copy .btn-sec { background: #FFF9F2; }
.park-proof { margin: 0; padding: 6px 14px; border-radius: 999px; background: #FFF9F2; color: var(--plum); font-size: .9375rem; font-weight: 600; }
@media (max-width: 767px) {
  .hero.park-hero { min-height: 760px; padding-top: calc(var(--nav-h) + 36px); }
}

/* hero park (js/hero.js): the poster is the first paint; the live lawn (canvas) and sprites fade in over it */
.hz-poster, .hz-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hz-gl { opacity: 0; transition: opacity .6s ease; }
.hz-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hz.is-live .hz-gl, .hz.is-live .hz-stage { opacity: 1; }
.hz.is-live .hz-poster { visibility: hidden; transition: visibility 0s .7s; }
.hz-a, .hz-k { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }
.hz-k { width: 0; height: 0; transform-origin: 0 0; }
.hz-sp, .hz-sh { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; }
.hz-v { position: absolute; transform-origin: 50% 50%; }
.hz-pose { opacity: 0; transition: opacity .16s linear; }
.hz-pose.on { opacity: 1; }
.hz-pose.on.bounce { animation: hz-bounce .62s ease-in-out infinite; }
@keyframes hz-bounce { 0%, 100% { translate: 0 0; scale: 1 1; } 45% { translate: 0 -22px; scale: .97 1.04; } 70% { translate: 0 0; scale: 1.05 .95; } }
@keyframes hz-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.014; } }
@keyframes hz-flower { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes hz-cyc { from { background-position-x: 0%; } to { background-position-x: 100%; } }
@keyframes hz-flap { from { background-position-x: 0%; } to { background-position-x: 100%; } }
@keyframes hz-happy { 0%, 100% { scale: 1; rotate: 0deg; } 20% { scale: 1.05; rotate: -2deg; } 45% { scale: 1.035; rotate: 2deg; } 70% { scale: 1.04; rotate: -1deg; } }
.hz-happy { animation: hz-happy 1.4s ease-in-out 1 !important; }
.hz-fx { position: absolute; z-index: 1250; width: 22px; height: 20px; background: center / contain no-repeat; opacity: 0; animation: hz-rise 2.4s ease-out forwards; }
.hz-heart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 15.4C9 15.4 .6 10.3 .6 4.9 .6 2.4 2.5.6 4.8.6 6.6.6 8.1 1.7 9 3.2 9.9 1.7 11.4.6 13.2.6 15.5.6 17.4 2.4 17.4 4.9 17.4 10.3 9 15.4 9 15.4Z' fill='%23F06C9C'/%3E%3C/svg%3E"); }
.hz-note { width: 15px; height: 21px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 18'%3E%3Cpath d='M5 1.2 12.4 0v11.6a3 2.4 0 1 1-1.6-2.1V3.4L6.6 4.1v9.6A3 2.4 0 1 1 5 11.6Z' fill='%233F4A78'/%3E%3C/svg%3E"); }
@keyframes hz-rise { 0% { opacity: 0; translate: 0 0; scale: .4; } 14% { opacity: 1; scale: 1.1; } 70% { opacity: .9; } 100% { opacity: 0; translate: var(--dx, 0px) -90px; scale: 1; } }
.hz-leaf { position: absolute; z-index: 1240; background: center / contain no-repeat; opacity: 0; animation: hz-fall linear 1 forwards; }
@keyframes hz-fall {
  0% { opacity: 0; translate: 0 0; rotate: 0deg; }
  6% { opacity: .95; }
  25% { translate: calc(var(--dx) * .25 + var(--sw)) calc(var(--dy) * .22); }
  50% { translate: calc(var(--dx) * .5 - var(--sw)) calc(var(--dy) * .5); rotate: calc(var(--r) * .5); }
  75% { translate: calc(var(--dx) * .75 + var(--sw)) calc(var(--dy) * .76); }
  94% { opacity: .95; }
  100% { opacity: 0; translate: var(--dx) var(--dy); rotate: var(--r); }
}
.pr-world .hz-branch { position: absolute; z-index: 5; right: -3%; top: -6%; width: min(30vw, 440px); height: auto; transform-origin: 96% 4%; animation: hz-sway 9s ease-in-out infinite; pointer-events: none; }
@keyframes hz-sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.4deg; } }
.hz.is-paused *, .hz.is-paused *::after { animation-play-state: paused !important; }
html.hz-shot .hz { position: fixed !important; inset: 0 !important; z-index: 99999 !important; }
html.hz-shot main > :not(.hz-run), html.hz-shot body > :not(main):not(script), html.hz-shot .pr-wrap { display: none !important; }
@media (max-width: 767px) { .hero.park-hero { min-height: max(780px, 100svh); } }

/* the hero melts into the next section: a short soft edge always, and while the page scrolls the hero holds for about half a screen
   and a cream veil (the page colour) rises over the lawn from the bottom (hero.js scrubs its opacity). Without JS or with reduced motion: just the soft edge. */
.hero.park-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: calc(12% + 2px); pointer-events: none; background: linear-gradient(to bottom, rgba(255,249,242,0), #FFF9F2); }
.hz-veil { position: absolute; inset: 0 0 -2px; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, rgba(255,249,242,0) 50%, rgba(255,249,242,.9) 82%, #FFF9F2 96%); }
.hz-run.is-pinned::after { content: ""; display: block; height: 55svh; }
.hz-run.is-pinned > .hero.park-hero { position: sticky; top: 0; }

/* a soft cream glow behind the proof pill, headline, lead and buttons, so the copy reads on any part of the lawn; sized to the copy so the people beside it stay clear */
.pr-copy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(720px, 124vw); height: calc(100% + 180px); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse closest-side, rgba(255,249,242,.86) 0%, rgba(255,249,242,.62) 55%, rgba(255,249,242,0) 100%); }
/* the hero ends between two screen pixels at 125% scaling and odd window heights: the fade and veil overdraw the edge by 2px (the hero clips them) and the next section overlaps it by 2px, so no row of lawn shows as a thin line */
.hz-run + .statement { position: relative; margin-top: -2px; padding-top: calc(clamp(72px, 9vw, 128px) + 2px); background: var(--page); }

/* ---------- footer: the hero's painted lawn (same grass, grain and dapples), a cream blanket with the links, Kozy asleep beside it ---------- */
.foot { position: relative; background: var(--page); }
.foot-sky { --foot-top: var(--sky); background: var(--sky); }
.foot-lawn { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 8vw, 110px) var(--gutter) clamp(200px, 19vw, 260px);
  background: #A9BF5E url("../hero/foot-lawn.webp") 62% 100% / cover no-repeat; }
.foot-lawn::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: clamp(80px, 9vw, 130px); pointer-events: none; background: linear-gradient(to bottom, var(--foot-top, var(--page)), transparent); }
.foot-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fa { position: absolute; display: block; }
.fa .ps { --ps-w: 100%; }
.fa-kozy { right: max(var(--gutter), calc(50% - 540px)); bottom: clamp(26px, 3.2vw, 48px); width: clamp(104px, 10.5vw, 152px); rotate: -8deg; animation: hz-breathe 5.5s ease-in-out infinite; }
.fa-f1 { left: max(var(--gutter), calc(50% - 560px)); bottom: clamp(44px, 5vw, 74px); width: clamp(56px, 5.4vw, 82px); }
.fa-f2 { left: max(calc(var(--gutter) + 90px), calc(50% - 440px)); bottom: clamp(26px, 3vw, 44px); width: clamp(44px, 4vw, 62px); }
.fa-f3 { right: max(calc(var(--gutter) + 130px), calc(50% - 360px)); bottom: clamp(38px, 4vw, 60px); width: clamp(58px, 5vw, 76px); }
.foot-blanket { position: relative; z-index: 2; max-width: 1140px; margin-inline: auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: var(--page);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); gap: 28px 40px; align-items: start; }
.foot-brand { display: grid; justify-items: start; gap: 10px; }
.foot-mark { display: block; }
.foot-mark img { display: block; width: 128px; height: auto; }
.foot-tag { margin: 0; max-width: 22ch; color: var(--sub); font-size: .9375rem; line-height: 1.45; }
.foot-brand .social { margin-left: -10px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.foot-h { margin: 0 0 4px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; color: var(--plum); }
.foot-col ul { display: grid; margin: 0; padding: 0; list-style: none; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.foot-col a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
.foot-fine { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--sub); }
@media (max-width: 1023px) { .foot-blanket { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-f2 { display: none; }
  .fa-kozy { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .fa-kozy { animation: none; } }

/* ---------- page heroes (teams, listen, blog, legal, stress check, chat, Lizzy, Color Check, Diary): the home hero's lawn, a cream glow behind the copy,
   one painted sprite lying on the grass, and a soft fade into the page below ---------- */
.pagehead, .kc-stage { background: #A9BF5E url("../hero/page-lawn.webp") 50% 0 / cover no-repeat; }
.pagehead::after, .kc-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; height: clamp(56px, 7vw, 96px); pointer-events: none; background: linear-gradient(to bottom, transparent, var(--fade, var(--page))); }
.pagehead:has(+ .tint) { --fade: var(--surface); }
.ph-grid { align-items: center; padding-bottom: clamp(64px, 8vw, 104px); }
.ph-art { margin-bottom: 0; min-height: 0; justify-content: center; }
.kc-stage { padding-bottom: clamp(64px, 8vw, 104px); }
.ph-copy, .kc-intro { position: relative; }
.ph-copy::before, .kc-intro::before { content: ""; position: absolute; z-index: -1; inset: -48px -72px; pointer-events: none;
  background: radial-gradient(ellipse closest-side, rgba(255,249,242,.86) 0%, rgba(255,249,242,.62) 55%, rgba(255,249,242,0) 100%); }
.pagehead .eyebrow, .kc-stage .eyebrow { justify-self: start; padding: 5px 14px; border-radius: 999px; background: var(--page); color: var(--plum); font-size: .9375rem; font-weight: 600; }
.pagehead .lead, .kc-stage .lead { color: #2E3B16; font-weight: 500; }
.pagehead .btn-sec { background: var(--page); }
.kc-intro { justify-items: start; }
.kc-points li { color: #2E3B16; border-color: rgba(46, 59, 22, .28); }
.ps { position: relative; display: block; width: var(--ps-w, 340px); max-width: 100%; aspect-ratio: var(--aspect); rotate: var(--ps-rot, 0deg); }
.ps img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; }
.ps .ps-sh { translate: -5% 3.6%; }
.ps-teams { --ps-w: clamp(260px, 34vw, 480px); --ps-rot: -4deg; }
.ps-listen { --ps-w: clamp(260px, 33vw, 460px); --ps-rot: 3deg; }
.ps-blog { --ps-w: clamp(200px, 22vw, 320px); --ps-rot: -6deg; }
.ps-stress { --ps-w: clamp(150px, 18vw, 250px); --ps-rot: 10deg; }
.ps-legal { --ps-w: clamp(150px, 18vw, 250px); --ps-rot: -6deg; }
.kc-art { width: auto; }
.kc-art .ps { --ps-w: clamp(140px, 14vw, 200px); --ps-rot: -4deg; }
@media (max-width: 899px) { .ps-teams, .ps-listen { --ps-w: min(100%, 340px); } .ps-blog { --ps-w: min(100%, 240px); } }
.kc-art .ps-pg-palette { --ps-w: clamp(170px, 17vw, 240px); --ps-rot: -8deg; }
.kc-art .ps-pg-diary { --ps-w: clamp(190px, 18vw, 260px); --ps-rot: 5deg; }
.ps-legal { --ps-w: clamp(220px, 26vw, 360px); --ps-rot: -6deg; }

/* ---------- Send a hug: a postcard on the lawn (the same grass as the hero). The card is live HTML (note, signature); the stamp, tape, pencil,
   Kozy and the envelope are painted sprites. Sealing slips the card into the envelope; any edit takes it back out. ---------- */
.hm { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(28px, 4.5vw, 64px); border-radius: var(--r);
  background: #A9BF5E url("../hero/page-lawn.webp") 50% 100% / cover no-repeat; }
@media (min-width: 900px) { .hm { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hm-intro { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; }
.hm-intro::before { content: ""; position: absolute; z-index: -1; inset: -56px -72px; pointer-events: none;
  background: radial-gradient(ellipse closest-side, rgba(255,249,242,.86) 0%, rgba(255,249,242,.62) 55%, rgba(255,249,242,0) 100%); }
.hm-intro h2 { margin: 0; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1; }
.hm .deck-hint { margin: 0; max-width: 32ch; color: #2E3B16; font-size: 1.0625rem; font-weight: 500; }
.hm .deck-nav { justify-content: flex-start; margin: 4px 0 0; }
.hm .deck-btn, .hm .deck-dice { background: var(--page); }
.hm .deck-btn:hover, .hm .deck-dice:hover { background: #fff; }
.hm .send-act { display: grid; gap: 14px; width: min(100%, 440px); justify-items: stretch; margin-top: 6px; }
.hm .btn-hug { width: 100%; justify-content: center; min-height: 62px; padding: 8px 22px; font-size: 1.125rem; }
.hm .btn-hug.is-done { background: var(--plum); }
.hm .hug-ico { width: auto; height: auto; background: none; border-radius: 0; }
.hm .hug-seal { display: block; width: 44px; height: auto; transform: rotate(-8deg); }
.hm .share { background: var(--page); border: 0; }
.hm .status { color: #2E3B16; }

.hm-table { position: relative; container-type: inline-size; width: 100%; max-width: 620px; justify-self: center; aspect-ratio: 1.12; }
.hm-stack span { position: absolute; left: 0; right: 0; top: 6cqw; margin-inline: auto; width: 74cqw; aspect-ratio: 1.42; border-radius: 4px; background: #F1E7D6; }
.hm-stack::before { content: ""; position: absolute; left: 0; right: 0; top: 6cqw; margin-inline: auto; width: 74cqw; aspect-ratio: 1.42; border-radius: 4px; background: rgba(48, 70, 20, .3); transform: translate(-2.6cqw, 1.9cqw) rotate(-2.5deg); transition: opacity .2s ease; }
.hm-stack { transition: opacity .25s ease; }
.hm-table:not(.is-open) .hm-stack { opacity: 0; }
.hm-stack span:nth-child(1) { transform: translate(2.5cqw, 1.8cqw) rotate(3.5deg); }
.hm-stack span:nth-child(2) { transform: translate(-2cqw, 1cqw) rotate(-5deg); background: #EADFCB; }
.hm-card { position: absolute; left: 0; right: 0; top: 6cqw; margin-inline: auto; z-index: 2; width: 74cqw; aspect-ratio: 1.42; padding: 8.5cqw 6.5cqw 6cqw; border-radius: 4px; background: #FFFBF3;
  transform: rotate(-2.5deg); cursor: grab; touch-action: pan-y; user-select: none;
  transition: transform .5s cubic-bezier(.3, .8, .3, 1), opacity .3s ease, translate .3s ease; }
.hm-card.is-dragging { cursor: grabbing; transition: none !important; }
.hm-card:focus-visible { outline: 3px solid var(--plum); outline-offset: 6px; }
.hm-card.out-left, .hm-card.out-right { opacity: 0 !important; transition: translate .28s ease-in, rotate .28s ease-in, opacity .28s ease-in !important; }
.hm-card.out-left { translate: -125% 0; rotate: -10deg; }
.hm-card.out-right { translate: 125% 0; rotate: 10deg; }
.hm-card.in { translate: 0 22px; scale: .94; opacity: 0 !important; }
.hm-card.no-anim { transition: none !important; }
.hm-card > .ps { position: absolute; pointer-events: none; }
.hm-tape { left: 3cqw; top: -9cqw; --ps-w: 19cqw; --ps-rot: -6deg; }
.hm-stamp { right: -3.5cqw; top: -5cqw; --ps-w: 17cqw; --ps-rot: 7deg; }
.hm-for { margin: 0; font-size: max(.75rem, 3.4cqw); font-weight: 600; color: var(--eyebrow); }
.hm-note { margin: 1.6cqw 0 0; max-width: 90%; font-family: var(--serif); font-size: max(.9rem, 6cqw); line-height: 1.1; color: var(--plum); text-wrap: balance; overflow-wrap: break-word; }
.hm-note.is-long { font-size: max(.8125rem, 4.8cqw); } /* sized so every note clears "With a hug," from 320px up (scratchpad notes-fit.cjs) */
.hm-card .lt-sign { position: absolute; left: 6.5cqw; right: 6.5cqw; bottom: 5.5cqw; margin: 0; font-size: max(.8125rem, 3.4cqw); }
.hm-card .sign-line { max-width: none; }
.hm-card .lt-input { font-size: max(1.05rem, 5cqw); }
.hm-obj { position: absolute; display: block; pointer-events: none; }
.hm-pencil { right: 1cqw; bottom: 3cqw; --ps-w: 17cqw; rotate: 6deg; z-index: 3; }
.hm-kozy { left: 3cqw; bottom: 0; --ps-w: 21cqw; rotate: -105deg; z-index: 3; }
.hm-f1 { left: 1cqw; top: 1cqw; --ps-w: 11cqw; }
.hm-f2 { right: 1cqw; top: 2cqw; --ps-w: 9.5cqw; }
.hm-obj .ps { width: var(--ps-w); }
.hm-sealed { left: 0; right: 0; top: 14cqw; margin-inline: auto; width: 62cqw; z-index: 4; opacity: 0; transform: translateY(7cqw) scale(.6) rotate(-4deg); transition: opacity .2s ease, transform .2s ease; }
.hm-sealed .ps { width: 100%; }
.hm-table:not(.is-open) .hm-card { transform: translateY(20cqw) rotate(2deg) scale(.5); opacity: 0; visibility: hidden; transition: transform .5s cubic-bezier(.5, 0, .7, .4), opacity .3s ease .2s, visibility 0s .5s; }
.hm-table:not(.is-open) .hm-sealed { opacity: 1; transform: rotate(-4deg); transition: opacity .25s ease .3s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .3s; }
.hm-hearts { position: absolute; left: 50%; top: 44%; width: 0; height: 0; z-index: 5; }
.hm-hearts .hz-fx { width: 26px; height: 24px; }
@media (prefers-reduced-motion: no-preference) { .hm-table:not(.is-open) .hm-kozy .ps { animation: hz-happy 1.4s ease-in-out .5s 1; } }
@media (prefers-reduced-motion: reduce) { .hm-card, .hm-sealed { transition: none !important; } }
@container (max-width: 440px) { .hm-card, .hm-stack span, .hm-stack::before { width: 84cqw; top: 9cqw; aspect-ratio: 1.2; } .hm-sealed { width: 72cqw; top: 16cqw; } .hm-tape { left: 2cqw; } .hm-stamp { right: -2cqw; } .hm-kozy { --ps-w: 24cqw; } .hm-note { font-size: max(.9rem, 7cqw); } .hm-note.is-long { font-size: max(.8125rem, 5.6cqw); } }
@media (max-width: 599px) { .hm-table { aspect-ratio: 1; } } /* room for the taller phone letter, so Kozy stays clear of the name line */

/* phones: heading and hint, then the card, then the controls and the seal button (the intro column dissolves into the grid) */
@media (max-width: 899px) {
  .hm { gap: 18px; }
  .hm-intro { display: contents; }
  .hm h2 { order: 1; } .hm .deck-hint { order: 2; } .hm-table { order: 3; } .hm .deck-nav { order: 4; margin-top: 0; } .hm .send-act { order: 5; width: 100%; margin-top: 0; }
  .hm::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: -6%; height: 34%; pointer-events: none;
    background: radial-gradient(ellipse closest-side, rgba(255,249,242,.86) 0%, rgba(255,249,242,.62) 55%, rgba(255,249,242,0) 100%); }
}

/* ---------- illustrations: lawn tiles (feature, join, blog, stress results, chat dialogs) and the blog article header ---------- */
.row-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.res-kozy img, .kc-dialog-art img { border-radius: var(--r); }
.article-head { background: #A9BF5E url("../hero/page-lawn.webp") 50% 0 / cover no-repeat; }
.article-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; height: clamp(48px, 6vw, 80px); pointer-events: none; background: linear-gradient(to bottom, transparent, var(--page)); }
.article-grid > div:first-child { position: relative; }
.article-grid > div:first-child::before { content: ""; position: absolute; z-index: -1; inset: -40px -64px; pointer-events: none;
  background: radial-gradient(ellipse closest-side, rgba(255,249,242,.86) 0%, rgba(255,249,242,.62) 55%, rgba(255,249,242,0) 100%); }
.article-head .lead, .article-head .meta { color: #2E3B16; }
.article-head .crumb a { color: var(--plum); }
.article-art { background: none; aspect-ratio: auto; display: flex; justify-content: center; align-items: center; }
.ps-article { --ps-w: clamp(220px, 28vw, 340px); --ps-rot: -4deg; }
