/* QuietLeave landing page. Hand-written CSS, no framework. Tokens mirror the app (frontend/app/globals.css). */

/* Fonts: self-hosted (no requests to Google; see docs/design.md). Latin + Latin Extended covers Polish. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-ext-500-normal.woff2) format('woff2');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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format('woff2');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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2');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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/dm-sans-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/dm-sans-latin-ext-500-normal.woff2) format('woff2');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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/dm-sans-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/dm-sans-latin-ext-700-normal.woff2) format('woff2');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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --bg:#f4f1e9;
  --bg-2:#ebe7dc;
  --ink:#17231d;
  --lime:#b8e34d;
  --green:#314d22;
  --muted:#3f4d44;
  --muted-2:#4a5850;
  --card:#fffefa;
  --border:#d9ddd0;
  --panel:#1f3026;
  --panel-text:#d3dccb;
  --tag-lime:#dbe9b4;
  --font-display:'Bricolage Grotesque',system-ui,sans-serif;
  --font-body:'DM Sans',system-ui,sans-serif;
  /* Type steps: small, body, lead, title (h3), heading (h2), display (h1). */
  --t-small:15px;
  --t-body:17px;
  --t-lead:20px;
  --t-title:clamp(22px,2vw,26px);
  --t-heading:clamp(28px,3.3vw,48px);
  --t-display:clamp(40px,4.6vw,66px);
  --radius:24px;
  --gap-band:6px;
  --maxw:1280px;
  --gutter:48px;
  /* Inline padding that puts full-bleed content on the same margins as the centred page. */
  --edge:max(var(--gutter),calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --ease-out:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:var(--t-body);line-height:1.55;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
img{max-width:100%;height:auto}
a{color:var(--green);text-underline-offset:3px}
a:hover{color:var(--ink)}
:focus-visible{outline:3px solid var(--green);outline-offset:3px}
h1,h2,h3{font-family:var(--font-display);font-weight:700;margin:0;text-wrap:balance}
p{margin:0}
[id]{scroll-margin-top:24px}

.skip{position:absolute;left:-9999px;top:8px;background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:8px;z-index:10}
.skip:focus{left:8px}

/* Header */
.site-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;max-width:var(--maxw);margin:0 auto;padding:20px var(--gutter)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand img{display:block;width:40px;height:40px}
.brand-name{font-family:var(--font-display);font-weight:700;font-size:var(--t-lead);letter-spacing:-0.01em}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;font-size:var(--t-small);font-weight:500}
.nav-link{color:var(--ink);text-decoration:none;padding:10px 0}
.nav-link:hover{color:var(--green);text-decoration:underline}
.lang-switch{display:inline-flex;border-radius:999px;padding:3px;background:var(--bg-2);font-size:var(--t-small);font-weight:700}
.lang-link{display:inline-block;min-width:40px;padding:6px 10px;border-radius:999px;color:var(--muted);text-align:center;text-decoration:none;line-height:1.2}
.lang-link:hover{color:var(--ink)}
.lang-link[aria-current]{background:var(--ink);color:var(--bg)}

