/* Landing page only. Editorial, real-product look: no floating cards, no pastel emoji tiles,
   hairlines and real device frames instead of boxes. */

.landing { background: var(--bg); }
.landing .i { width: 1em; height: 1em; flex: none; }

/* wordmark: bigger, heavier logo on the home page header */
.landing .nav .container { height: 84px; }
.landing .nav .logo { font-size: 27px; font-weight: 800; gap: 12px; letter-spacing: -0.045em; transition: transform .25s ease; }
.landing .nav .logo .logo-mark { width: 46px; height: 46px; filter: drop-shadow(0 6px 10px rgba(15, 92, 70, .22)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.landing .nav .logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
@media (max-width: 760px) {
  .landing .nav .container { height: 72px; }
  .landing .nav .logo { font-size: 22px; gap: 9px; }
  .landing .nav .logo .logo-mark { width: 38px; height: 38px; }
  .landing .nav-links a { white-space: nowrap; }
}
@media (max-width: 440px) {
  .landing .nav .logo { font-size: 20px; gap: 8px; }
  .landing .nav .logo .logo-mark { width: 34px; height: 34px; }
  .landing .nav-links { gap: 14px; }
  .landing .nav-links .btn { padding: 9px 13px; }
}
@media (max-width: 400px) {
  .landing .nav .logo { font-size: 19px; }
  .landing .nav .logo .logo-mark { width: 32px; height: 32px; }
  .landing .nav-links { gap: 12px; }
  .landing .nav-links .btn { padding: 9px 12px; }
}
@media (max-width: 370px) {
  .landing .nav .logo { font-size: 18px; }
  .landing .nav .logo .logo-mark { width: 30px; height: 30px; }
}
/* the logo never squeezes under "Log in"; on the narrowest phones the header
   drops "Log in" (it's still in the footer and on the sign-up page) */
.landing .nav .logo { flex: none; }
@media (max-width: 350px) { .landing .nav-links a[href="/login"] { display: none; } }
.landing .nav .logo .wm { display: flex; flex-direction: column; line-height: 1.05; }
.landing .nav .logo .wm small { font: 500 11.5px var(--font); letter-spacing: 0; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 520px) { .landing .nav .logo .wm small { display: none; } }

.landing .btn { border-radius: 10px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn .arr { display: inline-flex; transition: transform .2s ease; }
.btn .arr .i { width: 18px; height: 18px; }
.btn:hover .arr { transform: translateX(4px); }
.landing .btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -8px rgba(15, 92, 70, .55); }
.landing .btn-primary:hover { transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--brand-ink); }
.btn-white:hover { background: #f1fbf6; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.text-link:hover { border-color: var(--ink); }
.text-link .i { width: 16px; height: 16px; }

.kick { display: block; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 14px; }
.head-left { max-width: 620px; margin-bottom: 48px; }
.head-left h2, .split h2 { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -0.045em; }
.head-left p { font-size: 18px; color: var(--ink-2); }

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; position: relative; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 901px) { .hero .container { grid-template-columns: 1.1fr .9fr; } }
.hero-kick { font-weight: 600; color: var(--brand-ink); margin-bottom: 18px; font-size: 15px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); }
.hero h1 em { color: var(--brand); }
.hero h1 em::after { transform-origin: left; animation: underline .9s cubic-bezier(.3,.8,.3,1) .6s both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero-cta { gap: 26px; }
.hero-note { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--ink-2); }
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note li::before { content: none; }
.hero-note .i { color: var(--brand); width: 16px; height: 16px; stroke-width: 2.6; }

