/* Nestie site design system (heynestie.com).
   Every page on the site links this file before its own <style>; pages keep only their own layout.
   The rules for using it (tokens, Nestie art, the cast, copy, motion) live in
   .agents/rules/web/landing-design-system.md. Change a token here, not in a page. */

/* ---------- tokens ---------- */
:root{
  color-scheme:light;
  /* surfaces */
  --bg:#FFFBF7; --bg2:#FFF4E8; --card:#FFFFFF; --soft:#E3F5F3; --line:#F0DDD3;
  /* ink and brand */
  --ink:#155A57; --ink2:#5A5B5C; --brand:#155A57; --brand-ink:#FFFFFF;
  /* accents: yellow highlights, coral actions */
  --accent:#FDDD4C; --accent2:#ED7759;
  /* card tints, the three Cheerleader colours */
  --tint-coral:#FBD3C6; --tint-yellow:#FDDD4C; --tint-mint:#CDEFEB;
  /* the three ways families reach Nestie */
  --hub:#155A57; --app:#ED7759; --text:#2E9E93;
  /* type */
  --display:"Parkinsans", system-ui, sans-serif; --body:"Parkinsans", system-ui, sans-serif;
  --h-weight:800; --h-track:-.025em;
  /* shape */
  --r:26px; --r-sm:16px; --shadow:0 24px 50px -26px rgba(21,90,87,.35);
  /* Nestie: the one art file for Nestie anywhere on the site. Swap the file, not the references. */
  --nestie-art:url(/chief-of-staff/img/nestie/nestie.webp);
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 var(--body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--display);font-weight:var(--h-weight);letter-spacing:var(--h-track);line-height:1.05;margin:0;text-wrap:balance}
p{margin:0}
.wrap{max-width:calc(1360px + 2 * clamp(16px,3.2vw,48px));margin:0 auto;padding:0 max(clamp(16px,3.2vw,48px),env(safe-area-inset-left))}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.only-b{display:none!important}
html[data-v="b"] .only-a{display:none!important}
html[data-v="b"] .only-b{display:revert!important}
html[data-v="b"] span.only-b{display:inline!important}

/* ---------- nav ---------- */
.nav{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;gap:24px;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--display);font-size:24px;font-weight:600;text-decoration:none;letter-spacing:-.01em}
.logo .mk{width:34px;height:34px;flex:none;background:var(--nestie-art) center/contain no-repeat}
.nav nav{display:flex;gap:22px;margin-left:auto;font-size:15px}
.nav nav a{text-decoration:none;color:var(--ink2)}
.nav nav a:hover{color:var(--ink)}
@media (max-width:820px){.nav nav{display:none}.nav .btn{margin-left:auto}}

/* ---------- buttons: one coral primary per view, everything else ghost or link ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:99px;padding:13px 22px;font-weight:600;font-size:16px;text-decoration:none;transition:transform .15s ease, box-shadow .15s ease;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent2);color:var(--brand-ink);box-shadow:var(--shadow)}
.btn-ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.nav .btn{padding:10px 18px;font-size:15px}

/* ---------- headline highlight: the second clause of a headline sits on a yellow marker ---------- */
.hl{font-style:normal;color:inherit;background:linear-gradient(transparent 62%,var(--accent) 62%,var(--accent) 92%,transparent 92%);padding:0 .06em;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* ---------- section heads: eyebrow, headline, one line ---------- */
section{position:relative}
.sec{padding:96px 0}
.sec-head{display:grid;gap:14px;max-width:820px;margin-bottom:36px}
.sec-head .num{font:700 14px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--ink);display:flex;gap:10px;align-items:center}
.sec-head h2{font-size:clamp(34px,4.6vw,58px)}
.sec-head p{color:var(--ink2);font-size:18px;max-width:60ch}

/* ---------- Nestie ---------- */
/* the small mark: chat avatars, notifications, the waitlist bar. The bird alone, no background behind it. */
.nmark{width:24px;height:24px;flex:none;display:inline-block;background:var(--nestie-art) center/contain no-repeat}
/* the bird: Nestie standing free at the centre of a picture, the way it parks bottom right on the Hub.
   Set --size on it. Never put a disc, ring or tinted circle behind Nestie: that reads as a profile picture. */
