@layer reset, tokens, base, layout, components, utilities;

@layer tokens {
  @font-face {
    font-family: "Geist";
    src: url("/assets/fonts/geist-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Geist Mono";
    src: url("/assets/fonts/geist-mono-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Instrument Serif";
    src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
  }

  :root {
    color-scheme: dark;

    /* Obsidian Dark Surface Hierarchy */
    --bg: #0c0c0b;
    --surface: #141413;
    --surface-subtle: #1b1b19;
    --surface-hover: #242421;

    /* Ink & Borders */
    --ink: #f5f5f3;
    --ink-muted: #949087;
    --outline: #827f77;
    --border: #272725;
    --border-strong: rgba(245, 245, 243, 0.15);
    --top-sheen: rgba(245, 245, 243, 0.14);

    /* Interactive & Semantic */
    --btn-primary-bg: #f5f5f3;
    --btn-primary-ink: #0c0c0b;
    --accent: #60a5fa;
    --accent-solid: #1d4ed8;
    --safe: #34d399;
    --amber: #fbbf24;
    --leak: #f87171;

    /* High-Contrast Light-Canvas Specimen Tokens */
    --paper: #ffffff;
    --paper-canvas: #fafaf9;
    --paper-subtle: #f3f2ee;
    --paper-ink: #141413;
    --paper-muted: #5c5952;
    --paper-border: #e2e1dc;
    --paper-accent: #1d4ed8;

    /* Typography */
    --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Scale & Rhythm */
    --container-max: 1280px;
    --gutter: 32px;
    --section-py: 88px;
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Motion */
    --t-fast: 120ms ease-out;
    --t-surface: 200ms cubic-bezier(0.2, 0, 0, 1);
  }
}

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    min-block-size: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre {
    margin: 0;
  }

  img, svg {
    display: block;
    max-inline-size: 100%;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button, input, select, textarea {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
  }

  ::selection {
    background: var(--accent-solid);
    color: #ffffff;
  }
}

@layer base {
  main {
    flex: 1 0 auto;
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .skip-link {
    position: fixed;
    inset-block-start: -100px;
    inset-inline-start: 16px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-ink);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
  }

  .skip-link:focus {
    inset-block-start: 16px;
  }

  .tabular {
    font-variant-numeric: tabular-nums;
  }

  .mono-sm {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.015em;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }

  .mono-xs {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 0.03em;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
}

@layer layout {
  .container {
    inline-size: 100%;
    max-inline-size: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .section-band {
    border-block-start: 1px solid var(--border);
  }

  .section-pad {
    padding-block: var(--section-py);
  }

  .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-block-end: 36px;
  }

  .section-kicker {
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-block-end: 10px;
  }

  .section-title {
    font-size: clamp(1.65rem, 2.6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--ink);
  }

  .section-lead {
    max-inline-size: 56ch;
    color: var(--ink-muted);
    font-size: 15px;
    margin-block-start: 10px;
  }
}

@layer components {
  /* Sticky Top Header */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    block-size: 64px;
    background: rgba(12, 12, 11, 0.92);
    backdrop-filter: blur(8px);
    border-block-end: 1px solid var(--border);
  }

  .header-inner {
    block-size: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .brand-mark {
    inline-size: 20px;
    block-size: 16px;
    flex-shrink: 0;
  }

  .brand-parent {
    color: var(--ink-muted);
    font-weight: 400;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color var(--t-fast);
  }

  .header-nav a:hover {
    color: var(--ink);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Buttons */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: opacity var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
  }

  .btn-primary:hover {
    opacity: 0.9;
  }

  .btn-tonal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    font-size: 13px;
    font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
  }

  .btn-tonal:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-ink);
    border-color: var(--btn-primary-bg);
  }

  .btn-xs {
    padding: 6px 10px;
    font-size: 12px;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color var(--t-fast);
  }

  .text-link:hover {
    color: var(--accent);
  }

  /* Hero Section */
  .hero {
    padding-block: 64px 80px;
  }

  .hero-masthead {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: end;
    margin-block-end: 48px;
  }

  .hero-left {
    grid-column: span 7;
  }

  .hero-right {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-block-end: 6px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 4.7vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--ink);
  }

  .hero-title-serif {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-muted);
    max-inline-size: 46ch;
  }

  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  /* Hero Interactive Showcase Frame (4/8 split) */
  .stage-frame {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    background: var(--surface);
    border: 1px solid var(--border);
    border-block-start-color: var(--top-sheen);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .stage-rail {
    background: var(--surface-subtle);
    border-inline-end: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
  }

  .stage-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-block-end: 1px solid var(--border);
    color: var(--ink-muted);
    text-transform: uppercase;
  }

  .stage-tabs {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .stage-tab {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-block-end: 1px solid var(--border);
    border-inline-start: 2px solid transparent;
    transition: background var(--t-fast), border-color var(--t-fast);
  }

  .stage-tab:hover {
    background: var(--surface-hover);
  }

  .stage-tab.is-active {
    background: var(--surface);
    border-inline-start-color: var(--accent);
  }

  .stage-tab-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-inline-size: 0;
    flex: 1 1 auto;
  }

  .stage-tab-index {
    color: var(--ink-muted);
    padding-block-start: 2px;
    flex-shrink: 0;
  }

  .stage-tab-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-inline-size: 0;
  }

  .stage-tab-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stage-tab-sub {
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stage-tab-price {
    color: var(--ink);
    flex-shrink: 0;
    white-space: nowrap;
  }

  .stage-rail-foot {
    padding: 14px 18px;
    margin-block-start: auto;
  }

  .stage-main {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
  }

  .stage-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-block-end: 1px solid var(--border);
    background: var(--surface);
  }

  .stage-bar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }

  .stage-bar-sub {
    color: var(--ink-muted);
    margin-inline-start: 10px;
  }

  .stage-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Recessed Specimen Canvas */
  .stage-canvas {
    background: var(--bg);
    padding: 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .specimen-window {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .specimen-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-block-end: 1px solid var(--border);
    background: var(--surface-subtle);
  }

  .chrome-dots {
    display: flex;
    gap: 6px;
  }

  .chrome-dot {
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid var(--outline);
  }

  .chrome-label {
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* High-Contrast Light-Paper Alert Specimen inside Dark Stage */
  .paper-card {
    background: var(--paper);
    color: var(--paper-ink);
    padding: 24px;
  }

  .paper-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-block-end: 14px;
    border-block-end: 1px solid var(--paper-border);
    margin-block-end: 16px;
  }

  .paper-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper-accent);
  }

  .paper-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-muted);
  }

  .paper-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--paper-ink);
    margin-block-end: 6px;
  }

  .paper-sub {
    font-size: 13px;
    color: var(--paper-muted);
    margin-block-end: 18px;
  }

  .paper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: var(--paper-subtle);
    border: 1px solid var(--paper-border);
    border-radius: var(--radius-sm);
    margin-block-end: 18px;
  }

  .paper-kv-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--paper-muted);
    margin-block-end: 4px;
  }

  .paper-kv-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--paper-ink);
    font-variant-numeric: tabular-nums;
  }

  .paper-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--paper-muted);
  }

  .paper-source-url {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-inline-size: 100%;
  }

  /* Filter Toolbar */
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 24px;
  }

  .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-tab {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  }

  .filter-tab:hover {
    color: var(--ink);
    background: var(--surface-hover);
  }

  .filter-tab.is-active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-ink);
    border-color: var(--btn-primary-bg);
  }

  .filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .control-input,
  .control-select,
  .control-textarea {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink);
    transition: border-color var(--t-fast);
  }

  .control-input:focus,
  .control-select:focus,
  .control-textarea:focus {
    outline: none;
    border-color: var(--accent);
  }

  /* Borderless Semantic Ledger Table with Container Query */
  .ledger-wrap {
    container: ledger / inline-size;
    border-block-start: 1px solid var(--border);
  }

  .ledger-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
  }

  .ledger-table thead th {
    padding: 12px 12px 12px 0;
    border-block-end: 1px solid var(--border);
    color: var(--ink-muted);
    text-transform: uppercase;
    font-weight: 500;
  }

  .ledger-table thead th.col-rent,
  .ledger-table thead th.col-actions {
    text-align: right;
  }

  .ledger-table tbody tr {
    border-block-end: 1px solid var(--border);
    transition: background var(--t-fast);
  }

  .ledger-table tbody tr:hover {
    background: var(--surface);
  }

  .ledger-table tbody td {
    padding: 16px 12px 16px 0;
    vertical-align: middle;
  }

  .prop-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
  }

  .prop-sub {
    color: var(--ink-muted);
    margin-block-start: 3px;
  }

  .col-operator,
  .col-type {
    color: var(--ink-muted);
    white-space: nowrap;
  }

  .col-rent {
    text-align: right;
    color: var(--ink);
    white-space: nowrap;
  }

  .col-actions {
    text-align: right;
    white-space: nowrap;
  }

  .col-actions .link-ext {
    margin-inline-start: 12px;
    color: var(--ink-muted);
    transition: color var(--t-fast);
  }

  .col-actions .link-ext:hover {
    color: var(--accent);
  }

  .table-empty {
    padding: 32px 0;
    color: var(--ink-muted);
    text-align: center;
  }

  .ledger-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block-start: 16px;
    color: var(--ink-muted);
  }

  .ledger-foot-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }

  @container ledger (inline-size < 740px) {
    .ledger-table thead {
      display: none;
    }

    .ledger-table,
    .ledger-table tbody,
    .ledger-table tr,
    .ledger-table td {
      display: block;
      width: 100%;
    }

    .ledger-table tbody tr {
      padding-block: 16px;
    }

    .ledger-table tbody td {
      padding: 4px 0;
      text-align: left;
      white-space: normal;
    }

    .col-rent,
    .col-actions {
      text-align: left;
    }

    .col-actions {
      margin-block-start: 10px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }

    .col-actions .link-ext {
      margin-inline-start: 0;
    }
  }

  /* Tenant Application Pack Builder (Asymmetric 5/7 split) */
  .pack-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 28px;
    align-items: start;
  }

  .pack-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-block-start-color: var(--top-sheen);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
  }

  .field-group .control-input,
  .field-group .control-select,
  .field-group .control-textarea {
    inline-size: 100%;
  }

  .checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
  }

  .check-item input[type="checkbox"] {
    accent-color: var(--accent);
    inline-size: 15px;
    block-size: 15px;
    flex-shrink: 0;
  }

  .gdpr-note {
    padding: 14px 16px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-inline-start: 2px solid var(--amber);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
  }

  .gdpr-note strong {
    color: var(--ink);
  }

  /* Live Paper Preview for Application Pack */
  .pack-preview-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-block-start-color: var(--top-sheen);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .pack-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: var(--surface-subtle);
    border-block-end: 1px solid var(--border);
  }

  .pack-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pack-sheet-well {
    background: var(--bg);
    padding: 24px;
  }

  .pack-paper {
    background: var(--paper);
    color: var(--paper-ink);
    border-radius: var(--radius-sm);
    padding: 28px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .pack-paper-subject {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--paper-accent);
    padding-block-end: 12px;
    margin-block-end: 16px;
    border-block-end: 1px solid var(--paper-border);
    word-break: break-word;
  }

  .pack-paper-body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--paper-ink);
    white-space: pre-wrap;
    word-break: break-word;
  }

  .pack-paper-meta {
    margin-block-start: 20px;
    padding-block-start: 14px;
    border-block-start: 1px solid var(--paper-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-muted);
  }

  .copy-feedback {
    color: var(--safe);
    min-block-size: 16px;
  }

  /* 3-Column Hairline Matrix (Zero-Radius Architectural Grid) */
  .matrix-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block-start: 1px solid var(--border);
    border-inline-start: 1px solid var(--border);
  }

  .matrix-cell {
    background: var(--surface);
    padding: 32px;
    border-inline-end: 1px solid var(--border);
    border-block-end: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .matrix-num {
    color: var(--ink-muted);
  }

  .matrix-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
  }

  .matrix-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
  }

  /* Pricing 2-Column Hairline Matrix */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-block-start: 1px solid var(--border);
    border-inline-start: 1px solid var(--border);
  }

  .price-cell {
    background: var(--surface);
    padding: 36px;
    border-inline-end: 1px solid var(--border);
    border-block-end: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .price-cell--featured {
    background: var(--surface-subtle);
  }

  .price-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
  }

  .price-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
  }

  .price-amount {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .price-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-muted);
  }

  .price-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 14px;
  }

  .price-list li::before {
    content: "→ ";
    color: var(--accent);
    font-family: var(--font-mono);
  }

  .price-foot {
    margin-block-start: auto;
    padding-block-start: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ 4/8 Split with Native <details> */
  .faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 40px;
    align-items: start;
  }

  .faq-list {
    border-block-start: 1px solid var(--border);
  }

  .faq-item {
    border-block-end: 1px solid var(--border);
  }

  .faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--ink-muted);
    flex-shrink: 0;
  }

  .faq-item[open] summary::after {
    content: "-";
    color: var(--accent);
  }

  .faq-answer {
    padding-block-end: 20px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.65;
    max-inline-size: 66ch;
  }

  /* Native Modal Dialog */
  dialog.inspect-dialog {
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    inline-size: min(640px, calc(100vw - 32px));
    max-block-size: 88dvh;
    overflow: auto;
  }

  dialog.inspect-dialog::backdrop {
    background: rgba(12, 12, 11, 0.78);
    backdrop-filter: blur(4px);
  }

  .dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-block-end: 1px solid var(--border);
    background: var(--surface-subtle);
  }

  .dialog-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Editorial Footer */
  .site-footer {
    border-block-start: 1px solid var(--border);
    padding-block: 28px;
    color: var(--ink-muted);
    font-size: 13px;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }

  .footer-links a:hover {
    color: var(--ink);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-masthead {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-left,
  .hero-right {
    grid-column: auto;
  }

  .stage-frame {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    border-inline-end: 0;
    border-block-end: 1px solid var(--border);
  }

  .pack-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .matrix-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-py: 64px;
  }

  .header-nav {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .paper-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .stage-canvas,
  .pack-sheet-well {
    padding: 14px;
  }

  .pack-paper,
  .paper-card,
  .matrix-cell,
  .price-cell {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .btn-primary,
  .btn-tonal,
  .filter-tab.is-active {
    border: 1px solid CanvasText;
  }
}

/* Clean A4 Print Stylesheet for 1-Click PDF Application Pack */
@media print {
  body {
    background: #ffffff;
    color: #141413;
  }

  .site-header,
  .hero,
  #live-feed,
  .pack-form-card,
  .pack-toolbar,
  #coverage,
  #pricing,
  #faq,
  .site-footer {
    display: none !important;
  }

  #pack-builder {
    border: 0;
    padding: 0;
  }

  #pack-builder .section-header {
    display: none;
  }

  .pack-grid {
    display: block;
  }

  .pack-preview-frame,
  .pack-sheet-well,
  .pack-paper {
    background: #ffffff;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}
