/* puzzlenook.app – the landing page and the site's other pages (privacy, terms, key recovery,
   thanks), from the approved design (docs/020-landing-design.dc.html). Light theme only. No
   framework, nothing from other hosts: the fonts are self-hosted (assets/fonts/, SIL OFL). */

/* ---------- Fonts ---------- */
@font-face{font-family:'Bricolage Grotesque';src:url(/assets/fonts/bricolage-grotesque-latin-variable.woff2) format('woff2-variations'),url(/assets/fonts/bricolage-grotesque-latin-variable.woff2) format('woff2');
  font-weight:200 800;font-stretch:75% 100%;font-style:normal;font-display:swap}
@font-face{font-family:'Titan One';src:url(/assets/fonts/titan-one-latin-400.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  --blue:#2F5BD9; --blue-deep:#2450C4; --blue-line:#4A76EA; --nook:#7E9DF2; --blue-hover:#1E3FA8;
  --ink:#18224A; --ink-2:#22305F; --ink-line:#34437A;
  --ground:#F4F6FC; --white:#FFFFFF; --yellow:#F5C443;
  --text:#3A4572; --muted:#56618C; --on-blue:#E4EAFF; --on-blue-2:#DCE4FF; --on-ink:#CBD3F2; --on-ink-2:#A9B4DD;
  --line:#DCE2F2; --soft:#EEF1F9;
  --sans:'Bricolage Grotesque','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --round:'Titan One','Arial Rounded MT Bold','Arial Black',system-ui,sans-serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);font-variation-settings:'wdth' 100;font-size:18px;line-height:1.55;overflow-x:hidden}
a{color:var(--blue)} a:hover{color:var(--blue-hover)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:12px}
h1,h2,h3{text-wrap:balance} p{text-wrap:pretty}
img{max-width:100%}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px}
.skip{position:absolute;left:-9999px;top:8px;z-index:10;background:var(--yellow);color:var(--ink);padding:8px 14px;border-radius:10px;font-weight:700}
.skip:focus{left:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;height:56px;padding:0 26px;border-radius:16px;font-size:18px;font-weight:700;text-decoration:none;white-space:nowrap;border:2px solid transparent}
.btn-yellow{background:var(--yellow);color:var(--ink)} .btn-yellow:hover{color:var(--ink);filter:brightness(1.05)}
.btn-blue{background:var(--blue);color:var(--white)} .btn-blue:hover{color:var(--white);background:var(--blue-hover)}
.btn-ghost{border-color:var(--white);color:var(--white)} .btn-ghost:hover{color:var(--white);background:rgba(255,255,255,.1)}
.btn-outline{border-color:var(--blue);color:var(--blue)} .btn-outline:hover{background:var(--blue);color:var(--white)}
.btn-lg{height:58px;padding:0 28px;font-size:19px}
.btn-row{display:flex;flex-wrap:wrap;gap:14px}

/* ---------- Header (blue) ---------- */
.site-head{background:var(--blue);color:var(--white);overflow:hidden}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;height:88px}
.brand{display:flex;align-items:center;gap:12px;color:var(--white);text-decoration:none}
.brand:hover{color:var(--white)}
.brand-mark{display:flex;width:40px;height:40px;border-radius:11px;background:var(--white);align-items:center;justify-content:center;flex:none}
.brand-mark svg{width:24px;height:24px}
.brand-name{font-size:24px;font-weight:800;font-variation-settings:'wdth' 85;letter-spacing:-.01em}
.nav-links{display:flex;align-items:center;gap:32px;font-size:17px;font-weight:500}
.nav-links a{color:var(--white);text-decoration:none} .nav-links a:hover{text-decoration:underline}
.nav .btn{height:48px;padding:0 22px;border-radius:14px;font-size:17px}

