/* PrautoForge website. Black, graphite and gold, the same design as the app (1.7.4).
   Archivo and IBM Plex Mono are bundled under the SIL Open Font License (assets/fonts). No external requests. */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #fbfaf7; --bg-2: #f3f0e9; --sheet: #ffffff; --sunk: #eeebe4; --sunk-line: #e0dbd0; --soft: #ffffff;
  --heading: #12110f; --text: #2b2823; --muted: #5e594f; --faint: #8d877b; --rule: #e6e1d6; --rule-strong: #d3ccbe;
  --accent: #826219; --accent-deep: #674d10; --accent-soft: #f5eedc;
  --btn: #17150f; --btn-ink: #f7f1e1; --btn-hover: #2c2922;
  --ink-bg: #0c0c0b; --ink-2: #161513; --ink-line: #2a2824; --ink-text: #bdb7ab; --ink-faint: #7a746a; --ink-accent: #d4b56c;
  --ok: #1f7a50; --warn: #b05a14; --risk: #b8321c;
  --sans: "Archivo", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --shell: 1240px; --header-bg: rgb(251 250 247 / 92%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-2: #10100f; --sheet: #141413; --sunk: #181816; --sunk-line: #2a2824; --soft: #1c1b19;
  --heading: #f4f1ea; --text: #d2cdc3; --muted: #a19c91; --faint: #78726a; --rule: #22211e; --rule-strong: #34312c;
  --accent: #cfae62; --accent-deep: #e3c886; --accent-soft: #211c11;
  --btn: #cfae62; --btn-ink: #15120a; --btn-hover: #dcbd76;
  --ok: #5fbf8f; --warn: #e08a4f; --risk: #ef6f5a; --header-bg: rgb(10 10 10 / 90%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; font-family: var(--sans); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; font-weight: 750; font-stretch: 118%; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.04; font-weight: 720; font-stretch: 114%; letter-spacing: -.03em; }
h3 { font-size: 1.16rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
code { font: 500 .86em var(--mono); background: var(--sunk); border: 1px solid var(--sunk-line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 6px; background: var(--heading); color: var(--bg); transform: translateY(-200%); transition: transform 150ms; }
.skip-link:focus { transform: none; }
.eyebrow { font-size: .85rem; font-weight: 650; color: var(--accent); letter-spacing: .005em; margin-bottom: 18px; display: block; }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.nav-shell { display: flex; align-items: center; gap: 30px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 700; font-stretch: 110%; font-size: 1.04rem; letter-spacing: -.015em; }
.brand img { border-radius: 6px; }
.main-nav { display: flex; gap: 26px; font-size: .92rem; margin-left: 8px; }
.main-nav a { text-decoration: none; color: var(--muted); padding-block: 8px; position: relative; transition: color 120ms; }
.main-nav a:hover { color: var(--heading); }
.main-nav a[aria-current="page"] { color: var(--heading); font-weight: 600; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--accent); }
.nav-support { display: none; }
.nav-cta { margin-left: auto; text-decoration: none; font-size: .9rem; font-weight: 600; color: #fff; background: var(--heading); padding: 9px 16px; border-radius: 6px; transition: background 120ms; }
:root[data-theme="dark"] .nav-cta { color: #12110f; }
.nav-cta:hover { background: var(--btn-hover); color: var(--btn-ink); }
:root[data-theme="dark"] .nav-cta:hover { background: var(--accent); color: var(--btn-ink); }
.theme-switch { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; }
.theme-switch:hover { color: var(--heading); border-color: var(--rule-strong); }
.theme-switch svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-switch .sun, :root:not([data-theme="dark"]) .theme-switch .moon { display: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--rule); border-radius: 6px; padding: 7px 12px; font-size: .88rem; cursor: pointer; color: var(--heading); }

/* ---------- buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 6px; border: 1px solid transparent;
  font-size: .98rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background 140ms, border-color 140ms, color 140ms; }
.button-primary { background: var(--btn); color: var(--btn-ink); }
.button-primary:hover { background: var(--btn-hover); }
.button-secondary { border-color: var(--rule-strong); color: var(--heading); background: transparent; }
.button-secondary:hover { border-color: var(--heading); }
.text-link { color: var(--accent); font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding-block: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- homepage ---------- */
.hero { padding-block: clamp(64px, 9vw, 120px) 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-side { display: grid; gap: 22px; padding-bottom: 8px; }
.hero-side p { font-size: 1.12rem; color: var(--text); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { font-size: .85rem; color: var(--muted); }
.fw-band { border-block: 1px solid var(--rule); }
.fw-band .shell { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fw-band div { padding: 18px 16px; border-right: 1px solid var(--rule); display: grid; gap: 2px; }
.fw-band div:first-child { border-left: 1px solid var(--rule); }
.fw-band b { color: var(--heading); font-size: .95rem; font-weight: 700; font-stretch: 108%; }
.fw-band span { font: 500 .72rem var(--mono); color: var(--faint); }
.showcase { background: var(--ink-bg); color: var(--ink-text); padding-block: 56px 0; overflow: hidden; }
.showcase figure { margin: 0; }
.showcase .frame { border: 1px solid var(--ink-line); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; background: #0b0b0a; }
.showcase .frame img { width: 100%; height: auto; }
.showcase-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.showcase-top h2 { color: #fff; max-width: 18ch; }
.showcase-top p { max-width: 46ch; color: var(--ink-text); }
.tabs-row { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs-row button { border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--ink-text); font: 600 .86rem var(--sans); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.tabs-row button:hover { color: #fff; }
.tabs-row button[aria-pressed="true"] { background: #cfae62; color: #15120a; border-color: #cfae62; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.metrics div { padding: 34px 28px 30px 0; border-right: 1px solid var(--rule); }
.metrics div + div { padding-left: 28px; }
.metrics div:last-child { border-right: 0; }
.metrics b { display: block; font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 750; font-stretch: 118%; letter-spacing: -.04em; color: var(--heading); line-height: 1; }
.metrics span { display: block; margin-top: 10px; font-size: .92rem; color: var(--muted); max-width: 26ch; }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section.alt { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.module { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; padding-block: 44px; border-top: 1px solid var(--rule); }
.module.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.module.flip .module-copy { order: 2; }
.module-copy { display: grid; gap: 16px; align-content: start; }
.module-copy .num { font: 500 .78rem var(--mono); color: var(--faint); }
.module-copy h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; font-weight: 720; font-stretch: 112%; letter-spacing: -.025em; }
.module-copy p { color: var(--text); }
.module-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.module-copy li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.module-copy li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--accent); }
.shot { margin: 0; border: 1px solid var(--rule-strong); border-radius: 8px; overflow: hidden; background: var(--sheet); box-shadow: 0 30px 60px -40px rgb(18 17 15 / 45%); }
.shot img { width: 100%; height: auto; }
.shot a { display: block; }
.shot figcaption, figure figcaption { font-size: .8rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--rule); background: var(--sheet); }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.grid-cards article { padding: 28px 28px 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.grid-cards article .ix { font: 500 .76rem var(--mono); color: var(--faint); }
.grid-cards article p { color: var(--muted); font-size: .96rem; }
.dark-band { background: var(--ink-bg); color: var(--ink-text); }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: var(--ink-accent); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.privacy-grid p { color: var(--ink-text); font-size: 1.04rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); }
.facts div { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--ink-line); display: grid; gap: 6px; }
.facts div:nth-child(odd) { border-right: 1px solid var(--ink-line); }
.facts div:nth-child(even) { padding-left: 22px; }
.facts b { color: #fff; font-weight: 650; }
.facts span { font-size: .9rem; color: var(--ink-faint); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.compare td:first-child { color: var(--heading); font-weight: 600; }
.compare .yes { color: var(--ok); font-weight: 650; } .compare .no { color: var(--faint); }

/* ---------- purchase ---------- */
.purchase-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 64px; align-items: start; }
.purchase-section h2 { margin-bottom: 18px; }
.purchase-section > div > p { color: var(--muted); max-width: 46ch; }
.purchase-box { border: 1px solid var(--rule-strong); border-radius: 10px; padding: 28px; display: grid; gap: 18px; background: var(--sheet); }
.purchase-box h3 { font-size: 1.3rem; font-stretch: 110%; }
.purchase-box .price { font-size: 3rem; font-weight: 760; font-stretch: 118%; letter-spacing: -.04em; color: var(--heading); line-height: 1; }
.purchase-box .price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.purchase-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; }
.purchase-box li { position: relative; padding-left: 26px; }
.purchase-box li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.purchase-box .button { width: 100%; }
.purchase-box .trial-button { margin-top: 10px; }
.purchase-box .trial-button[hidden] { display: none; }
.buy-note { font-size: .82rem; color: var(--muted); }
.buy-note a { color: var(--accent); }
.platforms { --gap: 4px; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.plat-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap); padding: 4px; background: var(--sunk); border: 1px solid var(--sunk-line); border-radius: 8px; }
.plat-glider { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n) - 1) * var(--gap)) / var(--n)); border-radius: 5px; background: var(--soft);
  box-shadow: 0 1px 2px rgb(18 17 15 / 12%); transition: transform 280ms cubic-bezier(.3, .7, .2, 1); }
.plat-track:has(.plat:nth-of-type(2) input:checked) .plat-glider { transform: translateX(calc(100% + var(--gap))); }
.plat-track:has(.plat:nth-of-type(3) input:checked) .plat-glider { transform: translateX(calc(200% + 2 * var(--gap))); }
.plat { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 5px; color: var(--muted);
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: color 160ms; user-select: none; }
.plat svg { width: 18px; height: 18px; flex: none; fill: currentColor; opacity: .75; }
.plat input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.plat:hover, .plat:has(input:checked) { color: var(--heading); }
.plat:has(input:checked) svg { opacity: 1; }
.plat:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plat-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.plat-file { font-family: var(--mono); font-size: .72rem; color: var(--faint); overflow-wrap: anywhere; }
.plat.is-soon { cursor: default; color: var(--faint); }
.plat.is-soon svg { opacity: .4; }
.plat em { font-style: normal; font-size: .64rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--rule-strong); color: var(--muted); }

/* ---------- interior pages ---------- */
.detail-main, .doc-shell { padding-block: 64px 96px; }
.detail-heading, .guide-intro { max-width: 860px; margin-bottom: 44px; display: grid; gap: 4px; }
.detail-heading h1, .guide-intro h1, .doc-shell h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.doc-lede { font-size: 1.15rem; color: var(--text); margin-top: 18px; max-width: 62ch; }
.doc-shell { max-width: 820px; }
.doc-shell h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 48px 0 14px; }
.doc-shell h3 { margin: 28px 0 8px; }
.doc-shell p, .doc-shell li { margin-block: 12px; }
.doc-shell a:not(.button), .guide-body a:not(.button), .detail-main a:not(.button) { color: var(--accent); text-underline-offset: 3px; }
.article-cta .button { justify-self: start; text-decoration: none; }
.doc-shell table, .guide-table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 18px 0; }
.doc-shell th, .doc-shell td, .guide-table th, .guide-table td { border-bottom: 1px solid var(--rule); padding: 11px 12px; text-align: left; vertical-align: top; }
.doc-shell thead th, .guide-table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.table-wrap { overflow-x: auto; }
.breadcrumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--heading); }
.article-meta { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.article-cta { margin-top: 48px; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 26px; display: grid; gap: 10px; background: var(--bg-2); }
.notice { padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--text); }
.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pricing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 56px; align-items: start; }
.license-price { font-size: 3.2rem; font-weight: 760; font-stretch: 118%; letter-spacing: -.04em; color: var(--heading); }
.detail-row { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 32px; padding-block: 28px; border-top: 1px solid var(--rule); }
.detail-row h2 { font-size: 1.3rem; font-stretch: 108%; }
.detail-row ul, .detail-row ol { margin: 0; padding-left: 20px; }
.status-definitions { display: grid; gap: 0; border-top: 1px solid var(--rule); margin: 0; }
.status-definitions dt { font-weight: 650; color: var(--heading); padding-top: 12px; }
.status-definitions dd { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.faq-section { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--heading); }
.faq p { margin-top: 10px; color: var(--muted); }
.support-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.support-links a { padding: 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; display: grid; gap: 4px; }
.support-links a:hover { background: var(--bg-2); }
.next-page { display: flex; justify-content: flex-end; margin-top: 48px; }
.error-page { padding-block: 120px; display: grid; gap: 18px; justify-items: start; }

