  :root {
    color-scheme: light;
    --page:        #f9f9f7;
    --surface-1:   #fcfcfb;
    --surface-2:   #f2f1ec;
    --text-primary:   #0b0b0b;
    --text-secondary: #52514e;
    --muted:       #898781;
    --grid:        #e1e0d9;
    --axis:        #c3c2b7;
    --border:      rgba(11,11,11,0.10);
    --accent:      #2a78d6;
    --accent-hover:#1e65b8;
    --accent-wash: rgba(42,120,214,0.10);

    --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
    --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;

    /* spacing tokens (8px scale) */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; --sp-8: 48px;
    --sp-section: 48px;

    /* typography tokens */
    --font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
    --text-xs:  11.5px;
    --text-sm:  13px;
    --text-base: 14.5px;
    --text-lg:  16px;
    --text-xl:  20px;
    --text-2xl: clamp(26px, 4.5vw, 36px);
    --leading-tight: 1.4;
    --leading-normal: 1.7;
    --leading-loose: 1.85;

    /* radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
  }

  * { box-sizing: border-box; }
  html, body { overflow-x: clip; }
  body {
    background: var(--page);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    padding-inline: var(--sp-4);
    padding-block: var(--sp-5) var(--sp-7);
    margin: 0;
  }
  .wrap {
    max-width: 980px; margin: 0 auto;
    display: flex; flex-direction: column; gap: var(--sp-5);
  }

  /* ---- Header / Brand ---- */
  header.app { display: flex; flex-direction: column; gap: var(--sp-2); }
  .brand-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-1); }
  .brand-logo-plate {
    display: inline-flex; align-items: center; background: var(--surface-1);
    border: 1px solid rgba(11,11,11,0.08); border-radius: 10px; padding: 6px 12px;
  }
  .brand-logo { height: 42px; width: auto; display: block; }
  .brand-tagline { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
  header.app p { margin: 0; color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-normal); max-width: 62ch; }
  header.app p.disclaimer { font-size: var(--text-xs); color: var(--muted); max-width: 68ch; }

  /* ---- Indicator selector ---- */
  .indicator-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: var(--sp-1);
  }
  select#indicatorSelect {
    font: inherit; font-size: var(--text-sm); font-weight: 600;
    color: var(--text-primary); background: var(--surface-1);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 7px 10px; cursor: pointer;
  }
  .badge-unit {
    font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px 9px;
  }
  .indicator-note { font-size: 12px; color: var(--muted); }

  /* ---- Panel (card) ---- */
  .panel {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
  }

  /* ---- Search ---- */
  .search-block { position: relative; }
  .search-label {
    font-size: var(--text-xs); font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 var(--sp-2);
  }
  .search-input-row { display: flex; gap: var(--sp-2); align-items: center; }
  .search-field { position: relative; flex: 1; }
  input#companySearch, input#searchInput {
    flex: 1; font: inherit; font-size: var(--text-base);
    padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--page);
    color: var(--text-primary);
  }
  input#companySearch:focus, input#searchInput:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .cap-note { font-size: 12px; color: var(--muted); align-self: center; white-space: nowrap; }

  .search-results {
    position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
    max-height: 260px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  }
  .search-results[hidden] { display: none; }
  .result-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
  }
  .result-row:last-child { border-bottom: none; }
  .result-row:hover, .result-row:focus-visible { background: var(--accent-wash); outline: none; }
  .result-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .result-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .result-meta { font-size: var(--text-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .result-add { font-size: 12px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
  .result-row.is-added .result-add { color: var(--muted); }
  .result-row.is-disabled { opacity: 0.5; cursor: default; }
  .no-results { padding: 14px 12px; font-size: var(--text-sm); color: var(--muted); }

  /* ---- Chips (selected companies) ---- */
  .chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
  .chip {
    display: flex; align-items: flex-start; gap: var(--sp-2);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px 10px 8px 12px; font-size: var(--text-sm); background: var(--page);
    max-width: 100%; flex: 1 1 242px;
  }
  .chip.is-hidden { opacity: 0.45; }
  .chip-swatch {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    margin-top: 5px; cursor: pointer;
  }
  .chip-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .chip-top { display: flex; align-items: baseline; gap: 6px; }
  .chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
  .chip-value { color: var(--text-secondary); font-variant-numeric: tabular-nums; flex-shrink: 0; font-size: 12px; }
  .chip-meta { font-size: var(--text-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chip-btn {
    border: none; background: transparent; color: var(--muted); cursor: pointer;
    font-size: 15px; line-height: 1; padding: 4px; border-radius: 50%; flex-shrink: 0;
  }
  .chip-btn:hover { background: var(--surface-2); color: var(--text-primary); }
  .chip-empty { font-size: var(--text-sm); color: var(--muted); padding-block: var(--sp-1); }

  /* ---- Chart ---- */
  .chart-card { padding: var(--sp-4) var(--sp-4) var(--sp-2); }
  .chart-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap;
    margin-bottom: var(--sp-1);
  }
  .chart-head h2 { font-size: 15px; margin: 0; font-weight: 700; }
  .chart-head .sub { font-size: 12px; color: var(--muted); }

  #chartWrap {
    position: relative; width: 100%; height: 360px; margin-top: var(--sp-2);
    touch-action: pan-y;
  }
  #chartSvg { display: block; width: 100%; height: 100%; }
  #chartSvg text { font-family: inherit; fill: var(--muted); }
  .axis-line { stroke: var(--axis); stroke-width: 1; }
  .grid-line { stroke: var(--grid); stroke-width: 1; }
  .crosshair-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
  .series-path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .series-path.is-interp { opacity: 0.55; }
  .series-dot { stroke: var(--surface-1); stroke-width: 2; }
  .end-label { font-size: 12px; font-weight: 600; fill: var(--text-primary); }
  .end-key { stroke-width: 2; }

  .tooltip {
    position: absolute; pointer-events: none; z-index: 6;
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
    padding: var(--sp-2) 10px; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    min-width: 150px; max-width: 240px;
  }
  .tooltip[hidden] { display: none; }
  .tooltip .tt-year { font-weight: 700; margin-bottom: 5px; color: var(--text-primary); }
  .tt-row { display: flex; align-items: center; gap: 6px; padding-block: 2px; }
  .tt-key { width: 12px; height: 2px; border-radius: 1px; flex-shrink: 0; }
  .tt-name { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tt-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }

  .empty-chart {
    display: flex; align-items: center; justify-content: center; height: 100%;
    color: var(--muted); font-size: var(--text-base); text-align: center; padding: var(--sp-5);
  }

  .chart-legend {
    display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: var(--sp-2) 2px 0;
  }
  .chart-legend:empty { display: none; }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-secondary); }
  .legend-swatch { width: 12px; height: 3px; border-radius: 1px; flex-shrink: 0; }
  .legend-swatch.is-bench { background: none !important; border-top: 2px dashed var(--text-secondary); height: 0; }
  .legend-note { font-size: var(--text-xs); color: var(--muted); margin: 10px 2px 4px; }

  /* ---- Data table ---- */
  details.table-toggle { margin-top: var(--sp-1); }
  details.table-toggle > summary {
    cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--text-primary);
    padding: 4px 2px; list-style: none; display: flex; align-items: center; gap: 6px;
  }
  details.table-toggle > summary::-webkit-details-marker { display: none; }
  details.table-toggle > summary::before { content: "▸"; font-size: var(--text-xs); color: var(--muted); transition: transform .15s; }
  details.table-toggle[open] > summary::before { transform: rotate(90deg); }

  .table-scroll { overflow-x: auto; margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; }
  table.data-table { border-collapse: collapse; width: 100%; font-size: 12.5px; white-space: nowrap; }
  table.data-table th, table.data-table td {
    padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
  }
  table.data-table th:first-child, table.data-table td:first-child {
    text-align: left; position: sticky; left: 0; background: var(--surface-1);
    font-variant-numeric: normal;
  }
  table.data-table td.meta-cell, table.data-table th.meta-cell {
    text-align: left; color: var(--text-secondary); font-variant-numeric: normal;
  }
  table.data-table thead th { color: var(--muted); font-weight: 600; background: var(--surface-1); }
  table.data-table tbody tr:last-child td { border-bottom: none; }
  .table-name-cell { display: flex; align-items: center; gap: 7px; font-weight: 600; }
  .table-swatch { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

  .status-line { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }

  footer.app-footer {
    font-size: var(--text-xs); color: var(--muted); text-align: center;
    padding: var(--sp-5) 0 var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-1);
  }
  footer.app-footer p { margin: 0; }
  .footer-links { display: flex; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
  .footer-links a { color: var(--accent); text-decoration: none; }
  .footer-links a:hover { text-decoration: underline; }
  .footer-sep { color: var(--muted); }

  .result-row.is-locked { cursor: pointer; }
  .result-row.is-locked .result-add { color: var(--s2); }

  /* ---- Upsell banner ---- */
  .upsell {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
    margin-top: var(--sp-3); padding: 12px var(--sp-4); border-radius: 10px;
    background: var(--accent-wash); border: 1px solid var(--border);
  }
  .upsell p { margin: 0; font-size: 12.5px; color: var(--text-secondary); max-width: 46ch; }
  .upsell-btn {
    flex-shrink: 0; font: inherit; font-size: var(--text-sm); font-weight: 700;
    color: #fff; background: var(--accent); border: none; border-radius: var(--radius-sm);
    padding: 10px 16px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s;
  }
  .upsell-btn:hover { background: var(--accent-hover); }
  .upsell-btn[aria-disabled="true"] { background: var(--muted); cursor: default; pointer-events: none; }
  .upsell-btn.ghost {
    background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
  }
  .upsell-btn.ghost:hover { background: var(--surface-2); color: var(--text-primary); }
  .upsell-btn.ghost[aria-disabled="true"] { background: transparent; color: var(--muted); }

  .export-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
  .export-note { font-size: var(--text-xs); color: var(--muted); }

  /* ---- Catalog grid ---- */
  .catalog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
    margin-top: 10px;
  }
  .catalog-card {
    border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 5px; background: var(--page);
    height: 100%;
  }
  .catalog-card.is-free { border-color: var(--accent); }
  .catalog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
  .catalog-name { font-size: var(--text-sm); font-weight: 700; line-height: var(--leading-tight); flex: 1 1 auto; min-width: 0; }
  .catalog-tag { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; }
  .catalog-tag.free { color: var(--accent); background: var(--accent-wash); }
  .catalog-tag.locked { color: var(--muted); background: var(--surface-2); }
  .catalog-summary { font-size: var(--text-xs); color: var(--muted); line-height: var(--leading-tight); }
  .catalog-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-top: var(--sp-4); padding: var(--sp-4) 18px; border-radius: var(--radius-md);
    background: var(--accent-wash); border: 1px solid var(--border);
  }
  .catalog-cta p { margin: 0; font-size: var(--text-base); font-weight: 700; color: var(--text-primary); max-width: 48ch; line-height: 1.5; }
  .catalog-cta .upsell-btn { font-size: var(--text-base); padding: 12px 20px; }

  .chip-flags { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
  .chip-note-flag { font-size: var(--text-xs); color: var(--muted); cursor: help; }
  .chip-locked-flag {
    font-size: 10.5px; color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted);
  }
  .chip-locked-flag:hover { color: var(--text-primary); }

  td.note-cell { text-align: left; font-variant-numeric: normal; vertical-align: top; }
  .note-text {
    white-space: pre-line; max-width: 320px; max-height: 4.6em; overflow-y: auto;
    line-height: 1.5; padding-right: 2px;
  }
  td.locked-cell { text-align: left; font-variant-numeric: normal; }
  td.locked-cell a { color: var(--muted); text-decoration: underline; }

  /* ---- Benchmark ---- */
  .bench-row {
    display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
    margin-top: 14px; padding-top: var(--sp-3); border-top: 1px solid var(--border);
  }
  .bench-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
  .bench-key { width: 18px; height: 0; border-top: 2px dashed var(--text-secondary); display: inline-block; }
  .bench-row select, .mesh-controls select {
    font: inherit; font-size: 12.5px; color: var(--text-primary); background: var(--page);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; max-width: 100%;
  }
  .bench-toggle { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; cursor: pointer; }
  .bench-link {
    font: inherit; font-size: 12px; color: var(--accent); background: none; border: none;
    padding: 2px 0; cursor: pointer; text-decoration: underline;
  }
  .bench-link[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
  .bench-info { font-size: var(--text-xs); color: var(--muted); flex-basis: 100%; }
  .bench-path { fill: none; stroke: var(--text-secondary); stroke-width: 2; stroke-dasharray: 6 4; }
  .bench-dot { fill: var(--text-secondary); }
  .tt-key.is-bench { background: none !important; height: 0; border-top: 2px dashed var(--text-secondary); }
  tr.bench-tr td { color: var(--text-secondary); font-style: italic; }

  /* ---- Mesh table ---- */
  .mesh-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: var(--sp-2); }
  .mesh-controls label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
  .mesh-note { font-size: var(--text-xs); color: var(--muted); margin: var(--sp-2) 2px 0; line-height: 1.5; }
  table.mesh-table { border-collapse: collapse; width: 100%; font-size: 12px; white-space: nowrap; }
  table.mesh-table th, table.mesh-table td {
    padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
  }
  table.mesh-table thead th {
    color: var(--muted); font-weight: 600; background: var(--surface-1); cursor: pointer;
    position: sticky; top: 0; z-index: 1;
  }
  table.mesh-table thead th:hover { color: var(--text-primary); }
  table.mesh-table thead th.is-sorted { color: var(--accent); }
  table.mesh-table th:first-child, table.mesh-table td:first-child {
    text-align: left; position: sticky; left: 0; background: var(--surface-1); font-weight: 600; z-index: 2;
  }
  table.mesh-table thead th:first-child { z-index: 3; }
  table.mesh-table tr.mesh-total td { font-weight: 700; border-bottom: 2px solid var(--axis); }
  td.mesh-cell { cursor: pointer; }
  td.mesh-cell:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
  td.mesh-cell.is-thin { color: var(--muted); }
  td.mesh-cell.is-empty { color: var(--muted); cursor: default; }
  td.mesh-cell.is-empty:hover { outline: none; }
  td.mesh-cell.is-bench { outline: 2px solid var(--text-secondary); outline-offset: -2px; }
  .mesh-n { font-size: 10px; color: var(--muted); margin-left: 3px; font-weight: 400; }
  #meshScroll { max-height: 520px; overflow: auto; }

  /* ---- Hero (LP) ---- */
  header.hero { gap: var(--sp-5); padding-block: var(--sp-5) var(--sp-4); }
  .hero-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center;
  }
  .hero-text { display: flex; flex-direction: column; gap: var(--sp-2); }
  .hero-visual { display: flex; justify-content: center; align-items: center; }
  .hero-img { width: 100%; max-width: 520px; height: auto; }
  .hero-title {
    margin: var(--sp-3) 0 0; font-size: var(--text-2xl); line-height: 1.25; font-weight: 800;
    letter-spacing: -0.02em; text-wrap: balance;
  }
  .hero-title em { font-style: normal; color: var(--accent); }
  header.app p.hero-lead {
    font-size: var(--text-base); max-width: 60ch; line-height: var(--leading-loose);
    margin-top: var(--sp-2);
  }
  .hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
  .cta-primary, .cta-secondary {
    font: inherit; font-size: var(--text-base); font-weight: 700; border-radius: var(--radius-sm);
    padding: 14px 28px; text-decoration: none; display: inline-flex; align-items: center;
    justify-content: center; gap: 6px; transition: all .2s; min-height: 48px;
  }
  .cta-primary {
    color: #fff; background: var(--accent);
    box-shadow: 0 2px 12px rgba(42,120,214,0.3);
  }
  .cta-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 20px rgba(42,120,214,0.4); transform: translateY(-1px); }
  .cta-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cta-secondary { color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--border); }
  .cta-secondary:hover { background: var(--surface-2); }
  .cta-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cta-note { font-size: var(--text-xs); color: var(--muted); margin: 0; }
  .hero-stats {
    list-style: none; margin: var(--sp-5) 0 0; padding: var(--sp-5) 0 0;
    display: flex; gap: var(--sp-7); flex-wrap: wrap;
    border-top: 1px solid var(--border);
  }
  .hero-stats li { font-size: var(--text-sm); color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
  .hero-stats b { font-size: 28px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }

  /* ---- Zebra section backgrounds ---- */
  .section-alt {
    background: rgba(42,120,214,0.04);
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
    padding-block: var(--sp-section);
  }
  .section-alt .section-head { margin-top: 0; }

  /* ---- Hero blob background ---- */
  header.hero {
    position: relative; overflow: hidden; isolation: isolate;
  }
  header.hero::before, header.hero::after {
    content: ""; position: absolute; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    pointer-events: none; z-index: 0;
    animation: hero-blob 25s ease-in-out infinite alternate;
  }
  header.hero::before {
    width: 350px; height: 350px; top: -80px; right: 5%;
    background: rgba(42,120,214,0.25); filter: blur(60px); opacity: 0.3;
  }
  header.hero::after {
    width: 250px; height: 250px; bottom: -60px; left: 10%;
    background: rgba(100,180,240,0.2); filter: blur(50px); opacity: 0.28;
    animation-delay: -12s; animation-direction: alternate-reverse;
  }
  header.hero > * { position: relative; z-index: 1; }
  @keyframes hero-blob {
    0%   { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; transform: translate(0, 0) scale(1); }
    33%  { border-radius: 55% 45% 40% 60% / 60% 50% 50% 40%; transform: translate(20px, -15px) scale(1.05); }
    66%  { border-radius: 45% 55% 60% 40% / 40% 60% 45% 55%; transform: translate(-15px, 10px) scale(0.97); }
    100% { border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%; transform: translate(10px, -5px) scale(1.02); }
  }
  @media (prefers-reduced-motion: reduce) {
    header.hero::before, header.hero::after { animation: none; }
  }
  @media (max-width: 520px) {
    header.hero::before { width: 200px; height: 200px; }
    header.hero::after { display: none; }
  }

  /* ---- Section headings ---- */
  .section-head {
    display: flex; flex-direction: column; gap: var(--sp-2);
    margin: 0 2px var(--sp-5);
  }
  .section-kicker { font-size: var(--text-xs); font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
  .section-head h2 { margin: 0; font-size: var(--text-xl); font-weight: 800; line-height: var(--leading-tight); }
  .section-head p { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); max-width: 64ch; }

  /* ---- Use cases ---- */
  .usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-3); }
  .usecase {
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: var(--sp-4);
  }
  .usecase h3 { margin: 0 0 var(--sp-2); font-size: var(--text-base); }
  .usecase p { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

  /* ---- Plans ---- */
  .plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
  .plan {
    background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .plan.is-featured {
    border: 2px solid var(--accent); position: relative;
    box-shadow: 0 4px 24px rgba(42,120,214,0.15);
    transform: scale(1.02);
  }
  .plan-tag {
    align-self: flex-start; font-size: 10.5px; font-weight: 700; color: #fff;
    background: var(--accent); border-radius: 999px; padding: 3px 10px;
  }
  .plan h3 { margin: 0; font-size: var(--text-lg); }
  .plan-price { font-size: var(--text-sm); color: var(--text-secondary); }
  .plan-price b { font-size: 24px; color: var(--text-primary); }
  .plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
  .plan li { font-size: var(--text-sm); line-height: 1.5; padding-left: 22px; position: relative; color: var(--text-secondary); }
  .plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
  .plan li.is-plus { color: var(--text-primary); font-weight: 600; }
  .plan .upsell-btn, .plan .cta-secondary { text-align: center; justify-content: center; width: 100%; }
  .plan .cta-secondary { font-size: var(--text-sm); padding: 10px 14px; }

  a.catalog-card { text-decoration: none; color: inherit; }
  a.catalog-card:hover, .catalog-card.is-free:hover { border-color: var(--accent); }
  .catalog-card.is-free { cursor: pointer; }
  .catalog-go { font-size: var(--text-xs); font-weight: 700; color: var(--accent); margin-top: 2px; }

  /* ---- FAQ ---- */
  .faq { display: flex; flex-direction: column; gap: var(--sp-2); }
  .faq details {
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: var(--sp-4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .faq summary { cursor: pointer; font-size: var(--text-base); font-weight: 700; line-height: var(--leading-tight); }
  .faq details p { margin: var(--sp-2) 0 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

  /* ---- Registration form ---- */
  .register-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start;
  }
  .register-left {
    display: flex; flex-direction: column; gap: var(--sp-5); align-items: stretch;
  }
  .register-left .section-head { margin: 0; align-self: stretch; }
  .register-visual { display: flex; justify-content: center; align-items: center; }
  .register-img { width: 100%; max-width: 340px; height: auto; }
  .register-panel {
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: var(--sp-5);
  }
  .register-form { display: flex; flex-direction: column; gap: var(--sp-3); }
  .form-message { text-align: center; margin-top: var(--sp-3); font-size: var(--text-sm); }
  .form-group { display: flex; flex-direction: column; gap: var(--sp-1); }
  .form-group label, .form-group legend {
    font-size: var(--text-sm); font-weight: 600; color: var(--text-primary);
  }
  .form-group input[type="text"],
  .form-group input[type="email"] {
    padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--page); color: var(--text-primary); font-size: var(--text-sm);
    transition: border-color .15s, box-shadow .15s;
    min-height: 42px;
  }
  .form-group input::placeholder { color: var(--muted); opacity: 0.6; }
  .form-group input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
  }
  .form-group fieldset, fieldset.form-group { border: none; padding: 0; margin: 0; }
  .checkbox-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-2); }
  .checkbox-grid label {
    font-size: var(--text-sm); font-weight: 400; color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    min-height: 36px; padding: 6px 12px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--page);
    transition: border-color .15s, background .15s;
  }
  .checkbox-grid label:has(input:checked) {
    border-color: var(--accent); background: var(--accent-wash); color: var(--accent); font-weight: 600;
  }
  .checkbox-grid input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
  .required { color: var(--s8); }
  .form-privacy { font-size: var(--text-xs); color: var(--muted); text-align: center; margin-top: var(--sp-2); }
  .form-privacy a { color: var(--accent); }
  .form-success { color: var(--accent); font-weight: 600; }
  .form-error { color: var(--s8); font-weight: 600; }

  /* Submit button in form */
  .register-form .cta-primary {
    width: 100%; display: block; text-align: center; border: none; cursor: pointer;
    font-size: var(--text-sm); padding: 12px 20px;
  }

  /* ---- Final CTA ---- */
  .final-cta {
    text-align: center; padding: var(--sp-8) var(--sp-6); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-wash), rgba(42,120,214,0.06));
    border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
    margin-top: var(--sp-section);
  }
  .final-cta h2 { margin: 0; font-size: clamp(18px, 4vw, 22px); font-weight: 800; line-height: 1.5; }
  .final-cta p { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); }
  .final-cta .bench-link { font-size: var(--text-sm); }

  .disclaimer { font-size: var(--text-xs); color: var(--muted); margin: 0 2px; line-height: var(--leading-normal); }

  /* ---- Mobile ---- */
  /* ---- Tablet ---- */
  @media (max-width: 900px) {
    .hero-columns { grid-template-columns: 1fr; gap: var(--sp-5); }
    .hero-img { max-width: 360px; }
    .register-layout { grid-template-columns: 1fr; }
    .register-left { position: static; }
    .register-visual { display: none; }
    .plan-grid { grid-template-columns: 1fr; }
    .plan.is-featured { transform: none; }
  }

  /* ---- Mobile ---- */
  @media (max-width: 520px) {
    body { padding-inline: var(--sp-3); }
    .cta-primary, .cta-secondary { flex: 1 1 100%; justify-content: center; padding: 14px 20px; }
    .chip-name { max-width: 140px; }
    #chartWrap { height: 280px; }
    .hero-stats { gap: var(--sp-4); }
    .hero-stats b { font-size: 24px; }
    .plan-grid { gap: var(--sp-3); }
    .hero-img { max-width: 240px; }
    .section-band { padding: var(--sp-6) var(--sp-3); }
    .final-cta { margin-top: var(--sp-6); padding: var(--sp-6) var(--sp-4); }
    .register-panel { padding: var(--sp-4); }
  }

  @media print {
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  }