/* Buttons: one shape (pill), flat fills */
.btn{display:inline-block;text-decoration:none;font-weight:700;border-radius:999px;padding:12px 20px;line-height:1.2;transition:transform .2s var(--ease-out),background-color .2s}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.98)}
.btn-lg{font-size:var(--t-body);padding:16px 28px}
.btn-dark{background:var(--ink);color:var(--bg)}
.btn-dark:hover{background:var(--green);color:var(--bg)}
.btn-lime{background:var(--lime);color:var(--ink)}
.btn-lime:hover{background:#c7ec66;color:var(--ink)}
.btn-outline{border:2px solid var(--ink);color:var(--ink);padding:14px 26px}
.btn-outline:hover{background:var(--ink);color:var(--bg)}

/* Fading dots motif */
.dots{display:inline-flex;gap:5px}
.dots i{width:12px;height:12px;border-radius:50%;background:var(--ink)}
.dots i:nth-child(2){opacity:.7}
.dots i:nth-child(3){opacity:.4}
.dots i:nth-child(4){opacity:.18}
.dots-final{gap:8px}
.dots-final i{width:16px;height:16px;background:var(--bg)}
.dots-final i:nth-child(2){opacity:.65}
.dots-final i:nth-child(3){opacity:.35}
.dots-final i:nth-child(4){opacity:1;background:var(--lime)}

/* The axis: headings start on the left column, content hangs in the right one (about 42% across). */
.axis{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:32px 56px;align-items:start}
.axis>h2{grid-column:1}
.axis>:not(h2){grid-column:2}
.section.axis>h2{position:sticky;top:32px}

/* Hero */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px 56px;align-items:start;max-width:var(--maxw);margin:0 auto;padding:48px var(--gutter) 72px}
.hero-head{grid-column:1/-1;display:flex;flex-direction:column;gap:24px}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:var(--t-small);font-weight:700;color:var(--green)}
.hero h1{font-size:var(--t-display);line-height:1.02;letter-spacing:-0.03em}
.hero-copy{min-width:0;display:flex;flex-direction:column;gap:28px}
.lead{font-size:var(--t-lead);line-height:1.5;color:var(--ink);max-width:34ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.note{font-size:var(--t-small);color:var(--muted-2)}

/* Demo list: a fragment of the app's interface (data-ui), so it keeps the app's own sizes. */
.demo{min-width:0;margin:0;background:var(--card);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:16px}
.demo-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.demo-title{font-family:var(--font-display);font-weight:700;font-size:20px}
.demo-badge{font-size:13px;font-weight:700;color:var(--muted-2);background:var(--bg);border-radius:999px;padding:6px 12px}
.demo-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.demo-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:14px;background:var(--bg);flex-wrap:wrap}
.demo-row:first-child{background:var(--tag-lime)}
.demo-row-main{min-width:0}
.demo-label{font-weight:700;font-size:16px;overflow-wrap:anywhere}
.demo-text{font-size:14px;color:var(--muted);margin-top:2px}
.tag{font-size:13px;font-weight:700;border-radius:999px;padding:6px 12px;white-space:nowrap}
.tag-dark{background:var(--ink);color:var(--bg)}
.tag-lime{background:var(--lime);color:var(--ink)}
.tag-light{background:var(--card);color:var(--ink)}
.demo figcaption{font-size:14px;line-height:1.5;color:var(--muted-2);padding-top:4px}

.dots-band{width:100%;height:200px;overflow:hidden}
.dots-band img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;max-width:none}

/* Sections */
.section{max-width:var(--maxw);margin:0 auto;padding:120px var(--gutter)}
.section h2,.problem h2,.segments h2,.final h2{font-size:var(--t-heading);line-height:1.05;letter-spacing:-0.025em}
.section>h2{margin-bottom:48px}
.axis.section>h2{margin-bottom:0}
.h2-small{font-size:var(--t-title);letter-spacing:-0.01em;line-height:1.2;margin-bottom:16px}

.problem{max-width:var(--maxw);margin:0 auto;padding:120px var(--gutter) 0}
.problem>h2{grid-column:1/-1;max-width:24ch}
.problem p{font-size:clamp(20px,1.8vw,24px);line-height:1.45;max-width:40ch}

/* How it works: the three steps as one bar of flat segments */
.steps{list-style:none;margin:0;padding:0;display:flex;gap:var(--gap-band)}
.step{flex:1 1 0;min-width:0;padding:36px 32px 40px;display:flex;flex-direction:column;gap:14px;min-height:260px;background:var(--ink);color:var(--bg)}
.step:first-child{border-radius:var(--radius) 0 0 var(--radius)}
.step:last-child{border-radius:0 var(--radius) var(--radius) 0}
.step:nth-child(2){background:var(--panel)}
.step:nth-child(3){background:var(--lime);color:var(--ink)}
.step h3{font-size:var(--t-title)}
.step p{line-height:1.55;color:var(--panel-text);max-width:36ch}
.step:nth-child(3) p{color:var(--ink)}