/* ---------- Hero ---------- */
.hero{display:flex;flex-wrap:wrap;align-items:center;gap:56px;padding:56px 0 96px}
.hero-text{flex:1 1 440px;min-width:0;display:flex;flex-direction:column;gap:28px}
.hero h1{margin:0;font-family:var(--round);font-size:clamp(52px,6.6vw,96px);line-height:1;font-weight:400;letter-spacing:0}
.hero-lead{margin:0;max-width:30em;font-size:21px;line-height:1.5;color:var(--on-blue)}
.hero-note{margin:0;font-size:16px;color:var(--on-blue)}
.hero-art{flex:1 1 460px;min-width:0;display:flex;justify-content:center}
.board{position:relative;padding:22px;border-radius:34px;background:var(--blue-deep);box-shadow:inset 0 0 0 3px var(--blue-line);transform:rotate(-3deg);width:100%;max-width:520px}
.board-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.board-nook{aspect-ratio:1;border-radius:24%;border:3px dashed var(--nook)}
.board-tile{aspect-ratio:1;display:block;filter:drop-shadow(0 6px 0 rgba(10,24,80,.28))}
.board-tile img{display:block;width:100%;height:100%}
.board-tile.sliding{transform:translateX(58%) rotate(4deg)}
@media (prefers-reduced-motion: no-preference){
  .board-tile.sliding{animation:slide-in .9s cubic-bezier(.2,.8,.2,1) .5s both}
  @keyframes slide-in{from{transform:translateX(0) rotate(0)}to{transform:translateX(58%) rotate(4deg)}}
}

/* ---------- Sections ---------- */
.section{padding:104px 0}
.h2{margin:0;font-size:clamp(38px,4.4vw,56px);line-height:1.02;font-weight:800;font-variation-settings:'wdth' 75,'opsz' 96;letter-spacing:-.02em}
.h2-big{font-size:clamp(40px,5vw,64px);line-height:1}
.lead{margin:0;max-width:30em;font-size:19px;color:var(--text)}
.small{margin:0;font-size:16px;color:var(--muted)}
.split{display:flex;flex-wrap:wrap;align-items:center;gap:64px}
.split-text{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:22px}
.split-text .btn-row{margin-top:6px}
.section-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:24px 64px;margin-bottom:48px}

