/* calico landing page (the home page only), second version. Colours come from the variables
   Tools/build-site.py generates from Design/Brand/tokens.json into site.css.

   The drawn app screens are authored in the design boards' own numbers. A length written "calc(var(--u)*24)"
   is rewritten by the build script to calc(var(--u)*24), where --u is one board point: 1/402 of
   the stage's width. So a screen is the board at any size, and at 402 wide it is the board.

   Motion: everything that moves is inside the no-preference block at the foot of this file, or is
   driven by home.js, which does nothing for a reader who asked for less motion. */

:root { --glass: rgba(255, 247, 226, 0.78); --glass-warm-edge: rgba(255, 251, 238, 0.95); --bezel: #1b1815; }
:root[data-theme="dark"] { --glass: rgba(70, 62, 55, 0.6); --glass-warm-edge: rgba(255, 255, 255, 0.08); --bezel: #48433e; }
body::before { display: none; }   /* this page has the bar that fills as you read instead */
main h2 { font-size: clamp(2rem, 5.6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
main p { text-wrap: pretty; }
.step { font-size: 0.95rem; font-weight: 700; color: var(--seal); margin: 0 0 0.7rem; }

/* ---- the year, passing along the top edge as the page is read ------------------------------ */
.yearbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 4px; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--m11) 0 8.33%, var(--m12) 0 16.66%, var(--m01) 0 25%, var(--m02) 0 33.33%, var(--m03) 0 41.66%, var(--m04) 0 50%,
    var(--m05) 0 58.33%, var(--m06) 0 66.66%, var(--m07) 0 75%, var(--m08) 0 83.33%, var(--m09) 0 91.66%, var(--m10) 0 100%); }

/* ---- hero ---------------------------------------------------------------------------------- */
.hero { padding: 34px 0 0; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 1.2rem; font-size: 0.92rem; color: var(--ink-secondary); }
.eyebrow span { background: var(--button); color: var(--on-button); font-weight: 700; font-size: 0.82rem; line-height: 1; padding: 7px 12px; border-radius: 999px; }
.hero h1 { max-width: none; font-size: clamp(2.7rem, 11vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.hero .lede { font-size: 1.08rem; line-height: 1.5; max-width: 34rem; margin-top: 1.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.cta .btn { margin-top: 0; }
.fine { color: var(--ink-secondary); font-size: 0.92rem; margin-top: 0.9rem; }
@media (max-width: 879px) { .cta .btn.quiet { display: none; } }

.hero-stage { position: relative; margin-top: 8px; padding-top: 60px; display: grid; justify-items: center; gap: 12px;
  --rx: min(46vw, 186px); --ry: 236px; --cy: 300px; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit i { position: absolute; width: var(--d, 20px); height: var(--d, 20px); border-radius: 50%; background: var(--c);
  left: calc(50% + cos(calc(180deg - var(--i) * 16.36deg)) * var(--rx)); top: calc(var(--cy) - sin(calc(180deg - var(--i) * 16.36deg)) * var(--ry));
  translate: -50% calc(-50% + var(--sy, 0px) * var(--k, -0.06)); }
.orbit i:nth-child(3n) { --d: 28px; --k: -0.12; } .orbit i:nth-child(3n + 1) { --d: 16px; --k: -0.04; } .orbit i:nth-child(4n) { --d: 34px; --k: -0.16; }
@supports not (top: calc(sin(30deg) * 10px)) { .orbit { display: none; } }
.floats { display: none; }
.demo-toggle { position: relative; z-index: 2; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-secondary); background: none; border: 0;
  min-height: 44px; padding: 0 16px; border-radius: 22px; cursor: pointer; }
.demo-toggle:hover { color: var(--ink); background: var(--raised); }

/* ---- the phone ----------------------------------------------------------------------------- */
.phone { position: relative; z-index: 2; width: 300px; max-width: 100%; }
.phone-frame { padding: 9px; border-radius: 48px; background: var(--bezel);
  box-shadow: 0 30px 60px -22px var(--lift), 0 8px 18px -8px var(--lift); }
.stage { container-type: inline-size; width: 100%; }
.stage > * { --u: calc(100cqw / 402); }
.screen { position: relative; height: calc(var(--u)*800); overflow: hidden; border-radius: 39px; background: var(--page); color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif; text-align: left; }
.screen p { margin: 0; }
.island { position: absolute; z-index: 3; top: calc(var(--u)*12); left: 50%; width: calc(var(--u)*112); height: calc(var(--u)*32); margin-left: calc(var(--u)*-56); border-radius: calc(var(--u)*16); background: var(--bezel); }

.v { position: absolute; inset: 0; padding: calc(var(--u)*58) calc(var(--u)*24) 0; transition: opacity 0.5s ease, visibility 0s linear 0s; }
.v-answer { opacity: 0; visibility: hidden; }
.demo.show-answer .v-today { opacity: 0; visibility: hidden; }
.demo.show-answer .v-answer { opacity: 1; visibility: visible; }

.s-top { height: calc(var(--u)*48); display: flex; align-items: center; justify-content: space-between; }
.s-sp { width: calc(var(--u)*44); }
.wm { display: inline-flex; align-items: baseline; gap: calc(var(--u)*1); font-family: "Young Serif", Georgia, serif; font-size: calc(var(--u)*21); letter-spacing: -0.01em; }
.wm i { width: calc(var(--u)*5.5); height: calc(var(--u)*5.5); border-radius: 50%; background: var(--ginger); }
.s-menu { width: calc(var(--u)*44); height: calc(var(--u)*44); border-radius: 50%; background: var(--raised); display: grid; place-items: center; }
.s-menu svg { width: calc(var(--u)*22); height: calc(var(--u)*22); }
.s-date { padding-top: calc(var(--u)*12); font-size: calc(var(--u)*15); line-height: calc(var(--u)*20); font-weight: 600; color: var(--ink-secondary); }
.s-greet { font-family: "Young Serif", Georgia, serif; font-size: calc(var(--u)*40); line-height: calc(var(--u)*46); letter-spacing: -0.015em; margin-top: calc(var(--u)*4) !important; }
.s-moment { margin-top: calc(var(--u)*16); background: var(--moment); border-radius: calc(var(--u)*24); padding: calc(var(--u)*16) calc(var(--u)*20) calc(var(--u)*16); display: grid; gap: calc(var(--u)*7); }
.s-mh { display: flex; align-items: center; gap: calc(var(--u)*8); font-size: calc(var(--u)*14); line-height: calc(var(--u)*18); font-weight: 700; }
.s-mh i { width: calc(var(--u)*10); height: calc(var(--u)*10); border-radius: 50%; background: var(--ginger); }
.s-mq { font-size: calc(var(--u)*17); line-height: calc(var(--u)*25); font-weight: 500; }
.s-md { font-size: calc(var(--u)*13); line-height: calc(var(--u)*17); font-weight: 700; color: var(--seal); }
.s-sec { font-family: "Young Serif", Georgia, serif; font-size: calc(var(--u)*24); line-height: calc(var(--u)*28); margin: calc(var(--u)*20) 0 calc(var(--u)*8) !important; }
.s-entry { background: var(--raised); border-radius: calc(var(--u)*20); padding: calc(var(--u)*14) calc(var(--u)*18) calc(var(--u)*16); display: grid; gap: calc(var(--u)*6); margin-bottom: calc(var(--u)*10); }
.s-time { font-size: calc(var(--u)*13); line-height: calc(var(--u)*17); font-weight: 500; color: var(--ink-secondary); }
.s-body { font-size: calc(var(--u)*17); line-height: calc(var(--u)*25); }
.s-new { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.js .demo:not(.has-new) .s-new { opacity: 0; transform: translateY(calc(var(--u)*14)); transition: none; }
.js .demo.has-new .s-new .s-body { animation: ink-dry 1.6s ease-out both; }
@keyframes ink-dry { from { color: var(--seal); } to { color: var(--ink); } }

/* the answer, in the phone and in the feature panel */
.a-back { display: flex; align-items: center; gap: calc(var(--u)*4); height: calc(var(--u)*44); font-size: calc(var(--u)*16); font-weight: 500; color: var(--ink-secondary); }
.a-back svg { width: calc(var(--u)*18); height: calc(var(--u)*18); }
.a-q { font-size: calc(var(--u)*25); line-height: calc(var(--u)*31); font-weight: 600; letter-spacing: -0.01em; margin-top: calc(var(--u)*6) !important; }
.a-found { font-size: calc(var(--u)*15); line-height: calc(var(--u)*20); font-weight: 600; color: var(--ink-secondary); margin-top: calc(var(--u)*12) !important; }
.a-balls { display: flex; gap: calc(var(--u)*10); margin-top: calc(var(--u)*12); }
.a-balls b { width: calc(var(--u)*46); height: calc(var(--u)*46); border-radius: 50%; background: var(--ginger); color: var(--on-ball);
  display: grid; place-items: center; font-size: calc(var(--u)*19); font-weight: 800; }
.a-text { font-size: calc(var(--u)*17); line-height: calc(var(--u)*25); color: var(--ink-secondary); margin-top: calc(var(--u)*16) !important; }
.a-quote { font-size: calc(var(--u)*17); line-height: calc(var(--u)*25); font-weight: 700; margin-top: calc(var(--u)*10) !important; }
.a-src { background: var(--raised); border-radius: calc(var(--u)*20); padding: calc(var(--u)*12) calc(var(--u)*18) calc(var(--u)*14); margin-top: calc(var(--u)*12); }
.a-quote + .a-src { margin-top: calc(var(--u)*18); }
.a-sd { font-size: calc(var(--u)*13); line-height: calc(var(--u)*17); font-weight: 700; color: var(--seal); }
.a-sb { font-size: calc(var(--u)*16); line-height: calc(var(--u)*23); margin-top: calc(var(--u)*2) !important; }

.a-balls b { transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.a-balls b:nth-child(2) { transition-delay: 0.05s; } .a-balls b:nth-child(3) { transition-delay: 0.1s; }
.a-balls b:nth-child(4) { transition-delay: 0.15s; } .a-balls b:nth-child(5) { transition-delay: 0.2s; }
.a-balls b:nth-child(6) { transition-delay: 0.25s; }
.demo .a-found, .demo .a-quote, .demo .a-src { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.demo .a-src + .a-src { transition-delay: 0.08s; }
.js .demo:not(.a1) .a-found { opacity: 0; transition: none; }
.js .demo:not(.a1) .a-balls b { opacity: 0; transform: scale(0.86); transition: none; }
.js .demo .aw { opacity: 0; }
.js .demo.a2 .aw { opacity: 1; transition: opacity 0.5s ease calc(var(--w) * 45ms); }
.js .demo:not(.a3) .a-quote { opacity: 0; transition: none; }
.js .demo:not(.a4) .a-src { opacity: 0; transform: translateY(calc(var(--u)*14)); transition: none; }

/* the box and the tab bar */
.s-dock { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: calc(var(--u)*26) 0 0;
  background: linear-gradient(to bottom, transparent, var(--page) calc(var(--u)*24)); }
.bx { margin: 0 calc(var(--u)*14); min-height: calc(var(--u)*64); border-radius: calc(var(--u)*32); background: var(--ginger); display: flex; align-items: flex-end; gap: calc(var(--u)*6); padding: calc(var(--u)*8); }
.bx-well { flex: 1; min-width: 0; min-height: calc(var(--u)*48); border-radius: calc(var(--u)*24); background: var(--box-field); padding: calc(var(--u)*12) calc(var(--u)*16);
  font-size: calc(var(--u)*16); line-height: calc(var(--u)*24); color: var(--on-box-field); }
.bx-hint { color: var(--on-box-field-faint); white-space: nowrap; }
.bx-btn { flex: none; width: calc(var(--u)*44); height: calc(var(--u)*44); margin-bottom: calc(var(--u)*2); border-radius: 50%; background: var(--box-control); color: var(--on-box-control); display: grid; place-items: center; }
.bx-btn svg { width: calc(var(--u)*21); height: calc(var(--u)*21); }
.bx-pill { flex: none; display: none; height: calc(var(--u)*44); margin-bottom: calc(var(--u)*2); padding: 0 calc(var(--u)*18); border-radius: calc(var(--u)*22); background: var(--box-control); color: var(--on-box-control);
  font-size: calc(var(--u)*16); font-weight: 700; place-items: center; transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.15s ease; }
.bx-pill > span { grid-area: 1 / 1; transition: opacity 0.2s ease; }
.p-ask { opacity: 0; }
.is-typing .bx-pill, .bx.is-typing .bx-pill { display: grid; }
.is-typing .bx-mic, .is-typing .bx-hint { display: none; }
.is-ask .bx-pill, .bx.morphs .bx-pill { background: var(--box-ask); color: var(--on-box-ask); }
.is-ask .p-save, .bx.morphs .p-save { opacity: 0; }
.is-ask .p-ask, .bx.morphs .p-ask { opacity: 1; }
.is-pressed .bx-pill { transform: scale(0.94); opacity: 0.82; }
.tabs { margin: calc(var(--u)*10) calc(var(--u)*18) calc(var(--u)*22); height: calc(var(--u)*62); border-radius: calc(var(--u)*31); padding: calc(var(--u)*4); display: flex; background: var(--glass); border: 1px solid var(--glass-warm-edge);
  box-shadow: 0 calc(var(--u)*10) calc(var(--u)*30) rgba(38, 34, 30, 0.12); }
.tab { flex: 1; border-radius: calc(var(--u)*27); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u)*1); font-size: calc(var(--u)*10); font-weight: 600; white-space: nowrap; }
.tab svg { width: calc(var(--u)*24); height: calc(var(--u)*24); }
.tab.on { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--seal); }


/* ---- half-sentences welcome: two rows of things people write, carried by the scroll --------- */
.said { padding: clamp(88px, 14vw, 160px) 0 0; }
.said .wrap p { font-size: 1.15rem; margin-top: 1.1rem; }
.rows { margin-top: 2.4rem; display: grid; gap: 12px; overflow: hidden; padding: 4px 0; }
.row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.r1 { transform: translateX(calc(-40px - var(--m, 0) * 1px)); }
.r2 { transform: translateX(calc(-420px + var(--m, 0) * 1px)); }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 26px; background: var(--raised); color: var(--ink); font-size: 1.02rem; white-space: nowrap; }
.chip.q { background: var(--ginger); color: var(--on-door); font-weight: 700; font-size: 1.1875rem; padding-left: 7px; }
.chip b { display: inline-grid; place-items: center; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--box-ask); color: var(--on-box-ask); font-size: 0.95rem; font-weight: 700; }

/* ---- the feeling --------------------------------------------------------------------------- */
.feeling { padding: clamp(88px, 15vw, 168px) 0 clamp(40px, 8vw, 80px); }
.feeling p { font-size: 1.2rem; line-height: 1.6; margin-top: 1.3rem; }
.feeling h2 + p { margin-top: 1.8rem; }
.feeling .pull { font-family: "Young Serif", Georgia, serif; font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.25; letter-spacing: -0.01em;
  margin-top: 2.6rem; padding-left: 20px; border-left: 4px solid var(--ginger); }

/* ---- features ------------------------------------------------------------------------------ */
.features { padding: clamp(32px, 6vw, 64px) 0; }
.feature { display: grid; gap: 30px; padding: clamp(40px, 7vw, 76px) 0; align-items: center; }
.f-copy > p { margin-top: 1.1rem; }
.ticks { list-style: none; padding: 0; margin-top: 1.4rem; }
.ticks li { position: relative; padding-left: 22px; margin-top: 0.7rem; color: var(--ink-secondary); font-size: 1.02rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.56em; width: 8px; height: 8px; border-radius: 50%; background: var(--ginger); }
.panel { border-radius: 32px; padding: clamp(18px, 5vw, 36px); display: grid; justify-items: center; }
.panel .stage { max-width: 402px; }
.panel-stone { background: var(--patch-stone); }
.panel-tint { background: var(--tint); }
.panel-raised { background: var(--raised); }
.canvas { font-family: "Figtree", system-ui, sans-serif; color: var(--ink); }
.canvas p { margin: 0; }
.fv-tag { font-size: calc(var(--u)*15); font-weight: 700; margin: 0 0 calc(var(--u)*8) calc(var(--u)*24) !important; }
.canvas .bx { margin: 0 0 calc(var(--u)*26); }
.canvas .bx:last-child { margin-bottom: 0; }
.canvas.ans .a-q { margin-top: 0 !important; }
.panel-tint .a-src { background: var(--page); }

.features .feature:last-of-type { padding-bottom: clamp(24px, 4vw, 40px); }
.more { margin: 0; text-align: center; padding-bottom: clamp(40px, 7vw, 76px); }
.more .btn { margin-top: 0; }

/* ---- look back: a year that plays as the page is scrolled ---------------------------------- */
.year { --yc: var(--m10); position: relative; background: color-mix(in srgb, var(--yc) 16%, var(--page)); transition: background-color 0.6s ease; margin-top: clamp(48px, 8vw, 96px); }
.year-pin { padding: clamp(64px, 10vw, 110px) 0 36px; }
.year.pinned .year-track { height: 300vh; }
.year.pinned .year-pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 84px 0 24px; }
.year-grid { display: grid; gap: 26px; align-items: center; }
.year .f-copy > p:not(.step) { margin-top: 1rem; }
.yc { background: var(--page); border-radius: 32px; padding: clamp(20px, 5vw, 34px); box-shadow: 0 24px 50px -28px var(--lift); }
.yc-panels { display: grid; }
.yp { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.35s; transform: translateY(10px); }
.yp.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.yp p { margin: 0; }
.yp-h { display: flex; align-items: center; gap: 14px; font-family: "Young Serif", Georgia, serif; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; letter-spacing: -0.015em; }
.yp-h i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c); }
.yp-t { font-size: 1.08rem; line-height: 1.55; margin-top: 16px !important; min-height: 6.3em; }
.yp-f { font-size: 0.9rem; font-weight: 700; color: var(--seal); margin-top: 6px !important; }
.yc-rail { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ym { font: inherit; background: none; border: 0; padding: 4px 0; min-width: 24px; min-height: 52px; cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 8px;
  font-size: 0.72rem; color: var(--ink-secondary); }
.ym i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease; }
.ym[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.ym[aria-pressed="true"] i { transform: scale(1.35); box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--ink); }
.year:not(.pinned) { padding-bottom: clamp(32px, 6vw, 64px); }

