/* Valtrinity: one shape (the orange full stop), flat ground, tone steps instead of lines. Dark by default. */
:root {
  --bg: #111214; --surface: #1a1c1f; --surface-2: #23262b; --ink: #f2f3f4; --muted: #a4a7ae;
  --accent: #ff4a1f; --accent-ink: #17100d; --accent-deep: #c93a15; --paper: #ebecee; --paper-ink: #15161a; --paper-2: #dcdee2;
  --ok: #8fd18a; --warn: #f2b84b; --bad: #ff6b5c;
  --orange: var(--accent); --field: var(--surface-2);
  --max: 1240px; --gutter: clamp(20px, 4vw, 40px); --gap: 8px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f5f7; --surface: #e8eaee; --surface-2: #dcdfe4; --ink: #15161a; --muted: #5b5f68;
  --accent-deep: #17100d; --paper: #15161a; --paper-ink: #f2f3f4; --paper-2: #23262b;
  --ok: #1f6f2a; --warn: #8a5a10; --bad: #b02f22; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f5f7; --surface: #e8eaee; --surface-2: #dcdfe4; --ink: #15161a; --muted: #5b5f68;
    --accent-deep: #17100d; --paper: #15161a; --paper-ink: #f2f3f4; --paper-2: #23262b;
    --ok: #1f6f2a; --warn: #8a5a10; --bad: #b02f22; color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Schibsted Grotesk", Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, canvas, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(100%, var(--max)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.muted { color: var(--muted); }
.small-note, .quota-note { font-size: 15px; color: var(--muted); margin: 16px 0 0; }
.small-note a, .quota-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; min-height: 48px; padding: 14px 24px; font-weight: 700; font-size: 16px; line-height: 1.1; background: var(--accent); color: var(--accent-ink); transition: background-color 150ms; }
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.workspace .btn.ghost, .calc-card .btn.ghost, .plan .btn.ghost, .modal .btn.ghost { background: var(--bg); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.linkbtn:hover { color: var(--accent); }

/* header */
.site-header { height: 72px; position: relative; z-index: 20; }
.hdr { display: flex; align-items: center; gap: 32px; height: 72px; }
.wordmark { font-weight: 800; letter-spacing: -.07em; font-size: 26px; display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.wordmark .dot { margin-top: 12px; margin-left: 1px; }
.wordmark:hover { color: var(--ink); }
#site-nav { display: flex; gap: 28px; font-size: 16px; font-weight: 600; color: var(--muted); }
#site-nav a:hover { color: var(--accent); }
#site-nav a[aria-current="page"] { color: var(--ink); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.acct { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.acct-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding: calc(72px + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 88px); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-dot { position: absolute; top: -10vh; right: -28vw; width: min(120vh, 1100px); height: min(120vh, 1100px); border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(56px, 8.4vw, 128px); line-height: .9; letter-spacing: var(--hero-h1-track, -.055em); font-weight: 800; max-width: var(--hero-h1-max, 9ch); }
/* Per language hero heading: longer words get a wider measure and one size step down on phones, so the heading stays within two lines. English keeps the defaults. */
html[lang="de"], html[lang="fr"], html[lang="it"] { --hero-h1-max: 11ch; --hero-h1-phone: 13vw; }
html[lang="ja"] { --hero-h1-max: 6.2em; --hero-h1-phone: 13vw; --hero-h1-track: 0; }
.hero-lede { max-width: 46ch; font-size: clamp(18px, 1.5vw, 21px); margin: 28px 0 0; color: var(--ink); }
.pricing-hero .hero-dot { width: 560px; height: 560px; top: -200px; right: -160px; }
.pricing-hero h1 { font-size: clamp(48px, 7vw, 108px); max-width: 12ch; }
.notfound { min-height: 60vh; }
.finder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; max-width: 640px; align-items: center; }
.finder input[type=search] { flex: 1 1 260px; min-height: 56px; border: 0; border-radius: 999px; background: var(--surface-2); padding: 0 24px; font-size: 18px; width: auto; }
.finder input[type=search]::placeholder { color: var(--muted); }
.finder .count { color: var(--muted); font-size: 15px; padding: 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; min-height: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 16px; border: 0; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.popular { margin: 20px 0 0; }
.popular-h { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.popular .chips { margin-top: 8px; }
.popular .chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.embed-sec textarea { width: 100%; font-size: 13px; }
.chip:hover { background: var(--surface-2); color: var(--ink); }
.empty { color: var(--muted); margin: 16px 0 0; }
.stats-strip { display: flex; flex-wrap: wrap; gap: 8px 48px; margin: 56px 0 0; }
.stats-strip div { display: flex; flex-direction: column-reverse; }
.stats-strip dd { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-strip dt { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* sections */
.sec { margin-top: clamp(72px, 9vw, 140px); }
.sec > h2, .sec > .wrap > h2, .sec h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 32px; }
.sec .lede-sm { max-width: 60ch; margin: 0 0 24px; }
main > .sec:first-child, .tool-hero + .sec { margin-top: clamp(56px, 6vw, 96px); }

/* rows and tiles */
.rows { display: grid; gap: var(--gap); }
.rows.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 10px 22px; background: var(--surface); transition: background-color 150ms; }
.trow::before { content: ""; position: absolute; left: 8px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity 150ms, transform 150ms; }
.trow:hover, .trow.on { background: var(--surface-2); color: var(--ink); }
.trow:hover::before, .trow.on::before { opacity: 1; transform: translateX(0); }
.trow:hover .tname, .trow.on .tname { font-weight: 700; }
.tname { font-size: 20px; font-weight: 600; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.tfact { font-size: 15px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 46%; }
.incl, .card .incl { font-size: 13px; font-weight: 500; color: var(--muted); }
.incl::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.morelink { display: flex; align-items: center; min-height: 64px; padding: 0 22px; font-weight: 700; font-size: 18px; }
.guide-row .tfact { flex: 0 0 auto; }

.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; align-items: start; }
.frag-stack { position: sticky; top: 96px; display: grid; background: var(--surface); min-height: 420px; }
.frag { grid-area: 1 / 1; padding: 32px; opacity: 0; pointer-events: none; transition: opacity 240ms; }
.frag.is-on { opacity: 1; pointer-events: auto; }
.frag-name { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin: 0 0 32px; }
.frag-big { font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.frag-sub { color: var(--muted); font-size: 16px; margin: 12px 0 28px; overflow-wrap: anywhere; }
.frag dl { margin: 0; display: grid; gap: 4px; }
.frag dl div { display: flex; justify-content: space-between; gap: 16px; background: var(--surface-2); padding: 12px 16px; font-size: 16px; }
.frag dt { color: var(--muted); } .frag dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.cat-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); padding: 28px; min-height: 240px; transition: background-color 150ms; }
.cat-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; order: 2; }
.cat-count { font-size: 15px; color: var(--muted); order: 1; }
.cat-card p { margin: 0; font-size: 15px; color: var(--muted); order: 3; }
.cat-card:hover { background: var(--accent); color: var(--accent-ink); }
.cat-card:hover .cat-count, .cat-card:hover p { color: var(--accent-ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.card { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 6px; transition: background-color 150ms; }
.card:hover { background: var(--surface-2); color: var(--ink); }
.card .cat { font-size: 15px; color: var(--muted); }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .foot { margin-top: auto; padding-top: 12px; }

.gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.gtile { background: var(--surface); padding: 28px; min-height: 180px; transition: background-color 150ms; }
.gtile:hover { background: var(--surface-2); color: var(--ink); }
.gtile h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.gtile p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 15px; color: var(--muted); }

/* plans */
.plans-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: end; }
.plans-intro h2 { margin-bottom: 20px; } .plans-intro p { max-width: 40ch; }
.plan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-top: 8px; }
.plans-sec .plan-steps { margin-top: 0; }
.plans-sec .plan .price { font-size: clamp(32px, 3vw, 48px); }
.per { white-space: nowrap; }
.plan { display: flex; flex-direction: column; background: var(--surface); padding: 28px 28px 0; --field: var(--bg); }
.plan.s1 { min-height: 360px; } .plan.s2 { min-height: 480px; } .plan.s3 { min-height: 600px; }
.plan.hot { background: var(--accent); color: var(--accent-ink); }
.plan h3, .plan h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
/* Price figures: proportional digits (tabular digits give the full stop a digit width), fluid size, and the period ("a month") drops under the figure when both do not fit the tile. */
.plan .price, .tile .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: proportional-nums; }
.plan .price { font-size: clamp(32px, 3.6vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 20px 0; }
.plan .price .per, .price small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.plan-body { flex: 1; }
.plan-body p { margin: 0 0 12px; }
.plan-btn { display: flex; align-items: center; justify-content: center; min-height: 64px; margin: 24px -28px 0; background: var(--surface-2); color: var(--ink); font-weight: 700; transition: background-color 150ms; }
.plan-btn:hover { background: var(--ink); color: var(--bg); }
.plan.hot .plan-btn { background: var(--accent-deep); color: #fff; }
.plan.hot .plan-btn:hover { background: var(--accent-ink); color: #fff; }
.plan.hot a:hover { color: inherit; }
.two-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tile { background: var(--surface); padding: 28px; }
.tile h2 { font-size: 28px; margin-bottom: 12px; letter-spacing: -.03em; }
.tile .price { font-size: clamp(32px, 3.6vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 0 0 16px; }
.tile .price .per { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.tile a { text-decoration: underline; text-underline-offset: 3px; }
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; margin-bottom: 20px; }
.pack { display: flex; flex-direction: column; }
.pack h3 { font-size: 28px; margin: 0 0 12px; letter-spacing: -.03em; }
.pack select { width: 100%; margin-bottom: 4px; }
.pack .btns { margin-top: auto; padding-top: 16px; }
.pass-len { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.pass-len legend { padding: 0; }
.pass-len .stack { display: grid; gap: 6px; }
.pass-len label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 500; color: var(--ink); margin: 0; min-height: 44px; cursor: pointer; }
.pass-len input { margin-top: 5px; flex: none; }
.pack-tools { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.start .offer { margin-top: 0; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.faq-wrap > h2, .faq-wrap > div > h2 { position: sticky; top: 96px; margin-bottom: 0; }
.faq { display: grid; gap: var(--gap); }
.faq details { background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 16px 24px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; flex: 0 0 auto; }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 24px 24px; max-width: 52ch; font-size: 17px; }
.faq details p a { text-decoration: underline; }
.faq-sec { margin-top: clamp(56px, 6vw, 96px); }
.faq-sec h2 { margin-bottom: 24px; }

/* bands and pills */
.band { margin-top: clamp(56px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) 0; }
.band.paper { background: var(--paper); color: var(--paper-ink); }
.band.paper a:hover { color: var(--accent-deep); }
.band h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--paper-2); color: var(--paper-ink); font-weight: 600; transition: background-color 150ms; }
.pill span { color: inherit; opacity: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.pill:hover { background: var(--accent); color: var(--accent-ink) !important; }
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ex { background: var(--paper-2); padding: 28px; }
.ex h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.ex-in { font-size: 16px; margin: 0 0 12px; }
.ex-out { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 12px; overflow-wrap: anywhere; }
.ex-note { font-size: 15px; margin: 0; }

/* page heads */
.crumbs { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--ink); } .crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--muted); }
.tool-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 3vw, 36px); position: relative; }
.tool-hero h1 { font-size: clamp(32px, 5vw, 76px); font-weight: 800; letter-spacing: -.055em; line-height: .95; max-width: 20ch; margin-bottom: 20px; }
.tool-hero p { max-width: 62ch; font-size: clamp(18px, 1.5vw, 21px); margin: 0 0 14px; }
.hub-hero h1 { font-size: clamp(36px, 6vw, 92px); max-width: 16ch; }
.hub-hero p.trust { font-size: 15px; color: var(--muted); }
.hub-dot { position: absolute; top: 0; right: 0; width: 420px; height: 420px; max-width: 70vw; border-radius: 50%; background: var(--accent); transform: translate(45%, -45%); z-index: -1; pointer-events: none; }
main { position: relative; overflow: hidden; }
.hub-find { margin: 8px 0 24px; }

