@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { font: inherit; cursor: pointer; }
  img, svg { display: block; max-width: 100%; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    color-scheme: dark;
    --paper: #121416;
    --surface: #1C2023;
    --ink: #E4E8E6;
    --muted: #A0AAA6;
    --teal: #85D7BB;
    --line: #414A4E;
    --light: #293635;
    --mint: #85D7BB;
    --dark: #121416;
    --dark-muted: #A0AAA6;
    --secondary: #B7A7DE;
    --success: #91D59A;
    --warning: #E4B769;
    --error: #EE8F94;
    --context-track: #314138;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --sans: var(--mono);
    --serif: var(--mono);
    --radius: 8px;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  h1, h2, h3 { font-weight: 650; text-wrap: balance; }
  h1 { font-size: clamp(44px, 4.65vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
  h2 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.14; letter-spacing: -.045em; }
  h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
  em { font-style: normal; color: var(--teal); }
  p { color: var(--muted); }
  code, pre, .mono { font-family: var(--mono); }
  button { border: 0; }
  :focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
  ::selection { background: var(--mint); color: var(--ink); }
  section[id] { scroll-margin-top: 24px; }
}

@layer components {
  .container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
  .section { padding-block: 96px; }
  .eyebrow, .micro-label { font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--teal); }
  .eyebrow { display: flex; align-items: center; gap: 9px; }
  .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
  .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; top: -100px; left: 16px; padding: 12px 20px; background: var(--teal); color: var(--paper); z-index: 100; }
  .skip-link:focus { top: 12px; }
  .site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 750; line-height: 1.15; letter-spacing: -.05em; }
  .brand-sub { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0; margin-top: 5px; }
  .site-header nav { display: flex; align-items: center; gap: 26px; }
  .site-header nav > a { font-size: 13px; font-weight: 500; padding-block: 12px; }
  .site-header nav > a:hover { color: var(--teal); }
  .menu-toggle { display: none; }
  .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; gap: 18px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 650; line-height: 1.5; transition: background .15s, border-color .15s; }
  .primary, .nav-cta { background: var(--teal); color: var(--paper); border-color: var(--teal); }
  .primary:hover, .nav-cta:hover { background: color-mix(in srgb, var(--teal) 85%, var(--ink)); color: var(--paper) !important; }
  .site-header nav > .nav-cta { padding: 10px 16px; min-height: 44px; font-size: 12px; }
  .outline { background: var(--surface); }
  .outline:hover { background: var(--light); }
  .text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; font-size: 13px; font-weight: 600; text-underline-offset: 5px; }
  .text-link:hover { text-decoration: underline; }

  .hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 64px; padding-block: 72px 64px; }
  .hero > * { min-width: 0; }
  .hero-copy .eyebrow { margin-bottom: 23px; }
  .hero h1 { max-width: 620px; }
  .hero-description { font-size: 18px; line-height: 1.75; max-width: 490px; margin-top: 26px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
  .hero-byline { max-width: 450px; margin-top: 23px; font-size: 13px; line-height: 1.8; }
  .hero-domains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
  .hero-domains span { border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; font-size: 11px; color: var(--muted); background: var(--surface); }
  .hero-visual { background: var(--dark); color: var(--ink); padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none; }
  .visual-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
  .visual-topline .mono { font-family: var(--sans); font-size: 13px; font-weight: 600; }
  .visual-index { color: var(--dark-muted); font: 10px var(--mono); }
  .note-slip, .contract-slip, .files-slip { display: flex; align-items: flex-start; gap: 14px; border-radius: 8px; padding: 17px; }
  .note-slip { background: var(--surface); border: 1px solid var(--line); }
  .stage-no { display: inline-grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 6px; font: 10px var(--mono); color: var(--mint); }
  .hero-visual .micro-label { display: block; color: var(--dark-muted); font-size: 10px; font-weight: 400; margin-bottom: 3px; }
  .hero-visual strong { font-size: 13px; font-weight: 600; }
  .note-slip p { font-size: 12px; line-height: 1.8; color: var(--dark-muted); margin-top: 7px; }
  .note-mark { margin-left: auto; color: var(--mint); font-size: 24px; }
  .vertical-connector { height: 16px; border-left: 1px dashed var(--line); margin-left: 30px; }
  .contract-slip { background: var(--mint); color: var(--paper); }
  .contract-slip .stage-no { color: var(--paper); border-color: var(--paper); }
  .contract-slip .micro-label { color: var(--paper); }
  .contract-slip code { display: block; font-size: 12px; line-height: 1.85; margin-top: 8px; }
  .contract-mark { margin-left: auto; font: 32px var(--mono); color: var(--paper); align-self: center; }
  .flow-stage { margin-top: 22px; }
  .flow-label { display: flex; align-items: center; gap: 14px; }
  .flow-label > .micro-label { margin-left: auto; margin-bottom: 0; }
  .flow-svg { width: 100%; margin-block: 12px 18px; }
  .files-slip { align-items: center; border: 1px solid var(--line); }
  .files-slip > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; flex: 1; }
  .file-types { display: flex; gap: 5px; }
  .file-types span { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; font: 10px var(--mono); color: var(--mint); }
  .file-stack { font-size: 22px; color: var(--mint); }
  .visual-bottomline { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--dark-muted); font-size: 10px; margin-top: 19px; }
  .tiny-dot { width: 5px; height: 5px; background: var(--mint); border-radius: 50%; }
  .principles { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-block: 1px solid var(--line); }
  .principles > span:first-child { font-size: 12px; color: var(--muted); }
  .principles p { color: var(--ink); font-size: 14px; font-weight: 550; }
  .principles > span:not(:first-child) { color: var(--teal); font-size: 13px; }

  .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 38px; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  .section-heading > p { max-width: 390px; font-size: 15px; line-height: 1.8; }
  .products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .product-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .product-card.featured { border-color: var(--teal); background: var(--light); }
  .product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 25px; }
  .product-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--light); color: var(--teal); border: 1px solid var(--line); }
  .product-icon svg { width: 22px; height: 22px; }
  .featured .product-icon { background: var(--context-track); border-color: var(--line); }
  .product-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--teal); }
  .product-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
  .product-purpose { color: var(--teal); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
  .product-card h3 { font-size: 25px; line-height: 1.22; }
  .product-intro { font-size: 14px; line-height: 1.8; margin-top: 16px; }
  .product-card ul { list-style: none; padding: 0; margin-block: 24px; }
  .product-card li { position: relative; padding-left: 21px; margin-bottom: 12px; font-size: 13px; line-height: 1.75; }
  .product-card li:last-child { margin-bottom: 0; }
  .product-card li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); }
  .product-formats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
  .product-formats span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: var(--muted); }
  .product-limit { font-size: 12px; line-height: 1.8; margin-bottom: 26px; }
  .product-bottom { display: flex; flex-direction: column; gap: 20px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 24px; }
  .price { font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -.04em; }
  .price-label { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
  .product-bottom .button { width: 100%; justify-content: space-between; background: var(--surface); }
  .product-bottom .button:hover { background: var(--light); }
  .featured .product-bottom .button { background: var(--teal); color: var(--paper); border-color: var(--teal); }
  .featured .product-bottom .button:hover { background: color-mix(in srgb, var(--teal) 85%, var(--ink)); }
  .evidence-note { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; margin-top: 24px; background: var(--light); border-radius: 8px; }
  .evidence-icon { display: grid; place-items: center; width: 19px; height: 19px; flex-shrink: 0; border: 1px solid var(--teal); border-radius: 50%; font-size: 12px; margin-top: 2px; }
  .evidence-note p { font-size: 12px; line-height: 1.8; }
  .evidence-note strong { color: var(--ink); font-weight: 650; }
  .verified-date { margin-top: 12px; font-size: 11px; }

  .example-section { padding-block: 88px; background: var(--dark); border-block: 1px solid var(--line); }
  .example-workbench { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: none; }
  .workbench-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 28px; background: var(--paper); color: var(--ink); }
  .workbench-header > div { display: flex; align-items: center; gap: 12px; }
  .workbench-header .status-dot { background: var(--mint); }
  .workbench-header strong { font-size: 14px; font-weight: 600; }
  .workbench-id { color: var(--dark-muted); font-size: 11px; border-left: 1px solid var(--line); padding-left: 18px; margin-left: 6px; }
  .synthetic-label { color: var(--mint); font-size: 12px; }
  .tablist { display: flex; gap: 20px; padding-inline: 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .tablist button { display: flex; align-items: center; gap: 9px; min-height: 60px; padding: 14px 12px; margin-bottom: -1px; background: transparent; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; }
  .tablist button span { font: 11px var(--mono); }
  .tablist button[aria-selected=true] { border-color: var(--teal); color: var(--teal); font-weight: 650; }
  .tablist button:hover { background: var(--dark); }
  .tab-panel { padding: 36px; min-height: 405px; }
  .rule-details { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
  .rule-details h3 { margin-top: 12px; font-size: 29px; line-height: 1.2; }
  .rule-details p { max-width: 390px; margin-block: 16px 23px; font-size: 14px; }
  .rule-details .button { font-size: 12px; }
  .copy-status { display: block; min-height: 24px; font-size: 12px; color: var(--teal); margin-top: 8px; }
  .rule-spec { display: flex; flex-direction: column; justify-content: center; }
  .rule-spec > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 15px; border-bottom: 1px solid var(--line); }
  .rule-spec dt { color: var(--muted); font-size: 13px; }
  .rule-spec dd { font: 12px/1.6 var(--mono); text-align: right; }
  .boundary-note { display: flex; gap: 12px; padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .example-disclaimer { display: flex; align-items: flex-start; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .example-footnote { font-size: 12px; max-width: 850px; margin: 18px auto 0; text-align: center; }
  .panel-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 26px; }
  .panel-intro h3 { font-size: 26px; margin-top: 8px; }
  .panel-intro p { font-size: 13px; max-width: 350px; }
  .case-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .case-button { padding: 16px; text-align: left; background: var(--light); border: 1px solid var(--line); border-radius: 7px; }
  .case-button span { display: block; margin-bottom: 5px; font: 11px var(--mono); }
  .case-button strong { font-size: 13px; font-weight: 550; }
  .case-button[aria-pressed=true] { color: var(--paper); background: var(--teal); border-color: var(--teal); }
  .case-button:hover { border-color: var(--teal); }
  .case-detail { margin-top: 22px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; }
  .case-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
  .case-detail-header h4 { font-size: 14px; font-weight: 600; }
  .outcome { flex-shrink: 0; border: 1px solid var(--success); border-radius: 5px; padding: 5px 9px; background: var(--surface); color: var(--success); font-size: 11px; }
  .outcome.no-hit { color: var(--warning); background: var(--surface); border-color: var(--warning); }
  .transaction-table { width: 100%; border-collapse: collapse; font: 12px/1.6 var(--mono); }
  .transaction-table th { text-align: left; font: 12px var(--sans); color: var(--muted); }
  .transaction-table td, .transaction-table th { padding: 11px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .transaction-table th:last-child, .transaction-table td:last-child { text-align: right; }
  .case-detail .excluded { color: var(--error); }
  .case-detail p { font-size: 13px; margin-top: 18px; }
  .file-browser { display: grid; grid-template-columns: 245px minmax(0,1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .file-list { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: var(--light); border-right: 1px solid var(--line); }
  .file-button { min-height: 44px; padding: 10px; border-radius: 5px; font: 11px var(--mono); background: transparent; text-align: left; overflow-wrap: anywhere; }
  .file-button::before { content: '▤'; margin-right: 9px; color: var(--teal); }
  .file-button[aria-pressed=true] { background: var(--teal); color: var(--paper); }
  .file-button[aria-pressed=true]::before { color: var(--paper); }
  .file-button:hover { outline: 1px solid var(--teal); outline-offset: -1px; }
  .file-preview { min-width: 0; background: var(--surface); }
  .file-preview > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 15px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
  .file-preview > div > span:first-child { font-size: 11px; overflow-wrap: anywhere; }
  .download-example { display: inline-flex; align-items: center; min-height: 38px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
  .file-preview pre { margin: 0; padding: 20px; min-height: 290px; max-height: 330px; overflow: auto; font-size: 12px; line-height: 1.85; tab-size: 2; }

  .steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 48px; }
  .steps article { border-top: 1px solid var(--line); padding-top: 24px; }
  .step-number { display: grid; place-items: center; width: 34px; height: 34px; background: var(--light); border-radius: 8px; color: var(--teal); font: 12px var(--mono); }
  .steps h3 { font-size: 23px; margin-block: 24px 15px; }
  .steps p { font-size: 14px; line-height: 1.9; }
  .steps .text-link { margin-top: 17px; }
  .roadmap-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding: 40px; background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); }
  .roadmap-heading .eyebrow { margin-bottom: 14px; }
  .roadmap-heading h2 { font-size: 34px; }
  .roadmap-heading p:last-child { font-size: 13px; margin-top: 18px; }
  .roadmap-list article { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
  .roadmap-list article:first-child { padding-top: 0; }
  .roadmap-list article:last-child { padding-bottom: 0; border: 0; }
  .roadmap-list h3 { font-size: 17px; }
  .roadmap-list p { font-size: 13px; margin-top: 8px; }
  .candidate-label { flex-shrink: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; }
  .about-section { display: grid; grid-template-columns: 130px 1fr; align-items: center; max-width: 850px; gap: 48px; padding-block: 96px; }
  .about-mark { display: grid; place-items: center; height: 130px; position: relative; background: var(--surface); color: var(--mint); border-radius: 8px; font-size: 72px; font-weight: 700; letter-spacing: -.06em; }
  .about-mark span { position: absolute; top: 10px; right: 13px; font-size: 23px; }
  .about-section .eyebrow { margin-bottom: 12px; }
  .about-section h2 { font-size: 34px; }
  .about-section p:not(.eyebrow) { margin-top: 18px; font-size: 15px; line-height: 1.85; }
  .about-links { display: flex; gap: 28px; margin-top: 20px; }
  footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); padding-block: 32px 40px; }
  footer > div { display: flex; align-items: center; gap: 22px; }
  .footer-brand { font-size: 25px; font-weight: 750; letter-spacing: -.04em; }
  .footer-brand span { margin-left: 6px; color: var(--teal); font-size: 17px; }
  footer p { font-size: 12px; line-height: 1.9; }
  .privacy-link { display: inline-block; text-decoration: underline; text-underline-offset: 4px; margin-top: 4px; padding-block: 4px; }
  .privacy-page { max-width: 780px; padding-block: 50px 90px; }
  .privacy-page > .eyebrow { margin-top: 36px; }
  .privacy-page h1 { font-size: clamp(36px,6vw,60px); margin-bottom: 24px; }
  .privacy-page h2 { font-size: 30px; margin: 36px 0 16px; }
  .privacy-page p { margin-bottom: 16px; }
  .privacy-page p a { text-decoration: underline; text-underline-offset: 4px; }
}

@layer responsive {
  @media (max-width: 1100px) {
    .container { width: calc(100% - 56px); }
    .site-header nav { gap: 18px; }
    .site-header nav > .nav-cta { display: none; }
    .hero { gap: 32px; padding-block: 56px; }
    .hero h1 { font-size: 52px; }
    .hero-visual { padding: 20px; }
    .hero-description { font-size: 16px; }
    .product-card { padding: 23px; }
    .product-card h3 { font-size: 22px; }
    .product-label { font-size: 10px; }
    .rule-details { gap: 36px; }
    .section-heading { gap: 36px; }
  }
  @media (min-width: 761px) and (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: 650px; }
    .hero-visual { max-width: 600px; width: 100%; justify-self: center; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .product-card:first-child { grid-column: 1 / -1; }
    .product-card:first-child .product-bottom { flex-direction: row; align-items: center; }
    .product-card:first-child .button { width: auto; }
    .principles > span:first-child { display: none; }
  }
  @media (max-width: 760px) {
    html { scroll-padding-top: 88px; }
    .container { width: calc(100% - 40px); }
    .nav-row { min-height: 74px; }
    .brand { font-size: 23px; }
    .brand img { width: 33px; height: 33px; }
    .brand-sub { font-size: 9px; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; }
    .menu-lines { width: 16px; height: 10px; border-block: 1px solid; position: relative; }
    .menu-lines::after { content: ''; position: absolute; top: 4px; width: 16px; border-top: 1px solid; }
    .site-header nav { display: none; position: absolute; top: 73px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: none; }
    .site-header nav.open { display: flex; }
    .site-header nav > a { min-height: 44px; padding: 10px; font-size: 14px; }
    .site-header nav > .nav-cta { display: flex; margin-top: 8px; }
    .hero { grid-template-columns: 1fr; padding-block: 42px 38px; gap: 36px; }
    .hero h1 { font-size: clamp(40px,9.6vw,62px); max-width: 600px; }
    .hero-copy .eyebrow { margin-bottom: 20px; font-size: 11px; }
    .hero-description { font-size: 16px; margin-top: 22px; }
    .hero-actions { gap: 8px 20px; margin-top: 24px; }
    .hero-actions .button { font-size: 12px; padding-inline: 15px; gap: 12px; }
    .hero-actions .text-link { font-size: 12px; }
    .hero-byline { font-size: 12px; margin-top: 16px; }
    .hero-domains { margin-top: 21px; }
    .hero-domains span { font-size: 10px; }
    .hero-visual { justify-self: center; width: 100%; max-width: 550px; padding: 20px; }
    .visual-index { font-size: 9px; }
    .note-slip, .contract-slip, .files-slip { padding: 15px; gap: 11px; }
    .flow-label > .micro-label { display: none; }
    .contract-slip code { font-size: 11px; }
    .principles { justify-content: center; gap: 8px 10px; padding-block: 20px; }
    .principles > span:first-child { flex-basis: 100%; text-align: center; margin-bottom: 6px; font-size: 11px; }
    .principles p { font-size: 11px; }
    .principles > span:not(:first-child) { font-size: 10px; }
    .section { padding-block: 64px; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading > p { max-width: 550px; font-size: 14px; margin-top: 20px; }
    .section-heading .eyebrow { margin-bottom: 12px; }
    h2 { font-size: 35px; }
    .products-grid { grid-template-columns: 1fr; gap: 18px; }
    .product-card { padding: 26px; }
    .product-card h3 { font-size: 27px; }
    .product-label { font-size: 11px; }
    .product-bottom { flex-direction: row; align-items: center; gap: 20px; }
    .product-bottom .button { width: auto; min-width: 0; font-size: 12px; gap: 10px; padding: 12px; }
    .price { font-size: 30px; }
    .price-label { font-size: 11px; }
    .evidence-note { padding: 18px; }
    .verified-date { font-size: 11px; }
    .example-section { padding-block: 60px; }
    .workbench-header { padding: 18px; gap: 10px; }
    .workbench-id { display: none; }
    .synthetic-label { font-size: 11px; }
    .tablist { padding-inline: 12px; gap: 4px; justify-content: space-between; }
    .tablist button { padding: 14px 8px; gap: 6px; font-size: 12px; min-height: 56px; }
    .tablist button span { font-size: 10px; }
    .tab-panel { padding: 24px 18px; min-height: 0; }
    .rule-details { grid-template-columns: 1fr; gap: 8px; }
    .rule-details h3 { font-size: 27px; }
    .rule-details p { max-width: none; }
    .rule-spec > div { padding-block: 13px; gap: 14px; }
    .rule-spec dt { font-size: 12px; }
    .rule-spec dd { font-size: 11px; }
    .boundary-note, .example-disclaimer, .example-footnote { font-size: 11px; }
    .example-disclaimer { padding: 16px 18px; }
    .example-footnote { text-align: left; }
    .panel-intro { display: block; margin-bottom: 22px; }
    .panel-intro h3 { font-size: 24px; }
    .panel-intro p { max-width: none; margin-top: 14px; }
    .case-picker { grid-template-columns: 1fr 1fr; }
    .case-button { padding: 13px; }
    .case-button strong { font-size: 12px; }
    .case-detail { padding: 14px; }
    .case-detail-header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .case-detail-header h4 { font-size: 13px; }
    .transaction-table { font-size: 10px; }
    .transaction-table th { font-size: 10px; }
    .transaction-table th, .transaction-table td { padding: 9px 3px; }
    .case-detail p { font-size: 12px; }
    .file-browser { grid-template-columns: 1fr; }
    .file-list { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; }
    .file-button { padding: 9px 7px; font-size: 10px; }
    .file-button::before { display: none; }
    .file-preview > div { padding: 10px 12px; }
    .file-preview pre { padding: 14px; font-size: 11px; min-height: 250px; }
    .download-example { font-size: 11px; }
    .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
    .steps article { padding-top: 20px; }
    .steps h3 { margin-top: 18px; font-size: 24px; }
    .roadmap-section { grid-template-columns: 1fr; padding: 26px; gap: 28px; }
    .roadmap-heading h2 { font-size: 31px; }
    .roadmap-list article { gap: 12px; align-items: flex-start; }
    .roadmap-list h3 { font-size: 16px; }
    .roadmap-list p { font-size: 12px; }
    .candidate-label { font-size: 10px; }
    .about-section { grid-template-columns: 1fr; padding-block: 64px; gap: 26px; }
    .about-mark { width: 86px; height: 86px; border-radius: 18px; font-size: 50px; }
    .about-mark span { font-size: 18px; right: 8px; top: 4px; }
    .about-section h2 { font-size: 31px; }
    .about-section p:not(.eyebrow) { font-size: 14px; }
    footer { flex-wrap: wrap; align-items: flex-start; gap: 26px; padding-block: 28px; }
    footer > div { flex-basis: 100%; }
    footer > p { max-width: 240px; }
    footer .text-link { font-size: 12px; }
  }
  @media (max-width: 365px) {
    .container { width: calc(100% - 32px); }
    .hero h1 { font-size: clamp(34px,10.8vw,40px); }
    .hero-visual { padding: 15px; }
    .visual-topline .mono { font-size: 12px; }
    .visual-index { display: none; }
    .note-slip, .contract-slip, .files-slip { padding: 12px; gap: 9px; }
    .hero-visual .micro-label { font-size: 9px; }
    .hero-visual strong { font-size: 12px; }
    .contract-mark { display: none; }
    .contract-slip code { font-size: 10px; }
    .file-stack { display: none; }
    .product-card { padding: 23px; }
    .product-bottom { flex-direction: column; align-items: stretch; }
    .product-bottom .button { width: 100%; }
    .tablist { padding-inline: 6px; }
    .tablist button { padding-inline: 6px; font-size: 11px; gap: 4px; }
    .rule-spec > div { align-items: flex-start; }
    .rule-spec dt { max-width: 145px; }
    .file-list { grid-template-columns: 1fr; }
    .roadmap-list article { flex-direction: column; }
    .principles > span:not(:first-child) { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}

@layer components {
  /* Graphite Mint: accent identifies actions; success identifies live status. */
  .product-label, .product-label::before { color: var(--success); }
  .product-label::before { background: var(--success); }
  .contract-slip code { color: var(--paper); }
  .product-bottom .button:hover { border-color: var(--teal); }
  .featured .product-bottom .button:hover { color: var(--paper); }
  .hero-visual .status-dot, .workbench-header .status-dot { background: var(--success); }
  .case-button[aria-pressed=true]:hover { color: var(--paper); }
  a:hover { text-underline-offset: 5px; }
}
