@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/poppins-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/poppins-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/poppins-latin-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/poppins-latin-800.woff2) format("woff2"); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: a navy brand bar and hero; one tool card that does everything in place (pick, watch it shrink, download); then icon steps, icon features, links to the other tools, a long-form guide with a contents list, and a folded FAQ. Shared by every tool page (web/resize-pdf.html). */
:root {
  --navy: #0c1b39;
  --navy-2: #172a52;
  --glow: #1d3a75;
  --yellow: #fcdc30;
  --yellow-2: #f0cc14;
  --on-yellow: #0c1b39;
  --on-navy: #ffffff;
  --on-navy-soft: #b8c2da;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #0c1b39;
  --ink-soft: #56617b;
  --line: #dde2ec;
  --tint: #eef1f7;
  --raised: #ffffff;
  --focus: #2f6bff;
  --good: #0b7a4e;
  --on-good: #ffffff;
  --bad: #b42318;
  --shadow-1: 0 1px 2px rgba(12, 27, 57, .06), 0 10px 28px -16px rgba(12, 27, 57, .28);
  --shadow-2: 0 2px 6px rgba(12, 27, 57, .08), 0 30px 60px -30px rgba(12, 27, 57, .5);
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bar-h: 80px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #081227; --navy-2: #142446; --glow: #142c60; --on-navy-soft: #a9b4cf;
    --bg: #0b1324; --card: #121d33; --ink: #e8ecf4; --ink-soft: #a3adc3; --line: #26324d; --tint: #1a2742; --raised: #2a3b62;
    --focus: #7ea4ff; --good: #4fd1a1; --on-good: #06281a; --bad: #ff8f85;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .8);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #081227; --navy-2: #142446; --glow: #142c60; --on-navy-soft: #a9b4cf;
  --bg: #0b1324; --card: #121d33; --ink: #e8ecf4; --ink-soft: #a3adc3; --line: #26324d; --tint: #1a2742; --raised: #2a3b62;
  --focus: #7ea4ff; --good: #4fd1a1; --on-good: #06281a; --bad: #ff8f85;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .8);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: max(16px, 3vw); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 50; padding: .6rem 1rem; border-radius: 10px;
  background: var(--yellow); color: var(--on-yellow); font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- top bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: var(--on-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .3s var(--ease);
}
.bar.scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.bar-in { position: relative; z-index: 2; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; color: var(--on-navy); border-radius: 8px; }
.logo { display: block; height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative; padding: .5rem .8rem; border-radius: 10px;
  color: var(--on-navy-soft); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--on-navy); background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: var(--on-navy); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 3px; border-radius: 2px; background: var(--yellow);
}
.burger { display: none; }
@media (min-width: 821px) and (max-width: 1000px) {
  .nav a { padding-inline: .55rem; font-size: .9rem; }
  .nav a[aria-current="page"]::after { left: .55rem; right: .55rem; }
}
@media (max-width: 820px) {
  :root { --bar-h: 68px; }
  .logo { height: 44px; }
  .burger {
    display: inline-grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
    border: 0; border-radius: 12px; background: transparent; color: var(--yellow); cursor: pointer;
    transition: background-color .2s;
  }
  .burger:hover { background: rgba(255, 255, 255, .08); }
  .lines { position: relative; width: 26px; height: 18px; }
  .lines i {
    position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
  }
  .lines i:nth-child(1) { top: 0; }
  .lines i:nth-child(2) { top: 7.75px; }
  .lines i:nth-child(3) { top: 15.5px; }
  .bar.open .lines i:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
  .bar.open .lines i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .bar.open .lines i:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem max(16px, 3vw) 1rem;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .6);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .bar.open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s; }
  .nav a { padding: .95rem .2rem; border-radius: 0; font-size: 1.08rem; color: var(--on-navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { background: transparent; color: var(--yellow); }
  .nav a[aria-current="page"]::after { left: auto; right: .25rem; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .bar.open .nav a { animation: nav-in .35s var(--ease) both; }
  .bar.open .nav a:nth-child(2) { animation-delay: .03s; }
  .bar.open .nav a:nth-child(3) { animation-delay: .06s; }
  .bar.open .nav a:nth-child(4) { animation-delay: .09s; }
  .bar.open .nav a:nth-child(5) { animation-delay: .12s; }
  .bar.open .nav a:nth-child(6) { animation-delay: .15s; }
  .bar::after {
    content: ""; position: fixed; z-index: 1; inset: calc(var(--bar-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: rgba(4, 10, 24, .5); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .bar.open::after { opacity: 1; pointer-events: auto; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- hero */
.hero {
  position: relative; color: var(--on-navy);
  background: radial-gradient(56rem 30rem at 92% -16%, var(--glow), transparent 65%), var(--navy);
  padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(7rem, 11vw, 8.8rem);
}
.hero-in { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(1.8rem, 1.05rem + 3.4vw, 3.4rem); text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.lede { margin: 0; max-width: 34rem; color: var(--on-navy-soft); font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); text-wrap: pretty; }
.chips { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; font-size: .92rem;
}
.chips .i { color: var(--yellow); width: 1.15em; height: 1.15em; }

/* ---------- the tool card */
.tool { position: relative; z-index: 2; margin-top: calc(-1 * clamp(5.4rem, 8.6vw, 6.8rem)); }
.tool-card {
  max-width: 46rem; margin-inline: auto; padding: clamp(14px, 2.4vw, 24px);
  display: grid; gap: 1.1rem; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-2);
}
#file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; min-height: 15.5rem; padding: 1.6rem 1rem;
  border: 2px dashed var(--line); border-radius: 16px; cursor: pointer;
  background: color-mix(in srgb, var(--tint) 55%, var(--card));
  transition: border-color .25s, background-color .25s, min-height .4s var(--ease), padding .4s var(--ease);
}
.drop:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.drop.over, body.dragging .drop { border-color: var(--yellow-2); background: color-mix(in srgb, var(--yellow) 16%, var(--card)); }
.drop-full { display: grid; justify-items: center; gap: .55rem; }
.drop-badge {
  width: 68px; height: 68px; margin-bottom: .45rem; border-radius: 20px; display: grid; place-items: center;
  background: var(--yellow); color: var(--on-yellow); box-shadow: 0 14px 26px -14px rgba(176, 140, 0, .9);
  transition: transform .35s var(--ease);
}
.drop-badge .i { width: 32px; height: 32px; }
.drop:hover .drop-badge, body.dragging .drop-badge { transform: translateY(-4px) rotate(-4deg); }
.drop p { margin: 0; color: var(--ink-soft); }
.drop-compact {
  display: none; width: 100%; align-items: center; justify-content: center; gap: .6rem; padding: .2rem;
  border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.drop-compact span { font-weight: 500; color: var(--ink-soft); }
.drop-compact .i { color: var(--ink-soft); }
.has-files .drop { min-height: 4.4rem; padding: .7rem 1rem; }
.has-files .drop-full { display: none; }
.has-files .drop-compact { display: inline-flex; animation: fade-in .35s var(--ease) both; }
@media (max-width: 480px) { .drop-compact span { display: none; } }

.btn {
  appearance: none; border: 0; font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 1px 0 rgba(12, 27, 57, .12), 0 10px 20px -12px rgba(176, 140, 0, .9); }
.btn-yellow:hover { background: var(--yellow-2); box-shadow: 0 1px 0 rgba(12, 27, 57, .12), 0 14px 24px -12px rgba(176, 140, 0, .95); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.1rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.link-btn {
  appearance: none; border: 0; background: none; padding: .3rem .4rem; border-radius: 8px; font: inherit; font-size: .95rem;
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s;
}
.link-btn:hover { color: var(--ink); }

.levels { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: .5rem; }
.levels legend { padding: 0; margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.seg { --i: 1; --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: var(--tint); }
.seg label {
  position: relative; z-index: 1; display: grid; place-items: center; min-height: 46px; padding: .35rem .3rem; border-radius: 10px;
  text-align: center; line-height: 1.2; font-weight: 600; font-size: clamp(.8rem, 3.3vw, .95rem); color: var(--ink-soft); cursor: pointer; transition: color .2s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.seg-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 10px;
  background: var(--raised); box-shadow: 0 1px 2px rgba(12, 27, 57, .1), 0 6px 14px -8px rgba(12, 27, 57, .4);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .35s var(--ease);
}
.seg-hint { margin: 0; text-align: center; font-size: .9rem; color: var(--ink-soft); }
/* resize: what to change, then the size or the paper as a row of choices */
.opts { display: grid; gap: 1.1rem; }
.panel { display: grid; gap: 1.1rem; animation: fade-in .35s var(--ease) both; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.picks label {
  position: relative; display: grid; place-items: center; min-height: 46px; padding: .35rem .5rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .95rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.picks label:hover { border-color: color-mix(in srgb, var(--ink) 32%, var(--line)); }
.picks label:active { transform: scale(.97); }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks label:has(input:checked) { background: var(--yellow); border-color: var(--yellow-2); color: var(--on-yellow); }
.picks label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.custom-row { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; animation: fade-in .3s var(--ease) both; }
.custom-row input {
  width: 8.5rem; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums;
}
.custom-row input:focus { border-color: var(--focus); }
.status { margin: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); animation: blink 1.2s ease-in-out infinite; }
.status.ready i { background: var(--good); animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent); }
.status.bad i { background: var(--bad); animation: none; }
@keyframes blink { 50% { opacity: .35; } }

/* one row per file, shown right where the file was picked */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.files:empty { display: none; }
.file {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem .9rem;
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  scroll-margin: calc(var(--bar-h) + 16px) 0 24px; animation: row-in .5s var(--ease) both;
}
.file-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--tint); color: var(--ink); transition: background-color .3s, color .3s; }
.file-ico .i { width: 24px; height: 24px; }
.is-working .file-ico { animation: squeeze 1.15s var(--ease) infinite; }
.is-done .file-ico { color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--card)); animation: pop .55s var(--ease) both; }
.is-error .file-ico { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.file-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.file-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.file-size, .sizes { font-family: var(--font-data); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.file-size { flex: none; font-size: .78rem; }
.meter { height: 8px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.meter b {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--yellow-2) 10px 20px);
  background-size: 28.28px 28.28px; transition: width .4s var(--ease);
}
.is-working .meter b { animation: stripes .7s linear infinite; }
.is-waiting .meter b { width: 0; }
.meter.shrink b { background: var(--good); transition: width 1.1s var(--ease) .1s; }
.file-stage { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.file-pct {
  flex: none; padding: .12rem .55rem; border-radius: 8px; background: var(--yellow); color: var(--on-yellow);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.file-pct.over { background: var(--tint); color: var(--ink); }
.sizes { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; font-size: .8rem; }
.sizes .i { width: 14px; height: 14px; }
.sizes strong { color: var(--ink); font-weight: 600; }
.file-fine { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.file-msg { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.file-msg.bad { color: var(--bad); }
.file-act:empty { display: none; }
.dl { min-width: 9.6rem; }
.dl.busy .i { animation: dl-arrow .75s var(--ease) infinite; }
.dl.done { background: var(--good); color: var(--on-good); box-shadow: none; }
.dl.done path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s var(--ease) .05s forwards; }
@media (max-width: 560px) {
  .file { grid-template-columns: auto minmax(0, 1fr); padding: .85rem; }
  .file-act { grid-column: 1 / -1; }
  .dl { width: 100%; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes squeeze { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.1, .84); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } }
@keyframes stripes { to { background-position: 28.28px 0; } }
@keyframes dl-arrow { 0% { transform: translateY(-4px); opacity: .3; } 55% { transform: translateY(2px); opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- advertising spaces (shown as outlines in previews only) */
.ad-slot { display: grid; justify-items: center; gap: .35rem; margin-top: clamp(2.2rem, 5vw, 3rem); }
.ad-slot > span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ad-box {
  width: 100%; max-width: 728px; height: 90px; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--ink-soft); font-size: .85rem; text-align: center;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--line) 45%, transparent) 12px 13px);
}
.ad-box .small { display: none; }
.ad-top { margin: 0 auto clamp(1.4rem, 3.4vw, 2.2rem); }
.ad-top > span { color: var(--on-navy-soft); }
.ad-top .ad-box {
  border-color: rgba(255, 255, 255, .24); color: var(--on-navy-soft);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, .06) 12px 13px);
}
@media (max-width: 600px) {
  .ad-box { max-width: 336px; height: 280px; } .ad-box .wide { display: none; } .ad-box .small { display: inline; }
  .ad-top .ad-box { max-width: 320px; height: 50px; }
  .ad-computer { display: none; }
}

/* ---------- sections */
.section { padding-top: clamp(3.2rem, 7vw, 5rem); }
.section-head { display: grid; justify-items: center; gap: .5rem; margin-bottom: 2rem; text-align: center; }
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.015em; line-height: 1.1;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); text-wrap: balance;
}
.section-head p { margin: 0; color: var(--ink-soft); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 34px; left: 17%; right: 17%; border-top: 2px dashed var(--line); }
.steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: .3rem; text-align: center; }
.step-ico {
  position: relative; width: 68px; height: 68px; margin-bottom: .6rem; border-radius: 20px; display: grid; place-items: center;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-1);
}
.step-ico .i { width: 30px; height: 30px; }
.step-ico::after {
  counter-increment: step; content: counter(step); position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: .82rem;
}
.steps h3, .feature h3 { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.steps p, .feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
@media (max-width: 700px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .steps::before { top: 34px; bottom: 34px; left: 33px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .steps li { grid-template-columns: 68px minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 1rem; text-align: left; }
  .step-ico { grid-row: span 2; margin: 0; }
  .steps h3 { align-self: end; }
  .steps p { align-self: start; }
}
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; align-content: start; gap: .2rem .95rem;
  padding: 1.1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
}
.feature-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); }
.feature-ico .i { width: 24px; height: 24px; }
@media (max-width: 560px) {
  .features { gap: .75rem; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: 1rem; }
  .feature-ico { grid-row: auto; margin-bottom: .35rem; }
}
@media (max-width: 330px) { .features { grid-template-columns: minmax(0, 1fr); } }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 25rem)); justify-content: center; gap: 1rem; }
.tool-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .95rem; height: 100%;
  padding: 1.1rem 1.15rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tool-link:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-1); }