.stage { position: relative; display: grid; justify-items: center; padding-top: 40px; }
.disc { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 30px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle at 50% 40%, #d5f1e4 0%, #e9f6ef 45%, rgba(251,248,243,0) 70%); }
/* The sheepdog stands big behind the phone, the sheep in front of it at its feet. */
.stage-pal { position: absolute; pointer-events: none; }
.stage-pal .pal { pointer-events: auto; }
/* home hero: the dog stands beside the phone, as big as the space to its right allows */
@media (min-width: 901px) {
  .stage:has(.handset) .sp-back { --dh: clamp(420px, calc(77vw - 548px), 780px); bottom: -40px; left: calc(275px - 0.216 * var(--dh)); }
  .stage:has(.handset) .sp-back .pal { --pal-h: var(--dh) !important; }
}
@media (min-width: 901px) and (max-width: 1649px) { .stage:has(.handset) .sp-back { bottom: 26px; } }
.sp-back { z-index: 1; bottom: 26px; left: calc(50% - 115px); filter: drop-shadow(0 24px 30px rgba(22, 33, 58, .16)); }
.sp-front { z-index: 3; bottom: 4px; left: calc(50% - 425px); filter: drop-shadow(0 18px 20px rgba(22, 33, 58, .18)); }
@media (min-width: 901px) { .stage:has(.sp-back) > :not(.disc):not(.stage-pal) { translate: -110px 0; } }
.stage:has(.sp-back) .rooms { position: relative; z-index: 2; background: var(--bg); }
@media (max-width: 1100px) { .sp-back .pal { --pal-h: 380px !important; } .stage:has(.handset) .sp-back { --dh: 380px; bottom: 26px; } .sp-front .pal { --pal-h: 220px !important; } .sp-front { left: calc(50% - 365px); } }
/* Phones and small tablets: the animals step out in front, standing big at the foot of the phone or card */
@media (max-width: 900px) {
  .stage-pal { position: relative; left: auto; bottom: auto; grid-row: 99; grid-column: 1; z-index: 3; margin-top: -96px; }
  .stage .demo-line { grid-row: 100; }
  .sp-back { justify-self: end; margin-right: -10px; }
  .sp-front { justify-self: start; margin-left: -22px; }
  .sp-back .pal { --pal-h: 300px !important; }
  .sp-front .pal { --pal-h: 180px !important; }
  .stage:not(:has(.sp-front)) .sp-back { justify-self: center; margin: -18px 0 0; }
}
@media (min-width: 521px) and (max-width: 900px) { .stage:has(.sp-front) .sp-back { margin-right: calc(50% - 300px); } .sp-front { margin-left: calc(50% - 290px); } .sp-back .pal { --pal-h: 380px !important; } .sp-front .pal { --pal-h: 250px !important; } }
@media (max-width: 380px) { .sp-back .pal { --pal-h: 260px !important; } .sp-front .pal { --pal-h: 180px !important; } }
.demo-line { position: relative; margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-3); min-height: 1.5em; transition: opacity .3s; }
.demo-line.swap { opacity: 0; }

