/* Brand School marketing site — shared styles.
   Mobile-first. Poppy but professional: coral, violet, lime on white, black for punch. */

:root{
  --ink:#121212; --paper:#FFFFFF; --soft:#F4F4F4; --line:#ECECEC; --muted:#3A3A3A; --dim:#6E6E6E;
  --coral:#FF5A36; --coral-soft:#FFE8E1;
  --violet:#6B4CFF; --violet-soft:#ECE7FF;
  --lime:#E9FF3A; --lime-soft:#F3FFB0;
  --green:#3DDC84;
  --f-display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --f-body:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"Geist Mono",ui-monospace,Menlo,Consolas,monospace;
  --gutter:20px; --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.5}
img,svg{max-width:100%;display:block}
h1,h2,h3,h4{font-family:var(--f-display);margin:0;line-height:1;letter-spacing:-.03em;font-weight:800;text-wrap:balance}
p{margin:0}
a{color:inherit}
:focus-visible{outline:3px solid var(--violet);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:12px 16px;z-index:100}
.skip:focus{left:16px;top:16px}

.wrap{max-width:var(--max);margin:0 auto;padding-left:max(var(--gutter),env(safe-area-inset-left));padding-right:max(var(--gutter),env(safe-area-inset-right))}
.tag{font-family:var(--f-mono);font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase}
/* Standalone links (back links, arrow links): 44px tap height, never stretched to full width */
a.tag,.page-hero>.wrap>a,.post-hero a.tag,.r-hero a.tag,.stack>a:not(.btn){display:inline-flex;align-items:center;min-height:44px;width:fit-content}
.lead{font-size:18px;line-height:1.45;color:var(--muted)}
.body{font-size:16px;line-height:1.5;color:var(--muted)}
.h1{font-size:clamp(44px,10vw,96px)}
.h2{font-size:clamp(34px,6vw,60px)}
.h3{font-size:clamp(22px,3vw,28px);letter-spacing:-.02em;line-height:1.1;font-weight:700}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 24px;border-radius:999px;font-weight:600;font-size:16px;text-decoration:none;border:2px solid transparent;cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .15s,color .15s,border-color .15s,transform .15s}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:var(--coral);color:#fff}
.btn-coral{background:var(--coral);color:#fff}
.btn-coral:hover{background:var(--ink);color:#fff}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-sm{height:42px;padding:0 18px;font-size:15px}
.btn-lg{height:60px;padding:0 32px;font-size:18px}

/* Header */
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid transparent}
.site-header.scrolled{border-bottom-color:var(--line)}
.nav{height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{display:flex;align-items:center;gap:10px;white-space:nowrap;text-decoration:none;font-family:"Familjen Grotesk",var(--f-display);font-weight:700;font-size:20px;letter-spacing:-.01em}
.logo-mark{width:34px;height:16px;display:grid;place-items:center;flex:none}
.logo-mark svg{width:100%;height:100%;display:block}
.nav-links{display:none;align-items:center;gap:24px}
.logo{min-height:44px}
.nav-links a,.foot nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 2px}
.nav-links a{text-decoration:none;font-size:15px;font-weight:500;color:var(--muted)}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--ink)}
.nav-cta{display:flex;align-items:center;gap:10px}
.login-link{display:none;align-items:center;height:42px;padding:0 6px;text-decoration:none;font-size:15px;font-weight:600;color:var(--ink)}
.login-link:hover{color:var(--coral)}
@media (min-width:860px){.login-link{display:inline-flex}}
.menu-btn{display:inline-grid;place-items:center;width:44px;height:44px;border:0;background:transparent;border-radius:10px;cursor:pointer}
.menu-btn:hover{background:var(--soft)}
/* Phone menu: a full-screen sheet under the header, so the page behind never half-shows */
.mobile-menu{display:none;position:fixed;left:0;right:0;top:68px;height:calc(100vh - 68px);height:calc(100dvh - 68px);background:#fff;padding:8px var(--gutter) 24px;overflow-y:auto;z-index:40}
.mobile-menu.open{display:block}
.mobile-menu-inner{display:flex;flex-direction:column;min-height:100%}
.mobile-menu a{display:block;padding:16px 4px;text-decoration:none;font-size:22px;font-weight:700;letter-spacing:-.01em;border-bottom:1px solid var(--line)}
.mobile-menu a.mobile-menu-cta{margin-top:auto;border:0;padding:0 24px;font-size:17px;font-weight:600;letter-spacing:0;display:inline-flex;align-items:center;justify-content:center}
.mobile-menu a:not(.mobile-menu-cta):last-of-type{border-bottom:0}
body.menu-open{overflow:hidden}
.menu-btn .ico-close{display:none}
.menu-btn[aria-expanded="true"] .ico-open{display:none}
.menu-btn[aria-expanded="true"] .ico-close{display:block}
@media (max-width:859px){.nav-cta .btn-sm{height:44px;padding:0 14px}}   /* tap target; the extra room comes from the gutter fix below */
@media (max-width:400px){.nav{gap:8px}.logo{font-size:18px;gap:8px}.nav-cta{gap:2px}.menu-btn{margin-right:-6px}}   /* 360 px: the header fits inside the gutter, no sideways scroll (B-347) */
@media (max-width:340px){.logo{font-size:16px;gap:6px}.logo-mark{width:30px;height:14px}.nav-cta .btn-sm{padding:0 10px;font-size:14px}}
@media (min-width:860px){
  .nav-links{display:flex}
  .menu-btn,.mobile-menu{display:none!important}
  .nav{height:76px}
}

/* Sections */
.section{padding:72px 0}
.section-tight{padding:48px 0}
@media (min-width:860px){.section{padding:112px 0}.section-tight{padding:64px 0}}
.stack{display:flex;flex-direction:column;gap:16px}
.grid{display:grid;gap:16px}
.grid-2,.grid-3{grid-template-columns:1fr}
@media (min-width:700px){.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid{gap:20px}}

.tile{border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:14px;min-height:240px}
@media (min-width:860px){.tile{padding:36px;min-height:300px}}
.pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:var(--lime);color:var(--ink);width:fit-content}
.dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}

