/* Polish pass, 2026-11-08. Loaded after rv6-also.css, on index.html only. Sources: dickwu apple-design (HIG),
   make-interfaces-feel-better (Jakub Krehel), apple-design (Emil Kowalski). Polish only:
   no section, drawing, move or copy changed. */

/* ---------- Contrast: small grey text reaches 4.5 to 1 on black ---------- */
.rv6-ch .rv6-cite { color: #8b8b90; }              /* sources line, 3.04 to 6.19 */
.footer.ft .ft-base { color: #7c7c82; }            /* copyright row, 3.31 to 5.06 */
.rv6-menu .rm-legal { color: #7c7c82; }            /* phone menu legal lines, 1.66 to 5.06 */

/* ---------- Keyboard focus: one white ring just off each control ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nh-nav a:focus-visible { outline-offset: -10px; border-radius: 8px; }
.rv6-menu .rm-list a:focus-visible { outline-offset: -2px; }

/* ---------- Press feedback: buttons shrink to .96 while held, links dim ----------
   The scale property is used so no existing transform is overwritten. */
html { -webkit-tap-highlight-color: transparent; }
.rv6-btns .rv6-btn { transition: background-color .2s, border-color .2s, scale .25s cubic-bezier(.2,0,0,1); }
.cl-btns .cl-btn, .nh-bar .nh-cta, .rm-btns a { transition: background-color .2s, scale .25s cubic-bezier(.2,0,0,1); }
.ab-arrows .ab-arrow, .nh-note .nh-note-x, html[data-theme] .nh-bar .burger { transition: background-color .2s, scale .25s cubic-bezier(.2,0,0,1); }
.rv6-btns .rv6-btn:active, .cl-btns .cl-btn:active, .nh-bar .nh-cta:active, .rm-btns a:active,
.ab-arrows .ab-arrow:active, .nh-note .nh-note-x:active, html[data-theme] .nh-bar .burger:active { scale: .96; }
.nh-logo, .nh-nav a, .nh-note a, .rv6-say a, .ab-more, .ft-logo, .ft-nav a, .ft-base a, .rm-list a, .rm-small a { transition: opacity .2s ease-out, color .15s; }
.nh-logo:active, .nh-nav a:active, .nh-note a:active, .rv6-say a:active, .ab-more:active, .ft-logo:active,
.ft-nav a:active, .ft-base a:active, .rm-list a:active, .rm-small a:active { opacity: .6; transition: none; }

/* Hover: the header's blue button takes the closer's hover blue; nav links dim a little;
   the note's close button keeps a visible hover once the header is black. */
@media (hover: hover) {
  .nh-bar .nh-cta:hover { background: #2a48e6; }
  .nh-nav a:hover { color: rgba(255,255,255,.72); }
}
body.scrolled:not(.menu-open) .nh-note-x:hover { background: rgba(255,255,255,.12); }

/* ---------- Hit areas grown with an invisible layer, so nothing moves ---------- */
.rv6-say a, .ab-tx .ab-more, .ft-nav a, .ft-base a { position: relative; }
.rv6-say a::after, .ab-tx .ab-more::after { content: ""; position: absolute; inset: -12px -8px; }  /* about 40px tall */
.ft-nav a::after, .ft-base a::after { content: ""; position: absolute; inset: -6px 0; }            /* half the 12px gap each side */
@media (pointer: coarse) { .nh-note .nh-note-x::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; } }

/* ---------- Type: wrapping, tracking by size, a weight that exists ---------- */
.rv6-mo-cap h2 { text-wrap: balance; }
.rv6-lead p, .ab-tx p, .agents .head p, .ft-about p, .rv6-say p { text-wrap: pretty; }
.agents .head h2, .also .head h2 { letter-spacing: -.04em; }
html .cl-a h2 { letter-spacing: -.04em; }
.rv6-stat b { letter-spacing: -.04em; }
.ab-tx h3 { letter-spacing: -.015em; }
.nh-nav a, .nh-cta { letter-spacing: -.01em; }
.facts .stat { letter-spacing: 0; }
.rv6-cite, .ft-base, .ft-nav b { letter-spacing: .01em; }
/* Figtree has no 300 face here, so 300 drew 400 anyway; 400 stops a Light fallback during load. */
.ab-card .ab-tx p, .ft-about p, .footer.ft .ft-nav, .footer.ft .ft-base { font-weight: 400; }
@media (max-width: 1100px) { .agents .head h2, .also .head h2 { letter-spacing: -.035em; } }
@media (max-width: 700px) {
  .rv6-line { letter-spacing: -.035em; }
  .agents .head h2, .also .head h2 { letter-spacing: -.035em; line-height: 1.08; }
  html .cl-a h2 { letter-spacing: -.035em; line-height: 1.06; }
  .rv6-mo-cap h2 { letter-spacing: -.025em; }
  .rv6-mo.--static .rv6-mo-cap h2 { letter-spacing: -.035em; }
}

/* ---------- Optical padding and nested corners ---------- */
@media (min-width: 701px) {
  .rv6-btns .rv6-btn { padding: 0 20px 0 18px; }   /* the logo side gives up 2px */
  .cl-btns .cl-btn { padding: 0 22px 0 20px; }
}
@media (max-width: 700px) { .nh-cap .nh-cta { border-radius: 10px; } }  /* 16px capsule minus its 6px inset */

/* ---------- Phone menu: same path down and back up, moves at once, settles in .5s ---------- */
.rv6-menu { transition: transform .5s cubic-bezier(.32,.72,0,1), visibility 0s linear .5s; }
body.rv6-menu-open .rv6-menu { transition: transform .5s cubic-bezier(.32,.72,0,1), visibility 0s; }
body.rv6-menu-open .rm-i { transition: opacity .4s cubic-bezier(.2,0,0,1), transform .4s cubic-bezier(.2,0,0,1); transition-delay: calc(.12s + var(--i) * .035s); }

/* The watcher tiles do not animate, so they need no standing layers (66 of them). */
.kb-fill, .kb-sel { will-change: auto; }

/* ---------- Reduce Motion: anchor links jump; the menu fades in place ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-theme] .rv6-menu { transform: none !important; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s !important; }
  html[data-theme] body.rv6-menu-open .rv6-menu { opacity: 1; transition: opacity .2s ease, visibility 0s !important; }
  html[data-theme] .rm-i { opacity: 1; transform: none; }
}

/* ---------- Reduce Transparency: anything see-through over the wave turns solid ---------- */
@media (prefers-reduced-transparency: reduce) { .rv6-btn.--ghost { background: #000; } }
@media (max-width: 700px) and (prefers-reduced-transparency: reduce) {
  .rv6-ch, .agents, .also .ab-card { background: #121317; }
  .nh-logo, .nh-cap { background: #141519; }
  .rv6-btn.--ghost { background: #1c1c1f; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cl-a .cl-btn.cl-ghost { background: #2a44c8; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ab-arrow { background: #18191e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Increase Contrast: greys move toward white, hairlines show ---------- */
@media (prefers-contrast: more) {
  .rv6-cite, .ft-base { color: #a6a6a6; }
  .rm-legal { color: rgba(255,255,255,.7); }
  .rv6-say p, .rv6-stat span, .rv6-mo-cap .k, .rv6-mo-cap p { color: rgba(255,255,255,.85); }
  .rv6-lead p { color: rgba(255,255,255,.9); }
  .head p, .ab-tx p, .ft-about p, .ft-nav a, .ft-base a { color: #c8c8c8; }
  .rv6-line .c { color: #707070; }
  .rv6-btn.--ghost { border-color: rgba(255,255,255,.7); }
  .ab-card { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
  .rm-list .rm-i { border-bottom-color: rgba(255,255,255,.4); }
  .rm-btns a { border-color: rgba(255,255,255,.5); }
}