/* ---- bring your old writing: files flow down into the notebook ------------------------------ */
.bring { padding: 0; }
.bring-in { width: 100%; max-width: 380px; }
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.file { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 16px; background: var(--page); color: var(--ink); font-size: 0.78rem; line-height: 1.25; text-align: center; }
.file svg { width: 26px; height: 26px; color: var(--seal); margin-bottom: 4px; }
.file b { font-weight: 700; font-size: 0.86rem; }
.pipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 40px; }
.pipes i { justify-self: center; width: 3px; height: 100%; border-radius: 2px; background: var(--ginger); transform-origin: 50% 0; }
.landed { background: var(--page); border-radius: 24px; padding: 20px 20px 18px; box-shadow: 0 18px 36px -24px var(--lift); }
.landed p { margin: 0; }
.landed-h { font-family: "Young Serif", Georgia, serif; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.landed-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin: 16px 0 12px; }
.landed-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.landed-f { font-size: 0.9rem; font-weight: 700; color: var(--seal); }

/* ---- nothing that keeps score -------------------------------------------------------------- */
.noscore { padding: clamp(72px, 12vw, 132px) 0 0; }
.trio { display: grid; gap: 14px; margin-top: 2rem; }
.tile { background: var(--raised); border-radius: 28px; padding: 24px 24px 26px; }
.tile h3 { font-size: 1.35rem; }
.tile p { margin: 0.5rem 0 0; color: var(--ink-secondary); font-size: 1.02rem; line-height: 1.5; }