/* Games shelf */
.games{padding:112px 0 96px}
.games .h2{max-width:10em}
.games .lead{max-width:31em}
.shelf{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:28px 20px}
.shelf li{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.shelf img{width:96px;height:96px;filter:drop-shadow(0 5px 0 rgba(24,34,74,.16))}
.shelf-name{font-size:19px;font-weight:700;display:block}
.shelf-free{font-size:15px;font-weight:600;color:var(--blue);display:block}

/* Chrome */
.chrome{background:var(--white)}
.browser-wrap{flex:1.3 1 520px;min-width:0}
.browser{border-radius:20px;background:#E7EBF6;box-shadow:0 0 0 2px #D3DAEE;overflow:hidden}
.browser-bar{display:flex;align-items:center;gap:8px;height:46px;padding:0 18px;background:#DCE2F2}
.browser-bar .dot{width:12px;height:12px;border-radius:6px;background:#B7C1DD}
.browser-bar .url{flex:1;height:24px;margin-left:14px;border-radius:12px;background:var(--ground)}
.browser-body{display:flex;height:380px}
.page{flex:1;padding:34px 32px;display:flex;flex-direction:column;gap:14px}
.page span{display:block;height:10px;border-radius:5px;background:#D3DAEE}
.page .t{width:62%;height:18px;border-radius:9px;background:#C7CFE6}
.page .w88{width:88%} .page .w80{width:80%} .page .w84{width:84%} .page .w74{width:74%}
.page .img{width:100%;height:120px;margin-top:8px;border-radius:12px}
.panel{width:42%;background:var(--white);box-shadow:-10px 0 30px rgba(24,34,74,.14);padding:18px;display:flex;flex-direction:column;gap:14px}
.mini-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;font-variation-settings:'wdth' 85}
.mini-brand i{width:22px;height:22px;border-radius:7px;background:var(--blue);display:block}
.panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mini-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:14px;background:var(--soft);text-align:center}
.mini-tile img{width:46px;height:46px}
.mini-tile b{font-size:12px;font-weight:700}
.mini-tile em{font-style:normal;font-size:11px;font-weight:600;color:var(--blue)}

/* Phone */
.phone-section{flex-wrap:wrap-reverse}
.phone-art{flex:1 1 340px;min-width:0;display:flex;justify-content:center}
.phone{width:290px;max-width:100%;padding:12px;border-radius:46px;background:var(--ink)}
.screen{border-radius:36px;background:var(--ground);padding:46px 18px 26px;display:flex;flex-direction:column;gap:16px;height:560px;overflow:hidden}
.screen .mini-brand{font-size:17px} .screen .mini-brand i{width:26px;height:26px;border-radius:8px}
.screen-label{font-size:13px;font-weight:600;color:var(--muted)}
.recent{display:flex;gap:10px}
.recent div{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:14px;background:#E4E9F6}
.recent img{width:40px;height:40px}
.recent em{font-style:normal;font-size:12px;font-weight:700;color:var(--blue)}
.phone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.phone-grid div{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 6px;border-radius:16px;background:#E4E9F6}
.phone-grid img{width:58px;height:58px}
.phone-grid b{font-size:14px;font-weight:700}
.phone-text{flex:1 1 400px}

/* Family (dark) */
.family{background:var(--ink);color:var(--white)}
.family-inner{padding:112px 32px;display:flex;flex-direction:column;gap:64px}
.family .lead{color:var(--on-ink)}
.week-card{flex:1 1 460px;min-width:0;padding:30px;border-radius:28px;background:var(--ink-2);display:flex;flex-direction:column;gap:22px}
.week-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.kid{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700}
.kid i{display:flex;width:44px;height:44px;border-radius:22px;background:#EF8A2B;align-items:center;justify-content:center;font-weight:800;color:var(--ink);font-style:normal}
.streak{font-size:16px;font-weight:700;color:var(--yellow)}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.day{display:flex;flex-direction:column;align-items:center;gap:8px}
.day span{font-size:13px;font-weight:600;color:var(--on-ink-2)}
.day i{width:100%;aspect-ratio:1;border-radius:14px;display:flex;align-items:center;justify-content:center}
.day i svg{width:22px;height:22px}
.day .done{background:var(--yellow);border:2px solid var(--yellow)}
.day .part{background:#8FA2E6;border:2px solid #8FA2E6}
.day .now{background:transparent;border:3px solid var(--yellow)}
.day .next{background:transparent;border:2px dashed #5A6AA3}
.today{display:flex;flex-direction:column;gap:10px;padding-top:6px;border-top:1px solid var(--ink-line)}
.today-label{font-size:15px;color:var(--on-ink-2);padding-top:10px}
.today-row{display:flex;align-items:center;gap:14px}
.today-row img{width:40px;height:40px}
.today-row b{flex:1;font-size:17px;font-weight:600}
.today-row em{font-style:normal;font-size:17px;font-weight:700}
.today-row .full{color:var(--yellow)} .today-row .open{color:var(--on-ink-2)}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px}
.steps li{display:flex;gap:16px;align-items:flex-start}
.steps .n{flex:none;display:flex;width:40px;height:40px;border-radius:20px;border:2px solid var(--yellow);color:var(--yellow);align-items:center;justify-content:center;font-weight:800}
.steps b{display:block;font-size:19px;font-weight:700}
.steps span{display:block;font-size:16px;color:var(--on-ink)}

/* Pricing */
.pricing{padding:112px 0 96px;display:flex;flex-direction:column;gap:44px}
.pricing .section-head{margin:0;gap:16px 64px}
.pricing .lead{max-width:28em;font-size:18px}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));border-radius:28px;background:var(--white);box-shadow:0 0 0 2px var(--line);overflow:hidden}
.plan{display:flex;flex-direction:column;gap:18px;padding:36px 34px;border-right:2px solid var(--soft);border-bottom:2px solid var(--soft)}
.plan h3{margin:0;font-size:22px;font-weight:800;font-variation-settings:'wdth' 85}
.price{display:flex;flex-direction:column;gap:2px}
.price b{font-size:40px;line-height:1.1;font-weight:800;font-variation-settings:'wdth' 75}
.price span{font-size:16px;color:var(--muted)}
.ticks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;font-size:17px}
.ticks li{display:flex;gap:10px;align-items:flex-start}
.ticks svg{flex:none;margin-top:4px;width:20px;height:20px}
.plan .btn{margin-top:auto;height:54px;font-size:17px;width:100%}
.plan-extra{margin:-6px 0 0;font-size:15px;color:var(--muted)}

/* Questions */
.faq{padding:0 32px 112px;display:flex;flex-direction:column;gap:32px}
.faq h2{margin:0;font-size:clamp(32px,3.6vw,44px);line-height:1.05;font-weight:800;font-variation-settings:'wdth' 75,'opsz' 96;letter-spacing:-.015em}
.faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(460px,100%),1fr));gap:14px 28px;align-items:start}
.faq details{border-radius:18px;background:var(--white);box-shadow:0 0 0 2px var(--line);padding:0 24px}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;font-size:19px;font-weight:700}
.faq summary::-webkit-details-marker{display:none}
.faq summary svg{flex:none;width:22px;height:22px}
.faq details[open] summary svg{transform:rotate(45deg)}
.faq details p{margin:0 0 22px;font-size:17px;color:var(--text)}

