/* ==========================================================================
   EZ DEV design system — "Monochrome editorial"
   Black & white only. Hard rules, square corners, big type, italic serif accents.
   Shared by EZ DEV, EZ APP, EZ SITE and EZ DEFENDER.
   Light/dark follow the device; the header toggle overrides via [data-theme].
   ========================================================================== */

/* ---------- Tokens: light ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --hover: #ececec;
  --ink: #0a0a0a;
  --text: #1a1a1a;
  --muted: #555555;
  --faint: #6b6b6b;
  --border: #d9d9d9;
  --rule: #0a0a0a;
  --inv-bg: #0a0a0a;
  --inv-text: #ffffff;
  --inv-muted: #b5b5b5;
  --inv-border: #333333;
  --code-bg: #0a0a0a;
  --code-text: #e6e6e6;
  --checker-a: #f4f4f4;
  --checker-b: #ebebeb;
  --sans: 'Geist', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --bg-2: #121212; --surface: #0a0a0a; --surface-2: #161616; --hover: #1c1c1c;
    --ink: #ffffff; --text: #ededed; --muted: #a8a8a8; --faint: #8c8c8c;
    --border: #2a2a2a; --rule: #ffffff;
    --inv-bg: #ffffff; --inv-text: #0a0a0a; --inv-muted: #555555; --inv-border: #d9d9d9;
    --code-bg: #000000; --code-text: #e6e6e6; --checker-a: #121212; --checker-b: #0e0e0e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-2: #121212; --surface: #0a0a0a; --surface-2: #161616; --hover: #1c1c1c;
  --ink: #ffffff; --text: #ededed; --muted: #a8a8a8; --faint: #8c8c8c;
  --border: #2a2a2a; --rule: #ffffff;
  --inv-bg: #ffffff; --inv-text: #0a0a0a; --inv-muted: #555555; --inv-border: #d9d9d9;
  --code-bg: #000000; --code-text: #e6e6e6; --checker-a: #121212; --checker-b: #0e0e0e;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -.005em;
}
main { flex: 1; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
img, svg { max-width: 100%; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; flex-shrink: 0; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .4em; font-weight: 600; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 88px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s var(--ease) both; }
  .reveal-2 { animation-delay: .07s; } .reveal-3 { animation-delay: .14s; } .reveal-4 { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.narrow { max-width: 720px; }
.center { text-align: center; }
.right { text-align: right; }
.pad-lg { padding-block: clamp(48px, 7vw, 96px); }
.pad-xl { padding-block: clamp(72px, 11vw, 150px); }
.section-gap { margin-top: 44px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
.two-col > .card { margin: 0; border: 0; }
.two-col > .card + .card { border-left: 1px solid var(--rule); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } .two-col > .card + .card { border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- Type ---------- */
.display-xl, .display-md, .display-sm, .ed-title, .ed-h2 { font-family: var(--sans); font-weight: 600; color: var(--ink); letter-spacing: -.045em; }
.display-xl { font-size: clamp(48px, 9vw, 132px); line-height: .92; }
.display-md { font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.04em; }
.display-sm { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.02; letter-spacing: -.035em; }
.accent-text { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 640px; line-height: 1.55; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.measure { max-width: 440px; }
.break { overflow-wrap: anywhere; }
.label { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin: 0 0 10px; color: var(--ink); }
.hint { font-size: 13.5px; color: var(--faint); margin: 6px 0 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { height: 28px; width: auto; display: block; }
.brand svg, .org-parent svg, .footer-mark svg { stroke: none; stroke-width: 0; fill: none; }
.brand .ez-tile, .footer-mark .ez-tile { fill: var(--ink); }
.brand .ez-glyph, .footer-mark .ez-glyph { fill: var(--bg); }
.primary { display: flex; gap: 28px; flex: 1; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 14.5px; white-space: nowrap; position: relative; padding: 6px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right .25s var(--ease); }
.nav-link:hover::after { right: 0; }
.account { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.theme-toggle { width: 36px; height: 36px; border: 1px solid var(--rule); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--ink); color: var(--bg); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 860px) { .primary { display: none; } .header-row { gap: 12px; } .account { gap: 12px; } }
@media (max-width: 480px) { .brand svg { height: 24px; } .account .btn-sm { padding: 0 12px; } }
@media (max-width: 430px) { .account .nav-link[href$="/login"], .account .nav-link[href*="/auth/start"], .account .nav-link[href="/dashboard"] { display: none; } }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 600; overflow: hidden; font-size: 14px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.menu[open] .avatar { outline: 2px solid var(--ink); outline-offset: 2px; }
.menu-panel { position: absolute; right: 0; top: 48px; width: 260px; background: var(--bg); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.menu-head { display: flex; flex-direction: column; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.menu-head strong { color: var(--ink); }
.menu-head span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; font-family: var(--mono); }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 12px 16px; color: var(--ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; cursor: pointer; }
.menu-panel form:last-child button { border-bottom: 0; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--ink); color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 0; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; padding: 36px 24px 36px 0; }
.footer-grid > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.footer-grid .eyebrow { margin-bottom: 6px; }
.footer-grid a:not(.brand) { color: var(--ink); text-decoration: none; font-size: 15px; width: fit-content; }
.footer-grid a:not(.brand):hover { text-decoration: underline; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 300px; margin-top: 8px; }
.footer-mark { border-top: 1px solid var(--rule); padding: 28px 0 8px; color: var(--ink); }
.footer-mark svg { width: 100%; height: auto; display: block; }
.copyright { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font: 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 18px 0 28px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; border-bottom: 1px solid var(--border); }
  .footer-grid > div + div { border-left: 0; padding-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--bg);
  font: 500 15px var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s;
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled, .btn.is-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost, .btn-tint { background: transparent; color: var(--ink); }
.btn-ghost:hover, .btn-tint:hover { background: var(--ink); color: var(--bg); }
.btn-tint { justify-content: space-between; margin-top: auto; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
.btn-dark:hover { background: transparent; color: var(--inv-text); }
.btn-danger { background: transparent; color: var(--ink); border: 1px dashed var(--ink); }
.btn-danger:hover { background: var(--ink); color: var(--bg); border-style: solid; }
.is-static { pointer-events: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; }
.pill { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); padding: 6px 12px; border: 1px solid var(--rule); }
.dot { width: 8px; height: 8px; background: var(--ink); }
.badge { display: inline-block; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border: 1px solid var(--ink); color: var(--ink); }
.icon-tile { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--rule); }
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- Editorial landing (EZ DEV) ---------- */
.ed-hero { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 72px); }
.ed-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(28px, 5vw, 56px); }
.ed-title { font-size: clamp(56px, 12.5vw, 196px); line-height: .86; letter-spacing: -.055em; margin: 0; }
.ed-title em { letter-spacing: -.02em; }
.ed-hero-foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule); }
.ed-hero-foot .lead { margin: 0; }
.ed-hero-foot .cta-row { justify-content: flex-end; margin: 0; }
@media (max-width: 860px) { .ed-hero-foot { grid-template-columns: minmax(0, 1fr); } .ed-hero-foot .cta-row { justify-content: flex-start; } }

