:root{
  --navy:#14213d; --navy-2:#1f3157; --ink:#1a2233; --muted:#5a6475;
  --gold:#d4a937; --gold-2:#b98f22; --gold-soft:#fbf4df;
  --bg:#ffffff; --bg-2:#f6f7f9; --line:#e3e6ec; --radius:12px; --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;font-size:16.5px}
h1,h2,h3,h4{font-family:"Plus Jakarta Sans","Inter",sans-serif;line-height:1.2;margin:0 0 .5em;color:var(--navy);letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,4.4vw,3.3rem);font-weight:800}
h2{font-size:clamp(1.55rem,2.6vw,2.1rem);font-weight:800}
h3{font-size:1.06rem;font-weight:700}
p{margin:0 0 1em}
a{color:var(--navy)}
img{max-width:100%;display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

/* Top bar */
.topbar{background:var(--navy);color:#dfe5f0;font-size:.85rem;text-align:center;padding:8px 16px}
.topbar a{color:var(--gold);font-weight:600;text-decoration:none}
.topbar a:hover{text-decoration:underline}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-header .wrap{display:flex;align-items:center;gap:28px;height:72px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--navy);font-family:"Plus Jakarta Sans",sans-serif;font-weight:800;font-size:1.2rem;letter-spacing:.01em}
.brand svg{width:36px;height:36px}
.brand small{display:block;font-size:.62rem;font-weight:600;letter-spacing:.18em;color:var(--muted);text-transform:uppercase;margin-top:-2px}
.nav{display:flex;gap:24px;margin-left:auto;align-items:center}
.nav a{color:var(--ink);text-decoration:none;font-size:.94rem;font-weight:500}
.nav a:hover,.nav a.active{color:var(--gold-2)}
.menu-toggle{display:none;background:none;border:0;font-size:1.6rem;cursor:pointer;color:var(--navy);margin-left:auto}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:8px;background:var(--gold);color:var(--navy);text-decoration:none;font-weight:700;font-size:.95rem;border:2px solid var(--gold);transition:background .15s,border-color .15s}
.btn:hover{background:var(--gold-2);border-color:var(--gold-2)}
.btn.navy{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.navy:hover{background:var(--navy-2);border-color:var(--navy-2)}
.btn.ghost{background:transparent;color:var(--navy);border-color:#c9cfda}
.btn.ghost:hover{border-color:var(--navy)}
.btn.sm{padding:8px 14px;font-size:.86rem}
.btn-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}

/* Hero */
.hero{padding:64px 0 56px;background:linear-gradient(180deg,#fff 0%,var(--bg-2) 100%);border-bottom:1px solid var(--line)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.14em;font-size:.74rem;color:var(--gold-2);font-weight:700;margin-bottom:14px}
.lead{font-size:1.15rem;color:var(--muted);max-width:560px}
.trust{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:28px;padding:0;list-style:none;font-size:.88rem;color:var(--ink)}
.trust li{display:flex;align-items:center;gap:8px}
.trust li::before{content:"";width:18px;height:18px;border-radius:50%;background:var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23b98f22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;flex:none}
.collage{position:relative;height:420px}
.collage img{position:absolute;width:62%;border-radius:10px;box-shadow:0 18px 40px rgba(20,33,61,.18);border:1px solid var(--line);background:#fff}
.collage .c1{left:0;top:30px;transform:rotate(-3deg)}
.collage .c2{right:0;top:0;transform:rotate(2.5deg)}
.collage .c3{left:19%;bottom:0;z-index:2}

/* Sections */
section{padding:72px 0}
section.tint{background:var(--bg-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px;flex-wrap:wrap}
.section-head p{color:var(--muted);margin:0;max-width:620px}
.section-head .link{font-weight:700;text-decoration:none;color:var(--navy);white-space:nowrap}
.section-head .link:hover{color:var(--gold-2)}

/* Subject tiles */
.subjects{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.subject{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 16px;text-align:left;cursor:pointer;font:inherit;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.subject:hover,.subject.on{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.subject .ic{width:38px;height:38px;border-radius:9px;background:var(--navy);color:var(--gold);display:grid;place-items:center;margin-bottom:12px}
.subject .ic svg{width:20px;height:20px}
.subject b{display:block;font-family:"Plus Jakarta Sans",sans-serif;color:var(--navy);font-size:.95rem;line-height:1.25}
.subject span{font-size:.8rem;color:var(--muted)}

/* Product cards */
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s,transform .15s}
.product:hover{box-shadow:0 14px 30px rgba(20,33,61,.10);transform:translateY(-2px)}
.product img{aspect-ratio:4/3;object-fit:cover;width:100%;border-bottom:1px solid var(--line)}
.product .body{padding:16px 16px 18px;display:flex;flex-direction:column;flex:1}
.product .meta{font-size:.76rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:600;margin-bottom:6px}
.product h3{font-size:1rem;margin-bottom:8px}
.product p{font-size:.88rem;color:var(--muted);margin-bottom:14px}
.product .foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.price{font-family:"Plus Jakarta Sans",sans-serif;font-weight:800;color:var(--navy);font-size:1.12rem}
.badge{position:absolute;bottom:10px;left:10px;box-shadow:0 2px 6px rgba(0,0,0,.2);background:var(--navy);color:var(--gold);font-size:.72rem;font-weight:700;padding:4px 9px;border-radius:6px;letter-spacing:.04em}
.product .imgwrap{position:relative}
.product[hidden]{display:none}
.empty{display:none;color:var(--muted);padding:20px 0}

/* Marketplaces strip */
.stores{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:30px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.stores span{font-size:.9rem;color:var(--muted);margin-right:6px}
.stores a{font-weight:700;text-decoration:none;color:var(--navy);padding:7px 14px;border:1px solid var(--line);border-radius:999px;font-size:.88rem}
.stores a:hover{border-color:var(--gold)}

/* Features */
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.feature h3{font-size:1rem;margin:12px 0 6px}
.feature p{font-size:.9rem;color:var(--muted);margin:0}
.feature .ic{width:42px;height:42px;border-radius:10px;background:var(--gold-soft);color:var(--gold-2);display:grid;place-items:center}
.feature .ic svg{width:22px;height:22px}

/* Free cards */
.grid{display:grid;gap:22px}
.grid.three{grid-template-columns:repeat(3,1fr)}
.grid.two{grid-template-columns:repeat(2,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column}
.card p{color:var(--muted);font-size:.92rem}
.card .btn-row{margin-top:auto;padding-top:8px}
.free-card img{width:100%;aspect-ratio:210/297;object-fit:contain;object-position:top;background:#fff;border:1px solid var(--line);border-radius:8px}
.free-card h3{margin:14px 0 4px}
.free-card p{margin:0}
.tag{display:inline-block;font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:6px;background:var(--gold-soft);color:var(--gold-2);margin-bottom:12px;align-self:flex-start;letter-spacing:.03em}

/* Apps */
.app{display:grid;grid-template-columns:72px 1fr;gap:18px;align-items:start}
.app img.icon{width:72px;height:72px;border-radius:17px;border:1px solid var(--line)}
.appstore img{height:42px;width:auto}

/* Books */
.books{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.book{display:grid;grid-template-columns:96px 1fr;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;transition:border-color .15s}
.book{min-width:0}
.book:hover{border-color:var(--gold)}
.book img{width:96px;height:144px;object-fit:cover;border-radius:4px;box-shadow:0 8px 18px rgba(20,33,61,.18)}
.book h3{font-size:.96rem;margin:0 0 4px}
.book p{font-size:.84rem;color:var(--muted);margin:0}

/* About band */
.band{background:var(--navy);color:#dfe5f0}
.band h2{color:#fff}
.band p{color:#c3cbda}
.band .wrap{display:grid;grid-template-columns:1.3fr .7fr;gap:40px;align-items:center}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stat{border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);padding:18px}
.stat b{display:block;font-family:"Plus Jakarta Sans",sans-serif;font-size:1.7rem;color:var(--gold);line-height:1.1}
.stat span{font-size:.84rem;color:#c3cbda}

/* Footer */
.site-footer{background:#0e1830;color:#aeb8ca;padding:54px 0 28px;font-size:.9rem}
.site-footer a{color:#e6ebf3;text-decoration:none}
.site-footer a:hover{color:var(--gold)}
.foot-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr 1.2fr 1fr;gap:30px}
.foot-grid h4{color:var(--gold);margin:0 0 12px;font-size:.8rem;text-transform:uppercase;letter-spacing:.12em}
.foot-grid ul{list-style:none;padding:0;margin:0}
.foot-grid li{margin-bottom:7px}
.site-footer .brand{color:#fff}
.site-footer .brand small{color:#8f9bb1}
.copyright{border-top:1px solid rgba(255,255,255,.1);margin-top:36px;padding-top:20px;font-size:.82rem}

@media (max-width:1000px){
  .subjects{grid-template-columns:repeat(3,1fr)}
  .products{grid-template-columns:repeat(2,1fr)}
  .features,.books{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .hero .wrap,.band .wrap,.grid.two,.grid.three,.foot-grid{grid-template-columns:1fr}
  .collage{height:300px}
  .menu-toggle{display:block}
  .nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;flex-direction:column;align-items:flex-start;padding:18px 24px;border-bottom:1px solid var(--line);gap:14px}
  .nav.open{display:flex}
}
@media (max-width:520px){
  .subjects,.products{grid-template-columns:1fr 1fr}
  .products .product p{display:none}
  .books{grid-template-columns:1fr}
}

/* Inner pages (about, apps, books, guides, legal, free) */
.page-hero{padding:56px 0 36px}
.page-hero .wrap{display:block}
.page-hero .lead{max-width:720px}
.tint{background:var(--bg-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head h2{margin-bottom:.35em}
.prose{max-width:760px}
.prose h2{margin-top:1.6em;font-size:1.5rem}
.prose h3{margin-top:1.4em}
.prose ul,.prose ol{padding-left:1.2em}
.prose li{margin-bottom:6px}
.prose a{color:var(--navy);text-decoration-color:var(--gold);text-underline-offset:3px}
.prose blockquote{margin:1.2em 0;padding:12px 18px;border-left:4px solid var(--gold);background:var(--gold-soft);border-radius:0 8px 8px 0}
.prose table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.94rem}
.prose th,.prose td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
.prose th{background:var(--bg-2);color:var(--navy)}
.tag.soon{background:#e8ecf3;color:var(--navy-2)}
.note{font-size:.88rem;color:var(--muted)}
.btn-row + .note{margin-top:12px}
.sub{font-size:1.02rem;color:var(--muted);margin-bottom:12px}
.appstore{display:inline-flex;align-items:center;line-height:0}
.appstore img{height:46px;width:auto;display:block}
.card .appstore img{height:42px}
.feature-list{padding-left:1.1em;color:var(--muted);margin:0 0 1em}
.feature-list li{margin-bottom:4px}
.feature-list li::marker{color:var(--gold-2)}
.app-icon{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:1.6rem;margin-bottom:16px;font-family:"Plus Jakarta Sans",sans-serif}
.app-icon.hw{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:var(--gold)}
.app-icon.sw{background:linear-gradient(135deg,var(--gold-2),var(--gold));color:var(--navy)}
.dark{background:var(--navy);color:#dfe5f0}
.dark h2,.dark h3{color:#fff}
.dark p{color:#c3cbda}
.dark a{color:var(--gold)}
/* Books page */
.book-row{display:grid;grid-template-columns:170px 1fr;gap:28px;align-items:start;padding-bottom:40px;border-bottom:1px solid var(--line)}
.book-row:last-child{border-bottom:0}
.cover-img{width:140px;height:auto;border-radius:4px;box-shadow:0 12px 24px rgba(20,33,61,.2)}
.book-meta{font-size:.9rem;color:var(--muted);margin-bottom:12px}
.cover{width:140px;aspect-ratio:2/3;border-radius:6px;padding:18px 14px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 12px 24px rgba(20,33,61,.2);font-family:"Plus Jakarta Sans",sans-serif;background:linear-gradient(160deg,var(--navy),var(--navy-2))}
.cover .t{font-size:1.1rem;line-height:1.15;font-weight:800}
.cover .a{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
/* Contact */
.contact-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px}
form label{display:block;font-weight:600;font-size:.9rem;margin:14px 0 6px;color:var(--navy)}
form input,form select,form textarea{width:100%;padding:12px 14px;border:1px solid #cfd5df;border-radius:8px;font:inherit;background:#fff;color:var(--ink)}
form input:focus,form select:focus,form textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
form textarea{min-height:140px;resize:vertical}
form button{margin-top:18px;cursor:pointer}
/* Free printables page */
.card[id]{scroll-margin-top:90px}
html{scroll-padding-top:84px}
@media (max-width:860px){
  .book-row{grid-template-columns:110px 1fr;gap:18px}
  .cover-img,.cover{width:110px}
  .page-hero{padding:40px 0 24px}
}
@media (max-width:520px){
  .book-row{grid-template-columns:1fr}
  section{padding:52px 0}
  .contact-box{padding:22px}
}
.app-img{width:72px;height:72px;border-radius:17px;border:1px solid var(--line);margin-bottom:16px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 8px}
.chips a{font-size:.86rem;font-weight:600;text-decoration:none;color:var(--navy);padding:6px 13px;border:1px solid var(--line);border-radius:999px;background:#fff}
.chips a:hover{border-color:var(--gold);background:var(--gold-soft)}
@media (max-width:860px){
  .foot-grid{grid-template-columns:1fr 1fr;gap:26px 20px}
  .foot-grid>div:first-child{grid-column:1/-1}
}
