/* Diktáty — homepage styles (design: "Diktaty Landing", Oct 2026).

   Legal pages (privacy/, terms/, pair/) still use style.css.

   Fonts are vendored locally (SIL OFL 1.1, licences alongside the files),
   never loaded from a CDN: a children's product should not phone a third
   party just to render text. Caveat is a variable font, so one file covers
   the 500–700 range; split into latin / latin-ext like Google serves it. */
@font-face{font-family:'Source Serif 4';src:url('../fonts/SourceSerif4-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('../fonts/IBMPlexSans-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Caveat';src:url('../fonts/Caveat-latin.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Caveat';src:url('../fonts/Caveat-latin-ext.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --ink:#141414;
  --red:#C41230;
  --red-hover:#A50F28;
  --red-on-dark:#E0314E;
  --paper:#F3EFE8;
  --paper-2:#E6E0D4;
  --sheet:#FFFDF8;
  --surface:#FFFFFF;
  --text-muted:#4F4B45;
  --text-subtle:#6B665E;
  --on-dark-muted:#BDB8B0;
  --on-dark-subtle:#8F8A82;
  --line:rgba(20,20,20,.12);
  --serif:'Source Serif 4',Georgia,serif;
  --sans:'IBM Plex Sans',system-ui,sans-serif;
  --hand:'Caveat',cursive;
  --radius-card:22px;
  --radius-btn:14px;
  --container:1200px;
  --section-y:clamp(64px,9vw,120px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--red)}
img{display:block;max-width:100%;height:auto}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}
section[id]{scroll-margin-top:64px}

/* Type */
.eyebrow{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--red)}
.h1{font-family:var(--serif);font-weight:700;font-size:clamp(40px,5.6vw,72px);line-height:1.04;letter-spacing:-.025em;margin:22px 0 0;text-wrap:balance}
.h2{font-family:var(--serif);font-weight:700;font-size:clamp(32px,4vw,52px);line-height:1.08;letter-spacing:-.02em;margin:14px 0 0;text-wrap:balance}
.h3{font-family:var(--serif);font-weight:700;font-size:22px;line-height:1.25;margin:0}
.lead{font-size:18px;line-height:1.55;color:var(--text-muted);margin:18px 0 0;text-wrap:pretty}
.body{font-size:16px;line-height:1.55;color:var(--text-muted);margin:10px 0 0;text-wrap:pretty}
.red{color:var(--red)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--red);flex:none;display:inline-block}
.section-head{max-width:720px}

