/* First-paint styles are in index.html. */
.rsa-section { background: #efe7da; border-block: 1px solid var(--rule); }
.rsa-layout, .next-layout { display: grid; grid-template-columns: 1.13fr 1fr; align-items: start; gap: clamp(32px, 7vw, 104px); }
.rsa-notes { border-top: 1px solid #bfaea3; }
.rsa-notes article { padding: 20px 0; border-bottom: 1px solid #bfaea3; }
.rsa-notes article p { margin: 8px 0 10px; color: var(--muted); }
.rsa-example { margin-top: 19px; padding: 15px 18px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); font-size: .94rem; }
.rsa-reveal {
  --keycap-surface: linear-gradient(#f1ab94, #dc856a);
  --keycap-rim: #9d4e3c;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: calc(100% - 7px);
  min-height: 46px;
  margin: 7px 7px 6px 0;
  padding: 7px 14px;
  border: 1px solid var(--keycap-rim);
  border-radius: 6px;
  background: var(--keycap-surface);
  box-shadow: 2px 5px 9px #54291d42;
  color: #2a1812;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.rsa-reveal::-webkit-details-marker { display: none; }
.rsa-reveal:hover { --keycap-surface: linear-gradient(#f7b59e, #e69174); }
.rsa-reveal:focus-visible { outline: 3px solid #26859d; outline-offset: 7px; }
.rsa-reveal-label, .rsa-reveal-indicator { position: relative; z-index: 1; }
.rsa-reveal-indicator { display: grid; place-items: center; flex: 0 0 12px; width: 12px; height: 12px; }
.rsa-reveal-indicator::before, .rsa-reveal-indicator::after { content: ''; grid-area: 1 / 1; border-radius: 1px; background: currentColor; }
.rsa-reveal-indicator::before { width: 10px; height: 2px; }
.rsa-reveal-indicator::after { width: 2px; height: 10px; }
.rsa-example details[open] .rsa-reveal-indicator::after { display: none; }
.rsa-keycap-scene { display: none; }

/* The DOM3D Level 1 prism exposes two fixed faces behind the flat control. */
@supports (perspective: 260px) and (transform-style: preserve-3d) {
  .rsa-reveal { background: transparent; }
  .rsa-keycap-scene {
    display: block;
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    perspective: 260px;
    perspective-origin: calc(100% + 96px) calc(100% + 116px);
    pointer-events: none;
  }
  .rsa-keycap {
    --keycap-depth: 14px;
    position: absolute;
    inset: 0;
    border: 1px solid var(--keycap-rim);
    border-radius: inherit;
    background: var(--keycap-surface);
    box-shadow: inset 0 1px #fff3dd94;
    transform-style: preserve-3d;
  }
  .rsa-keycap::before, .rsa-keycap::after { content: ''; position: absolute; }
  .rsa-keycap::before {
    top: 3px;
    bottom: 1px;
    left: 100%;
    width: var(--keycap-depth);
    border-radius: 0 4px 3px 0;
    background: linear-gradient(90deg, #ac6048, #823f31);
    transform: rotateY(90deg);
    transform-origin: left center;
  }
  .rsa-keycap::after {
    top: 100%;
    right: 0;
    left: 3px;
    height: var(--keycap-depth);
    border-radius: 0 0 4px 4px;
    background: linear-gradient(#99513c, #71372d);
    transform: rotateX(-90deg);
    transform-origin: center top;
  }
}

@media (forced-colors: active) {
  .rsa-keycap-scene { display: none; }
  .rsa-reveal { border-color: ButtonText; background: ButtonFace; color: ButtonText; box-shadow: none; }
  .rsa-reveal:focus-visible { outline-color: Highlight; }
}
.rsa-example details p { margin-top: 7px; }
.rsa-source { margin-top: 12px; }

.fold-section { color: var(--white); background: #1e1513; }
.fold-section .section-eyebrow { color: var(--accent); }
.fold-section .section-deck, .fold-intro > p:not(.eyebrow) { color: #e1cfc4; }
.fold-layout { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(30px, 6vw, 92px); }
.fold-intro > p:not(.eyebrow):not(.section-deck) { margin-top: 18px; font-size: .94rem; }
.fold-intro var { font-family: var(--mono); color: #fff1e4; white-space: nowrap; }
.fold-proof { margin-top: 13px; font-size: .91rem; color: #e1cfc4; }
.fold-proof summary { cursor: pointer; color: #ff9a86; font-weight: 700; }
.fold-proof summary:focus-visible { outline: 3px solid #26859d; outline-offset: 4px; }
.fold-proof p { margin-top: 7px; }
.fold-intro .source-link { margin-top: 17px; color: #ff9a86; }
.fold-intro .source-link:hover { color: var(--white); }
.fold-demo { padding: clamp(17px, 3vw, 32px); border: 1px solid #725147; border-radius: 7px; background: #261b18; }
.fold-demo figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 13px; border-bottom: 1px solid var(--dark-rule); }
.fold-demo figcaption > strong { font: 700 1.48rem/1.1 var(--display); }
.fold-demo figcaption > span { color: #dec8ba; }
.fold-controls { margin-block: 15px; }
.fold-controls button { border-color: #785c53; color: var(--white); }
.fold-controls button:hover { border-color: #e4c5b8; }
.fold-controls button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent); color: #210f0c; }
.fold-grid { display: block; width: 100%; height: auto; aspect-ratio: 21 / 10; }
.swatch-keep { background: #e0b193; }
.swatch-seven { background: #ff765e; }
.swatch-forty-nine { background: #f7d94d; }
.fold-count { display: block; margin-block: 12px 10px; color: #ffe6d6; font-family: var(--mono); font-size: .88rem; }
.fold-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fold-table :is(th, td) { padding: 5px 0; text-align: right; white-space: nowrap; }
.fold-table :is(th, td):first-child { text-align: left; }
.fold-table th { font-weight: 600; }
.fold-table thead { color: #e0c4b6; border-bottom: 1px solid var(--dark-rule); }
.fold-table tfoot { color: #fff2e3; border-top: 1px solid var(--dark-rule); font-weight: 700; }
.swatch { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; }
.fold-note { margin-top: 8px; color: #d7bfb0; font-size: .75rem; }

.logo-feature { display: grid; grid-template-columns: .82fr 1fr; align-items: center; gap: clamp(25px, 4.8vw, 76px); margin-top: clamp(42px, 7vw, 94px); padding: 25px clamp(21px, 5.5vw, 80px); border-radius: 7px; color: var(--ink); background: radial-gradient(ellipse at 20% 54%, #fffdf4, #f0e6d9 69%); }
.logo-feature img { width: min(100%, 335px); height: auto; margin-inline: auto; }
.logo-feature h3 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
.logo-feature p { max-width: 50ch; margin-top: 12px; color: var(--muted); }
.logo-colors { display: flex; flex-wrap: wrap; gap: 9px 15px; list-style: none; padding: 0; margin: 18px 0 0; }
.logo-colors li { display: inline-flex; align-items: center; gap: 7px; font: 600 .83rem/1.1 var(--mono); }
.logo-colors li::before { width: 12px; height: 12px; content: ''; border-radius: 50%; background: #bd6b5e; }
.logo-colors li:nth-child(2)::before { background: #0096a9; }
.logo-colors li:nth-child(3)::before { background: #529863; }

.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.evidence-card { padding: 24px; border: 1px solid var(--rule); border-top: 3px solid #b75644; border-radius: 6px; background: var(--card); }
.evidence-value { margin-bottom: 14px; color: #9b3929; font: 700 clamp(2.1rem, 4vw, 3.5rem)/1 var(--display); letter-spacing: -.08em; }
.evidence-card h3 + p, .exact-check h3 + p { margin-top: 9px; color: var(--muted); font-size: .9rem; }
.exact-check { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 20px 40px; margin-top: 17px; padding: 23px; border: 1px solid var(--rule); border-radius: 6px; background: #efe7da; }
.check-equation p { font: 600 clamp(.79rem,1.45vw,.98rem)/1.55 var(--mono); overflow-wrap: anywhere; }
.check-equation p span { display: inline-block; }
.verify-button { min-height: 40px; gap: 9px; margin-top: 9px; padding: 7px 9px; border-color: #a0877d; background: var(--card); color: var(--ink); font-size: .78rem; }
.verify-button:hover { border-color: var(--ink); }
#product-result { display: inline-block; margin: 7px 0 0 6px; color: #305333; font-size: .79rem; font-weight: 700; }
.cpu-benchmark { margin-top: clamp(33px, 5vw, 58px); }
.cpu-benchmark h3 { font-size: clamp(1.65rem, 3.4vw, 2.65rem); }
.cpu-benchmark > p { max-width: 72ch; margin-top: 9px; color: var(--muted); }
.cpu-benchmark-figure { margin-top: 16px; padding: 13px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.cpu-chart-scroll { overflow-x: auto; }
.cpu-chart-scroll:focus-visible, .cpu-benchmark-details summary:focus-visible { outline: 3px solid #26859d; outline-offset: 3px; }
.cpu-chart-scroll img { width: 100%; min-width: 605px; height: auto; }
.cpu-chart-hint { display: none; }
.cpu-benchmark-figure figcaption { padding: 5px 9px 3px; color: var(--muted); font-size: .84rem; }
.cpu-benchmark-details { margin-top: 12px; padding: 11px 15px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.cpu-benchmark-details summary { width: fit-content; color: var(--copper); font-weight: 700; cursor: pointer; }
.cpu-benchmark-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .85rem; }
.cpu-benchmark-table :is(th, td) { padding: 7px 4px; border-bottom: 1px solid var(--rule); text-align: right; }
.cpu-benchmark-table th:first-child { text-align: left; font-weight: 600; }
.cpu-benchmark-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cpu-benchmark-table th span { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }

@media (max-width: 675px) {
  .cpu-chart-hint { display: block; margin: 0 0 5px 6px; color: var(--muted); font-size: .78rem; }
}

.next-section { border-top: 1px solid var(--rule); background: #efe7da; }
.next-section .button { margin-top: 23px; }
.migration-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #bfaea3; counter-reset: migration; }
.migration-steps li { position: relative; padding: 16px 0 16px 47px; border-bottom: 1px solid #bfaea3; counter-increment: migration; }
.migration-steps li::before { position: absolute; display: grid; place-items: center; left: 0; top: 15px; width: 31px; height: 31px; content: counter(migration); border: 1px solid #aa7969; border-radius: 50%; color: var(--copper); font: 600 .83rem/1 var(--mono); }
.migration-steps p { margin-top: 5px; color: var(--muted); font-size: .92rem; }
.watchlist { margin-top: clamp(36px, 5vw, 68px); padding-top: 25px; border-top: 1px solid #bfaea3; }
.watchlist h3 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.watchlist-items { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 0; margin: 17px 0 0; }
.watchlist-items li { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.watchlist-items .eyebrow { margin-bottom: 8px; }
.watchlist-items h4 { margin: 0; font: 700 1.27rem/1.12 var(--display); letter-spacing: -.025em; }
.watchlist-items p:not(.eyebrow) { margin: 8px 0 13px; color: var(--muted); font-size: .9rem; }
.watchlist-items .source-link { margin-top: auto; }
.site-footer { background: var(--dark); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 83px; }

@media (max-width: 720px) {
  .rsa-layout, .fold-layout, .next-layout, .watchlist-items { grid-template-columns: 1fr; }
  .logo-feature { gap: 12px; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exact-check { grid-template-columns: 1fr; gap: 13px; }
}

@media (max-width: 510px) {
  .evidence-grid, .logo-feature { grid-template-columns: 1fr; }
  .fold-grid { aspect-ratio: 14 / 15; }
  .logo-feature { padding: 18px 19px 25px; }
  .logo-feature img { width: min(100%, 247px); }
}

.fold-byline { margin-top: 13px; font-size: .88rem; color: var(--muted); }
.fold-byline a { color: #ffac99; font-weight: 700; text-underline-offset: .18em; }
.logo-feature > picture { display: block; }

.logo-origin { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.logo-origin > picture { flex: 0 0 76px; }
.logo-origin img { width: 76px; height: 76px; background: var(--card); border: 1px solid var(--rule); border-radius: 5px; }
.logo-origin p { font-size: .87rem; line-height: 1.48; }
.logo-origin .source-link { margin-top: 4px; }
.cpu-setup { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 14px 0 0; padding: 0; }
.cpu-setup div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 4px; }
.cpu-setup dt { color: var(--muted); font-size: .74rem; font-weight: 700; }
.cpu-setup dd { margin: 0; font-size: .83rem; }
.creator-section { padding-block: clamp(43px, 7vw, 81px); border-top: 1px solid var(--rule); background: #eee4d8; }
.creator-profile { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: start; gap: clamp(17px, 3vw, 36px); }
.creator-portrait img { width: 112px; height: 112px; border-radius: 10px; border: 1px solid #d4b8a6; background: #cab5a2; }
.creator-profile .eyebrow { margin-bottom: 9px; }
.creator-profile h2 { font-size: clamp(2rem, 4.3vw, 3.8rem); }
.creator-copy { max-width: 66ch; margin-top: 13px; color: var(--muted); }
.creator-links { display: flex; flex-wrap: wrap; gap: 3px 19px; margin: 11px 0 0; padding: 0; list-style: none; }
.creator-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; }
.footer-inner { flex-wrap: wrap; padding-block: 13px; }
.cpu-benchmark-table th a .external-mark { display: inline; }
.footer-creator { text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 510px) {
  .creator-profile { grid-template-columns: 1fr; }
  .creator-portrait img { width: 104px; height: 104px; }
}

/* CPU results and the same-input comparisons */
.cpu-matched { margin-top: 19px; }
.cpu-matched h4 { margin: 0 0 8px; font-size: 1rem; }
.cpu-match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cpu-match { min-width: 0; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); }
.cpu-match h5 { margin: 0 0 6px; font-size: .95rem; }
.cpu-match h5 span { font-size: .78rem; color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.cpu-match dl { margin: 0; font-size: .86rem; line-height: 1.45; }
.cpu-match dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.cpu-match dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cpu-matched > p, .cpu-table-note { margin-top: 8px; font-size: .83rem; color: var(--muted); }
.cpu-benchmark-table :is(th, td) { vertical-align: top; }
.cpu-benchmark-table :is(th, td):nth-child(2) { text-align: left; }
.cpu-benchmark-table .cpu-device { white-space: normal; overflow-wrap: anywhere; }
.cpu-benchmark-table .cpu-device span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.cpu-benchmark-table .cpu-device .external-mark { display: inline; }
.cpu-benchmark-table .cpu-challenge-row { background: #f4eee3; }
.cpu-benchmark-table .cpu-seconds { font-weight: 650; }
@media (max-width: 600px) {
  .cpu-match-grid { grid-template-columns: 1fr; }
  .cpu-benchmark-details { padding-inline: 9px; }
  .cpu-benchmark-table :is(th, td) { padding: 8px 4px; line-height: 1.3; }
  .cpu-benchmark-table .cpu-device span, .cpu-benchmark-table th span { font-size: .75rem; }
}