/* Segments: dark section, one panel per segment */
.segments{background:var(--ink);color:var(--bg);padding:120px 0}
.segments-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);display:flex;flex-direction:column;gap:var(--gap-band)}
.segments h2{max-width:20ch;margin-bottom:48px}
.segment{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:20px 56px;background:var(--panel);border-radius:var(--radius);padding:48px}
.segment-main{display:contents}
.segment-label{grid-column:1/-1;font-size:var(--t-small);font-weight:700;color:var(--lime)}
.segment h3{grid-column:1/-1;font-size:clamp(24px,2.5vw,36px);line-height:1.15;letter-spacing:-0.015em;margin-bottom:12px}
.segment-sub{grid-column:1;line-height:1.55;color:var(--panel-text)}
.benefits{grid-column:2;grid-row:3;min-width:0;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:16px;line-height:1.5}
.benefits li{display:flex;gap:14px}
.benefits li::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--lime);margin-top:8px}
/* Dashboard screenshot across the panel (a real app screen, so it keeps its own look) */
.segment-shot{grid-column:1/-1;min-width:0;margin:20px 0 0}
.segment-shot img{display:block;width:100%;height:auto;border-radius:16px;background:var(--card)}
.segment-shot figcaption{margin-top:14px;font-size:var(--t-small);line-height:1.5;color:var(--panel-text);max-width:72ch}
.segment-shot figcaption a{color:var(--bg);text-decoration:underline;text-underline-offset:3px}
.segment-shot figcaption a:hover{color:var(--lime)}
.segment-shot figcaption a:focus-visible{outline-color:var(--lime)}

/* Why */
.why{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 40px}
.why-item h3{font-size:var(--t-title);margin-bottom:8px}
.why-item p{color:var(--muted)}

/* Privacy and beta: two flat fields that meet at a hard edge, full bleed */
.info{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.info-card{min-width:0;padding:112px 56px;background:var(--panel);color:var(--bg)}
.info .h2-small{font-size:var(--t-heading);line-height:1.05;letter-spacing:-0.025em;margin-bottom:24px}
.info-card:first-child{padding-left:var(--edge)}
.info-card:last-child{padding-right:var(--edge)}
.info-card p{line-height:1.6;color:var(--panel-text);max-width:42ch}
.info-card-lime{background:var(--lime);color:var(--ink)}
.info-card-lime p{color:var(--ink);font-size:var(--t-lead);line-height:1.5}

/* Glossary */
.glossary-head{margin-bottom:56px}
.glossary-head h2{grid-column:1}
.glossary-intro{grid-column:2;font-size:var(--t-lead);line-height:1.5;max-width:40ch;align-self:end}
.glossary-list{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 32px}
.glossary-item{min-width:0;display:flex;flex-direction:column;gap:16px}
.glossary-item dt{display:flex;flex-direction:column;gap:4px}
.glossary-term{font-family:var(--font-display);font-weight:700;font-size:var(--t-title);line-height:1.2}
.glossary-alias{font-size:var(--t-small);color:var(--muted-2);overflow-wrap:anywhere}
.glossary-item dd{margin:0;display:flex;flex-direction:column;gap:20px;flex:1}
.glossary-item dd>p{line-height:1.6;color:var(--muted)}
/* Example figure: a small piece of the app (data-ui); one dot per unit, the missing ones fade. */
.glossary-figure{margin:auto 0 0;background:var(--card);border-radius:var(--radius);padding:22px 22px 20px;display:flex;flex-direction:column;gap:12px;font-size:14px;view-timeline-name:--fig}
.fig-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}
.fig-customer{font-weight:700;font-size:16px}
.fig-badge{font-size:13px;font-weight:700;color:var(--muted-2);background:var(--bg);border-radius:999px;padding:4px 10px}
.fig-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:baseline;padding:12px 14px;border-radius:14px;background:var(--bg)}
.fig-label{color:var(--muted)}
.fig-value{font-weight:700;text-align:right}
.fig-dots{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px}
.fig-dots i{width:12px;height:12px;border-radius:50%;background:var(--ink)}
.fig-dots i.off{background:var(--ink);opacity:.16}
.glossary-figure figcaption{font-size:14px;line-height:1.5;color:var(--muted-2);padding-top:2px}

/* FAQ: one band per question, tones alternate */
.faq-list{display:flex;flex-direction:column;gap:var(--gap-band)}
.faq-item{background:var(--card);border-radius:var(--radius);padding:0 28px}
.faq-item:nth-child(even){background:var(--bg-2)}
.faq-item summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0;font-size:var(--t-lead);font-weight:700;line-height:1.35;cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{color:var(--green)}
.faq-plus{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--bg);font-size:24px;line-height:1;transition:transform .25s var(--ease-out)}
.faq-item[open] .faq-plus{transform:rotate(45deg)}
.faq-item p{padding-bottom:28px;line-height:1.6;color:var(--muted);max-width:62ch}