/* ---- trust: four plain facts and the one exception ----------------------------------------- */
.trust { padding: clamp(72px, 12vw, 132px) 0 0; }
.soot { background: var(--patch-soot); color: var(--on-patch-soot); border-radius: 36px; padding: clamp(26px, 6vw, 64px); display: grid; gap: clamp(22px, 4vw, 36px); }
.soot h2, .soot h3 { color: inherit; }
.soot p { margin: 0; }
.soot-head p { font-size: 1.15rem; margin-top: 1rem; opacity: 0.86; max-width: 34rem; }
.vault { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vt { border-radius: 24px; padding: 18px 16px 20px; background: color-mix(in srgb, var(--on-patch-soot) 9%, transparent); }
.vt h3 { font-family: "Figtree", system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; letter-spacing: 0; }
.vt p { font-size: 0.95rem; line-height: 1.45; margin-top: 4px; opacity: 0.86; }
.exception { border-radius: 24px; padding: 22px 22px 24px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-patch-soot) 30%, transparent); }
.exception h3 { font-family: "Figtree", system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0; letter-spacing: 0; }
.exception p { font-size: 0.98rem; line-height: 1.5; margin-top: 6px; opacity: 0.9; }
.soot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.soot a { color: inherit; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.soot :focus-visible { outline-color: var(--on-patch-soot); }

/* ---- pricing: free, then two weeks, then the year ------------------------------------------ */
.pricing { padding: clamp(80px, 13vw, 150px) 0 0; }
.pricing-lede { font-size: 1.15rem; max-width: 36rem; margin-top: 1.1rem; }
.path { display: grid; gap: 14px; margin-top: 2.2rem; }
.path p { margin: 0; }
.free-band, .fortnight { background: var(--raised); border-radius: 28px; padding: clamp(20px, 4vw, 30px); display: grid; gap: 16px; align-items: center; }
.free-price, .fortnight-h { font-family: "Young Serif", Georgia, serif; font-size: clamp(1.4rem, 4.4vw, 1.8rem); line-height: 1.15; letter-spacing: -0.01em; }
.free-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.free-list li { margin: 0; padding: 8px 14px 8px 32px; border-radius: 999px; background: var(--page); font-size: 0.95rem; font-weight: 600; position: relative; }
.free-list li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 10px; height: 6px; margin-top: -5px; border-left: 2.4px solid var(--seal); border-bottom: 2.4px solid var(--seal); transform: rotate(-45deg); }
.fortnight { background: var(--tint); }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; max-width: 420px; width: 100%; }
.days i { aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.plans { display: grid; gap: 14px; }
.plan { position: relative; background: var(--raised); border-radius: 32px; padding: clamp(24px, 5vw, 40px); }
.plan-year { background: var(--moment); box-shadow: inset 0 0 0 3px var(--ginger), 0 30px 60px -34px var(--lift); }
.plan-tag { position: absolute; top: -16px; right: 24px; background: var(--button); color: var(--on-button); font-weight: 700; font-size: 0.95rem; line-height: 1; padding: 10px 16px; border-radius: 999px; }
.plan-name { font-weight: 700; font-size: 1.1rem; }
.plan-price { font-family: "Young Serif", Georgia, serif; font-size: clamp(2.4rem, 8vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin-top: 8px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.plan-year .plan-price { font-size: clamp(3.4rem, 13vw, 5.2rem); }
.plan-price span { font-family: "Figtree", system-ui, sans-serif; font-size: 1.05rem; letter-spacing: 0; color: var(--ink-secondary); }
.plan-note { color: var(--ink-secondary); margin-top: 6px !important; }
.plan-year .plan-note { color: var(--ink); font-weight: 600; }
.plan .ticks li { color: var(--ink); }
.plan .btn { margin-top: 1.6rem; }
.plan-fine { font-size: 0.88rem; color: var(--ink-secondary); }
.faq-h { margin-top: clamp(56px, 9vw, 96px); }
.faq { margin-top: 1.6rem; max-width: 44rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(45deg); margin: 0 6px 6px 0; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--ink-secondary); max-width: 38rem; }

/* ---- the last door, and the ball of yarn that rolls up to it -------------------------------- */
.final { padding: clamp(96px, 16vw, 176px) 0 clamp(48px, 9vw, 96px); text-align: center; }
.final h2 { font-size: clamp(2.4rem, 9vw, 4.4rem); letter-spacing: -0.025em; }
.final p { color: var(--ink-secondary); font-size: 1.15rem; margin-top: 1rem; }
.final-cta { margin-top: 2.2rem; }
.final .soon-note { font-size: 0.95rem; margin-top: 0.9rem; }
.yarn { position: relative; height: 52px; margin: 0 auto 26px; max-width: 30rem; }
.thread { position: absolute; left: -50vw; right: 50%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--ginger); transform-origin: 0 50%; }
.ball { position: absolute; left: 50%; bottom: 0; width: 48px; height: 48px; margin-left: -24px; }
.ball circle { fill: var(--ginger); }
.ball path { fill: none; stroke: var(--highlight); stroke-width: 2.4; stroke-linecap: round; }


/* ---- wider screens ------------------------------------------------------------------------- */
@media (min-width: 880px) {
  .hero { padding-top: 64px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero .lede { font-size: 1.25rem; line-height: 1.5; max-width: 38rem; margin-top: 1.5rem; }
  .cta { margin-top: 1.9rem; justify-content: center; }
  .hero-stage { margin-top: 40px; padding-top: 84px; --rx: 300px; --ry: 300px; --cy: 380px; }
  .orbit i { --d: 26px; } .orbit i:nth-child(3n) { --d: 38px; } .orbit i:nth-child(3n + 1) { --d: 20px; } .orbit i:nth-child(4n) { --d: 48px; }
  .phone { width: 340px; }
  .phone-frame { padding: 10px; border-radius: 54px; }
  .screen { border-radius: 44px; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature.flip .f-copy { order: 2; }
  .year-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vault { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .free-band, .fortnight { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; }
  .fortnight .days { justify-self: end; }
  .plans { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: stretch; }
  .chip { height: 60px; border-radius: 30px; font-size: 1.12rem; padding: 0 24px; }
  .chip b { height: 44px; border-radius: 22px; }
}
@media (min-width: 1060px) {
  .floats { display: block; position: absolute; inset: 0; pointer-events: none; }
  .float { position: absolute; left: 50%; rotate: var(--r); translate: 0 calc(var(--sy, 0px) * var(--k)); filter: drop-shadow(0 18px 24px var(--lift)); }
  .float .canvas > * { margin: 0; }
  .f1 { width: 270px; margin-left: -500px; top: 170px; --r: -5deg; --k: -0.1; }
  .f2 { width: 250px; margin-left: -470px; top: 470px; --r: 3deg; --k: -0.22; }
  .f3 { width: 230px; margin-left: 230px; top: 150px; --r: 4deg; --k: -0.18; }
  .f4 { width: 260px; margin-left: 210px; top: 500px; --r: -3deg; --k: -0.08; }
  .mini { background: var(--tint); border-radius: calc(var(--u)*24); padding: calc(var(--u)*18) calc(var(--u)*20) calc(var(--u)*20); }
  .mini .a-found { margin-top: 0 !important; }
}

/* ---- motion: only for people who have not asked for less ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .hero .fine, .hero .phone { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero h1 { animation-delay: 0.05s; } .hero .lede { animation-delay: 0.14s; } .hero .cta { animation-delay: 0.22s; } .hero .fine { animation-delay: 0.28s; }
  .hero .phone { animation-delay: 0.3s; animation-duration: 1.2s; }
  .hero h1 .hl { animation: draw 1.1s cubic-bezier(0, 0, 0.58, 1) 0.7s both; }
  .orbit i { animation: pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.25) both; animation-delay: calc(0.55s + var(--i) * 0.07s); }
  .float { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both, bob 7s ease-in-out infinite alternate; }
  .f1 { animation-delay: 0.9s, 0s; } .f2 { animation-delay: 1.05s, -2s; } .f3 { animation-delay: 1s, -4s; } .f4 { animation-delay: 1.15s, -1s; }
  .paused .float { animation-play-state: paused; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes draw { from { background-size: 0 0.4em; } to { background-size: 100% 0.4em; } }
  @keyframes pop { from { scale: 0; } to { scale: 1; } }
  @keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

  .reveals [data-reveal] { opacity: 0; transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.23, 1, 0.32, 1); }
  .reveals [data-reveal].in { opacity: 1; transform: none; }
  .reveals .panel[data-reveal] { transform: translateY(28px) scale(0.97); }
  .reveals .panel[data-reveal].in { transform: none; }
  .reveals [data-reveal] .hl { background-size: 0 0.4em; transition: background-size 1.1s cubic-bezier(0, 0, 0.58, 1) 0.35s; }
  .reveals [data-reveal].in .hl { background-size: 100% 0.4em; }
  .reveals .f-copy > p[data-reveal]:not(.step) { transition-delay: 0.06s; }
  .reveals .f-copy > ul[data-reveal], .reveals .plan-month[data-reveal] { transition-delay: 0.12s; }

  /* the answer panel: dates pop, the words arrive by ink, the sources rise */
  .reveals [data-reveal]:not(.in) .a-balls b { opacity: 0; transform: scale(0.6); }
  .reveals [data-reveal] .a-balls b { transition-duration: 0.45s; }
  .reveals [data-reveal].in .a-balls b:nth-child(1) { transition-delay: 0.4s; } .reveals [data-reveal].in .a-balls b:nth-child(2) { transition-delay: 0.47s; }
  .reveals [data-reveal].in .a-balls b:nth-child(3) { transition-delay: 0.54s; } .reveals [data-reveal].in .a-balls b:nth-child(4) { transition-delay: 0.61s; }
  .reveals [data-reveal].in .a-balls b:nth-child(5) { transition-delay: 0.68s; }
  .reveals [data-reveal] .aw { opacity: 0; }
  .reveals [data-reveal].in .aw { opacity: 1; transition: opacity 0.5s ease calc(0.9s + var(--w) * 55ms); }
  .reveals [data-reveal] .a-quote, .reveals [data-reveal] .a-src { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
  .reveals [data-reveal].in .a-quote, .reveals [data-reveal].in .a-src { opacity: 1; transform: none; }
  .reveals [data-reveal].in .a-quote { transition-delay: 1.9s; }
  .reveals [data-reveal].in .a-src { transition-delay: 2.3s; } .reveals [data-reveal].in .a-src + .a-src { transition-delay: 2.45s; }

  /* the box panel: the button stays Save until the words read as a question */
  .reveals .bx.morphs:not(.typed) .bx-pill { background: var(--box-control); color: var(--on-box-control); }
  .reveals .bx.morphs:not(.typed) .p-save { opacity: 1; }
  .reveals .bx.morphs:not(.typed) .p-ask { opacity: 0; }

  /* the import: files drop in, the lines draw down, the entries land, the months light up */
  .reveals [data-reveal] .file { opacity: 0; transform: translateY(-16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
  .reveals [data-reveal].in .file { opacity: 1; transform: none; transition-delay: calc(0.3s + var(--n) * 0.12s); }
  .reveals [data-reveal] .pipes i { transform: scaleY(0); transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
  .reveals [data-reveal].in .pipes i { transform: none; transition-delay: calc(0.9s + var(--n) * 0.12s); }
  .reveals [data-reveal] .landed { opacity: 0; transform: scale(0.94); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
  .reveals [data-reveal].in .landed { opacity: 1; transform: none; transition-delay: 1.6s; }
  .reveals [data-reveal] .landed-dots i, .reveals [data-reveal] .days i { scale: 0; transition: scale 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.3); }
  .reveals [data-reveal].in .landed-dots i { scale: 1; transition-delay: calc(2s + var(--n) * 0.06s); }
  .reveals [data-reveal].in .days i { scale: 1; transition-delay: calc(0.3s + var(--n) * 0.07s); }
  .reveals .trio .tile:nth-child(2), .reveals .vt:nth-child(2) { transition-delay: 0.08s; }
  .reveals .trio .tile:nth-child(3) { transition-delay: 0.16s; }
  .reveals .plan-tag { scale: 0; transition: scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.4) 0.7s; }
  .reveals .in .plan-tag { scale: 1; }
  .reveals [data-reveal] .vt { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
  .reveals [data-reveal].in .vt { opacity: 1; transform: none; }
  .reveals [data-reveal].in .vt:nth-child(1) { transition-delay: 0.25s; } .reveals [data-reveal].in .vt:nth-child(2) { transition-delay: 0.33s; }
  .reveals [data-reveal].in .vt:nth-child(3) { transition-delay: 0.41s; } .reveals [data-reveal].in .vt:nth-child(4) { transition-delay: 0.49s; }
  .tile { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
  .tile:hover { transform: translateY(-4px); }

  /* the ball of yarn rolls in and leaves its thread behind */
  .reveals .yarn[data-reveal] { opacity: 1; transform: none; }
  .reveals .yarn .ball { transform: translateX(-60vw) rotate(-900deg); transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .reveals .yarn .thread { transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .reveals .yarn.in .ball, .reveals .yarn.in .thread { transform: none; }

  .cta .btn:hover { transform: translateY(-2px); }

  @supports (animation-timeline: view()) {
    .phone-frame { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; --drift: 22px; }
    @keyframes drift { from { transform: translateY(var(--drift)); } to { transform: translateY(calc(var(--drift) * -1)); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .v, .s-new, .bx-pill, .bx-pill > span, .a-balls b, .demo .a-found, .demo .a-quote, .demo .a-src, .js .demo.a2 .aw, .yp, .ym i, .year { transition: none !important; animation: none !important; }
}


/* ---- the three answers, first thing under the headline -------------------------------------- */
.answers3 { display: grid; gap: 12px; margin: 1.6rem 0 0; width: 100%; max-width: 62rem; text-align: start; }
.a3 { position: relative; overflow: hidden; background: var(--raised); border-radius: 24px; padding: 20px 22px 22px; isolation: isolate;
  --mx: 50%; --my: 0%; }
.a3::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--ginger) 16%, transparent), transparent 70%); }
.a3:hover::before { opacity: 1; }
.a3 h2 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 10px; text-wrap: balance; }
.a3 h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ginger)); }
.a3:nth-child(2) { --c: var(--m04); } .a3:nth-child(3) { --c: var(--m06); }
.a3 p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
.hero .cta { margin-top: 1.6rem; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
::selection { background: color-mix(in srgb, var(--ginger) 28%, transparent); }
.btn:active, .door:active { transform: scale(0.97); transition-duration: 0.08s; }

/* ---- the phone: a real iPhone, on an angle, turning slowly ---------------------------------- */
.device-wrap { --w: min(66vw, 290px); position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; width: 100%; padding-top: 10px; }
.device-glow { position: absolute; left: 50%; top: 40%; width: calc(var(--w) * 2.1); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ginger) 26%, transparent), transparent); opacity: 0.55; filter: blur(8px); }
.device-persp { perspective: 1500px; perspective-origin: 50% 38%; padding: 0 calc(var(--w) * 0.35); }
.device { --rx: 6deg; --ry: -20deg; --rz: 1.5deg; position: relative; width: var(--w); aspect-ratio: 1470 / 3000; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); will-change: transform; }
.device-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.device-bezel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: translateZ(0.6px); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.edge { position: absolute; left: 1.43%; top: 0.67%; width: 97.1%; height: 99.3%; border-radius: 17% / 8.3%;
  transform: translateZ(calc(var(--z) * var(--w) * -0.0088)); background: linear-gradient(90deg, #8d8983, #d8d4cd 40%, #bdb9b2 60%, #85817b); }
.device-screen { position: absolute; left: 5.1%; top: 2.2%; width: 89.8%; height: 95.6%; overflow: hidden; border-radius: 11% / 5.2%; background: var(--page); }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 0.9s ease, transform 1.6s cubic-bezier(0.23, 1, 0.32, 1); }
.shot.on { opacity: 1; transform: none; }
.glare { position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light; transform: translateX(var(--gx, 0%));
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.5) 49%, transparent 60%); }
.device-shadow { position: absolute; left: 6%; bottom: -3%; width: 88%; height: 5%; border-radius: 50%; transform: translateZ(calc(var(--w) * -0.3)); pointer-events: none;
  background: radial-gradient(closest-side, rgba(38, 34, 30, 0.34), transparent); filter: blur(10px); }
.device-cap { position: relative; display: grid; justify-items: center; min-height: 3.2em; margin: 8px 0 0; text-align: center; max-width: 24rem; }
.cap { grid-area: 1 / 1; font-weight: 600; color: var(--ink-secondary); opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); text-wrap: balance; }
.cap.on { opacity: 1; transform: none; }
.device-dots { display: flex; gap: 2px; }
.device-dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.device-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: 0.4; transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.4); }
.device-dots button[aria-pressed="true"]::before { opacity: 1; transform: scale(1.7); }
.device-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; border-radius: 50%; }
:root[data-theme="dark"] .device-glow { opacity: 0.4; }
@media (min-width: 880px) { .device-wrap { --w: 320px; } .answers3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 2.2rem; } .a3 { padding: 24px 26px 26px; } .a3 h2 { font-size: 1.4rem; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .device-wrap { animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
  .hero .a3 { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; } .hero .a3:nth-child(1) { animation-delay: 0.2s; } .hero .a3:nth-child(2) { animation-delay: 0.3s; } .hero .a3:nth-child(3) { animation-delay: 0.4s; }
  .a3 { transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); } .a3:hover { transform: translateY(-3px); }
  @supports (animation-timeline: view()) { .device-persp { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; --drift: 22px; } }
}
@media (prefers-reduced-motion: reduce) { .shot, .cap, .glare { transition: none; } }

/* ---- other languages: Latin-only tracking and the display face would break these scripts ---- */
:lang(ar) :is(h1, h2, h3, .wordmark), :lang(he) :is(h1, h2, h3, .wordmark), :lang(fa) :is(h1, h2, h3, .wordmark), :lang(ja) :is(h1, h2, h3, .wordmark),
:lang(zh) :is(h1, h2, h3, .wordmark), :lang(ko) :is(h1, h2, h3, .wordmark), :lang(th) :is(h1, h2, h3, .wordmark), :lang(hi) :is(h1, h2, h3, .wordmark),
:lang(bn) :is(h1, h2, h3, .wordmark), :lang(ta) :is(h1, h2, h3, .wordmark), :lang(el) :is(h1, h2, h3, .wordmark), :lang(ru) :is(h1, h2, h3, .wordmark), :lang(uk) :is(h1, h2, h3, .wordmark) {
  font-family: "Figtree", system-ui, -apple-system, sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .a3, [dir="rtl"] .answers3 { text-align: start; }