/* workspace and form controls */
.workspace { background: var(--surface); padding: clamp(18px, 3vw, 32px); --field: var(--bg); }
.workspace > * + * { margin-top: 16px; }
.flow-box h1 { font-size: 32px; letter-spacing: -.04em; margin: 0 0 8px; }
label, .label { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=url], input[type=number], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 52px; background: var(--field); border: 0; border-radius: 0; padding: 12px 16px; font-size: 18px; }
.workspace select, .modal select, .calc-card select { cursor: pointer; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.mono, textarea.mono, pre.out { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 20px; height: 20px; flex: 0 0 auto; }
input[type=color] { width: 64px; height: 52px; padding: 4px; background: var(--field); border: 0; }
input[type=file] { max-width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row > * { flex: 1 1 180px; min-width: 0; }
.row > .fit { flex: 0 0 auto; }
.row > .inline.grow { flex: 1 1 240px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.inline label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-weight: 500; font-size: 16px; min-height: 44px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gap { margin-top: 18px; }
.msg { font-size: 15px; color: var(--muted); min-height: 20px; }
.msg.err, .err { color: var(--bad); } .msg.ok { color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--gap); }
.stat { background: var(--field); padding: 14px 16px; }
.stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--muted); }
pre.out { background: var(--field); padding: 16px; margin: 0; white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 460px; min-height: 52px; }
.kv { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 16px; }
.kv th, .kv td { text-align: left; padding: 10px 14px; vertical-align: top; word-break: break-word; background: var(--field); }
.kv th { color: var(--muted); font-weight: 600; width: 34%; font-size: 15px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-2); }
.tag.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.tag.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.tag.bad { background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); }
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 8px; font-weight: 800; font-size: 28px; letter-spacing: -.04em; background: var(--field); line-height: 1; }
.grade.good { color: var(--ok); } .grade.ok, .grade.mid { color: var(--warn); } .grade.bad, .grade.poor { color: var(--bad); }
.ipval { font-size: clamp(28px, 6vw, 56px); font-weight: 800; letter-spacing: -.05em; word-break: break-all; }
.swatch { height: 96px; background: var(--field); }
.copyrow { display: flex; gap: 8px; align-items: center; } .copyrow input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; }
.diff { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--field); overflow: auto; max-height: 460px; }
.diff div { padding: 2px 12px; white-space: pre-wrap; word-break: break-word; }
.diff .add { background: color-mix(in srgb, var(--ok) 20%, transparent); }
.diff .del { background: color-mix(in srgb, var(--bad) 20%, transparent); }
mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; }
.preview-img { max-width: 100%; max-height: 360px; background: var(--field); }
canvas.qr { max-width: 100%; height: auto; background: #fff; }
.drop { background: var(--field); padding: 28px; text-align: center; color: var(--muted); }
.drop.over { background: var(--accent); color: var(--accent-ink); }
.drop label { display: inline-block; margin: 6px 0 4px; }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--warn); vertical-align: -2px; margin-right: 8px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fit { flex: 0 0 auto; }