/* Final call to action: one full-bleed ink field */
.final-wrap{background:var(--ink);color:var(--bg)}
.final{max-width:var(--maxw);margin:0 auto;padding:120px var(--gutter);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px 56px;align-items:end}
.final .dots-final{grid-column:1/-1}
.final h2{grid-column:1/-1;font-size:var(--t-display);letter-spacing:-0.03em}
.final p{grid-column:1;font-size:var(--t-lead);line-height:1.5;color:var(--panel-text);max-width:36ch}
.final .btn{grid-column:2;justify-self:start}

.site-footer{background:var(--panel);color:var(--panel-text)}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:40px var(--gutter);display:flex;flex-wrap:wrap;gap:16px 32px;justify-content:space-between;align-items:center;font-size:var(--t-small)}
.footer-brand{display:flex;align-items:center;gap:10px;color:var(--bg)}
.footer-brand img{width:28px;height:28px;display:block}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 28px}
.site-footer a,.site-footer .link-button{color:var(--panel-text)}
.site-footer a:hover,.site-footer .link-button:hover{color:var(--lime)}

.notfound{max-width:600px;margin:20vh auto;padding:0 var(--gutter);text-align:center}
.notfound h1{font-size:72px}

@media (max-width:900px){
  .axis,.hero,.segment,.info,.final{grid-template-columns:minmax(0,1fr)}
  .axis>*,.axis>:not(h2),.hero-copy,.demo,.segment-sub,.benefits,.final p,.final .btn,.glossary-intro{grid-column:1}
  .benefits{grid-row:auto}
  .section.axis>h2{position:static}
  .info-card,.info-card:first-child,.info-card:last-child{padding:72px var(--gutter)}
  .glossary-list{grid-template-columns:minmax(0,1fr)}
  .steps{flex-direction:column}
  .step{flex:none;min-height:0}
  .step:first-child{border-radius:var(--radius) var(--radius) 0 0}
  .step:last-child{border-radius:0 0 var(--radius) var(--radius)}
}

@media (max-width:720px){
  :root{--gutter:20px}
  .segment{padding:28px}
  .hero{padding-top:28px;padding-bottom:56px}
  .section,.final{padding-top:88px;padding-bottom:88px}
  .problem{padding-top:88px}
  .segments{padding:88px 0}
  .why{grid-template-columns:minmax(0,1fr)}
  .faq-item{padding:0 20px}
  .dots-band{height:120px}
}

/* Motion: CSS only (the page has no script of its own). Everything is visible without it. */
@media (prefers-reduced-motion:no-preference){
  @keyframes rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
  /* Scroll entrances never start fully transparent: content stays readable in any capture or if the timeline stalls. */
  @keyframes enter{from{opacity:.25;transform:translateY(28px)}to{opacity:1;transform:none}}
  @keyframes dot-fade{from{opacity:1}to{opacity:.16}}
  @keyframes drift{from{transform:scale(1.12) translateX(3%)}to{transform:scale(1.12) translateX(-3%)}}

  /* Signature: the headline rises on load, then the supporting copy and the demo list. */
  .hero h1{animation:rise .9s var(--ease-out) both}
  .eyebrow{animation:rise .7s var(--ease-out) both}
  .hero-copy>*{animation:rise .8s var(--ease-out) both}
  .hero-copy>:nth-child(1){animation-delay:.18s}
  .hero-copy>:nth-child(2){animation-delay:.26s}
  .hero-copy>:nth-child(3){animation-delay:.34s}
  .demo{animation:rise .9s var(--ease-out) .3s both}
  .demo-row{animation:rise .7s var(--ease-out) both}
  .demo-row:nth-child(1){animation-delay:.5s}
  .demo-row:nth-child(2){animation-delay:.58s}
  .demo-row:nth-child(3){animation-delay:.66s}

  @supports (animation-timeline:view()){
    /* Section entrances: heading, then text, then the rest, as each part enters the viewport. */
    .section>h2,.problem>*,.axis>*,.segments h2,.segment,.step,.why-item,.info-card,.glossary-item,.faq-item,.final>*{animation:enter linear both;animation-timeline:view();animation-range:entry 0% entry 55%}
    .problem>p,.axis>:not(h2),.step:nth-child(2),.why-item:nth-child(2),.info-card:nth-child(2),.glossary-item:nth-child(2),.final>p{animation-range:entry 8% entry 63%}
    .step:nth-child(3),.why-item:nth-child(3),.glossary-item:nth-child(3),.final>.btn{animation-range:entry 16% entry 71%}
    .why-item:nth-child(4){animation-range:entry 24% entry 79%}
    /* The dots of the examples go quiet one after another as the figure scrolls in. */
    .fig-dots i.off{animation:dot-fade linear both;animation-timeline:--fig;animation-range:entry 40% cover 45%}
    .fig-dots i.off:nth-child(n+5){animation-range:entry 50% cover 50%}
    .fig-dots i.off:nth-child(n+7){animation-range:entry 60% cover 55%}
    .fig-dots i.off:nth-child(n+9){animation-range:entry 70% cover 60%}
    /* The dots band drifts slowly with the scroll. */
    .dots-band img{animation:drift linear both;animation-timeline:view()}
  }
}