/* Header */
.header{position:sticky;top:0;z-index:30;background:rgba(243,239,232,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(20,20,20,.08)}
.header .container{display:flex;align-items:center;gap:12px;padding-top:12px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:10px;flex:none}
.brand svg{height:28px;width:auto;display:block}
.brand span{font-family:var(--serif);font-weight:700;font-size:22px;letter-spacing:-.01em;color:var(--ink)}
.nav{display:flex;gap:28px;margin-left:36px;font-size:15px;font-weight:500}
.header-cta{margin-left:auto;display:flex;align-items:center;height:40px;padding:0 18px;background:var(--ink);color:#fff;border-radius:999px;font-weight:600;font-size:14px;white-space:nowrap}
.header-cta:hover{background:var(--red);color:#fff}
.header-cta .short{display:none}
@media (max-width:859px){
  .nav{display:none}
  .header-cta .long{display:none}
  .header-cta .short{display:inline}
}

/* Buttons / store badges */
.badges{display:flex;flex-wrap:wrap;gap:12px}
.badge{display:flex;align-items:center;gap:12px;height:58px;padding:0 22px 0 18px;min-width:170px;border-radius:var(--radius-btn);background:var(--ink);color:#fff}
.badge:hover{background:var(--red);color:#fff}
.badge svg{flex:none;display:block}
.badge span{display:flex;flex-direction:column}
.badge small{font-size:11px;letter-spacing:.02em;color:#C9C4BC}
.badge strong{font-size:19px;font-weight:600;letter-spacing:-.01em;line-height:1.15}
.badge--light{background:#fff;color:var(--ink)}
.badge--light small{color:var(--ink)}
.badge--light:hover{background:var(--ink);color:#fff}
.badge--light:hover small{color:#C9C4BC}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(to bottom,transparent 0 47px,rgba(20,20,20,.055) 47px 48px);pointer-events:none}
.hero .container{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:clamp(48px,5vw,72px);padding-top:clamp(40px,7vw,96px);padding-bottom:clamp(64px,8vw,112px)}
.hero-copy{flex:1 1 440px;min-width:0;max-width:620px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 10px;background:#fff;border:1px solid rgba(20,20,20,.08);border-radius:999px;font-size:14px;font-weight:500}
.hero-lead{font-size:clamp(17px,1.5vw,20px);line-height:1.55;color:var(--text-muted);margin:22px 0 0;max-width:540px;text-wrap:pretty}
.hero .badges{margin-top:32px}
.fineprint{margin:16px 0 0;font-size:14px;color:var(--text-subtle)}
.hero-visual{flex:1 1 380px;min-width:0;max-width:540px;margin:0 auto}
.stage{position:relative;width:100%;aspect-ratio:540/580;container-type:inline-size}
/* notebook sheet: red margin line + ruled lines, all scaled in container units */
.sheet{position:absolute;left:0;top:12%;width:76%;transform:rotate(-3deg);background-color:var(--sheet);border-radius:6px;box-shadow:0 1px 2px rgba(20,20,20,.06),0 28px 60px -24px rgba(20,20,20,.3);padding:7cqw 4cqw 7cqw 11cqw;background-image:linear-gradient(to right,transparent calc(8cqw - 1px),rgba(196,18,48,.5) calc(8cqw - 1px) 8cqw,transparent 8cqw),repeating-linear-gradient(to bottom,transparent 0 calc(7cqw - 1px),#DCD5C7 calc(7cqw - 1px) 7cqw);background-position:0 0,0 -1.4cqw;font-family:var(--hand);font-size:5.4cqw;line-height:7cqw;color:#24314F;white-space:nowrap}
.sheet-title{font-weight:700;padding-left:14cqw}
.mistake{position:relative;display:inline-block;text-decoration:underline wavy var(--red);text-decoration-thickness:.35cqw;text-underline-offset:.8cqw}
.mistake i{position:absolute;left:.6cqw;top:-4.4cqw;color:var(--red);font-style:normal;font-weight:700;font-size:5cqw}
.hero-phone{position:absolute;right:0;top:0;width:46%;transform:rotate(4deg);background:var(--ink);padding:2.2cqw;border-radius:8.5cqw;box-shadow:0 36px 70px -28px rgba(20,20,20,.45)}
.hero-phone img{width:100%;border-radius:6.6cqw}

/* Steps */
.section{padding:var(--section-y) 0}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-top:48px}
.card{background:var(--surface);border-radius:var(--radius-card);padding:32px 30px 34px}
.step-num{display:flex;align-items:flex-start;gap:4px;font-family:var(--serif);font-weight:700;font-size:56px;line-height:1}
.step-num::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--red);margin-top:6px}
.card .h3{margin-top:28px;font-size:23px}

/* App screens */
.section--white{background:var(--surface)}
.screens{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;margin:48px -20px 0;padding:0 20px 12px;scroll-padding:0 20px}
.screen{flex:0 0 auto;width:clamp(224px,22vw,264px);margin:0;scroll-snap-align:start}
.phone{background:var(--ink);padding:9px;border-radius:40px}
.phone img{width:100%;border-radius:31px}
.screen figcaption{margin-top:20px}
.screen .num{font-size:13px;font-weight:600;color:var(--red)}
.screen .title{font-family:var(--serif);font-weight:700;font-size:20px;margin-top:4px}
.screen .desc{font-size:15px;line-height:1.5;color:var(--text-muted);margin-top:6px;text-wrap:pretty}

/* Audience */
.split{display:flex;flex-wrap:wrap;gap:clamp(40px,5vw,72px);align-items:flex-start}
.split-aside{flex:1 1 340px;min-width:0}
.split-main{flex:1.4 1 520px;min-width:0}
.grades{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;max-width:420px;margin-top:28px}
.grades span{aspect-ratio:1;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:var(--serif);font-weight:700;font-size:17px}
.grades span.on{background:var(--red)}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.benefit{background:var(--surface);border-radius:var(--radius-card);padding:30px 28px}
.benefit .h3{display:flex;align-items:center;gap:10px;font-size:21px}
.benefit--dark{background:var(--ink);color:#fff}
.benefit--dark .h3{color:#fff}
.benefit--dark .dot{background:var(--red-on-dark)}
.benefit--dark .body{color:#CFCAC2}


/* Privacy */
.section--dark{background:var(--ink);color:#fff}
.section--dark .eyebrow{display:flex;align-items:center;gap:10px;color:#fff}
.section--dark .eyebrow .dot{background:var(--red-on-dark)}
.section--dark .h2,.section--dark .h3{color:#fff}
.privacy{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(28px,4vw,48px);margin-top:56px}
.privacy > div{border-top:1px solid rgba(255,255,255,.18);padding-top:24px}
.privacy p{font-size:16px;line-height:1.6;color:var(--on-dark-muted);margin:12px 0 0;text-wrap:pretty}

/* FAQ — native <details>, no JS */
.faq{flex:1.6 1 520px;min-width:0;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;cursor:pointer;font-weight:600;font-size:18px;line-height:1.35}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:20px;font-weight:400;transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq p{margin:0;padding:0 48px 24px 0;font-size:16px;line-height:1.6;color:var(--text-muted)}
.faq-aside{flex:1 1 300px;min-width:0}
.faq-aside a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* Final CTA */
.cta-wrap{padding:0 0 var(--section-y)}
.cta{position:relative;overflow:hidden;background:var(--red);color:#fff;border-radius:28px;padding:clamp(40px,6vw,80px) clamp(28px,6vw,80px);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:32px}
.cta::before{content:"";position:absolute;right:-90px;top:-110px;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.08)}
.cta-copy{position:relative;flex:1 1 420px;min-width:0;max-width:640px}
.cta h2{font-family:var(--serif);font-weight:700;font-size:clamp(32px,4.4vw,56px);line-height:1.05;letter-spacing:-.02em;margin:0;color:#fff;text-wrap:balance}
.cta p{font-size:18px;line-height:1.55;margin:16px 0 0}
.cta .badges{position:relative}

/* Footer */
.footer{background:var(--ink);color:#fff;padding:64px 0 32px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px}
.footer .brand span{color:#fff}
.footer p{font-size:15px;line-height:1.55;color:var(--on-dark-muted);margin:16px 0 0;max-width:320px}
.footer-col{display:flex;flex-direction:column;gap:10px;font-size:15px}
.footer-col .label{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--on-dark-subtle);margin-bottom:4px}
.footer-col a{color:#E6E1D9}
.footer-col a:hover{color:#fff}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:56px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:var(--on-dark-subtle)}

/* Accessibility */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:12px 18px;border-radius:0 0 8px 0;z-index:100}
.skip-link:focus{left:0;color:#fff}
a:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:2px}