/* tool page prose */
.seo { margin-top: clamp(56px, 6vw, 96px); }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.seo h2, .guides-for h2, .related h2, .sources h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 16px; }
.prose-sm h2 + * { margin-top: 0; }
.prose-sm { max-width: 74ch; }
.prose-sm p, .prose-sm li { line-height: 1.6; font-size: 17px; }
.prose-sm p { margin: 0 0 14px; }
.prose-sm ol, .prose-sm ul { padding-left: 22px; margin: 0 0 28px; } .prose-sm li + li { margin-top: 8px; }
.prose-sm h2:not(:first-child) { margin-top: 32px; }
.prose-sm a, .prose a { text-decoration: underline; text-underline-offset: 3px; }
.sources { margin-top: 32px; background: var(--surface); padding: 24px; }
.sources h2 { font-size: 22px; } .sources ul { margin: 0 0 12px; }
.guides-for { margin-top: clamp(40px, 5vw, 72px); }
.guides-for ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
.guides-for li a { display: block; background: var(--surface); padding: 16px 22px; font-weight: 600; font-size: 19px; }
.guides-for li a:hover { background: var(--surface-2); color: var(--ink); }
.related { margin-top: clamp(56px, 6vw, 96px); }
.adslot { margin-top: 24px; background: var(--surface); padding: 12px 16px 16px; min-height: 120px; }
.adslot > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.adslot:not(:has(ins)) { display: none; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; letter-spacing: -.03em; margin: 36px 0 8px; }
.prose p, .prose li { line-height: 1.65; } .prose ul { padding-left: 20px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0 2px; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; background: var(--surface); min-width: 120px; }
.prose th { background: var(--surface-2); }
.guide { max-width: 920px; }
.guide h1 { font-size: clamp(30px, 3.8vw, 54px); font-weight: 800; letter-spacing: -.055em; line-height: .95; margin: 24px 0 20px; }
.guide .lede { font-size: clamp(18px, 1.5vw, 21px); }
.guide .byline { font-size: 15px; color: var(--muted); }
.guide h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1.05; margin: 40px 0 12px; }
.guide .grid { margin-top: 16px; }
.toc { margin: 24px 0; padding: 20px 24px; background: var(--surface); } .toc h2 { margin: 0 0 8px; font-size: 18px; } .toc ol { margin: 0; padding-left: 20px; }
.guide .faq { margin-top: 16px; }