@media print{*{animation:none!important}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .faq-plus,.btn{transition:none}
  .btn:hover,.btn:active{transform:none}
}

/* Cookie banner (rendered only when the build has a Google tag id) */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:50;max-width:720px;margin:0 auto;display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;justify-content:space-between;background:var(--card);color:var(--ink);border:1px solid var(--border);border-radius:16px;padding:20px 24px;box-shadow:0 8px 32px rgba(23,35,29,.18);font-size:15px}
.cookie-banner[hidden]{display:none}
.cookie-text{flex:1 1 320px}
.cookie-text p{margin:4px 0 0}
.cookie-actions{display:flex;flex-wrap:wrap;gap:12px}
.cookie-actions .btn{cursor:pointer;font:inherit;font-weight:700;border:0}
.cookie-actions .btn-outline{border:2px solid var(--ink);background:transparent}
.link-button{background:none;border:0;padding:0;font:inherit;color:var(--green);text-decoration:underline;cursor:pointer}
.link-button:hover{color:var(--ink)}

/* Legal documents (privacy policy, terms): one readable column, tables become stacked cards on narrow screens (no horizontal scroll). */
.legal{max-width:820px;margin:0 auto;padding:72px var(--gutter) 96px}
.legal h1{font-size:var(--t-heading);line-height:1.05;letter-spacing:-0.025em;margin-bottom:16px}
.legal h2{font-size:var(--t-title);line-height:1.2;letter-spacing:-0.015em;margin:56px 0 16px}
.legal p,.legal li{line-height:1.65;color:var(--muted)}
.legal p+p,.legal p+ul,.legal p+ol,.legal ul+p,.legal ol+p,.legal table+p,.legal p+table{margin-top:14px}
.legal ul,.legal ol{margin:14px 0 0;padding-left:1.4em}
.legal li+li{margin-top:8px}
.legal-meta{font-size:var(--t-small);color:var(--muted-2)}
.legal-intro{margin-top:20px;font-size:var(--t-lead);color:var(--ink)}
.legal-toc{margin-top:32px;padding:24px 28px;background:var(--card);border-radius:var(--radius)}
.legal-toc-title{font-family:var(--font-display);font-weight:700;color:var(--ink)}
.legal-toc ol{margin-top:12px;list-style:none;padding:0;columns:2;column-gap:32px}
.legal-toc li{break-inside:avoid;line-height:1.4}
.legal-toc a{text-decoration:none}
.legal-toc a:hover{text-decoration:underline}
.legal-table{width:100%;border-collapse:collapse;margin-top:14px;font-size:var(--t-small);line-height:1.5}
.legal-table caption{text-align:left;font-weight:700;color:var(--ink);padding-bottom:8px}
.legal-table th,.legal-table td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--border);color:var(--muted)}
.legal-table th{color:var(--ink);background:var(--bg-2)}
.legal-table td:first-child{color:var(--ink);font-weight:700}
@media (max-width:760px){
  .legal{padding:48px 20px 72px}
  .legal-toc{padding:20px}
  .legal-toc ol{columns:1}
  .legal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .legal-table,.legal-table tbody,.legal-table tr,.legal-table td{display:block;width:100%}
  .legal-table tr{background:var(--card);border-radius:16px;padding:6px 0;margin-top:12px}
  .legal-table td{border:0;padding:8px 16px}
  .legal-table td::before{content:attr(data-label);display:block;font-size:13px;font-weight:700;color:var(--muted-2);text-transform:none}
}
