/* PDF to Limit design system, direction C: trustworthy and accessible.
   Layout: one centered column (max 1120px). White header bar, hero with privacy promise,
   the tool as numbered steps on a white panel, then how it works, privacy and FAQ. */

/* Atkinson Hyperlegible (SIL Open Font License), self-hosted so no request leaves the site.
   Put the two .woff2 files in /fonts. Until then the Verdana fallback is used. */
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;
  src:local("Atkinson Hyperlegible"),local("AtkinsonHyperlegible-Regular"),url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;
  src:local("Atkinson Hyperlegible Bold"),local("AtkinsonHyperlegible-Bold"),url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2")}

:root{
  --bg:#F2F6F5; --surface:#FFFFFF; --raised:#F7FBFA; --ink:#12302B; --muted:#3E5A54; --line:#C3D6D0; --line-soft:#D5E2DE;
  --accent:#0A6B50; --accent-ink:#FFFFFF; --accent-soft:#E3F2EC; --limit:#FFD866; --limit-ink:#5C4400;
  --ok:#0A6B50; --warn:#8A4B00; --bad:#B3261E;
  --font:"Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0E1A18; --surface:#15241F; --raised:#1A2C27; --ink:#E6F1ED; --muted:#A9BFB8; --line:#355047; --line-soft:#26392F;
    --accent:#45C29A; --accent-ink:#04211A; --accent-soft:#183A31; --limit:#FFD866; --limit-ink:#FFD866;
    --ok:#5CCB98; --warn:#F0B75A; --bad:#F2918A; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0E1A18; --surface:#15241F; --raised:#1A2C27; --ink:#E6F1ED; --muted:#A9BFB8; --line:#355047; --line-soft:#26392F;
  --accent:#45C29A; --accent-ink:#04211A; --accent-soft:#183A31; --limit:#FFD866; --limit-ink:#FFD866;
  --ok:#5CCB98; --warn:#F0B75A; --bad:#F2918A; color-scheme:dark;
}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:18px/1.6 var(--font)}
[hidden]{display:none!important}
a{color:var(--accent)}
a:hover{color:var(--ink)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
h1,h2,h3{text-wrap:balance}

/* Shared frame */
.bar{background:var(--surface);border-bottom:1px solid var(--line-soft)}
.inner{max-width:1120px;margin:0 auto;padding-left:max(20px, env(safe-area-inset-left, 0px));padding-right:max(20px, env(safe-area-inset-right, 0px))}
.top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 24px;padding-block:14px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:700;font-size:22px;padding:6px 0}
.brand svg{flex:none}
.navlinks{display:flex;gap:4px 24px;flex-wrap:wrap;font-size:17px}
.navlinks a{text-decoration:none;padding:10px 0;display:inline-block}
.back{font-size:17px;text-decoration:none;padding:10px 0}

.page{display:flex;flex-direction:column;gap:64px;padding-block:48px 0}

/* Hero */
.hero{display:flex;flex-wrap:wrap;gap:28px 40px;align-items:center}
.hero-text{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:14px}
h1{font-size:clamp(34px,5.4vw,54px);line-height:1.1;margin:0;font-weight:700}
.lede{margin:0;font-size:clamp(18px,2.2vw,21px);color:var(--muted);max-width:34em}
.promise{flex:0 1 380px;min-width:0;background:var(--surface);border:2px solid var(--accent);border-radius:18px;padding:20px 22px;display:flex;gap:16px;align-items:flex-start}
.promise svg{flex:none}
.promise strong{display:block;font-size:19px;margin-bottom:4px}
.promise span{font-size:16px;color:var(--muted);line-height:1.5}

/* Tool */
.tool{background:var(--surface);border-radius:22px;padding:clamp(18px,3vw,36px);display:flex;flex-direction:column;gap:28px;box-shadow:0 2px 0 var(--line-soft)}
.tabs{display:flex;gap:6px;padding:6px;background:var(--raised);border:1px solid var(--line-soft);border-radius:14px;max-width:520px}
.tab{flex:1;font:inherit;font-size:17px;font-weight:700;padding:12px 10px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;min-height:48px}
.tab[aria-selected="true"]{background:var(--accent);color:var(--accent-ink)}
.panel{display:flex;flex-direction:column;gap:32px}
.step{display:flex;flex-direction:column;gap:16px}
.steplabel{margin:0;font-size:22px;font-weight:700;display:flex;align-items:center;gap:12px}
.num{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-size:18px;flex:none}
.purposes{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.purpose{text-align:left;font:inherit;color:var(--ink);background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:16px 18px;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-height:88px}
.purpose b{font-size:18px}
.purpose span{font-size:16px;color:var(--muted)}
.purpose:hover{border-color:var(--accent)}
.purpose[aria-pressed="true"]{border:3px solid var(--accent);background:var(--accent-soft);padding:15px 17px}
.limitrow{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;font-size:17px}
.limitrow input{width:100px;font:inherit;font-size:18px;padding:10px 12px;border:2px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);min-height:48px}
.limitrow .hint{color:var(--muted);font-size:16px;flex-basis:100%}
.drop{border:3px dashed var(--line);border-radius:18px;background:var(--raised);padding:40px 20px;text-align:center;cursor:pointer;display:flex;flex-direction:column;gap:12px;align-items:center}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft)}
.drop .big{font-size:20px;font-weight:700}
.drop .small{color:var(--muted);font-size:16px}
.btn{font:inherit;font-size:18px;font-weight:700;padding:14px 26px;border-radius:14px;border:2px solid var(--accent);background:var(--accent);color:var(--accent-ink);text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:10px;min-height:52px}
.btn:hover{color:var(--accent-ink);filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--accent)}
.btn.ghost:hover{background:var(--accent-soft);filter:none}
.drop .btn{font-size:20px;padding:16px 32px}
.err{color:var(--bad);font-size:17px;margin:0;font-weight:700}