/* real phone frame */
.handset { position: relative; z-index: 2; width: 300px; padding: 11px; border-radius: 50px; background: linear-gradient(145deg, #2b3247, #0d1120 60%); box-shadow: 0 0 0 1.5px #3b4359 inset, 0 40px 80px -30px rgba(22,33,58,.55), 0 18px 30px -18px rgba(22,33,58,.4); }
.handset::before { content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #222838; }
.island { position: absolute; z-index: 3; top: 21px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #05070d; transform: translateX(-50%); }
.screen-app, .screen-web { border-radius: 40px; background: var(--bg); overflow: hidden; height: 600px; position: relative; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 0 30px; height: 46px; font: 600 14px var(--font); }
.sbar .sig { display: inline-flex; gap: 6px; align-items: center; }
.sbar .sig .i { width: 15px; height: 15px; stroke-width: 2.5; }
.batt { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; display: inline-block; }
.batt::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: var(--ink); border-radius: 1px; }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 12px 20px 10px; font: 700 14px var(--display); letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }
.app-bar img { width: 20px; height: 20px; }
.app-bar b { color: var(--brand); font-weight: 400; margin-left: .1em; }
.kid { display: flex; align-items: center; gap: 12px; padding: 16px 20px 10px; }
.kid .avatar { width: 44px; height: 44px; background: var(--sky); transition: background .3s; }
.kid .avatar.j { background: var(--sun); }
.kid > div:nth-child(2) { flex: 1; min-width: 0; }
.kid strong { display: block; font: 700 21px/1.1 var(--display); letter-spacing: -0.03em; }
.kid small { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--brand-ink); font-weight: 600; }
.pager { display: inline-flex; gap: 5px; align-self: flex-start; margin-top: 6px; }
.pager i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
.pager i.on { width: 16px; background: var(--ink-3); }
/* the demo "swipes" between kids: the page slides, a fingertip leads it */
.pane { will-change: transform; }
.pane.out { transform: translateX(-62%); opacity: 0; transition: transform .55s cubic-bezier(.5,0,.75,0), opacity .5s ease-in; }
.pane.in { transform: translateX(62%); opacity: 0; }
.pane.back { transition: transform .5s cubic-bezier(.2,.9,.3,1), opacity .4s; }
.touch { position: absolute; z-index: 4; top: 300px; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,184,77,.55); box-shadow: 0 0 0 2px rgba(255,184,77,.85), 0 6px 18px -4px rgba(255,160,40,.6); opacity: 0; pointer-events: none; }
.touch.go { animation: swipe 1.05s cubic-bezier(.45,0,.3,1) both; }
@keyframes swipe {
  0% { opacity: 0; transform: translateX(250px) scale(1.3); }
  18% { opacity: 1; transform: translateX(240px) scale(.92); }
  75% { opacity: 1; transform: translateX(60px) scale(.92); }
  100% { opacity: 0; transform: translateX(30px) scale(1.15); }
}
.sw-list { margin: 4px 14px; background: var(--surface); border-radius: 18px; padding: 2px 14px; box-shadow: 0 0 0 1px var(--line); }
.sw { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; transition: color .3s; }
.sw:first-child { border-top: 0; }
.sw .i { width: 19px; height: 19px; color: var(--ink-2); }
.sw span:not(.track) { flex: 1; }
.sw .switch { transform: scale(.82); transform-origin: right center; margin-left: -6px; }
.sw.flash .i { color: var(--brand); }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 22px 6px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.feed-head b { font: 700 15px var(--display); color: var(--coral); letter-spacing: -0.02em; text-transform: none; transition: transform .2s; }
.feed-head b.bump { transform: scale(1.15); }
.feed { list-style: none; margin: 0; padding: 0 22px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); max-height: 170px; overflow: hidden; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed li.new { animation: slide-in .5s cubic-bezier(.2,.9,.3,1.1) both; }
.feed li.new b { color: var(--coral); }
.feed .x { color: var(--coral); display: inline-flex; }
.feed .x .i { width: 16px; height: 16px; }
.feed li div { flex: 1; min-width: 0; }
.feed b { display: block; font-size: 13.5px; transition: color 1.2s; }
.feed small { color: var(--ink-3); font-size: 12px; }
.feed time { color: var(--ink-3); font: 500 11.5px var(--mono); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px); max-height: 0; padding: 0; } to { max-height: 60px; } }
@media (max-width: 900px) { .stage { padding-top: 56px; } }
@media (max-width: 420px) { .handset { width: 280px; } .screen-app { height: 560px; } .disc { width: 400px; height: 400px; } }

/* ---------- works on ---------- */
.works { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.works .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.works-label { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.works-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; padding: 0; font-weight: 600; color: var(--ink-2); }
.works-list li { display: inline-flex; align-items: center; gap: 8px; }
.works-list .i { width: 19px; height: 19px; color: var(--ink); }

/* ---------- stats ---------- */
.stats { padding: 52px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 750 clamp(32px, 3.8vw, 46px)/1.1 var(--display); letter-spacing: -0.045em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14.5px; color: var(--ink-2); display: block; max-width: 210px; }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding: 0 16px; }
}