/* ---------- Footer (blue) ---------- */
.site-foot{background:var(--blue);color:var(--white)}
.foot{padding:56px 32px 48px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}
.foot-brand{display:flex;flex-direction:column;gap:14px;max-width:320px}
.foot-brand .brand-mark{width:36px;height:36px;border-radius:10px} .foot-brand .brand-mark svg{width:22px;height:22px}
.foot-brand .brand-name{font-size:21px}
.foot-tag{font-size:16px;color:var(--on-blue-2)}
.foot-cols{display:flex;flex-wrap:wrap;gap:56px;font-size:16px}
.foot-cols div{display:flex;flex-direction:column;gap:10px}
.foot-cols b{font-weight:700}
.foot-cols a{color:var(--white)} .foot-cols a:hover{color:var(--on-blue)}

/* ---------- Text pages (privacy, terms, key recovery, thanks) ---------- */
.doc{max-width:760px;margin:0 auto;padding:72px 32px 104px}
.doc h1{margin:0 0 20px;font-size:clamp(38px,4.4vw,56px);line-height:1.02;font-weight:800;font-variation-settings:'wdth' 75,'opsz' 96;letter-spacing:-.02em}
.doc h2{margin:36px 0 10px;font-size:26px;font-weight:800;font-variation-settings:'wdth' 85}
.doc p,.doc li{font-size:18px;color:var(--text)}
.coming{margin:28px 0;padding:28px;border-radius:20px;background:var(--white);box-shadow:0 0 0 2px var(--line);font-size:22px;font-weight:800;color:var(--ink);text-align:center}
.notice{padding:14px 18px;border-radius:14px;background:var(--white);box-shadow:0 0 0 2px var(--line)}
.notice.error{box-shadow:0 0 0 2px #E0A0A0}
.form{display:flex;flex-direction:column;gap:14px;max-width:440px}
.form label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.form input[type=email]{font:inherit;font-size:18px;height:54px;padding:0 16px;border-radius:14px;border:2px solid var(--line);background:var(--white);color:var(--ink)}
.form .btn{align-self:flex-start;border:0;cursor:pointer;font-family:inherit}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.doc ol{padding-left:22px}

/* ---------- Narrow screens ---------- */
@media (max-width: 720px){
  .wrap,.faq,.foot,.family-inner{padding-left:20px;padding-right:20px}
  .nav-links{display:none}
  .nav{height:76px}
  .brand-name{font-size:21px}
  .board{transform:none}
  .hero{gap:44px;padding:28px 0 64px}
  .hero-text,.hero-art,.split-text,.browser-wrap,.phone-art,.phone-text,.week-card{flex-basis:100%}
  .section,.games,.pricing{padding-top:72px;padding-bottom:72px}
  .family-inner{padding-top:72px;padding-bottom:72px;gap:48px}
  .split{gap:44px}
  .browser-body{height:auto;min-height:300px}
  .page{padding:20px 16px}
  .panel{width:56%;padding:12px}
  .week-card{padding:20px}
  .plan{padding:28px 24px}
  .faq{padding-bottom:72px}
  .btn-row .btn{flex:1 1 auto}
  .doc{padding:48px 20px 72px}
}
@media (max-width: 400px){
  .nav .btn{padding:0 14px;height:44px;font-size:16px}
  .brand-mark{width:34px;height:34px} .brand-name{font-size:19px}
  .shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
  .week{gap:5px} .day i{border-radius:10px}
}
/* Short pages: the footer stays at the bottom; text pages space their paragraphs */
body{min-height:100vh;display:flex;flex-direction:column}
body > main{flex:1 0 auto}
.doc p,.doc .lead{margin:0 0 14px}
/* /thanks/extension: the key, shown once, and its copy button */
.key-wrap{margin:0 0 22px}
.key-box{display:block;margin:0 0 12px;padding:14px 16px;border:2px dashed #2F5BD9;border-radius:12px;background:#F4F6FC;color:#18224A;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.5;word-break:break-all;-webkit-user-select:all;user-select:all}
[hidden]{display:none!important}