/* footer: the paper field */
footer { background: var(--paper); color: var(--paper-ink); margin-top: clamp(72px, 9vw, 140px); padding: clamp(40px, 6vw, 80px) 0 32px; font-size: 16px; }
footer a:hover, footer .linkbtn:hover { color: var(--accent-deep); }
.foot-mark { margin: 0 0 clamp(32px, 5vw, 64px); font-size: clamp(64px, 15vw, 220px); font-weight: 800; letter-spacing: -.07em; line-height: .85; display: flex; align-items: flex-end; white-space: nowrap; overflow: hidden; }
.foot-mark .dot { width: .3em; height: .3em; margin: 0 0 .06em .02em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-cols nav, .foot-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-cols h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--paper-ink); }
footer .linkbtn { color: var(--paper-ink); font-size: 16px; font-weight: 400; text-decoration: none; }
.foot-legal { font-size: 15px; line-height: 1.55; margin: 8px 0 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; font-size: 15px; }
.foot-actions { display: flex; align-items: center; gap: 20px; }
footer .btn { background: var(--accent); color: var(--accent-ink); }

/* language list in the footer, the language bar, the note on pages that stay in English */
.lang-switch { margin-top: 48px; }
.lang-switch h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--paper-ink); }
.lang-switch ul { list-style: none; margin: 0; padding: 0; }
.lang-switch .pill[aria-current] { background: var(--accent); color: var(--accent-ink) !important; }
.lang-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 16px; padding: 10px clamp(20px, 4vw, 40px); background: var(--surface-2); color: var(--ink); font-size: 15px; }
.lang-bar .btn { min-height: 36px; padding: 8px 18px; }
.lang-bar .linkbtn { min-width: 44px; min-height: 44px; font-size: 22px; text-decoration: none; color: var(--ink); text-align: center; }
.lang-note { margin-top: 12px; }