/* ---------- steps on a line ---------- */
.steps-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: none; }
.steps-line li { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.steps-line li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.3,.8,.3,1) .3s; }
.steps-line li.in::before, html:not(.js) .steps-line li::before { transform: none; }
.steps-line .n { display: block; font: 500 14px var(--mono); color: var(--brand); margin-bottom: 12px; }
.steps-line h3 { font-size: 23px; letter-spacing: -0.03em; }
.steps-line p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps-line { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- before / after ---------- */
.band.dusk { background: #eef3ef; }
.compare { display: flex; justify-content: center; gap: clamp(28px, 7vw, 96px); flex-wrap: wrap; }
.compare figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.compare figcaption { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.bad { background: var(--coral); }
.dot.good { background: var(--brand); }
.handset.sm { width: 260px; border-radius: 44px; padding: 10px; }
.handset.sm .island { top: 19px; width: 80px; height: 22px; }
.handset.sm .screen-web { height: 470px; border-radius: 35px; background: #fff; padding: 54px 14px 14px; }
.url { font: 500 12px var(--mono); background: #f1f1f3; border-radius: 10px; padding: 9px 12px; color: var(--ink-2); margin-bottom: 14px; text-align: center; }
.ad { font: 800 14px/1.25 Arial, Helvetica, sans-serif; padding: 16px 14px; margin-bottom: 10px; border-radius: 4px; }
.ad u { font-weight: 800; }
.a1 { background: repeating-linear-gradient(45deg, #ffe600, #ffe600 12px, #ffd000 12px, #ffd000 24px); color: #1a1400; }
.a2 { background: #b0105a; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.a3 { background: #4b1fa6; color: #fff; }
.a4 { background: #111; color: #39ff88; font-family: "Courier New", monospace; }
.js .bad .ad { opacity: 0; }
.js figure.in .bad .ad { animation: ad-in .35s steps(2, end) both; }
.js figure.in .bad .a2 { animation-delay: .5s; }
.js figure.in .bad .a3 { animation-delay: 1s; }
.js figure.in .bad .a4 { animation-delay: 1.5s; }
@keyframes ad-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; } }
.cant { text-align: center; padding: 56px 8px 0; display: grid; justify-items: center; gap: 6px; }
.cant .i { width: 48px; height: 48px; color: var(--brand); stroke-width: 1.6; margin-bottom: 8px; }
.cant strong { font-size: 17px; }
.cant small { color: var(--ink-3); font-size: 13.5px; max-width: 200px; }
.still { position: absolute; left: 14px; right: 14px; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }
.still .i { width: 16px; height: 16px; }

/* ---------- what it blocks: a settings-style spec list ---------- */
.split-wide { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.sticky-head { position: sticky; top: 110px; }
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.spec li { display: grid; grid-template-columns: 28px 1fr auto; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec .i { width: 24px; height: 24px; margin-top: 2px; color: var(--ink); }
.spec h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -0.02em; }
.spec p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.state { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: 5px; white-space: nowrap; }
.state.on { color: var(--brand); }
@media (max-width: 900px) { .split-wide { grid-template-columns: 1fr; gap: 24px; } .sticky-head { position: static; } }
@media (max-width: 760px) {
  /* phones: tighter vertical rhythm so sections don't float in big empty gaps */
  .landing section.band { padding: 64px 0; }
  .landing .stats { padding: 36px 0 8px; }
  .split-wide .head-left { margin-bottom: 8px; }
}

/* ---------- report as a real email ---------- */
.band.paper { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks .i { color: var(--brand); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.4; }
.ticks.big li { font-size: 17px; padding: 14px 0; }
.mail { background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(22,33,58,.35); overflow: hidden; }
.mail-meta { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); background: #fcfbf8; }
.mail-meta div { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta span { display: inline-block; width: 64px; color: var(--ink-3); }
.mail-meta b { color: var(--ink); }
.mail .report-card { border: 0; box-shadow: none; border-radius: 0; }
.js .bars .bar { transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.3,.9,.3,1.1); }
.js .mail.in .bars .bar { transform: none; }

/* ---------- promises on ink ---------- */
.band.ink { background: var(--ink); color: #fff; }
.band.ink .kick { color: #5fd3a8; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.promises > div { padding: 28px 28px 8px 0; }
.promises > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.15); }
.promises .i { width: 26px; height: 26px; color: #5fd3a8; margin-bottom: 18px; }
.promises h3 { font-size: 19px; margin-bottom: 6px; }
.promises p { color: #b9c1d4; font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr 1fr; }
  .promises > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .promises > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-width: 520px) {
  .promises { grid-template-columns: 1fr; }
  .promises > div, .promises > div + div { padding: 24px 0 8px; border-left: 0; }
  .promises > div + div { border-top: 1px solid rgba(255,255,255,.15); }
}

/* ---------- FAQ as hairline accordion ---------- */
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 22px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 26px/1 var(--font); color: var(--ink-3); transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { color: var(--ink-2); margin: -6px 0 22px; max-width: 620px; }

/* ---------- finale: full-bleed brand band ---------- */
.finale { background: var(--brand-ink); background-image: radial-gradient(90% 120% at 50% 0%, #1e8f6e 0%, #0f5c46 70%); color: #fff; text-align: center; padding: 72px 0 84px; }
.finale-pals .pal[data-pal="dog"] { --pal-h: 280px !important; }
.finale-pals .pal[data-pal="sheep"] { --pal-h: 236px !important; }
.finale-pals { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 0 auto 14px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.28)); }
.finale h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.045em; }
.finale p { color: #cdeee0; font-size: 18px; margin-bottom: 30px; }
@media (max-width: 760px) {
  /* Compact closing band so, scrolled to the very bottom, the sheepdog and sheep sit clear of the header */
  .finale { padding: 44px 0 44px; }
  .finale-pals { margin-bottom: 6px; } .finale-pals .pal[data-pal="dog"] { --pal-h: 190px !important; } .finale-pals .pal[data-pal="sheep"] { --pal-h: 160px !important; }
  .finale p { font-size: 17px; margin-bottom: 24px; }
  footer.site { padding-top: 28px; }
}

/* ---------- sticky phone CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(251, 248, 243, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; transform: translateY(110%); transition: transform .35s cubic-bezier(.3,.8,.3,1); }
  .sticky-cta.show { transform: none; }
  footer.site { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- footer ---------- */
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot-brand .logo { font-size: 17px; }
.foot-brand .logo-mark { width: 28px; height: 28px; }
.foot-brand em { font-style: normal; color: var(--ink-3); }
.foot-links a { margin-left: 16px; }
/* sister sites: "More from our family", app-store style rows split by hairlines */
footer.site .family { flex-basis: 100%; width: 100%; align-self: stretch; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
footer.site .fam-label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
footer.site .family ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
footer.site .family li + li { border-left: 1px solid var(--line); }
footer.site .family a { margin: 0; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 0; color: var(--ink); text-decoration: none; white-space: normal; }
footer.site .family li + li a { padding-left: 22px; }
footer.site .family img { width: 44px; height: 44px; flex: none; border-radius: 11px; box-shadow: 0 0 0 1px rgba(22,33,58,.08); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
footer.site .fam-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
footer.site .fam-txt strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
footer.site .fam-txt small { font-size: 13.5px; color: var(--ink-3); line-height: 1.3; }
footer.site .family .go { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .3s cubic-bezier(.3,1.4,.5,1), color .2s; }
footer.site .family a:hover img, footer.site .family a:focus-visible img { transform: rotate(-4deg) scale(1.06); }
footer.site .family a:hover .go, footer.site .family a:focus-visible .go { transform: translate(3px, -3px); color: var(--brand); }
footer.site .family a:hover strong { color: var(--brand-ink); }
@media (max-width: 640px) {
  footer.site .family { margin-top: 6px; padding-top: 18px; }
  footer.site .family ul { grid-template-columns: 1fr; }
  footer.site .family li + li { border-left: 0; border-top: 1px solid var(--line); }
  footer.site .family a, footer.site .family li + li a { padding: 14px 2px; }
}

/* ---------- scroll reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .bad .ad { opacity: 1; transform: none; }
  .js .bars .bar { transform: none; }
  .steps-line li::before { transform: none; }
}

/* Homepage: "Also for churches and schools" rows. */
.org-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.org-rows li { border-bottom: 1px solid var(--line); }
.org-rows a { display: grid; gap: 6px; padding: 28px 0; color: inherit; text-decoration: none; }
.org-k { font: 600 12px var(--mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.org-rows b { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
.org-p { color: var(--ink-2); max-width: 52ch; }
.org-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--brand-ink, #0f5c46); }
.org-go .i { width: 18px; height: 18px; transition: transform .25s ease; }
.org-rows a:hover .org-go .i, .org-rows a:focus-visible .org-go .i { transform: translateX(5px); }
.org-rows a:hover b { color: var(--brand-ink, #0f5c46); }

/* Homepage announcement bar (Schools launch). Dismissed with localStorage cpw:annc. */
.annc { position: relative; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 14px; min-height: 42px; padding: 0 44px; }
.annc a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 10px 0; }
.annc-new { flex: none; font: 600 11px var(--mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: #5fd3a8; border-radius: 4px; padding: 3px 7px; }
.annc-more { color: rgba(255,255,255,.7); }
.annc a .i { flex: none; width: 16px; height: 16px; transition: transform .25s ease; }
.annc a:hover .i { transform: translateX(4px); }
.annc a:hover .annc-t { text-decoration: underline; text-underline-offset: 3px; }
.annc-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: rgba(255,255,255,.7); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 6px; }
.annc-x:hover { color: #fff; background: rgba(255,255,255,.1); }
.annc-off .annc { display: none; }
@media (max-width: 640px) { .annc { font-size: 13px; justify-content: flex-start; padding: 0 40px 0 16px; } .annc-more { display: none; } }

/* ---------- type system: clean modern headlines, warm grotesk body ----------
   One family everywhere: Google Sans for headlines and reading text. Geist stays only
   for the wordmark (it's part of the logo). No mono, no numbered eyebrows. */
.landing {
  --font: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--font);
  --display: var(--font);
  --mono: var(--font);
  font-family: var(--font);
  font-feature-settings: "ss01" 0;
}
.landing .logo, .landing .app-bar { font-family: "Geist", system-ui, sans-serif; }
.landing h1, .landing h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.landing h1 em, .landing h2 em { font-style: normal; font-weight: 500; }
.landing .head-left h2, .landing .split h2 { letter-spacing: -0.03em; font-size: clamp(34px, 4.4vw, 54px); }
.landing .finale h2 { letter-spacing: -0.03em; }
.landing h3 { font-family: var(--font); font-weight: 650; letter-spacing: -0.012em; }

/* section label: quiet sentence-case line, not a techy all-caps tag */
.landing .kick {
  display: flex; align-items: center; gap: 12px;
  font: 600 15px/1.2 var(--font); text-transform: none; letter-spacing: 0;
  color: var(--brand-ink); margin-bottom: 16px;
}
.landing .kick::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .55; }
.landing .band.ink .kick { color: #5fd3a8; }

/* steps: a drawn line icon, no 01/02/03 */
.landing .steps-line .n { --c: var(--brand); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; margin-bottom: 20px;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 85%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1), scale .7s cubic-bezier(.34, 1.56, .64, 1) .2s; }
.landing .steps-line li:nth-child(2) .n { --c: #4f6bd8; }
.landing .steps-line li:nth-child(3) .n { --c: #c7772a; }
.landing .steps-line .n .i { width: 28px; height: 28px; overflow: visible; }
.landing .steps-line li:hover .n { background: var(--c); color: #fff; transform: translateY(-3px) rotate(-5deg); box-shadow: 0 14px 24px -12px color-mix(in srgb, var(--c) 75%, transparent); }
.landing .steps-line li:hover .n .i { animation: ic-hop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@media (prefers-reduced-motion: no-preference) {
  .landing .steps-line .n .i * { stroke-dasharray: 130; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.6, 0, .2, 1) .45s; }
  .js .landing .steps-line li.rv:not(.in) .n .i * { stroke-dashoffset: 130; }
  .js .landing .steps-line li.rv:not(.in) .n { scale: .6; }
}
@media (prefers-reduced-motion: reduce) { .landing .steps-line .n, .landing .steps-line .n * { transition: none; animation: none !important; } .landing .steps-line li:hover .n { transform: none; } }
.landing .steps-line h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: -0.02em; line-height: 1.15; }
.landing .steps-line p { font-size: 16.5px; line-height: 1.55; }

/* other small labels: sentence case, body font */
.landing .works-label, .landing .feed-head, .landing .state, .landing .org-k, .landing .ws-kick, .landing .lg-tag {
  text-transform: none; letter-spacing: 0; font-family: var(--font);
}
.landing .works-label, .landing .org-k { font-size: 14px; font-weight: 600; }
.landing .state { font-size: 13px; font-weight: 600; }
.landing .feed-head { font-size: 12.5px; font-weight: 600; }
.landing .stat b { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }
.landing .compare figcaption { font-weight: 600; }
.landing .qa summary { font-weight: 600; letter-spacing: -0.005em; }
.landing .hero h1 { line-height: 1.02; margin-bottom: .32em; }
.landing .hero h1 em::after { height: 9px; bottom: 7px; }

/* Home: popular guides as a plain hairline link list (internal links for readers and search). */
.landing .guide-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.landing .guide-links li { border-bottom: 1px solid var(--line); }
.landing .guide-links a { display: block; padding: 15px 0; color: var(--ink); text-decoration: none; font-weight: 500; transition: color .2s, padding-left .25s; }
.landing .guide-links a:hover { color: var(--brand-ink, var(--brand)); padding-left: 6px; }
@media (max-width: 720px) { .landing .guide-links { grid-template-columns: 1fr; } }

/* ---------- live block list count (live-count.js) ---------- */
.stat b[data-livecount] { transition: color .9s ease; }
.stat b[data-livecount].bump { animation: live-bump 1.1s ease-out; }
@keyframes live-bump { 0% { color: var(--brand); } 100% { color: inherit; } }
.stat .lc-note { display: flex; align-items: center; gap: 8px; margin: -2px 0 8px; font: 500 12.5px/1.3 var(--font); color: var(--ink-3); letter-spacing: 0; }
.lc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); position: relative; flex: none; }
.lc-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }

/* One clean family: big numbers and card titles use the same medium weight as the headlines */
.landing .stat b, .landing .org-rows b, .landing .ws-h, .landing .inv-h { font-weight: 500; letter-spacing: -0.025em; }
.landing h3 { font-weight: 500; letter-spacing: -0.01em; }
/* Home hero on phones: the dog stands big behind the phone, peeking over the top while the demo runs in front */
@media (max-width: 900px) {
  .stage:has(.handset) { padding-top: 262px; }
  .stage:has(.handset) .sp-back { position: absolute; top: 0; left: 50%; translate: -50% 0; margin: 0; grid-row: auto; z-index: 1; }
  .stage:has(.handset) .sp-back .pal { --pal-h: 780px !important; }
}

/* audience page heroes: the audience's icon draws itself beside the kicker */
.hero-kick.hk-ic { display: flex; align-items: center; gap: 14px; }