/* ---------- user guide ---------- */
.guide-shell { padding-block: 64px 96px; }
.guide-note { font-size: .9rem; color: var(--muted); margin-top: 14px; max-width: 72ch; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.guide-toc { position: sticky; top: 92px; display: grid; gap: 1px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; font-size: .9rem; }
.guide-toc .footer-label { margin: 16px 0 6px; }
.guide-toc a { text-decoration: none; color: var(--muted); padding: 5px 10px; border-left: 2px solid var(--rule); }
.guide-toc a:hover { color: var(--heading); border-left-color: var(--rule-strong); }
.guide-toc a[aria-current="location"] { color: var(--heading); border-left-color: var(--accent); font-weight: 600; }
.guide-body { min-width: 0; }
.guide-cat { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 64px 0 8px; padding-top: 24px; border-top: 2px solid var(--heading); }
.guide-cat:first-child { margin-top: 0; }
.guide-cat-lede { color: var(--muted); max-width: 64ch; }
.guide-section { padding-block: 36px 8px; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.guide-section h3 { font-size: 1.45rem; font-stretch: 108%; letter-spacing: -.02em; margin-bottom: 12px; }
.guide-section h4 { margin: 22px 0 6px; }
.guide-section p { margin-block: 10px; max-width: 72ch; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; max-width: 76ch; }
/* Steps flow as normal text (a grid here would put every inline code or bold word in its own column). */
.steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font: 600 .78rem var(--mono); display: grid; place-items: center; }
.guide-clip { margin: 26px 0 18px; border: 1px solid var(--rule-strong); border-radius: 8px; overflow: hidden; background: #0c0c0b; }
.guide-clip video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0c0c0b; }
.guide-clip img { display: block; width: 100%; height: auto; }
.guide-clip figcaption { border-top: 1px solid var(--rule); }
.guide-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.guide-card { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.guide-card:hover h2, .guide-card:hover h3 { color: var(--accent); }
.guide-card p { color: var(--muted); }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.section-nav a { border: 1px solid var(--rule); border-radius: 6px; padding: 7px 12px; text-decoration: none; font-size: .9rem; }

/* legacy homepage blocks still used by interior pages */
.section-heading { max-width: 760px; display: grid; gap: 10px; margin-bottom: 36px; }
.section-heading p { color: var(--muted); }
.editorial-section { padding-block: 72px; }
.work-rows { display: grid; border-top: 1px solid var(--rule); }
.work-rows article { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.work-rows p { color: var(--muted); margin-top: 6px; }
.work-rows a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.step-number { font: 500 .85rem var(--mono); color: var(--faint); padding-top: 4px; }
.feature-band { background: var(--bg-2); padding-block: 72px; }
.feature-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.feature-layout p { margin-top: 14px; color: var(--muted); }
.feature-layout figure { margin: 0; border: 1px solid var(--rule-strong); border-radius: 8px; overflow: hidden; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.capability-grid article { padding: 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.capability-grid p { color: var(--muted); }
.fit-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 72px; border-top: 1px solid var(--rule); }
.fit-section p { margin-top: 12px; color: var(--muted); }
.resource-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 72px; }
.resource-band > a { padding: 24px; border: 1px solid var(--rule); margin-left: -1px; text-decoration: none; display: grid; gap: 6px; }
.resource-band > a:hover { background: var(--bg-2); }
.resource-band span { color: var(--muted); font-size: .94rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 56px 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid > div { display: grid; gap: 8px; align-content: start; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--heading); }
.footer-grid p { color: var(--muted); font-size: .92rem; }
.footer-brand { color: var(--heading) !important; font-size: 1.02rem !important; margin-bottom: 6px; }
.footer-label { font-size: .78rem; font-weight: 650; color: var(--heading); letter-spacing: .005em; margin-bottom: 4px; }
.footer-base { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--rule); display: grid; justify-items: center; gap: 16px; }
.copyright { font-size: .82rem; color: var(--faint) !important; text-align: center; margin: 0; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule-strong); border-radius: 50%; color: var(--muted); transition: color 120ms, border-color 120ms; }
.socials a:hover { color: var(--heading); border-color: var(--heading); }
.socials svg { width: 19px; height: 19px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fw-band .shell { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fw-band div:nth-child(5) { border-left: 1px solid var(--rule); }
  .fw-band div:nth-child(-n + 4) { border-bottom: 1px solid var(--rule); }
  .module, .module.flip, .privacy-grid, .purchase-section, .pricing-layout, .feature-layout, .section-head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .module.flip .module-copy { order: 0; }
  .grid-cards, .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0 0 10px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--rule); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-cta { display: none; }
  .nav-support { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(3) { padding-left: 0; }
  .metrics div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:nth-child(even) { padding-left: 0; }
  .detail-row, .fit-section, .resource-band, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .work-rows article { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .fw-band .shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-band div:nth-child(odd) { border-left: 1px solid var(--rule); }
  .fw-band div { border-bottom: 1px solid var(--rule); }
  .grid-cards, .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .purchase-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Free email security check (tools/email-security-check.html) */
.ec-form { display: flex; gap: 10px; margin: 26px 0 8px; max-width: 620px; }
.ec-form input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--sheet); color: var(--heading); }
.ec-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ec-status { min-height: 1.4em; color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.ec-result { margin: 18px 0 34px; border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden; }
.ec-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.ec-head-text { display: grid; gap: 2px; } .ec-head-text span { color: var(--muted); font-size: .9rem; }
.ec-grade { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: #fff; flex: none; }
.ec-g-a { background: var(--ok); } .ec-g-b { background: #4c8a3a; } .ec-g-c { background: var(--warn); } .ec-g-d, .ec-g-f { background: var(--risk); }
.ec-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.ec-row:last-child { border-bottom: 0; }
.ec-row p { margin: 0; }
.ec-mark { font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.ec-row.ok .ec-mark { color: var(--ok); } .ec-row.bad .ec-mark { color: var(--risk); } .ec-row.info .ec-mark { color: var(--muted); }
.ec-fix { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 6px; background: var(--accent-soft); font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ec-form { flex-direction: column; } .ec-head { padding: 14px 16px; } .ec-row { padding: 10px 16px; grid-template-columns: 44px minmax(0, 1fr); } }

/* Localized landing pages (site/src/<lang>/) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: .9rem; }
.nav-shell .lang-switch { margin-left: auto; margin-right: 18px; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--heading); }
.lang-switch a[aria-current="page"] { color: var(--heading); font-weight: 650; }
.footer-grid .lang-switch { display: grid; gap: 6px; }
.local-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-block: 24px 64px; }
.local-features article { padding: 26px; border: 1px solid var(--rule); margin-left: -1px; }
.local-features h3 { margin: 0 0 8px; }
.local-features p { margin: 0; color: var(--muted); }
.local-band { grid-template-columns: minmax(0, 1fr); padding-block: 0 72px; }
@media (max-width: 860px) { .local-features { grid-template-columns: minmax(0, 1fr); } .nav-shell .lang-switch { display: none; } }
.hero h1 { overflow-wrap: break-word; hyphens: auto; }
:lang(ja) .hero h1 { line-break: strict; word-break: normal; }