/* modal, consent */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.66); display: grid; place-items: center; padding: 18px; z-index: 50; }
.modal { position: relative; width: min(100%, 420px); background: var(--surface); padding: 28px 26px 22px; max-height: calc(100svh - 36px); overflow: auto; --field: var(--bg); }
.modal h2 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.04em; }
.modal > * + * { margin-top: 14px; } .modal form > * + * { margin-top: 12px; }
.modal-x { position: absolute; top: 8px; right: 10px; margin: 0 !important; background: none; border: 0; font-size: 32px; line-height: 1; color: var(--muted); min-width: 44px; min-height: 44px; }
.modal-x:hover { color: var(--ink); }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.or { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 !important; }
.modal .btn { width: 100%; }
.modal .linkbtn { display: block; margin: 14px 0 0; }
.modal.pay { width: min(520px, 94vw); max-height: 92vh; overflow: auto; background: #fff; padding: 12px; } .modal.pay .modal-x { color: #111; }
.consent { min-height: 44px; align-items: center; cursor: pointer; display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); font-weight: 400; margin: 0; }
.consent input { margin-top: 2px; } .consent a { color: var(--ink); text-decoration: underline; }
.cb { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--surface-2); padding: 16px 20px; display: flex; gap: 14px 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 980px; margin: 0 auto; }
.cb-text { margin: 0; flex: 1 1 360px; font-size: 15px; line-height: 1.5; } .cb-text a { text-decoration: underline; }
.cb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 4px; background: var(--bg); color: var(--ink); cursor: pointer; }
.cp-row input { margin-top: 4px; } .cp-row b { display: block; font-size: 16px; }
.cp-row small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; font-weight: 400; }