/* Results */
.resbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line-soft);padding-top:24px}
.resbar .steplabel{font-size:20px}
.results{display:flex;flex-direction:column;gap:14px}
.card{border:2px solid var(--line-soft);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:14px;background:var(--surface)}
.card .card{border-width:1px}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.fname{font-weight:700;min-width:0;overflow-wrap:anywhere}
.size{font-size:16px;font-variant-numeric:tabular-nums;color:var(--muted)}
.size strong{color:var(--ink)}
.pill{font-size:15px;font-weight:700;padding:4px 12px;border-radius:99px;white-space:nowrap;border:2px solid currentColor}
.pill.ok{color:var(--ok);background:var(--accent-soft)}
.pill.warn{color:var(--warn)} .pill.bad{color:var(--bad)} .pill.wait{color:var(--muted)}
.working{display:flex;align-items:center;gap:12px;font-size:17px;color:var(--muted)}
.spin{width:20px;height:20px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:s .8s linear infinite;flex:none}
@keyframes s{to{transform:rotate(360deg)}}
/* The limit line: the yellow mark is the website's limit, the bar is your file. */
.meter{position:relative;height:14px;border-radius:99px;background:var(--line-soft);margin-top:22px}
.meter i{position:absolute;left:0;top:0;bottom:0;background:var(--ok);border-radius:99px;transition:width .4s}
.meter i.over{background:var(--bad)}
.meter .mark{position:absolute;top:-8px;bottom:-8px;width:4px;margin-left:-2px;background:var(--limit);border-radius:2px;box-shadow:0 0 0 1px var(--ink)}
.meter .marklabel{position:absolute;bottom:22px;transform:translateX(-50%);font-size:14px;font-weight:700;color:var(--limit-ink);background:var(--limit);color:#4A3700;padding:0 6px;border-radius:4px;white-space:nowrap}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:520px}
.compare figure{margin:0;display:flex;flex-direction:column;gap:6px}
.compare img{width:100%;aspect-ratio:3/4;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px;max-width:100%}
.compare figcaption{font-size:15px;color:var(--muted);text-align:center}
.note{font-size:17px;color:var(--muted);margin:0}
.note.warn{color:var(--warn)}

/* Info sections */
section.info{display:flex;flex-direction:column;gap:20px}
h2{font-size:clamp(26px,3.4vw,32px);line-height:1.2;margin:0}
h3{font-size:19px;margin:0}
.how{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;list-style:none;margin:0;padding:0;counter-reset:h}
.how li{display:flex;gap:14px;counter-increment:h}
.how li::before{content:counter(h);flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:700}
.how p,.priv p{margin:4px 0 0;color:var(--muted);font-size:17px}
.privgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.priv{border:2px solid var(--line-soft);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.priv.us{border-color:var(--accent)}
.priv ol{margin:0;padding-left:22px;color:var(--muted);font-size:17px;display:flex;flex-direction:column;gap:2px}
.faq{display:flex;flex-direction:column;border-top:1px solid var(--line)}
details{border-bottom:1px solid var(--line);padding:4px 0}
summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:12px;padding:12px 0;min-height:48px;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:24px;line-height:1;color:var(--accent)}
details[open] summary::after{content:"−"}
details p{margin:0 0 14px;color:var(--muted);max-width:65ch}

/* Footer */
.foot{margin-top:72px;background:var(--surface);border-top:1px solid var(--line-soft)}
.foot .inner{padding-block:28px 40px;display:flex;flex-direction:column;gap:8px;font-size:16px;color:var(--muted)}
.foot p{margin:0;max-width:72ch}
.foot a{display:inline-block;padding:6px 2px}

/* Text pages (privacy, terms, contact, 404) */
article{display:flex;flex-direction:column;gap:14px;max-width:720px;padding-block:40px 0}
article h1{font-size:clamp(30px,5vw,42px)}
article h2{font-size:22px;margin-top:14px}
article p,article li{max-width:65ch}
article p{margin:0}
article ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:4px}
.updated{color:var(--muted);font-size:16px}
.box{background:var(--surface);border:2px solid var(--line-soft);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px}
.email{font-size:20px;font-weight:700;overflow-wrap:anywhere;user-select:all}
.muted{color:var(--muted);font-size:16px}

@media (max-width:560px){
  body{font-size:17px}
  .purposes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .purpose{min-height:76px;padding:12px 14px}
  .purpose[aria-pressed="true"]{padding:11px 13px}
  .purpose b{font-size:17px}
  .tab{font-size:16px}
  .navlinks{gap:0 18px;font-size:16px}
  .drop{padding:28px 14px}
  .btn{width:100%;justify-content:center}
  .resbar .row .btn{width:auto}
}
@media (prefers-reduced-motion: reduce){ .spin{animation:none} .meter i{transition:none} }
