/*
 KLARA FOUNDRY — MIDNIGHT V7 / QUIET REFINEMENT V2
 Private presentation layer over the exact seven-file published release and V1 polish.
 Purpose: fewer competing call-to-actions, restrained navigation rail, crisp touch targets.
 Original HTML copy, links, identifiers, brand glyphs, palette family and JS preserved.
 No sourced/generative new artwork. Remove this link to return to prior private V1 polish.
*/
:root{
  --kq-hairline:rgba(150,177,214,.28);
  --kq-muted:#bdc9df;
  --kq-night:#0b142a;
}
/* The home header previously repeated the same challenge CTA already in the hero. */
body:has(.home-main) .header-cta{display:none}
.site-header{gap:22px}
.top-nav{gap:clamp(16px,2.3vw,31px)}
.top-nav a{font-weight:570;color:#d6deed;font-size:13px}
.top-nav a:hover{color:#7fe0eb}
/* Subpages retain challenge access, but no more 'button in the navigation bar'. */
.header-cta{
 background:transparent;border:0;border-radius:0;box-shadow:none;
 font-weight:570;font-size:12px;text-decoration:underline;
 text-decoration-color:rgba(141,161,201,.57);text-underline-offset:6px;
 padding:8px 2px;min-height:44px;
}
.header-cta:hover{background:none;border:0;color:#8be3eb;text-decoration-color:currentColor}
/* Remove secondary promotional corner callouts, not canonical page text. */
.home-main .hero-corner{display:none}
.home-main .hero::after{opacity:.32}
.home-main .v3-signal-art{opacity:.1}
.home-main .hero-scene{opacity:.47}
.hero .eyebrow{font-weight:560;opacity:.74;letter-spacing:.17em}
.hero h1{font-size:clamp(48px,5.45vw,79px);letter-spacing:-.05em;line-height:1.095}
.hero h1 em{letter-spacing:-.041em}
.hero-summary{max-width:640px;font-size:clamp(16px,1.25vw,18px);line-height:1.52;color:#d9e2f3}
.hero-stage{max-width:630px;color:#b8c8e2;font-size:13px;line-height:1.55}
.hero-actions{margin-top:19px;gap:18px;align-items:center}
/* One clear action: small satin rectangle, no bulky pill/shadow. */
.primary-action,.hero-actions .primary-action{
 border:0;border-radius:9px;
 min-height:46px;padding:10px 20px;
 font-size:13px;font-weight:690;letter-spacing:-.006em;
 background:linear-gradient(105deg,#7bdeeb 0%,#adafe9 67%,#eea3a1 100%);
 color:#0b1a31;
 box-shadow:none;filter:none;transform:none;
 transition:background-color .18s ease,filter .18s ease;
}
.primary-action:hover,.hero-actions .primary-action:hover{
 box-shadow:none;filter:brightness(1.065);transform:none;
}
/* Keep the direct challenge route, but present it as a quiet text link. */
.secondary-action,.hero-actions .secondary-action{
 border:0;background:transparent;border-radius:0;box-shadow:none;
 min-height:44px;padding:8px 4px;
 color:#c5d4eb;font-weight:580;font-size:12.5px;
 text-decoration:underline;text-decoration-color:rgba(180,200,230,.5);
 text-underline-offset:5px;text-decoration-thickness:1px;
 transition:color .18s ease;
}
.secondary-action:hover,.hero-actions .secondary-action:hover{
 background:transparent;border:0;color:#8de5ef;text-decoration-color:currentColor;
}
/* Four choices remain, but read as calm navigation rather than four cards. */
.hero-bottom{max-width:1020px}
.choice-prompt{font-size:10px;font-weight:550;letter-spacing:.18em;color:#9baecc;margin-bottom:12px}
.choice-grid{gap:0;border-block:1px solid var(--kq-hairline)}
.choice-grid .choice{
 background:transparent;border:0;border-left:1px solid var(--kq-hairline);
 border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
 min-height:64px;flex-direction:row;justify-content:flex-start;
 padding:10px 15px;gap:12px;
 font-size:13px;font-weight:590;letter-spacing:.008em;
 transform:none;
 transition:background-color .18s ease,color .18s ease;
}
.choice-grid .choice:first-child{border-left:0}
.choice-grid .choice:hover,.choice-grid .choice:focus-visible{
 transform:none;background:rgba(123,168,208,.085);border-color:var(--kq-hairline);
}
.choice-grid .choice-icon{font-size:19px;flex-shrink:0}
.choice-grid .choice-arrow{position:static;margin-left:auto;font-size:14px;color:#aebbd2}
/* A lighter, precise mobile hamburger instead of another raised card. */
@media(max-width:800px){
  .site-header .menu-button{
    width:44px;height:44px;padding:10px;border-radius:8px;
    background:transparent;border:1px solid rgba(153,173,207,.54);
    box-shadow:none;
  }
  .site-header .menu-button span{background:#d7e8f5}
  .mobile-nav{border-radius:10px;box-shadow:0 16px 32px rgba(3,8,21,.3)}
  .hero h1{font-size:clamp(36px,7.7vw,61px)}
  .hero .eyebrow{font-size:10px}
  .hero-actions{gap:12px}
  .choice-grid{grid-template-columns:1fr;gap:0}
  .choice-grid .choice{
    border-left:0;border-top:1px solid var(--kq-hairline);
    padding:10px 6px;min-height:49px;font-size:14px;
  }
  .choice-grid .choice:first-child{border-top:0}
  .choice-grid .choice-icon{font-size:18px}
}
@media(max-width:520px){
 .hero,.hero-shell{min-height:0}
 .hero-shell{padding:109px 20px 32px;justify-content:flex-start;min-height:100svh}
 .hero-top{margin:0 auto 22px}
 .hero .eyebrow{font-size:9.5px;letter-spacing:.12em}
 .hero h1{font-size:clamp(33px,8.55vw,40px);line-height:1.10;margin:15px 0 15px}
 .hero-summary{font-size:14.5px;line-height:1.52;max-width:350px;margin-bottom:12px}
 .hero-stage{font-size:12.5px;line-height:1.48;max-width:345px}
 .hero-actions{margin-top:17px;gap:3px;flex-direction:column;align-items:center}
 .hero-actions .primary-action{min-height:44px;font-size:13px;padding:10px 18px}
 .hero-actions .secondary-action{min-height:44px;font-size:12px;max-width:100%;padding:11px 4px}
 .hero-bottom{margin-top:0;transform:none}
 .choice-prompt{font-size:9px;letter-spacing:.14em;margin-bottom:10px}
 .choice-grid{border-block-color:rgba(154,181,219,.28)}
 .choice-grid .choice{font-size:13.5px;min-height:49px;padding:9px 5px;gap:13px}
 .choice-grid .choice-arrow{font-size:13px}
 .footer{padding-top:29px;padding-bottom:28px}
}
@media(max-width:375px){
 .site-header{padding:8px 16px}
 .hero-shell{padding:108px 18px 32px;min-height:100svh}
 .hero-top{margin-bottom:19px}
 .hero .eyebrow{font-size:9px;letter-spacing:.10em}
 .hero h1{font-size:clamp(30px,9.2vw,35px);margin:12px 0 13px}
 .hero-summary{font-size:14px;margin-bottom:11px}
 .hero-stage{font-size:12px}
 .choice-grid .choice{min-height:47px;font-size:13px}
}
/* The original V7 had an aggressive 320x700 compression rule. */
@media(max-width:375px) and (max-height:750px){
 .hero,.hero-shell{min-height:0}
 .hero-shell{padding:108px 18px 32px;min-height:100svh;justify-content:flex-start}
 .hero-top{margin:0 auto 19px}
 .hero .eyebrow{font-size:9px;line-height:1.5;letter-spacing:.1em;margin:0}
 .hero h1{font-size:clamp(30px,9.2vw,35px);line-height:1.10;margin:12px 0 13px}
 .hero-summary{font-size:14px;line-height:1.5;margin-bottom:11px}
 .hero-stage{font-size:12px;line-height:1.48}
 .hero-actions{margin-top:14px;gap:2px}
 .hero-actions .primary-action{min-height:44px;padding:10px 17px;font-size:12.5px}
 .hero-actions .secondary-action{min-height:44px;font-size:11.5px}
 .hero-bottom{margin-top:0;transform:none}
 .choice-prompt{font-size:9px;margin-bottom:9px;letter-spacing:.12em}
 .choice-grid{gap:0}
 .choice-grid .choice{font-size:13px;min-height:47px;padding:8px 5px;gap:12px}
 .choice-grid .choice-icon{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
 .choice-grid .choice,.primary-action,.secondary-action,.header-cta{transition:none!important}
}