/* Door cards */
.door{display:flex;flex-direction:column;gap:12px;padding:28px;border-radius:24px;text-decoration:none;color:var(--ink);min-height:240px;transition:transform .15s}
.door:hover{transform:translateY(-4px)}
.door .go{margin-top:auto;font-weight:600;font-size:17px}
@media (min-width:860px){.door{padding:40px;min-height:280px}}

/* Phone mock */
.phone{width:min(100%,280px);margin:0 auto;border-radius:36px;background:var(--ink);padding:12px;box-shadow:0 30px 60px rgba(18,18,18,.18)}
.phone-video{padding:10px}
.screen-video{display:block;width:100%;aspect-ratio:390/844;border-radius:26px;object-fit:cover;background:#fff}
.hero-caption{text-align:center;font-size:13px;color:var(--dim);margin:12px 0 0}
.screen{background:#fff;border-radius:26px;padding:22px 18px;display:flex;flex-direction:column;gap:12px;min-height:540px}
.opt{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:14px;border:2px solid var(--line);font-weight:500;font-size:15px}
.opt.on{border-color:var(--ink);background:var(--ink);color:#fff}

/* Chat bubbles */
.bubble{padding:16px 20px;font-size:17px;line-height:1.45;max-width:85%}
.bubble-you{align-self:flex-end;background:var(--soft);border-radius:22px 22px 6px 22px}
.bubble-bs{align-self:flex-start;background:var(--ink);color:#fff;border-radius:22px 22px 22px 6px}

/* Live feed chips */
.feed{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.feed::-webkit-scrollbar{display:none}
.chip{display:flex;gap:12px;align-items:center;padding:16px 20px;border-radius:16px;background:#fff;color:var(--ink);font-weight:500;font-size:15px;white-space:nowrap;flex:none}
.chip .dot{width:10px;height:10px}

/* Newsletter: the Sunday Brief */
.nl{padding:72px 0;background:var(--soft)}
@media (min-width:860px){.nl{padding:104px 0}}
.nl-grid{display:grid;gap:40px;align-items:center}
@media (min-width:860px){.nl-grid{grid-template-columns:1.1fr 1fr;gap:56px}}
.nl-copy{display:flex;flex-direction:column;gap:18px}
.nl-title{font-size:clamp(32px,5vw,52px);max-width:14ch}
.nl-lead{max-width:500px}
.nl-form{display:flex;flex-direction:column;gap:10px;margin-top:6px;max-width:520px}
.nl-label{font-weight:600;font-size:15px}
.nl-row{display:flex;flex-direction:column;gap:10px}
@media (min-width:560px){.nl-row{flex-direction:row}}
.nl-row input{flex:1 1 auto;min-width:0;height:52px;padding:0 18px;border-radius:999px;border:2px solid #D4D4D4;background:#fff;font:500 16px/1 var(--f-body);color:var(--ink)}
.nl-row input:focus{outline:none;border-color:var(--ink)}
.nl-row input[aria-invalid="true"]{border-color:var(--coral)}
.nl-row .btn[disabled]{opacity:.6;cursor:default}
.nl-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nl-msg{min-height:1.5em;font-weight:600;font-size:15px}
.nl-msg.ok{color:#14794A}
.nl-msg.err{color:#C2361A}
.nl-small{font-size:14px;color:var(--dim)}
.nl-small a{color:var(--dim);display:inline-block;padding:12px 0;margin:-12px 0}
.nl-mail{background:#fff;border-radius:24px;padding:22px;display:flex;flex-direction:column;gap:12px;box-shadow:0 24px 50px rgba(18,18,18,.10);max-width:460px;width:100%;justify-self:center}
.nl-mail-top{display:flex;justify-content:space-between;align-items:center}
.nl-from{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px}
.nl-subject{font-family:var(--f-display);font-weight:700;font-size:22px;letter-spacing:-.02em;line-height:1.15}
.nl-part{border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.nl-part p{font-size:15px;line-height:1.4;font-weight:500}
.nl-done .nl-row{display:none}

/* Closing call to action (shared, sits above the footer) */
.final{background:var(--ink);color:#fff;text-align:center}

/* Footer */
.site-footer{padding:32px 0 calc(32px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.foot{display:flex;flex-direction:column;gap:20px}
.foot nav{display:flex;flex-wrap:wrap;gap:16px 24px}
.foot nav a{text-decoration:none;font-size:14px;color:var(--dim)}
.foot nav a:hover{color:var(--ink)}
@media (min-width:700px){.foot{flex-direction:row;justify-content:space-between;align-items:center}}

/* Page hero (inner pages) */
.page-hero{padding:56px 0 24px}
@media (min-width:860px){.page-hero{padding:96px 0 40px}}

/* Prose (legal, long pages) */
.prose{max-width:720px}
.prose h2{font-size:clamp(24px,3vw,32px);letter-spacing:-.02em;line-height:1.1;margin:40px 0 12px}
.prose h3{font-size:20px;font-weight:700;letter-spacing:-.01em;margin:28px 0 8px}
.prose p,.prose li{color:var(--muted);line-height:1.6}
.prose p{margin:0 0 14px}
.prose ul{padding-left:20px;margin:0 0 14px}

/* Blog */
.posts{display:grid;gap:16px}
@media (min-width:700px){.posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
.post-card{display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:24px;text-decoration:none;color:var(--ink);min-height:260px;transition:transform .15s}
.post-card:hover{transform:translateY(-4px)}
.post-card .h3{font-size:clamp(24px,2.8vw,30px)}
.post-card .meta{margin-top:auto;font-family:var(--f-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--dim)}
@media (min-width:860px){.post-card{padding:36px;min-height:300px}}
.post-hero{padding:48px 0 32px}
@media (min-width:860px){.post-hero{padding:88px 0 40px}}
.post-hero .h1{font-size:clamp(38px,6.4vw,68px);max-width:18ch;line-height:1.02}
.post-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-family:var(--f-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--dim)}
.article{max-width:680px;padding-bottom:72px}
.article p,.article li{font-size:18px;line-height:1.65;color:#2A2A2A}
.article p{margin:0 0 20px}
.article h2{font-size:clamp(26px,3.4vw,34px);letter-spacing:-.02em;line-height:1.1;margin:48px 0 16px}
.article h3{font-size:21px;font-weight:700;letter-spacing:-.01em;line-height:1.2;margin:32px 0 10px}
.article ul,.article ol{padding-left:22px;margin:0 0 20px}
.article li{margin-bottom:8px}
.article strong{color:var(--ink)}
.article a{color:var(--ink);text-decoration-color:var(--coral);text-decoration-thickness:2px;text-underline-offset:3px;padding:10px 0;margin:-10px 0}
.ans a{padding:10px 0;margin:-10px 0}
.article .lede{font-size:21px;line-height:1.5;color:var(--ink)}
.callout{border-radius:20px;padding:22px 24px;margin:28px 0;background:var(--lime-soft)}
.callout p:last-child{margin-bottom:0}
.callout .tag{display:block;margin-bottom:8px}
.example{border-radius:20px;padding:22px 24px;margin:28px 0;background:var(--soft)}
.example p{font-size:17px}
.example p:last-child{margin-bottom:0}
.post-cta{border-radius:24px;padding:32px;margin:48px 0 0;background:var(--ink);color:#fff;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.post-cta p{color:#CFCFCF;font-size:17px;margin:0}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Footer help group */
.foot-group{display:inline-flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:14px;color:var(--dim)}
.foot-group span{font-family:var(--f-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase}
/* Sign-up pop-up (site/_partials/popup.html) */
.pop{position:fixed;z-index:60;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:340px;margin-left:auto;background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px 20px 18px;box-shadow:0 24px 50px rgba(18,18,18,.16);transform:translateY(24px);opacity:0;transition:transform .25s ease,opacity .25s ease}
.pop[hidden]{display:none}
.pop.show{transform:none;opacity:1}
@media (max-width:559px){.pop{max-width:none}}
@media (min-width:860px){.pop{left:auto;right:24px;bottom:24px;width:340px}}
@media (prefers-reduced-motion:reduce){.pop{transition:none;transform:none}}
.pop-tag{color:var(--violet);margin:0 44px 8px 0}
.pop-title{font-size:24px;line-height:1.1;margin:0 28px 8px 0}
.pop-lead{font-size:15px;color:var(--muted);margin:0 0 14px}
.pop-x{position:absolute;top:4px;right:4px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:50%;color:var(--ink);cursor:pointer}
.pop-x:hover{background:var(--soft)}
.pop-x:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}
.pop-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pop .nl-form{margin-top:0;gap:8px}
.pop .nl-row{flex-direction:column}
.pop .nl-row input{height:48px;font-size:16px}
.pop .btn{height:48px}
.pop .nl-msg{min-height:0;font-size:14px}
.pop .nl-msg:empty{display:none}
.pop .nl-small{font-size:13px;margin:0}
.pop .nl-done .nl-small{display:none}
/* Home reassurance strip */
.reassure{background:var(--soft);padding:24px 0}
.reassure p{display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:600;font-size:16px;text-align:center;margin:0}
.reassure span{display:inline-flex;align-items:center;gap:10px}
.reassure span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--coral);flex:none}
.reassure span:nth-child(2)::before{background:var(--violet)}
.reassure span:nth-child(3)::before{background:var(--ink)}
@media (min-width:860px){.reassure p{flex-direction:row;justify-content:center;gap:12px 40px}}
/* the newsletter block follows the strip: tighten the gap between them */
.reassure + .nl{padding-top:48px}

/* Help pages: inline links get a 44px tap height without moving the text (same trick as .article a) */
.help p a,.help li a,.help .note a{display:inline-block;padding:11px 0;margin:-11px 0;color:var(--ink);text-decoration-color:var(--coral);text-decoration-thickness:2px;text-underline-offset:3px}