.ed-ticker { border-block: 1px solid var(--rule); overflow: hidden; white-space: nowrap; background: var(--inv-bg); color: var(--inv-text); }
.ed-ticker div { display: inline-flex; gap: 40px; padding: 14px 0; font: 500 clamp(18px, 2.4vw, 30px) var(--sans); letter-spacing: -.02em; }
.ed-ticker span::after { content: '✦'; margin-left: 40px; font-size: .6em; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .ed-ticker div { animation: ticker 40s linear infinite; } @keyframes ticker { to { transform: translateX(-50%); } } }

.ed-section { padding-block: clamp(64px, 9vw, 120px); }
.ed-head { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.ed-num { font: 500 13px var(--mono); color: var(--muted); letter-spacing: .04em; }
.ed-h2 { font-size: clamp(36px, 5.6vw, 76px); line-height: .95; letter-spacing: -.045em; margin: 0; }
.ed-head p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .ed-head { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.ed-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.ed-product { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 18px; min-height: 520px; position: relative; transition: background .2s, color .2s; }
.ed-product:first-child { padding-left: 0; }
.ed-product + .ed-product { border-left: 1px solid var(--rule); }
.ed-product-top { display: flex; justify-content: space-between; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ed-product h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: .95; letter-spacing: -.045em; margin: 24px 0 0; }
.ed-product p { color: var(--muted); margin: 0; font-size: 16px; }
.ed-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.ed-list li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; display: flex; gap: 12px; }
.ed-list li::before { content: counter(item, decimal-leading-zero); counter-increment: item; font: 12px var(--mono); color: var(--faint); padding-top: 3px; }
.ed-list { counter-reset: item; }
.ed-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; border-top: 1px solid var(--rule); text-decoration: none; font-weight: 500; color: var(--ink); }
.ed-link svg { transition: transform .2s var(--ease); }
.ed-link:hover svg { transform: translate(3px, -3px); }
@media (max-width: 980px) {
  .ed-products { grid-template-columns: minmax(0, 1fr); }
  .ed-product, .ed-product:first-child { padding: 28px 0; min-height: 0; }
  .ed-product + .ed-product { border-left: 0; border-top: 1px solid var(--rule); }
}