.nestie-bird{--size:120px;width:var(--size);aspect-ratio:1;flex:none;display:grid;place-items:center;position:relative;animation:nestieFloat 4.2s ease-in-out infinite}
.nestie-bird img{width:100%;height:auto;transform-origin:50% 90%;filter:drop-shadow(0 12px 14px rgba(40,110,200,.22))}
.nestie-bird.hop img{animation:nestieHop .55s cubic-bezier(.3,1.4,.5,1)}
/* the Hub's parked-bird float: a slow figure eight, 5px up and down, 1.5px side to side */
@keyframes nestieFloat{0%,50%,100%{transform:none}12.5%{transform:translate(1.5px,3.5px)}25%{transform:translate(0,5px)}37.5%{transform:translate(-1.5px,3.5px)}62.5%{transform:translate(1.5px,-3.5px)}75%{transform:translate(0,-5px)}87.5%{transform:translate(-1.5px,-3.5px)}}
@keyframes nestieHop{0%{transform:none}40%{transform:translateY(-6px) scale(1.03,.98)}100%{transform:none}}
/* the Nestie box: a source pill on top, the bird, the name and the role. The centre of every "how it works" picture. */
.nbox{display:grid;justify-items:center;gap:2px;text-align:center}
.nbox .nestie-bird{margin-bottom:8px}
.nbox b{font-family:var(--display);font-weight:800;font-size:19px;line-height:1.1;color:var(--ink)}
.nbox small{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent2)}
.nbox-pill{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;background:#fff;color:var(--ink);border-radius:99px;padding:6px 12px 6px 6px;font-size:13.5px;font-weight:600;box-shadow:0 12px 26px -14px rgba(0,0,0,.4);margin-bottom:12px}
.nbox-pill img{width:24px;height:24px;border-radius:7px}

/* ---------- the cast: the family's own cartoon birds from the app (img/cast/*.webp) ---------- */
.cast{--size:56px;width:var(--size);height:var(--size);border-radius:50%;flex:none;object-fit:cover;box-shadow:0 0 0 3px #fff,0 10px 20px -12px rgba(0,0,0,.45)}

/* ---------- footer ---------- */
footer.fx{padding:clamp(96px,14vh,160px) 0 28px;color:var(--ink);font-size:15px}
.fx .wrap{display:block;border-top:1px solid var(--line);padding-top:48px}
.fx-top{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:32px}
.fx-brand p{margin-top:12px;color:var(--ink2);font-size:17px}
.fx-cta{margin-top:20px;padding:11px 18px;font-size:15px}
.fx-col{display:flex;flex-direction:column;gap:10px}
.fx-col b{font-size:13px;letter-spacing:.06em;color:var(--ink2);font-weight:700;margin-bottom:4px}
.fx-col a{text-decoration:none;color:var(--ink)}
.fx-col a:hover{text-decoration:underline;text-underline-offset:3px}
/* the wordmark runs edge to edge, its top and bottom cut off by the band */
.fx-word{font-family:var(--display);font-weight:800;letter-spacing:-.04em;color:var(--accent2);user-select:none;font-size:calc(100vw / 3.49);height:.84em;width:100vw;flex:none;max-width:none;position:relative;left:50%;transform:translateX(-50%);margin:clamp(40px,7vh,72px) 0 0;display:flex;align-items:center;justify-content:center;overflow:hidden;line-height:1;padding:0 .055em .1em 0;box-sizing:border-box}
.fx-bottom{display:flex;justify-content:space-between;gap:16px;margin-top:20px;font-size:13px;color:var(--ink2)}
@media (max-width:760px){.fx-top{grid-template-columns:1fr 1fr;gap:28px}.fx-brand{grid-column:1/-1}.fx-bottom{flex-direction:column;align-items:center;gap:4px}}

/* ---------- motion ---------- */
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