.tool-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); }
.tool-ico .i { width: 26px; height: 26px; }
.tool-text { min-width: 0; display: grid; gap: .15rem; }
.tool-text strong { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.tool-text span { color: var(--ink-soft); font-size: .93rem; line-height: 1.45; }
.tool-go { color: var(--ink-soft); transition: transform .25s var(--ease), color .25s; }
.tool-link:hover .tool-go { transform: translateX(4px); color: var(--ink); }
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem;
  font-weight: 700; list-style: none; cursor: pointer; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq p { margin: 0; padding: 0 1.15rem 1.1rem; color: var(--ink-soft); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- the guide: long reading with a contents list (a sticky side column on computers, folded on phones) */
.guide-grid { display: grid; grid-template-columns: 15rem minmax(0, 46rem); justify-content: center; align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
.toc {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h) + 20px); padding: 1rem 1.1rem 1.1rem;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line);
}
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; gap: .5rem; margin-inline: -.55rem; padding: .32rem .55rem; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.35;
  transition: background-color .25s var(--ease), color .25s;
}
.toc a::before {
  counter-increment: toc; content: counter(toc, decimal-leading-zero); flex: none; width: 1.45rem; padding-top: .08rem;
  font-size: .75rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; transition: color .25s;
}
.toc a:hover { background: var(--tint); }
.toc a.is-current { background: var(--yellow); color: var(--on-yellow); }
.toc a.is-current::before { color: var(--on-yellow); }
@media (min-width: 961px) { .toc summary { pointer-events: none; } }
@media (max-width: 960px) {
  .guide-grid { grid-template-columns: minmax(0, 46rem); gap: 1.6rem; }
  .toc { position: static; padding: 0; }
  .toc summary { padding: 1rem 1.15rem; cursor: pointer; border-radius: 18px; font-size: .8rem; color: var(--ink); }
  .toc summary::after {
    content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
    transform: translateY(-25%) rotate(45deg); transition: transform .35s var(--ease);
  }
  .toc[open] summary::after { transform: translateY(25%) rotate(-135deg); }
  .toc ol { margin: 0; padding: 0 1.15rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
}
@media (max-width: 520px) { .toc ol { grid-template-columns: minmax(0, 1fr); } }

.guide-body { min-width: 0; display: grid; gap: clamp(2.8rem, 6vw, 3.6rem); }
.guide-body > section { min-width: 0; }
.guide-body h2 {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.012em; line-height: 1.2;
  font-size: clamp(1.32rem, 1.1rem + .9vw, 1.72rem); text-wrap: balance;
}
.h-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); }
.h-ico .i { width: 23px; height: 23px; }
.guide-body p, .guide-body ul, .guide-body ol { margin: 0 0 1rem; color: var(--ink-soft); }
.guide-body section > :last-child { margin-bottom: 0; }
.guide-body ul, .guide-body ol { padding-left: 1.3rem; display: grid; gap: .6rem; }
.guide-body li::marker { color: var(--ink); font-weight: 700; }
.guide-body strong { color: var(--ink); font-weight: 600; }
.guide-body a:not(.btn), .faq p a {
  color: var(--ink); font-weight: 600; text-decoration-color: var(--yellow-2); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.guide-body a:not(.btn):hover, .faq p a:hover { text-decoration-color: var(--ink); }
.guide-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--ink); }

