/* Pass 94 landing: header, hero, feature cards and footer of the public site. Loaded after polish.css. */
.site-head-in { background: color-mix(in srgb, var(--sheet) 82%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 22px; box-shadow: 0 10px 30px -18px rgba(12,42,31,.4); gap: .2rem 1.2rem; padding: .35rem .4rem .35rem .8rem; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); width: min(100%, 46rem); justify-content: space-between; }
.site-head nav { flex: 1; justify-content: center; }
.site-head nav a { font-size: .95rem; padding: .45rem .8rem; border-radius: 12px; }
.site-head .btn { min-height: 42px; padding: 0 1.1rem; border-radius: 14px; background: var(--pub-btn); color: #fff; border: 0; box-shadow: none; font-size: .95rem; }
.site-head .btn:hover { background: var(--pub-btn-hi); }
.site-head .brand span { letter-spacing: -.02em; }

/* Hero: a light, fresh green stage, a headline that rises word by word, an orchard that grows */
:root {
  --pub-btn: #1f7a52; --pub-btn-hi: #1a6a46;
  --st-bg: radial-gradient(110% 70% at 50% -10%, #f4fff9 0%, transparent 62%), linear-gradient(180deg, #d3f4e1 0%, #b3e8cd 62%, #98dcb9 100%);
  --st-ink: #0b3524; --st-soft: #1c5139; --st-dot: rgba(11,53,36,.1);
  --st-chip-bg: rgba(255,255,255,.58); --st-chip-bd: rgba(255,255,255,.85); --st-chip-ink: #0b3524;
  --st-cta: #1f7a52; --st-cta-ink: #fff; --st-cta-glow: rgba(31,122,82,.55);
  --st-ghost-bg: rgba(255,255,255,.62); --st-ghost-ink: #0b3524; --st-ghost-bd: rgba(11,53,36,.14);
  --ft-bg: radial-gradient(90% 60% at 50% 0%, #f4fff9 0%, transparent 65%), linear-gradient(180deg, #d9f5e6, #bfeed3);
  --ft-ink: #0b3524; --ft-soft: #25573f; --ft-line: rgba(11,53,36,.14); --ft-chip: rgba(255,255,255,.6); --ft-faint: #3d6b55;
}
:root[data-theme=dark] {
  --pub-btn: #2f9468; --pub-btn-hi: #36a374;
  --st-bg: radial-gradient(120% 70% at 50% 0%, #25805c 0%, transparent 60%), linear-gradient(180deg, #14513a, #103f2e 70%, #0f3a2b);
  --st-ink: #fff; --st-soft: #c9e6d7; --st-dot: rgba(255,255,255,.07);
  --st-chip-bg: rgba(255,255,255,.1); --st-chip-bd: rgba(255,255,255,.18); --st-chip-ink: #eaf6ef;
  --st-cta: #5fd6a0; --st-cta-ink: #06251a; --st-cta-glow: rgba(95,214,160,.6);
  --st-ghost-bg: rgba(255,255,255,.08); --st-ghost-ink: #fff; --st-ghost-bd: rgba(255,255,255,.22);
  --ft-bg: radial-gradient(90% 60% at 50% 0%, #1f6a4d 0%, transparent 65%), #0f3a2b;
  --ft-ink: #fff; --ft-soft: #c9e6d7; --ft-line: rgba(255,255,255,.14); --ft-chip: rgba(255,255,255,.08); --ft-faint: #9cc7b2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --pub-btn: #2f9468; --pub-btn-hi: #36a374;
    --st-bg: radial-gradient(120% 70% at 50% 0%, #25805c 0%, transparent 60%), linear-gradient(180deg, #14513a, #103f2e 70%, #0f3a2b);
    --st-ink: #fff; --st-soft: #c9e6d7; --st-dot: rgba(255,255,255,.07);
    --st-chip-bg: rgba(255,255,255,.1); --st-chip-bd: rgba(255,255,255,.18); --st-chip-ink: #eaf6ef;
    --st-cta: #5fd6a0; --st-cta-ink: #06251a; --st-cta-glow: rgba(95,214,160,.6);
    --st-ghost-bg: rgba(255,255,255,.08); --st-ghost-ink: #fff; --st-ghost-bd: rgba(255,255,255,.22);
    --ft-bg: radial-gradient(90% 60% at 50% 0%, #1f6a4d 0%, transparent 65%), #0f3a2b;
    --ft-ink: #fff; --ft-soft: #c9e6d7; --ft-line: rgba(255,255,255,.14); --ft-chip: rgba(255,255,255,.08); --ft-faint: #9cc7b2;
  }
}
.hx-hero { padding-top: .4rem; }
.hx-stage { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(2.2rem, 7vw, 4.2rem) clamp(1rem, 4vw, 3rem) 0; color: var(--st-ink); text-align: center; background: var(--st-bg); }
.hx-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, var(--st-dot) 0 1px, transparent 1.5px) 0 0/26px 26px; opacity: .7; pointer-events: none; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
.hx-hero h1 { position: relative; margin: 0 auto; max-width: 11ch; font: 600 clamp(3rem, 11.5vw, 6.6rem)/.95 var(--sans); letter-spacing: -.055em; color: var(--st-ink); text-wrap: balance; }
.hx-hero .lede { position: relative; max-width: 34rem; margin: 1.3rem auto 1.6rem; color: var(--st-soft); font-size: clamp(1.02rem, 2.3vw, 1.2rem); }
.hx-hero .pub-cta { position: relative; justify-content: center; }
.hx-hero .btn:not(.ghost) { background: var(--st-cta); color: var(--st-cta-ink); border: 0; box-shadow: 0 10px 28px -10px var(--st-cta-glow); font-weight: 600; }
.hx-hero .btn.ghost { background: var(--st-ghost-bg); color: var(--st-ghost-ink); border: 1px solid var(--st-ghost-bd); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hx-art { position: relative; width: min(100%, 40rem); margin: 1.2rem auto 0; line-height: 0; }
.hx-tree { width: 100%; height: auto; display: block; overflow: visible; }
.hx-tree .canopy, .hx-tree .trunk, .hx-tree .gl { transform-box: fill-box; transform-origin: 50% 100%; }
.hx-chips-float { list-style: none; margin: 0; padding: 0; }
.hx-chips-float li { position: absolute; padding: .45rem .8rem; border-radius: 14px; font: 500 .82rem var(--sans); line-height: 1.2; color: var(--st-chip-ink); background: var(--st-chip-bg); border: 1px solid var(--st-chip-bd); box-shadow: 0 8px 20px -12px rgba(11,53,36,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hx-chips-float li:nth-child(1) { left: 4%; top: 58%; } .hx-chips-float li:nth-child(2) { left: 3%; top: 30%; display: none; } .hx-chips-float li:nth-child(3) { right: 4%; top: 36%; }
@media (min-width: 40rem) { .hx-chips-float li:nth-child(2) { display: block; left: 9%; top: 34%; } .hx-chips-float li:nth-child(1) { left: 6%; top: 62%; } }

/* Text reveal */
.fx .rv .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.fx .rv .w > span { display: inline-block; transform: translateY(108%) rotate(5deg); transform-origin: 0 100%; transition: transform .95s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 80ms); }
.fx .rv.in .w > span { transform: none; }
.hx-slogan.rv { display: block; }

/* Tree: grows once while on screen, then sways */
.fx .hx-art:not(.live) .canopy, .fx .hx-art:not(.live) .trunk { transform: scale(.05); opacity: 0; }
.fx .hx-art.live .trunk { animation: trGrow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.fx .hx-art.live .canopy { animation: trGrow 1.5s .5s cubic-bezier(.2,.9,.2,1.05) both; }
.fx .hx-art.live .lf { animation: lfIn .7s calc(.7s + var(--i) * 18ms) cubic-bezier(.3,1.4,.5,1) both; transform-box: fill-box; transform-origin: 50% 50%; }
.fx .hx-art.live .fr { animation: frIn .8s calc(2.2s + var(--i) * 140ms) cubic-bezier(.3,1.6,.5,1) both; }
.fx .hx-art.live .canopy { animation-name: trGrow, sway; animation-duration: 1.5s, 7s; animation-delay: .5s, 2.4s; animation-iteration-count: 1, infinite; animation-timing-function: cubic-bezier(.2,.9,.2,1.05), ease-in-out; animation-direction: normal, alternate; }
.fx .hx-art.live .spark circle { animation: tw 3s ease-in-out infinite; }
.fx .hx-art.live .spark circle:nth-child(2n) { animation-delay: -1.2s; }
.fx .hx-art.live .hx-chips-float li { animation: chipIn .7s calc(2.4s + var(--i) * .25s) cubic-bezier(.2,.8,.2,1) both, bob 5s calc(var(--i) * -1.3s) ease-in-out infinite alternate; }
@keyframes trGrow { from { transform: scale(.05); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lfIn { from { transform: scale(0); } }
@keyframes frIn { from { transform: translateY(-14px) scale(0); opacity: 0; } }
@keyframes sway { to { transform: rotate(1.2deg); } }
@keyframes tw { 50% { opacity: .15; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes bob { to { translate: 0 -6px; } }

/* Feature cards: one clean picture each, no loops */
.hx-card { text-align: center; border-radius: 28px; }
.hx-glyph { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin: 0 auto 1rem; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--indigo) 18%, var(--sheet)), color-mix(in srgb, var(--indigo) 6%, var(--sheet))); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 22px -14px color-mix(in srgb, var(--indigo) 70%, transparent); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hx-glyph svg { width: 2.5rem; height: 2.5rem; }
.hx-glyph .ic-a { fill: color-mix(in srgb, var(--indigo) 22%, transparent); stroke: var(--indigo); stroke-width: 3; }
.hx-glyph .ic-b { fill: var(--indigo); stroke: var(--indigo); }
.hx-card:hover .hx-glyph { transform: translateY(-3px) rotate(-3deg); }

/* Footer: the same light green stage, with the slogan again */
.site-foot { max-width: 72rem; color: var(--ft-soft); }
.foot-stage { border-radius: 36px; padding: clamp(2rem, 6vw, 3.4rem) clamp(1.1rem, 4vw, 3rem) 1.2rem; background: var(--ft-bg); }
.foot-big { margin: 0; font: 600 clamp(2.6rem, 10vw, 5.6rem)/.98 var(--sans); letter-spacing: -.05em; color: var(--ft-ink); }
.site-foot .foot-line { margin: .8rem auto 1.4rem; max-width: 30rem; color: var(--ft-soft); }
.site-foot .foot-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2.2rem; }
.site-foot .btn:not(.ghost) { background: var(--st-cta); color: var(--st-cta-ink); border: 0; font-weight: 600; }
.site-foot .btn.ghost { background: var(--st-ghost-bg); color: var(--st-ghost-ink); border: 1px solid var(--st-ghost-bd); }
.foot-grid { display: grid; gap: 2rem; text-align: left; padding-top: 1.8rem; border-top: 1px solid var(--ft-line); }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.2fr 2fr; } }
.foot-brand .brand { color: var(--ft-ink); display: inline-flex; align-items: center; gap: .55rem; font: 600 1.1rem var(--sans); text-decoration: none; }
.foot-brand .logo { width: 36px; height: 36px; border-radius: 20%; }
.foot-about { margin: .8rem 0 1rem; max-width: 22rem; }
.site-foot nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (min-width: 40rem) { .site-foot nav { grid-template-columns: repeat(4, 1fr); } }
.site-foot nav h2 { margin: 0 0 .6rem; font: 600 .9rem var(--sans); color: var(--ft-ink); }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-foot a { color: var(--ft-soft); text-decoration: none; } .site-foot a:hover { color: var(--ft-ink); }
.foot-icons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.foot-icons a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--ft-ink); background: var(--ft-chip); border: 1px solid var(--ft-line); transition: transform .2s, background-color .2s; }
.foot-icons a:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ft-chip) 60%, #fff); }
.site-foot .foot-mail, .site-foot .copy { margin: .6rem 0 0; font-size: .85rem; color: var(--ft-faint); }
.site-foot .foot-links { display: inline-flex; gap: 1rem; margin-left: .6rem; }
.site-foot .glass::before { display: none; }
@media (prefers-reduced-motion: reduce) { .fx .rv .w > span { transform: none; transition: none; } .fx .hx-art:not(.live) .canopy, .fx .hx-art:not(.live) .trunk { transform: none; opacity: 1; } .hx-art * { animation: none !important; } }
.foot-tag { margin: .5rem 0 0; font: 500 .95rem var(--sans); color: var(--ft-soft); }
.site-head .btn:not(.ghost) { background: var(--pub-btn); color: #fff; border: 0; box-shadow: none; }
.site-head .btn:not(.ghost):hover { background: var(--pub-btn-hi); }
@media (max-width: 40rem) {
  .site-head-in { flex-wrap: wrap; padding: .4rem .4rem .3rem .7rem; }
  .site-head nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -.2rem; }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { flex: none; white-space: nowrap; }
}
/* Buttons: beat the older glass rules (they use :root plus :not chains) */
:root .site-head .btn:not(.ghost):not(.danger) { background: var(--pub-btn); border: 0; color: #fff; box-shadow: none; }
:root .site-head .btn:not(.ghost):not(.danger):hover { background: var(--pub-btn-hi); }
:root .hx-hero .btn:not(.ghost):not(.danger), :root .site-foot .btn:not(.ghost):not(.danger) { background: var(--st-cta); color: var(--st-cta-ink); border: 0; font-weight: 600; box-shadow: 0 10px 28px -12px var(--st-cta-glow); }
:root .hx-hero .btn.ghost, :root .site-foot .btn.ghost { background: var(--st-ghost-bg); color: var(--st-ghost-ink); border: 1px solid var(--st-ghost-bd); }
:root .hx-price .btn:not(.ghost):not(.danger) { background: var(--pub-btn); color: #fff; border: 0; }

/* ===== Pass 95: the hero characters (Sprout the buddy, a bee, a butterfly, drifting leaves, sun and clouds) ===== */
.hx-tree .sun, .hx-tree .cloud, .hx-tree .buddy, .hx-tree .bee, .hx-tree .fly, .hx-tree .drift { transform-box: view-box; }
.hx-tree .buddy .b-body { transform-box: fill-box; transform-origin: 50% 100%; }
.hx-tree .b-eyes, .hx-tree .fr .eye, .hx-tree .b-arm, .hx-tree .b-ear, .hx-tree .wing, .hx-tree .fl-r, .hx-tree .rays, .hx-tree .dl { transform-box: fill-box; }
.hx-tree .b-eyes { transform-origin: 50% 50%; }
.hx-tree .b-arm { transform-origin: 0% 100%; }
.hx-tree .b-ear { transform-origin: 50% 100%; }
.hx-tree .rays { transform-origin: 50% 50%; }
.hx-tree .wing { transform-origin: 50% 100%; }
.hx-tree .fl-r { transform-origin: 0% 50%; }
.hx-tree .bee, .hx-tree .fly, .hx-tree .drift { opacity: 0; }
.fx .hx-art.live .buddy { animation: budIn .8s 1.4s cubic-bezier(.3,1.6,.5,1) both; }
.fx .hx-art:not(.live) .buddy { opacity: 0; }
.fx .hx-art.live .buddy .b-body { animation: budBob 2.6s 2.2s ease-in-out infinite; }
.fx .hx-art.live .b-eyes { animation: blink 4.6s 2.6s infinite; }
.fx .hx-art.live .b-arm { animation: wave 2.4s 2.2s ease-in-out infinite; }
.fx .hx-art.live .b-ear { animation: earWag 3.2s 2.4s ease-in-out infinite; }
.fx .hx-art.live .b-ear.r { animation-delay: 2.7s; }
.fx .hx-art.live .fr .eye { animation: blink 5.2s calc(3s + var(--i) * .6s) infinite; transform-origin: 50% 50%; }
.fx .hx-art.live .fr { animation: frIn .8s calc(2.2s + var(--i) * 140ms) cubic-bezier(.3,1.6,.5,1) both, frSwing 3.6s calc(3s + var(--i) * .3s) ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0%; }
.fx .hx-art.live .sun .rays { animation: spin 28s linear infinite; }
.fx .hx-art.live .sun { animation: sunPulse 5s ease-in-out infinite; transform-origin: 520px 78px; }
.fx .hx-art.live .cloud.c1 { animation: cloudSlide 26s ease-in-out infinite alternate; }
.fx .hx-art.live .cloud.c2 { animation: cloudSlide 32s -8s ease-in-out infinite alternate-reverse; }
.fx .hx-art.live .bee { opacity: 1; animation: beeFly 11s 2.6s ease-in-out infinite; }
.fx .hx-art.live .bee .wing { animation: buzz .12s linear infinite alternate; }
.fx .hx-art.live .fly { opacity: 1; animation: flyPath 16s 3.4s ease-in-out infinite; }
.fx .hx-art.live .fly .fl-r { animation: flap .45s ease-in-out infinite alternate; }
.fx .hx-art.live .drift { opacity: 1; }
.fx .hx-art.live .dl { animation: leafFall 9s linear infinite; }
.fx .hx-art.live .dl.d1 { transform: translate(190px, 20px); }
.fx .hx-art.live .dl.d2 { transform: translate(380px, 10px); animation-delay: -3s; animation-duration: 11s; }
.fx .hx-art.live .dl.d3 { transform: translate(470px, 40px); animation-delay: -6s; animation-duration: 10s; }
@keyframes budIn { from { opacity: 0; transform: translate(196px, 352px) scale(.2); } to { opacity: 1; transform: translate(196px, 352px) scale(1); } }
@keyframes budBob { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.04, .94); } 70% { transform: translateY(-5px) scale(.98, 1.04); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-24deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-20deg); } }
@keyframes earWag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes frSwing { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sunPulse { 50% { transform: scale(1.06); } }
@keyframes cloudSlide { to { transform: translateX(46px); } }
@keyframes beeFly { 0% { transform: translate(60px, 250px); } 20% { transform: translate(190px, 140px) rotate(-8deg); } 40% { transform: translate(310px, 70px); } 55% { transform: translate(420px, 150px) rotate(10deg); } 75% { transform: translate(330px, 260px); } 100% { transform: translate(60px, 250px); } }
@keyframes buzz { to { transform: scaleY(.4); } }
@keyframes flyPath { 0% { transform: translate(520px, 270px); } 25% { transform: translate(440px, 190px) rotate(-12deg); } 50% { transform: translate(520px, 120px) rotate(10deg); } 75% { transform: translate(560px, 210px) rotate(-6deg); } 100% { transform: translate(520px, 270px); } }
@keyframes flap { to { transform: scaleX(.35); } }
@keyframes leafFall { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 10% { opacity: 1; } 50% { translate: -24px 130px; rotate: 160deg; } 90% { opacity: 1; } 100% { opacity: 0; translate: 14px 260px; rotate: 340deg; } }
@media (prefers-reduced-motion: reduce) { .hx-tree .buddy, .hx-tree .bee, .hx-tree .fly { opacity: 1 !important; } .hx-tree .bee { transform: translate(190px, 140px); } .hx-tree .fly { transform: translate(520px, 120px); } .hx-tree .drift { display: none; } .fx .hx-art:not(.live) .buddy { opacity: 1; } }
:root[data-motion=reduce] .hx-tree * { animation: none !important; }

/* ===== Feature cards: each picture plays a small loop while its card is on screen ===== */
.hx-glyph svg * { transform-box: fill-box; transform-origin: 50% 50%; }
.hx-card.live[data-k=capture] .ic-b { animation: gPulse 2.4s ease-in-out infinite; }
.hx-card.live[data-k=organize] .ic-b { animation: gSlide 2.8s ease-in-out infinite; transform-origin: 0 50%; }
.hx-card.live[data-k=research] .ic-a { animation: gSearch 3.2s ease-in-out infinite; }
.hx-card.live[data-k=research] .ic-b { animation: gSearch 3.2s ease-in-out infinite; }
.hx-card.live[data-k=write] .ic-b { animation: gWrite 2.2s ease-in-out infinite; transform-origin: 20% 80%; }
.hx-card.live[data-k=annotate] .ic-b path:first-child { animation: gMark 3s ease-in-out infinite; transform-origin: 0 50%; }
.hx-card.live[data-k=ask-ai] .ic-b path:first-child { animation: gTwinkle 2.2s ease-in-out infinite; }
.hx-card.live[data-k=create] .ic-b { stroke-dasharray: 60; animation: gDraw 3s ease-in-out infinite; }
.hx-card.live[data-k=your-notes-stay-yours] .ic-b { animation: gLock 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes gPulse { 50% { transform: scale(1.22) rotate(90deg); } }
@keyframes gSlide { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.7); } }
@keyframes gSearch { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(2px, -2px); } 70% { transform: translate(-1px, 2px); } }
@keyframes gWrite { 0%, 100% { transform: rotate(0) translate(0, 0); } 30% { transform: rotate(-6deg) translate(-2px, 1px); } 60% { transform: rotate(4deg) translate(2px, -1px); } }
@keyframes gMark { 0%, 100% { transform: scaleX(.4); } 50% { transform: scaleX(1); } }
@keyframes gTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.35) rotate(45deg); } }
@keyframes gDraw { 0% { stroke-dashoffset: 60; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; } }
@keyframes gLock { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-2px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hx-glyph svg * { animation: none !important; } }