.ed-invert { background: var(--inv-bg); color: var(--inv-text); }
.ed-invert .ed-num, .ed-invert p { color: var(--inv-muted); }
.ed-invert .ed-h2 { color: var(--inv-text); }
.ed-invert-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.ed-invert-grid p { font-size: 18px; max-width: 520px; margin: 24px 0; }
@media (max-width: 980px) { .ed-invert-grid { grid-template-columns: minmax(0, 1fr); } }

.org { display: flex; flex-direction: column; align-items: center; }
.org-parent { width: 240px; padding: 18px; border: 1px solid currentColor; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.org-parent svg { height: 30px; width: auto; display: block; }
.org-parent .ez-tile { fill: currentColor; }
.org-parent .ez-glyph { fill: var(--inv-bg); }
.org-parent span { font: 11.5px var(--mono); letter-spacing: .1em; opacity: .7; }
.org-stem { width: 1px; height: 36px; background: currentColor; }
.org-bar { width: 67%; height: 1px; background: currentColor; }
.org-kids { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.org-kid { position: relative; margin-top: 36px; padding: 16px 8px; border: 1px solid currentColor; display: flex; flex-direction: column; align-items: center; text-align: center; }
.org-kid::before { content: ''; position: absolute; top: -37px; left: 50%; width: 1px; height: 36px; background: currentColor; }
.org-kid strong { font: 600 clamp(14px, 1.5vw, 18px) var(--sans); letter-spacing: -.02em; }
.org-kid span { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

.ed-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.ed-cell { padding: 28px 24px 32px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; }
.ed-cell:first-child { padding-left: 0; }
.ed-cell + .ed-cell { border-left: 1px solid var(--rule); }
.ed-cell h3 { font-size: 22px; letter-spacing: -.03em; margin: auto 0 0; }
.ed-cell p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .ed-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ed-cell:nth-child(3) { border-left: 0; padding-left: 0; } .ed-cell:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 600px) { .ed-cells { grid-template-columns: minmax(0, 1fr); } .ed-cell, .ed-cell:first-child { padding: 24px 0; min-height: 0; border-left: 0 !important; } .ed-cell + .ed-cell { border-top: 1px solid var(--rule); } }

.ed-cta { padding-block: clamp(64px, 9vw, 120px) 0; }
.ed-cta .ed-h2 { font-size: clamp(44px, 8vw, 120px); }
.ed-cta-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 24px; }
.ed-cta-row p { margin: 0; color: var(--muted); max-width: 420px; }

/* ---------- Subsidiary landings (shared classes) ---------- */
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero .display-xl { max-width: 1100px; }
.hero .lead { margin: 0; }
.hero-note { font-size: 13.5px; color: var(--faint); margin: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.section-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-head .display-md { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }
.steps, .example-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.example-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.example-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps .card, .example-grid .card { margin: 0; border: 0; padding: 28px 24px 32px; min-height: 220px; display: flex; flex-direction: column; }
.steps .card:first-child, .example-grid .card:first-child { padding-left: 0; }
.steps .card + .card, .example-grid .card + .card { border-left: 1px solid var(--rule); }
.steps p, .example-grid p { color: var(--muted); margin: 0; }
.steps .h3, .example-grid .h3 { font-size: 22px; letter-spacing: -.03em; margin-top: auto; }
.step-n { font: 500 13px var(--mono); color: var(--muted); margin-bottom: 40px; }
.step-n::before { content: '('; } .step-n::after { content: ')'; }
@media (max-width: 980px) {
  .steps, .example-grid, .example-grid.three { grid-template-columns: minmax(0, 1fr); }
  .steps .card, .example-grid .card, .steps .card:first-child, .example-grid .card:first-child { padding: 24px 0; min-height: 0; }
  .steps .card + .card, .example-grid .card + .card { border-left: 0; border-top: 1px solid var(--rule); }
  .step-n { margin-bottom: 12px; }
}
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.cta-band h2, .cta-band .display-sm { color: var(--inv-text); }
.cta-band .muted, .cta-band p { color: var(--inv-muted); margin: 0; }
.cta-band .btn { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
.cta-band .btn:hover { background: transparent; color: var(--inv-text); }
.cta-band .btn-ghost { background: transparent; color: var(--inv-text); }
.cta-band .btn-ghost:hover { background: var(--inv-text); color: var(--inv-bg); }

/* ---------- Product preview windows (monochrome) ---------- */
.showcase { margin: 0 auto; width: 100%; }
.window { background: var(--bg); border: 1px solid var(--rule); text-align: left; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.window-bar i { width: 10px; height: 10px; border: 1px solid var(--ink); border-radius: 50%; }
.window-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.viz { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.viz-side { padding: 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.viz-main { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.viz-bubble { padding: 12px 14px; font-size: 14.5px; line-height: 1.5; max-width: 92%; border: 1px solid var(--ink); }
.viz-bubble.me { align-self: flex-end; background: var(--ink); color: var(--bg); }
.viz-bubble.ai { background: var(--bg); color: var(--text); }
.viz-bubble code { font-size: 12.5px; }
.viz-status { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.viz-status::before { content: ''; width: 7px; height: 7px; background: var(--ink); }
.viz-input { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border: 1px solid var(--ink); color: var(--faint); font-size: 14px; }
.viz-input b { margin-left: auto; width: 28px; height: 28px; background: var(--ink); }
.viz-app { background: #ffffff; color: #0a0a0a; padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; border: 1px solid #0a0a0a; }
.viz-app h4 { margin: 0 0 6px; font: 600 26px var(--sans); color: #0a0a0a; letter-spacing: -.04em; }
.viz-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid #d9d9d9; padding: 10px 0; font-size: 14px; font-weight: 500; }
.viz-row::before { content: ''; width: 16px; height: 16px; border: 1.5px solid #0a0a0a; flex-shrink: 0; }
.viz-row.on::before { background: #0a0a0a; }
.viz-row em { margin-left: auto; font-size: 15px; color: #555; }
.viz-site { background: #ffffff; color: #0a0a0a; overflow: hidden; flex: 1; display: flex; flex-direction: column; border: 1px solid #0a0a0a; }
.viz-site-nav { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #0a0a0a; font: 400 17px var(--serif); font-style: italic; }
.viz-site-nav span { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #555; font-style: normal; }
.viz-site-hero { padding: 20px 16px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; align-items: center; }
.viz-site-hero h4 { margin: 0 0 8px; font: 400 30px/1 var(--serif); font-style: italic; color: #0a0a0a; }
.viz-site-hero p { margin: 0; font-size: 12px; color: #555; }
.viz-loaf { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #0a0a0a; background: repeating-linear-gradient(135deg, #0a0a0a 0 1px, transparent 1px 7px); }
.viz-grade { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.viz-grade b { width: 64px; height: 64px; display: grid; place-items: center; font: 600 28px var(--sans); color: var(--bg); background: var(--ink); letter-spacing: -.04em; flex-shrink: 0; }
.viz-check { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.viz-check i { width: 18px; height: 18px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--ink); color: var(--bg); flex-shrink: 0; }
.viz-check.bad i { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); }
.viz-check small { margin-left: auto; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.viz-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.viz-trio > div { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.viz-trio > div + div { border-left: 1px solid var(--rule); }
.viz-label { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .viz { grid-template-columns: minmax(0, 1fr); }
  .viz-side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .viz-trio { grid-template-columns: minmax(0, 1fr); }
  .viz-trio > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .viz-trio > div { min-height: 0; }
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; color: var(--ink); }
.form .btn { margin-top: 20px; align-self: flex-start; }
.form .btn-block { align-self: stretch; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--ink); border-radius: 0;
  padding: 12px 14px; min-height: 48px; transition: box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 1px var(--ink); }
input:disabled { color: var(--muted); background: var(--surface-2); border-style: dashed; }
textarea { resize: vertical; line-height: 1.5; }
.checkbox { display: flex !important; gap: 10px; align-items: flex-start; font: 15px var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text) !important; }
.checkbox input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--ink); }
.flash { padding: 14px 18px; margin: 16px 0; border: 1px solid var(--ink); display: block; }
.flash-error { border-width: 2px; font-weight: 500; color: var(--ink); }
.flash-error::before { content: '⚠ '; }
.flash-info, .flash-ok { background: var(--surface-2); color: var(--ink); }
.flash-info.row-between { display: flex; }
.plan-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.field-error { color: var(--ink); font-weight: 500; font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.danger-zone { border-style: dashed; }
.auth { display: flex; flex-direction: column; }
.auth .card { margin-top: 16px; }
meter { width: 100%; height: 6px; }
meter::-webkit-meter-bar { background: var(--border); border: 0; border-radius: 0; height: 6px; }
meter::-webkit-meter-optimum-value { background: var(--ink); border-radius: 0; }
meter::-moz-meter-bar { background: var(--ink); border-radius: 0; }

/* ---------- Dashboards ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.page-head .display-md { margin: 0; }
.usage-pill { display: flex; flex-direction: column; gap: 8px; min-width: 240px; font: 12.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.product-grid > .card { margin: 0; border: 0; }
.product-grid > .card + .card { border-left: 1px solid var(--rule); }
@media (max-width: 980px) { .product-grid { grid-template-columns: minmax(0, 1fr); } .product-grid > .card + .card { border-left: 0; border-top: 1px solid var(--rule); } }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); min-height: 230px; transition: background .2s, color .2s; }
.tile:hover { background: var(--ink); color: var(--bg); }
.tile:hover .muted, .tile:hover .icon-tile { color: var(--bg); border-color: var(--bg); }
.tile .product-name { font: 600 30px var(--sans); letter-spacing: -.045em; margin-top: auto; }
.tile-cta { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.product-name { font-family: var(--sans); font-weight: 600; font-size: 30px; letter-spacing: -.04em; margin: 0; }
.usage-card { margin-top: 24px; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.usage-grid > div { display: flex; flex-direction: column; gap: 8px; }
.usage-grid label { font: 12.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) { .usage-grid { grid-template-columns: minmax(0, 1fr); } }

.new-project { display: flex; flex-direction: column; gap: 12px; border-width: 2px; }
.idea-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: 14px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.inline-field { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 420px; }
.inline-field span { font: 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.project-grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.project-card { position: relative; margin: 0; padding: 22px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .15s, color .15s; }
.project-card:hover { background: var(--ink); }
.project-card:hover, .project-card:hover a, .project-card:hover .muted { color: var(--bg); }
.project-card:hover .badge { color: var(--bg); border-color: var(--bg); }
.project-card .stretched { font: 600 20px var(--sans); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.project-card .stretched::after { content: ''; position: absolute; inset: 0; }
.project-card p { margin: 6px 0 10px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 40px 0 20px; border: 1px solid var(--rule); }
.plan { display: flex; flex-direction: column; gap: 14px; margin: 0; border: 0; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan-featured { background: var(--inv-bg); color: var(--inv-text); }
.plan-featured .h3, .plan-featured .price { color: var(--inv-text); }
.plan-featured .check-list, .plan-featured .muted { color: var(--inv-muted); }
.plan-featured .btn { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
.plan-featured .btn:hover { background: transparent; color: var(--inv-text); }
.price { font: 600 52px var(--sans); color: var(--ink); margin: 0; letter-spacing: -.05em; }
.check-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; color: var(--muted); flex: 1; border-top: 1px solid var(--border); }
.plan-featured .check-list { border-color: var(--inv-border); }
.check-list li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.plan-featured .check-list li { border-color: var(--inv-border); }
.check-list li::before { content: '+'; margin-right: 10px; font-family: var(--mono); }
@media (max-width: 860px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); } }
.big-link { font: 500 clamp(22px, 3vw, 32px) var(--sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.prose h2 { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); }
.prose p { color: var(--muted); }

.photo-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 600 40px var(--sans); flex-shrink: 0; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.photo-actions { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 220px; }
.photo-actions form { margin: 0; }
.photo-form { display: flex; gap: 10px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Builder editor ---------- */
body.is-editor .site-footer { display: none; }
.editor { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: calc(100vh - 65px); min-height: 560px; }
.editor-chat { display: flex; flex-direction: column; border-right: 1px solid var(--rule); min-height: 0; }
.editor-title { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.back { display: grid; place-items: center; width: 40px; height: 40px; text-decoration: none; color: var(--ink); font-size: 18px; border: 1px solid transparent; }
.back:hover { border-color: var(--ink); }
.rename { flex: 1; }
.rename input { border-color: transparent; font: 600 16px var(--sans); letter-spacing: -.02em; padding: 8px 10px; min-height: 40px; }
.rename input:hover, .rename input:focus { border-color: var(--ink); }
.messages { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 11px 14px; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; border: 1px solid var(--ink); }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--bg); }
.msg-assistant { align-self: flex-start; background: var(--bg); }
.msg.is-pending { color: var(--muted); border-style: dashed; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.chat-form { display: flex; gap: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--rule); align-items: flex-end; }
.chat-form textarea { min-height: 72px; }
.chat-form .btn { padding: 0 14px; }
.status { font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 12px 12px; margin: 0; min-height: 30px; }
.status.is-error { color: var(--ink); font-weight: 600; }
.editor-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.toolbar-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg-btn { min-height: 36px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--ink); }
.seg-btn.is-on { background: var(--ink); color: var(--bg); }
.version-pick select { min-height: 38px; padding: 6px 10px; max-width: 260px; font-size: 14px; }
.preview-pane { flex: 1; display: flex; justify-content: center; padding: 16px; min-height: 0; background: repeating-conic-gradient(var(--checker-a) 0% 25%, var(--checker-b) 0% 50%) 50% / 20px 20px; }
.device-frame { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; border: 1px solid var(--rule); transition: width .25s var(--ease); }
.device-frame.is-mobile { width: 390px; max-width: 100%; border: 8px solid #0a0a0a; border-radius: 28px; }
.device-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.empty-state { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); text-align: center; padding: 24px; }
.spinner { width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--ink); border-radius: 50%; visibility: hidden; }
.device-frame.is-busy .spinner { visibility: visible; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.code-pane { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.file-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--rule); overflow-y: auto; }
.file-list button { width: 100%; text-align: left; min-height: 38px; padding: 0 14px; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--ink); font: 13px var(--mono); cursor: pointer; overflow-wrap: anywhere; }
.file-list button.is-on, .file-list button:hover { background: var(--ink); color: var(--bg); }
.code-view { margin: 0; padding: 16px 20px; overflow: auto; font-size: 13px; line-height: 1.6; color: var(--code-text); background: var(--code-bg); }
.dialog { background: var(--bg); color: var(--text); border: 1px solid var(--rule); border-radius: 0; padding: 28px; width: min(520px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog label { display: block; margin: 16px 0 6px; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.slug-field { display: flex; align-items: center; border: 1px solid var(--ink); padding-left: 12px; }
.slug-field span { color: var(--muted); font: 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slug-field input { border: 0; padding-left: 4px; box-shadow: none !important; }
.published-link { margin-top: 18px; padding: 14px; border: 1px solid var(--ink); background: var(--surface-2); overflow-wrap: anywhere; }
.scan-link { display: inline-block; margin-top: 6px; font-size: 14px; }
@media (max-width: 900px) {
  .editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 70vh; height: auto; }
  .editor-chat { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 60vh; }
  .code-pane { grid-template-columns: minmax(0, 1fr); }
  .file-list { border-right: 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; }
  .file-list li { flex: 1 1 auto; }
  .toolbar-actions { margin-left: 0; width: 100%; order: 4; }
  .toolbar-actions .btn { flex: 1; }
  .version-pick { flex: 1 1 100%; order: 3; } .version-pick select { max-width: none; width: 100%; }
}

/* ---------- EZ DEFENDER ---------- */
.scan-form { display: flex; flex-direction: column; gap: 14px; border-width: 2px; }
.scan-form .h3 { font-size: 24px; letter-spacing: -.03em; }
.scan-row { display: flex; gap: 0; }
.scan-row input { flex: 1; font-size: 18px; min-height: 58px; border-right: 0; }
.scan-row .btn { min-height: 58px; }
@media (max-width: 600px) { .scan-row { flex-direction: column; gap: 10px; } .scan-row input { border-right: 1px solid var(--ink); } }
.inline-form { display: flex; gap: 0; margin-top: 16px; }
.inline-form input { flex: 1; border-right: 0; }
.plain-list, .site-list, .scan-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.site-list li, .scan-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.site-list li > a { text-decoration: none; }
.site-list li .muted { flex: 1; }
.scan-list a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.scan-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alerts { border-width: 2px; border-style: solid; }
.alerts .h3::before { content: ''; }

/* Grades: meaning carried by shape, not color. A = solid, B = outline, C = dashed, D = dotted, F = double. */
.grade { display: inline-grid; place-items: center; font: 600 18px var(--sans); letter-spacing: -.04em; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); }
.grade-sm { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
.grade-lg { width: 120px; height: 120px; font-size: 54px; flex-shrink: 0; }
.grade-aplus, .grade-a { background: var(--ink); color: var(--bg); }
.grade-c { border-style: dashed; }
.grade-d { border-style: dotted; border-width: 3px; }
.grade-f { border-style: double; border-width: 6px; }
.grade-sm.grade-f { border-width: 5px; }
.back-link { display: inline-block; color: var(--ink); text-decoration: none; margin-bottom: 20px; font: 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.report-head { display: flex; gap: 32px; align-items: center; border-width: 2px; }
.report-meta { min-width: 0; flex: 1; }
.report-head form { margin: 0; }
@media (max-width: 700px) { .report-head { flex-direction: column; align-items: flex-start; } }
.c-fail, .c-warn { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.check details { border-bottom: 1px solid var(--border); }
.check summary { display: flex; align-items: center; gap: 14px; padding: 14px 0; cursor: pointer; list-style: none; min-height: 56px; }
.check summary:hover .check-title { text-decoration: underline; }
.check summary::-webkit-details-marker { display: none; }
.check-icon { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border: 1.5px solid var(--ink); }
.check-title { flex: 1; font-weight: 500; color: var(--ink); }
.check-tag { font: 11.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.check-pass .check-icon { background: var(--ink); color: var(--bg); }
.check-fail .check-icon { border-width: 3px; border-style: double; }
.check-fail .check-title { font-weight: 600; }
.check-fail .check-tag { color: var(--ink); font-weight: 600; }
.check-warn .check-icon { border-style: dashed; }
.check-info .check-icon { border-color: var(--border); color: var(--muted); }
.check-body { padding: 0 0 18px 42px; }
.check-body p { color: var(--muted); }
.fix { border: 1px solid var(--ink); border-left-width: 4px; padding: 14px 16px; }
.fix strong { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.fix p { margin: 8px 0 0; color: var(--text); }
@media (max-width: 600px) { .check-body { padding-left: 0; } .check-tag { display: none; } }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 8px; }
.kv dt { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 6px; }
.kv dd { margin: 0; }
code.copy { display: inline-block; background: var(--surface-2); border: 1px dashed var(--ink); padding: 4px 10px; font-size: 13px; cursor: copy; overflow-wrap: anywhere; color: var(--ink); }
code.copy.is-copied { border-style: solid; }
code.copy.is-copied::after { content: ' ✓ copied'; }
@media (max-width: 600px) { .ed-meta span:nth-child(2) { display: none; } }

/* ---------- EZ DEV hero: prompt box ---------- */
.hx { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hx-top { display: flex; align-items: center; gap: 12px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hx-dot { width: 8px; height: 8px; background: var(--ink); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .hx-dot { animation: none; } }
.hx-top-r { margin-left: auto; }
.hx-title { font: 600 clamp(52px, 10.5vw, 168px)/.9 var(--sans); letter-spacing: -.055em; color: var(--ink); margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 48px); max-width: 12ch; }
.hx-title em { letter-spacing: -.02em; }

.hx-box { border: 2px solid var(--ink); background: var(--bg); position: relative; box-shadow: 10px 10px 0 var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.hx-box:focus-within { box-shadow: 14px 14px 0 var(--ink); transform: translate(-2px, -2px); }
.hx { position: relative; isolation: isolate; }
.hx-tabs { display: flex; border: 0; border-bottom: 1px solid var(--ink); margin: 0; padding: 0; min-width: 0; }
.hx-tabs label { flex: 1; position: relative; cursor: pointer; }
.hx-tabs label + label { border-left: 1px solid var(--ink); }
.hx-tabs input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.hx-tabs span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; font: 500 14px var(--sans); color: var(--ink); text-align: center; transition: background .15s, color .15s; }
.hx-tabs label:hover span { background: var(--surface-2); }
.hx-tabs input:checked + span { background: var(--ink); color: var(--bg); }
.hx-tabs input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -5px; }
.hx-input { display: flex; align-items: stretch; }
.hx-input textarea { flex: 1; border: 0; resize: none; min-height: 96px; padding: 22px 24px; font: 400 clamp(18px, 2vw, 24px)/1.35 var(--sans); letter-spacing: -.02em; box-shadow: none !important; }
.hx-box[data-mode="scan"] .hx-input textarea { min-height: 72px; font-family: var(--mono); letter-spacing: 0; }
.hx-go { border: 0; border-left: 1px solid var(--ink); min-width: 180px; }
.hx-box.is-busy .hx-go { opacity: .6; pointer-events: none; }
.hx-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 24px; border-top: 1px solid var(--ink); font-size: 14px; color: var(--muted); }
.hx-kbd { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.hx-index { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.hx-index li + li { border-left: 1px solid var(--rule); }
.hx-index a { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: baseline; padding: 18px 20px 18px 0; text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.hx-index li + li a { padding-left: 20px; }
.hx-index a:hover { background: var(--ink); color: var(--bg); }
.hx-index a:hover .hx-d, .hx-index a:hover .hx-n { color: var(--bg); }
.hx-n { font: 12px var(--mono); color: var(--muted); grid-row: 1 / 3; }
.hx-index strong { font: 600 20px var(--sans); letter-spacing: -.03em; }
.hx-d { grid-column: 2; font-size: 14px; color: var(--muted); }
.hx-index svg { grid-column: 3; grid-row: 1; }

@media (max-width: 760px) {
  .hx-top-r { display: none; }
  .hx-title { font-size: clamp(46px, 14vw, 72px); max-width: none; margin: 16px 0 24px; }
  .hx-box { box-shadow: 6px 6px 0 var(--ink); margin-right: 6px; }
  .hx-box:focus-within { box-shadow: 8px 8px 0 var(--ink); }
  .hx-tabs span { font-size: 13px; padding: 0 6px; min-height: 44px; }
  .hx-input { flex-direction: column; }
  .hx-input textarea { min-height: 88px; padding: 16px; font-size: 18px; }
  .hx-go { border-left: 0; border-top: 1px solid var(--ink); min-height: 56px; width: 100%; }
  .hx-foot { padding: 10px 16px; }
  .hx-kbd { display: none; }
  .hx-index { grid-template-columns: minmax(0, 1fr); }
  .hx-index li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .hx-index a, .hx-index li + li a { padding: 14px 0; }
}