.guide-body .stats { list-style: none; margin: 1.4rem 0 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.guide-body .stats + .table-wrap { margin-top: 1rem; }
.stats li {
  display: grid; align-content: start; gap: .3rem; padding: 1rem 1rem 1.05rem; border-radius: 16px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 1px solid rgba(255, 255, 255, .06); color: var(--on-navy-soft);
}
.stats strong { font-size: clamp(1.55rem, 1.25rem + 1vw, 2.05rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; line-height: 1.35; }
@media (max-width: 760px) { .guide-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.guide table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.4; }
.guide th, .guide td { padding: .72rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide thead th, .guide thead td {
  background: var(--tint); font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.guide tbody tr:last-child > * { border-bottom: 0; }
.guide tbody th { font-weight: 600; color: var(--ink); }
.guide td { color: var(--ink-soft); }
.guide td.num { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.guide td strong { color: var(--good); font-weight: 700; }
.t-compare tbody td:nth-of-type(1) { color: var(--ink); font-weight: 600; }
@media (min-width: 601px) { .t-compare tbody td:nth-of-type(1) { background: color-mix(in srgb, var(--yellow) 9%, var(--card)); } }
.t-compare thead th:nth-of-type(1) { color: var(--ink); }
/* phones: each row becomes a small card, each value labelled */
@media (max-width: 600px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stack, .stack tbody { display: block; }
  .stack tr { display: grid; gap: .55rem .9rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack tbody th, .stack td { display: block; padding: 0; border: 0; }
  .stack tbody th { grid-column: 1 / -1; }
  .stack td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: .1rem;
    font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
  }
  .t-results tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .t-compare tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-levels tr { grid-template-columns: max-content minmax(0, 1fr); }
  .t-sizes tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-paper tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-paper td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .t-results tr, .t-sizes tr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-top: 1.3rem;
  padding: 1rem 1.1rem 1rem 1.2rem; border-radius: 16px;
  background: color-mix(in srgb, var(--yellow) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--line));
}
.guide-body .callout p { flex: 1 1 18rem; margin: 0; color: var(--ink); }
.guide-body .ticks { list-style: none; padding: 0; gap: .75rem; }
.ticks li { display: flex; align-items: flex-start; gap: .7rem; }
.ticks .i { width: 1.35em; height: 1.35em; margin-top: .12em; color: var(--good); }
.guide-body .devices { list-style: none; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.devices li { display: grid; align-content: start; gap: .45rem; padding: 1.05rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.devices p { margin: 0; font-size: .93rem; line-height: 1.5; }
.dev-ico { width: 42px; height: 42px; margin-bottom: .2rem; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--ink); }
.dev-ico .i { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .guide-body .devices { grid-template-columns: minmax(0, 1fr); }
  .devices li { grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; }
  .dev-ico { grid-row: span 2; margin: 0; }
}
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.terms div { padding: .95rem 1.05rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.terms dt { font-weight: 700; color: var(--ink); }
.terms dd { margin: .25rem 0 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
@media (max-width: 760px) { .terms { grid-template-columns: minmax(0, 1fr); } }
.guide-body .ad-slot { margin-top: 0; }

/* ---------- footer and toast */
.foot { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-block: 2.6rem 2rem; background: var(--navy); color: var(--on-navy-soft); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.foot .brand { color: var(--on-navy); }
.foot .logo { height: 46px; }
.foot-tag { margin: .7rem 0 0; max-width: 24rem; font-size: .95rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, max-content); justify-content: end; gap: 1.5rem clamp(2rem, 6vw, 4rem); }
.foot-nav div { display: grid; align-content: start; justify-items: start; gap: .55rem; }
.foot-nav h2 { margin: 0 0 .15rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-soft); }
.foot-nav a { color: var(--on-navy); text-decoration: none; font-weight: 600; transition: color .2s; }
.foot-nav a:hover { color: var(--yellow); }
.foot-base {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem;
}
@media (max-width: 700px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-nav { justify-content: start; } }
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: .6rem; width: max-content; max-width: min(92vw, 30rem); padding: .8rem 1.05rem;
  border-radius: 14px; background: var(--navy); color: var(--on-navy); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); font-weight: 600; font-size: .95rem;
  opacity: 0; visibility: hidden; transform: translate(-50%, 130%);
  transition: transform .4s var(--ease), opacity .25s, visibility 0s .4s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform .4s var(--ease), opacity .25s, visibility 0s; }
.toast .i { color: var(--yellow); }
.toast.bad .i { color: #ff8f85; }
.toast span { min-width: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.prose {
  max-width: 44rem; margin-inline: auto; padding: clamp(1.25rem, 4vw, 2.6rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
}
.prose h1 {
  margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.015em; line-height: 1.1;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
}
.prose h2 { margin: 1.8rem 0 .35rem; font-size: 1.12rem; font-weight: 700; }
.prose p { margin: .4rem 0 0; color: var(--ink-soft); }
.prose a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .updated { font-size: .85rem; }
.prose .lead { font-size: 1.08rem; color: var(--ink); }
.prose ul:not(.facts) { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; color: var(--ink-soft); }
.facts { list-style: none; margin: 1.4rem 0 .4rem; padding: 0; display: grid; gap: .6rem; }
.facts li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.facts .i { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--yellow); color: var(--on-yellow); }
.contact-card {
  display: flex; align-items: center; gap: .9rem; margin: 1.4rem 0 .6rem; padding: 1rem 1.1rem;
  border-radius: 16px; background: var(--tint);
}
.contact-card .i { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--yellow); color: var(--on-yellow); }
.contact-card div { display: grid; min-width: 0; }
.contact-card small { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card a, .contact-card strong { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.prose .btn { margin-top: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-underline-offset: 3px; }