/* plans inside paywall boxes, offers, bulk */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.plans .plan { padding-bottom: 22px; min-height: 0; }
.plans .plan .price { font-size: 44px; margin: 8px 0; } .plans .plan ul { margin: 0; padding-left: 18px; flex: 1; }
.plan.featured { background: var(--accent); color: var(--accent-ink); }
.summary { background: var(--field); padding: 16px 18px; } .summary b { display: block; font-size: 20px; overflow-wrap: anywhere; } .summary span { color: var(--muted); font-size: 15px; }
.offer { margin-top: 18px; background: var(--surface); padding: 24px; --field: var(--bg); }
.offer > * + * { margin-top: 12px; } .offer h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; } .offer p { margin: 0; } .offer ul { margin: 0; padding-left: 20px; color: var(--muted); }
.start .offer { background: var(--surface); }
details.bulk { margin-top: 18px; background: var(--field); padding: 14px 18px; }
details.bulk > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details.bulk[open] > summary { margin-bottom: 12px; } details.bulk > * + * { margin-top: 12px; }
.paid-banner { margin: 14px 0 0; padding: 14px 18px; background: var(--surface-2); }
.progress { height: 12px; background: var(--field); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); }
.pbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .pbar-top b { font-size: 40px; letter-spacing: -.05em; line-height: 1; }
.vtitle { font-weight: 600; font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.flow [hidden] { display: none !important; } .flow > div > * + * { margin-top: 16px; } .flow h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.tl { padding: 8px 0; line-height: 1.55; } .tl .ts { display: inline-block; min-width: 56px; margin-right: 12px; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.tbody { max-height: 520px; overflow: auto; background: var(--field); padding: 6px 16px; }
.ts-box { margin: 12px 0 0; min-height: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); } .badge.server::before { background: var(--warn); }

/* calculators, results, tables */
.note { font-size: 15px; line-height: 1.6; color: var(--muted); background: var(--field); padding: 14px 18px; margin-top: 18px; }
fieldset.opts { border: 0; padding: 0; margin: 0; min-width: 0; } fieldset.opts legend { padding: 0; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.workspace > .calc-grid { margin-top: 0; }
.calc-card { background: var(--bg); padding: 20px; --field: var(--surface-2); }
.calc-card h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.25; }
.result { margin: 14px 0 0; font-size: 17px; min-height: 26px; overflow-wrap: anywhere; }
.result b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.result.muted { color: var(--muted); font-size: 15px; } .result.err { color: var(--bad); font-size: 15px; } .result .line { display: block; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; background: var(--field); }
.files .fname { flex: 1 1 200px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.files .fmeta { color: var(--muted); font-size: 15px; } .files .fbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.files label.fname { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; }
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 16px; min-width: 520px; }
.tbl th, .tbl td { text-align: right; padding: 12px 16px; font-variant-numeric: tabular-nums; background: var(--field); }
.tbl thead th { color: var(--muted); font-size: 15px; font-weight: 600; background: var(--surface-2); }
.tbl tbody th { text-align: left; color: var(--ink); font-weight: 600; background: var(--surface-2); }
.caps { min-width: 760px; } .caps td { background: var(--surface); } .caps tbody th { max-width: 280px; }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--field); font-size: 16px; }
.checks .tag { flex: 0 0 auto; min-width: 54px; text-align: center; }
.sect { background: var(--field); padding: 18px; margin-top: 12px; } .sect h2 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .sect pre.out { max-height: 160px; }
.sev { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface-2); }
.sev.high { color: var(--bad); } .sev.med { color: var(--warn); } .sev.low { color: var(--muted); } .sev.pass { color: var(--ok); }
.rep-sec { margin-top: 22px; } .rep-sec h3 { margin: 0 0 8px; font-size: 18px; }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; } .rep-list li { padding: 10px 14px; background: var(--field); display: flex; gap: 10px; align-items: flex-start; } .rep-list li span:last-child { min-width: 0; overflow-wrap: anywhere; }
.serp { background: #fff; color: #202124; padding: 14px 16px; display: grid; gap: 3px; max-width: 640px; }
.serp-url { color: #4d5156; font-size: 14px; overflow-wrap: anywhere; } .serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; } .serp-desc { color: #4d5156; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.social { max-width: 520px; background: var(--field); } .social-img { padding: 38px 16px; background: var(--surface-2); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.social-body { padding: 12px 16px; display: grid; gap: 2px; } .social-site { color: var(--muted); font-size: 14px; } .social-body span:last-child { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* tool-specific parts used by the browser scripts */
.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--gap); }
.pal-chip { min-height: 120px; border: 0; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; cursor: pointer; text-align: left; }
.pal-chip:hover { filter: brightness(1.06); } .pal-chip b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; } .pal-chip span { font-size: 14px; }
.preview-box { min-height: 180px; display: grid; place-items: center; padding: 20px; overflow: hidden; background: var(--field); } .preview-box.short { min-height: 120px; }
.shadow-stage { background: var(--paper); } .shadow-card { width: min(100%, 200px); height: 110px; background: #fff; display: grid; place-items: center; color: #17181a; font-weight: 700; }
.radius-box { width: 160px; height: 160px; background: var(--accent); } .glass-stage { min-height: 240px; background: #e8ebf2; } .glass-card { width: min(100%, 260px); padding: 22px; color: #17181a; } .glass-card p { margin: 0 0 8px; }
.fluid-demo { margin: 0; max-width: 100%; }
.sample-box { display: block; padding: 22px; background: #ffffff; color: #777777; } .sample-box p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; } .sample-box .sample-large { margin: 0; font-size: 24px; font-weight: 700; }
.sw-chip { width: 44px; height: 44px; flex: 0 0 auto; background: var(--field); }
.stackbar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--field); } .stackbar span { display: block; height: 100%; min-width: 0; }
.seg-take { background: var(--ok); } .seg-tax { background: var(--accent); } .seg-ni { background: var(--warn); } .seg-sl { background: #93c5fd; } .seg-pen { background: #c4a5ff; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 6px 16px; font-size: 15px; color: var(--muted); } .legend li { display: flex; gap: 8px; align-items: center; } .legend i { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
canvas.sig { display: block; width: 100%; max-width: 600px; height: auto; background: #fff; touch-action: none; cursor: crosshair; margin-bottom: 10px; } canvas.sig.place { max-width: 320px; background: var(--surface-2); cursor: pointer; touch-action: auto; }
.posgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
#inv > * + * { margin-top: 16px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 3fr) 90px 120px 110px; gap: 10px; align-items: end; padding: 12px 0; } .inv-line .invtot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; } .inv-line .invtot .label { margin: 0; }
canvas.work { display: block; max-width: 100%; height: auto; background: var(--field); } canvas.grab { touch-action: none; cursor: crosshair; } canvas.pick { cursor: crosshair; }
.fav-img { display: inline-block; width: 48px; height: 48px; object-fit: contain; background: var(--field); }
.chiprow, .palette { display: flex; flex-wrap: wrap; gap: 8px; }
.chipcol { width: 44px; height: 44px; border: 0; padding: 0; }
.palcol { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 104px; padding: 6px; background: var(--field); border: 0; text-align: left; }
.palsw { display: block; height: 56px; } .palhex { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; } .palpc { font-size: 14px; color: var(--muted); }
.x7-stack { display: grid; gap: 12px; }
.md-out { background: var(--field); padding: 16px 18px; min-height: 120px; overflow-wrap: anywhere; line-height: 1.6; } .md-out > :first-child { margin-top: 0; } .md-out > :last-child { margin-bottom: 0; }
.md-out h1, .md-out h2, .md-out h3, .md-out h4, .md-out h5, .md-out h6 { letter-spacing: -.03em; line-height: 1.2; margin: 1.2em 0 .45em; font-weight: 700; }
.md-out h1 { font-size: 28px; } .md-out h2 { font-size: 22px; } .md-out h3 { font-size: 18px; } .md-out h4, .md-out h5, .md-out h6 { font-size: 16px; }
.md-out p, .md-out ul, .md-out ol, .md-out blockquote, .md-out pre, .md-out hr, .md-out .tblwrap { margin: 0 0 12px; } .md-out ul, .md-out ol { padding-left: 22px; }
.md-out a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.md-out code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--surface-2); padding: 1px 6px; }
.md-out pre { background: var(--bg); padding: 12px 14px; overflow-x: auto; } .md-out pre code { background: none; padding: 0; }
.md-out blockquote { background: var(--surface-2); padding: 8px 16px; color: var(--muted); margin-left: 0; } .md-out hr { border: 0; height: 4px; background: var(--surface-2); }
.md-out table { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 15px; } .md-out th, .md-out td { background: var(--surface-2); padding: 8px 10px; text-align: left; vertical-align: top; } .md-out .al-r { text-align: right; } .md-out .al-c { text-align: center; }
.wheel { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.bc-wrap { overflow-x: auto; background: #ffffff; padding: 14px; } .bc-wrap svg { display: block; margin: 0; max-width: none; }
.csv-scroll { overflow: auto; max-height: 560px; background: var(--field); }
table.csv { border-collapse: collapse; font-size: 15px; min-width: 100%; }
table.csv th, table.csv td { padding: 8px 12px; text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.csv tbody tr:nth-child(even) td { background: var(--surface); }
table.csv th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; padding: 0; } table.csv th.rn { padding: 8px 12px; color: var(--muted); } table.csv td.rn { color: var(--muted); }
table.csv td.num, table.csv th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sortbtn { display: block; width: 100%; text-align: inherit; background: none; border: 0; padding: 8px 12px; font-weight: 700; color: var(--ink); white-space: nowrap; min-height: 44px; } .sortbtn:hover { color: var(--accent); }
#pager { align-items: center; }

@media (hover: none) { .trow::before { display: none; } }
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-sec, .feat, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap > h2, .faq-wrap > div > h2 { position: static; margin-bottom: 8px; }
  .frag-stack { position: static; min-height: 0; display: none; }
  .gtiles, .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hdr { gap: 12px; }
  .menu-btn { display: inline-flex; }
  #site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); padding: 8px var(--gutter) 16px; font-size: 20px; }
  #site-nav.open { display: flex; }
  #site-nav a { display: flex; align-items: center; min-height: 52px; color: var(--ink); }
  .acct-email { display: none; }
  .hdr-right .btn:not(.menu-btn) { display: none; }
  .hero h1 { font-size: var(--hero-h1-phone, 15vw); }
  .hero-dot { width: 90vw; height: 90vw; top: -20vw; right: -25vw; }
  .pricing-hero .hero-dot { width: 90vw; height: 90vw; }
  .rows.cols2, .gtiles, .ex-grid, .seo-grid, .two-tiles, .cat-grid, .plan-steps, .pack-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-steps { align-items: stretch; } .plan.s1, .plan.s2, .plan.s3 { min-height: 0; }
  .trow { min-height: 56px; } .tfact { display: none; } .guide-row .tfact { display: block; }
  .foot-mark { font-size: 19vw; }
  .foot-cols a, .foot-cols .linkbtn { display: flex; align-items: center; min-height: 44px; }
  .foot-contact a { min-height: 44px; }
  .foot-base .linkbtn { min-height: 44px; display: inline-flex; align-items: center; } .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .kv th { width: 40%; }
  .inv-line { grid-template-columns: 1fr 1fr; } .inv-line > :first-child { grid-column: 1 / -1; }
  .hub-dot { width: 55vw; height: 55vw; transform: translate(55%, -60%); }
  .tool-hero h1 { max-width: none; }
  .stats-strip { gap: 8px 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.region-alt[hidden] { display: none; }

/* Batch x26: link cards and side by side diff */
.ogcards { display: grid; gap: 20px; margin: 18px 0; }
.og-wrap .label { margin: 0 0 6px; }
.og-card { background: var(--field); color: var(--ink); overflow: hidden; max-width: 100%; }
.og-img { background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; overflow: hidden; }
.og-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-body { padding: 12px 16px; display: grid; gap: 3px; min-width: 0; }
.og-host, .og-site { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.og-title { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.og-desc { color: var(--muted); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.og-large { max-width: 520px; } .og-large .og-img { aspect-ratio: 1.91 / 1; }
.og-small { display: grid; grid-template-columns: 120px minmax(0, 1fr); max-width: 520px; align-items: stretch; } .og-small .og-img { min-height: 120px; } .og-small .og-body { align-content: center; } .og-small .og-desc { -webkit-line-clamp: 2; }
.og-side { max-width: 520px; border-left: 4px solid var(--accent); } .og-side .og-site { text-transform: none; font-weight: 700; color: var(--ink); font-size: 15px; letter-spacing: 0; } .og-side .og-img { aspect-ratio: 1.91 / 1; max-width: 360px; margin-top: 8px; }
.og-none { padding: 24px 12px; }
.sbs { margin: 12px 0; }
.sbs-scroll { overflow: auto; max-height: 560px; background: var(--field); }
.sbs-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; min-width: 560px; }
.sbs-table td { padding: 2px 8px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.sbs-table .sbs-ln { width: 44px; text-align: right; color: var(--muted); user-select: none; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.sbs-table .sbs-code { width: calc(50% - 44px); }
.sbs-chg .sbs-code:nth-child(2), .sbs-del .sbs-code:nth-child(2) { background: color-mix(in srgb, var(--bad) 16%, transparent); }
.sbs-chg .sbs-code:nth-child(4), .sbs-add .sbs-code:nth-child(4) { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.sbs-table .sbs-empty { background: var(--surface-2); }
.sbs-hl-del { background: color-mix(in srgb, var(--bad) 45%, transparent); }
.sbs-hl-add { background: color-mix(in srgb, var(--ok) 45%, transparent); }
.sbs-gap td { text-align: center; color: var(--muted); background: var(--surface-2); font-family: inherit; }
.ex-in { white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-out.long { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.5; white-space: pre-wrap; }

/* Category pages grouped by sub-section, sub-section pages and comparison pages (October 2026 restructure) */
.sub-jump { margin: 0 0 28px; }
.sub-group { margin: 0 0 36px; }
.sub-group[hidden] { display: none; }
.sub-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 24px; letter-spacing: -.02em; margin: 0 0 12px; scroll-margin-top: 90px; }
.sub-all { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.compare-tbl th[scope="row"] { width: 30%; }
.compare-tbl th, .compare-tbl td { vertical-align: top; text-align: left; font-family: inherit; font-variant-numeric: normal; letter-spacing: 0; }
.cmp-sides { margin: 32px 0; }
.cmp-sides .tile h2 { font-size: 22px; }
.cmp-sides ul, .sources { padding-left: 1.2em; }
.sources li { margin: 0 0 6px; font-size: 15px; }

/* Unit converter pages (fam-units) */
.conv-res { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; margin: 18px 0 8px; min-height: 1.2em; overflow-wrap: anywhere; }
.conv-pair { gap: 8px; }
.conv .row > .conv-pair { flex: 1 1 260px; }
