/* Northora G1 v0.6.2 — Professional polish layer
   Visual-only refinement. No study/test/bank behavior changes. */

@media screen {
  :root{
    --pro-bg:#f6f7fb;
    --pro-surface:#ffffff;
    --pro-ink:#171b2b;
    --pro-muted:#667085;
    --pro-line:#e4e6ee;
    --pro-line-strong:#d7d9e5;
    --pro-brand:#5b4bc7;
    --pro-brand-dark:#4738ab;
    --pro-brand-soft:#f4f1ff;
    --pro-shadow-sm:0 1px 2px rgba(20,24,40,.025),0 5px 16px rgba(20,24,40,.035);
    --pro-shadow-md:0 14px 38px rgba(35,31,66,.075);
    --pro-radius:16px;
  }

  html{background:var(--pro-bg)}
  body{
    background:
      radial-gradient(circle at 11% -8%,rgba(91,75,199,.055),transparent 30rem),
      linear-gradient(180deg,#fbfbfd 0,#f7f8fb 420px,#f6f7fb 100%);
    color:var(--pro-ink);
    letter-spacing:-.003em;
  }

  /* Header */
  .top{
    border-bottom:1px solid rgba(226,228,236,.92);
    background:rgba(255,255,255,.92);
    box-shadow:0 1px 0 rgba(20,24,40,.02);
    backdrop-filter:saturate(145%) blur(16px);
    -webkit-backdrop-filter:saturate(145%) blur(16px);
  }
  .topInner{width:min(1180px,calc(100% - 40px));min-height:66px;gap:24px}
  .brand{color:inherit;text-decoration:none;flex:0 0 auto}
  .brandMark{
    width:37px;height:37px;border-radius:11px;
    background:linear-gradient(145deg,#6c5ad4 0,#5140bd 100%);
    box-shadow:0 6px 16px rgba(75,59,174,.18);
    font-size:18px;letter-spacing:-.04em;
  }
  .brandTitle{font-size:16px;font-weight:780;letter-spacing:-.025em}
  .brandSub{font-size:10.5px;color:#858c9b;margin-top:1px}
  .publicNav{gap:2px;min-width:0}
  .publicNav button,.publicNav a{
    padding:8px 10px;border-radius:8px;
    color:#4a5264;font-size:12px;font-weight:650;white-space:nowrap;
  }
  .publicNav button:hover,.publicNav a:hover{background:#f5f5f9;color:#242a3b}
  .publicNav button:nth-child(2){color:#4e40b7;background:#f7f5ff}
  .publicNav button:nth-child(2):hover{background:#f0edff;color:#41339f}
  .navLang{
    margin-left:4px!important;padding:7px 10px!important;
    border:1px solid #ddd9f0!important;background:#fff!important;color:#5144b3!important;
  }

  /* Main hero */
  .heroV2{
    width:min(1180px,calc(100% - 40px));
    grid-template-columns:minmax(0,1.42fr) minmax(330px,.78fr);
    min-height:226px;margin-top:22px;
    border:1px solid #e3e1ec;border-radius:20px;
    background:#fff;box-shadow:var(--pro-shadow-md);
  }
  .heroCopy{
    display:flex;flex-direction:column;justify-content:center;
    padding:31px 34px 30px 36px;
    background:linear-gradient(105deg,#fbfaff 0,#fff 78%);
  }
  .heroKicker,.sectionEyebrow{
    color:#5d50bf;font-size:10px;font-weight:800;letter-spacing:.12em;
  }
  .heroV2 h1{
    max-width:770px;margin:8px 0 12px;
    font-size:clamp(32px,4.25vw,48px);line-height:1.015;
    font-weight:790;letter-spacing:-.047em;color:#151927;
  }
  .heroV2 .softLine{color:#707789;font-weight:690}
  .heroLead{max-width:760px;margin:0;font-size:14.5px;line-height:1.62;color:#596275}
  .heroMicro{margin-top:16px;gap:6px}
  .heroMicro span{
    padding:5px 9px;border:1px solid #e7e5ed;border-radius:999px;
    background:#fff;color:#60697a;font-size:10px;font-weight:690;
  }
  .heroVisual{background:#eaf0f8}
  .heroVisual:before{width:24%;background:linear-gradient(90deg,#fff 0,rgba(255,255,255,.88) 18%,rgba(255,255,255,0) 100%)}
  .heroVisual:after{
    content:"";position:absolute;inset:0;pointer-events:none;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  }
  .heroVisual img{filter:saturate(.88) contrast(.98)}

  /* Trust / facts */
  .trustStrip,.wrap,.publicFooter{width:min(1180px,calc(100% - 40px))}
  .trustStrip{margin-top:10px}
  .trustGrid{
    border:1px solid #e7e8ee;border-radius:14px;background:rgba(255,255,255,.88);
    box-shadow:var(--pro-shadow-sm);
  }
  .trustItem{padding:12px 16px;border-color:#ececf1}
  .trustValue{font-size:14px;font-weight:760;color:#242a39;letter-spacing:-.015em}
  .trustLabel{font-size:9px;color:#8a91a0;letter-spacing:.035em;text-transform:uppercase}

  /* Section intro and readiness */
  .wrap{padding-bottom:46px}
  .sectionIntro{margin:28px 0 9px}
  .sectionIntro h2{margin:5px 0 4px;font-size:22px;font-weight:760;letter-spacing:-.03em;color:#1b2030}
  .sectionIntro p{max-width:780px;font-size:12.5px;line-height:1.58;color:#757d8c}
  .readiness{
    margin:11px 0 13px;padding:10px 12px;border-radius:11px;
    border-color:#eadca9;background:#fffbef;color:#69604c;font-size:11.5px;line-height:1.55;
  }
  .readiness.good{border-color:#cfe6da;background:#f3faf6;color:#4b6558}
  .readiness.good strong{color:#276c4a}

  /* Core mode cards */
  .modebar{gap:10px;margin:13px 0 10px}
  .modeBtn{
    min-height:133px;padding:16px 17px 17px;
    border:1px solid #e4e6ec;border-radius:15px;
    background:#fff;box-shadow:var(--pro-shadow-sm);
  }
  .modeBtn:before{height:2px;opacity:.82}
  .modeBtn:hover{
    transform:translateY(-2px);border-color:#d4d0e6;
    box-shadow:0 14px 28px rgba(36,31,66,.07);
  }
  .modeBtn.active{border-color:#beb6e9;box-shadow:0 0 0 3px rgba(91,75,199,.06),var(--pro-shadow-sm)}
  .modeTag{
    display:inline-flex!important;width:max-content!important;
    padding:3px 6px;border-radius:5px;background:#f2efff;color:#5849bd!important;
    font-size:8.5px!important;font-weight:800!important;letter-spacing:.1em!important;
  }
  #examBtn .modeTag{background:#eef5fb;color:#386b98!important}
  #mistakesBtn .modeTag{background:#fff5e9;color:#906127!important}
  #printBtn .modeTag{background:#edf8f4;color:#2d7663!important}
  .modeBtn strong{margin:10px 0 5px;font-size:16.5px;font-weight:760;letter-spacing:-.02em}
  .modeBtn span:not(.modeTag){font-size:11px;line-height:1.52;color:#757d8d}
  .modeArrow{right:15px;bottom:12px;font-size:17px;color:#9aa0ae;font-style:normal}

  /* Learning Path / Gallery */
  .learningTools{gap:10px;margin:10px 0 12px}
  .pathLaunch,.galleryLaunch{
    min-height:82px;padding:13px 15px;border:1px solid #e1e3eb;border-radius:14px;
    box-shadow:var(--pro-shadow-sm);background:#fff;
  }
  .pathLaunch{background:linear-gradient(110deg,#faf9ff,#fff 60%)}
  .galleryLaunch{background:linear-gradient(110deg,#f8fbfd,#fff 60%)}
  .pathLaunch:hover,.galleryLaunch:hover{transform:translateY(-1px);border-color:#ccc6e7;box-shadow:0 11px 25px rgba(39,34,70,.065)}
  .pathLaunchIcon,.galleryLaunchIcon{width:40px;height:40px;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(91,75,199,.04)}
  .pathLaunchIcon{background:#efecff}
  .galleryLaunchIcon{background:#eef7fb;color:#347b9e}
  .galleryLaunchText strong{font-size:14px;font-weight:750;letter-spacing:-.015em}
  .galleryLaunchText>span:last-child{font-size:10.5px;line-height:1.45;color:#7a8291}
  .pathEntryProgress{background:#f1effb;color:#5f52b9}

  /* Value cards become supporting, not competing, content */
  .valueGrid{gap:9px;margin:10px 0 22px}
  .valueCard{
    min-height:92px;padding:14px 15px;border:1px solid #e8e9ef;border-radius:12px;
    background:rgba(255,255,255,.7);box-shadow:none;
  }
  .valueCard strong{font-size:12.5px;font-weight:740;color:#343b4b}
  .valueCard p{margin-top:5px;font-size:10.5px;line-height:1.55;color:#858c9a}

  /* Panels and form controls */
  .panel{
    margin:15px 0;padding:21px;border:1px solid #e2e4eb;border-radius:16px;
    background:#fff;box-shadow:0 9px 28px rgba(27,30,49,.045);
  }
  .panel h3{font-size:19px;font-weight:760;letter-spacing:-.025em;color:#1e2433}
  .panel p{color:#727b8b}
  .topicGrid{gap:8px}
  .topicCard{border-color:#e5e7ed;border-radius:10px;padding:11px 12px;background:#fff}
  .topicCard:hover{border-color:#cbc6e5;background:#fbfaff}
  .topicCard.active{border-color:#c4bcec;background:#f8f6ff;box-shadow:inset 0 0 0 1px rgba(91,75,199,.035)}
  .topicCard strong{font-size:12px;font-weight:720}.topicCard span{font-size:10px}
  .studyToolbar,.examHead{margin-top:17px;padding-top:15px;border-top:1px solid #eff0f4}
  .studyControls select,.studyToggle button,.printControls select,.studyJump input,.studyJump button{
    min-height:36px;border-color:#dee1e8;border-radius:8px;background:#fff;color:#495266;font-size:11px;
  }
  .studyToggle button.active{background:#f2efff;border-color:#cec7ee;color:#5143b2}
  .untimed{font-size:11px;color:#7f8795}

  /* Question UI */
  .questionCard{
    margin:12px 0;padding:19px;border:1px solid #e6e7ed!important;border-radius:14px;
    background:#fff;box-shadow:none;
  }
  .questionCard:first-child{border-top:1px solid #e6e7ed!important}
  .qMeta{font-size:8.8px;color:#9299a6;letter-spacing:.085em}
  .q{margin-top:8px;font-size:18px;font-weight:730;line-height:1.48;color:#1d2332}
  .localLine{font-size:13px;line-height:1.55;color:#626c7d}
  .questionMedia img{border-color:#ececf1;border-radius:12px;box-shadow:0 4px 13px rgba(25,28,45,.04)}
  .options{gap:7px}
  .opt{
    min-height:47px;padding:10px 12px;border:1px solid #e1e3e9;border-radius:10px;
    color:#323b4e;background:#fff;
  }
  .opt:hover{border-color:#c9c3e7;background:#fcfbff}
  .opt.selected{border-color:#9e92dd;background:#f6f4ff;box-shadow:0 0 0 2px rgba(91,75,199,.045)}
  .choiceLetter{width:23px;height:23px;background:#fafafa;border-color:#d2d6df;color:#6c7585}
  .opt.selected .choiceLetter{background:#5b4bc7;border-color:#5b4bc7;color:#fff}
  .answer{margin-top:10px;border-color:#d3e8dc;background:#f4faf6;border-radius:10px}
  .answer strong{color:#256746}
  .explain{color:#525d70;line-height:1.62}
  .questionTools{margin-top:8px}
  .reportBtn{font-size:10px;color:#8b92a0}

  /* Buttons */
  .primary,.secondary,.quietDanger,.flashAgain,.flashKnow{
    min-height:38px;border-radius:8px;font-size:11px;font-weight:700;
  }
  .primary{background:#5b4bc7;border-color:#5b4bc7;box-shadow:0 3px 8px rgba(91,75,199,.13)}
  .primary:hover{background:#4c3cb1;border-color:#4c3cb1;box-shadow:0 5px 12px rgba(91,75,199,.16)}
  .secondary{background:#fff;border-color:#dde0e7;color:#4b5568}
  .secondary:hover{background:#fafafe;border-color:#cbc7df}
  .actions{gap:7px}
  .progressBar{height:5px;background:#ececf1}.progressBar>div{background:linear-gradient(90deg,#5b4bc7,#8172dd)}
  .questionNav{gap:5px}.questionNav button{border-radius:7px}

  /* Learning path */
  .pathOverview{border-color:#e5e5ed;border-radius:13px;background:linear-gradient(115deg,#faf9ff,#fff 68%)}
  .pathProgressRing{background:conic-gradient(#5b4bc7 var(--progress,0%),#eceaf4 0)}
  .pathStage{border-color:#e6e7ed;border-radius:13px}
  .pathStageNo{background:#f2efff;color:#5849bd}
  .pathStudyBanner{border-color:#ded9f2;background:#faf9ff}

  /* Gallery / flashcards */
  .galleryPanel{overflow:hidden}
  .galleryTabs{background:#f5f5f8;border-radius:9px;padding:3px}
  .galleryTabs button{border-radius:7px;font-size:10.5px}
  .galleryTabs button.active{background:#fff;box-shadow:0 1px 4px rgba(22,25,40,.08)}
  .galleryTools input{border-color:#dfe2e9;border-radius:9px}
  .signGrid{gap:9px}
  .signTile{padding:10px;border-color:#e6e7ed;border-radius:12px;box-shadow:none}
  .signTile:hover{border-color:#c9c3e7;box-shadow:0 9px 19px rgba(34,30,61,.055)}
  .signImage{background:#f7f8fa;border-radius:9px}
  .flashCard{border-color:#dedbea;border-radius:17px;box-shadow:0 13px 32px rgba(38,33,68,.065)}
  .flashFront{background:linear-gradient(145deg,#fff,#fbfaff)}
  .flashPrompt{background:#f0edff;color:#5949bd}
  .galleryDetail{border-radius:17px;box-shadow:0 28px 80px rgba(17,20,34,.22)}

  /* Mistakes / results */
  .mistakeStat,.weakAreaRow,.resultStat,.reviewRow{border-color:#e4e6ec;border-radius:10px}
  .resultHero{border-color:#e1deef;background:linear-gradient(125deg,#faf9ff,#fff);border-radius:13px}
  .resultHero h3{font-weight:770}

  /* SEO/supporting content */
  .seoHub{
    margin-top:26px;padding:20px;border:1px solid #e6e7ed;border-radius:15px;
    background:rgba(255,255,255,.74);box-shadow:none;
  }
  .seoHub h2{font-size:19px;font-weight:740;letter-spacing:-.02em;color:#282f40}
  .seoHub>p{font-size:11.5px;color:#7c8493}
  .seoLinks{gap:8px}
  .seoLinkCard{padding:12px;border-color:#e7e8ed;border-radius:10px;background:#fff}
  .seoLinkCard:hover{border-color:#cdc7e7;background:#fbfaff}
  .seoLinkCard strong{font-size:11.5px}.seoLinkCard span{font-size:9.7px}
  .seoFaq{border-color:#ededf2}.seoFaq summary{font-size:11px}.seoFaq p{font-size:10.5px}

  /* Footer */
  .publicFooter{padding:20px 0 31px;color:#9a9fac;font-size:10.5px}
  .publicFooter a{color:#727b8b}.publicFooter a:hover{color:#5143b2}

  /* Language gate */
  .gate{
    width:min(1100px,calc(100% - 40px));min-height:calc(100vh - 105px);
    grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr);
    align-items:center;gap:64px;margin:0 auto;padding:48px 0 38px;
  }
  .gate>div:first-child{max-width:600px}
  .gate .heroKicker{margin-top:34px!important}
  .gate h1{
    margin:10px 0 17px;font-size:clamp(38px,5vw,58px);line-height:1.02;
    font-weight:790;letter-spacing:-.05em;color:#161a29;
  }
  .gate h1 span{display:block;margin-top:5px;color:#737a8a;font-weight:650}
  .gate .heroLead{max-width:550px;font-size:15px;line-height:1.68}
  .gate .card{
    padding:20px;border:1px solid #e1dfea;border-radius:18px;background:#fff;
    box-shadow:0 20px 55px rgba(31,28,57,.085);
  }
  .gate .card>strong{display:block;margin:1px 2px 13px;font-size:13px;font-weight:760;color:#2b3141}
  .gate .list{gap:8px}
  .choice{
    min-height:68px;padding:11px 12px;border:1px solid #e5e6ec;border-radius:11px;background:#fff;
  }
  .choice:hover{transform:translateY(-1px);border-color:#c8c2e5;background:#fbfaff;box-shadow:0 8px 18px rgba(40,35,70,.05)}
  .choice .main{gap:11px}
  .code{width:42px;height:42px;border-radius:10px;background:#f0edff;color:#5141b1;font-size:12px;font-weight:800}
  .name{font-size:12.5px;font-weight:730;color:#2d3445}.desc{font-size:10px;color:#8a91a0;margin-top:2px}
  .state{position:relative;font-size:8.5px;font-weight:800;letter-spacing:.08em;color:#3a7c5d}
  .state:before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#55a879;vertical-align:1px}
  .gate .note{margin-top:13px;padding-top:12px;border-top:1px solid #eff0f3;font-size:9.5px;line-height:1.55;color:#9298a4}
  body>.publicFooter{margin:auto}

  /* Plain legal/about pages */
  .plainPage{
    width:min(760px,calc(100% - 36px));margin:58px auto;padding:34px 36px;
    border:1px solid #e3e5eb;border-radius:18px;background:#fff;
    box-shadow:0 14px 38px rgba(25,28,46,.055);
  }
  .plainPage .brand{margin-bottom:28px}
  .plainPage h1{margin:0 0 17px;font-size:31px;font-weight:780;letter-spacing:-.04em;color:#1b2030}
  .plainPage p{font-size:13px;line-height:1.75;color:#616b7c}
  .plainPage a{color:#5143b2;font-weight:650;text-decoration:none}.plainPage a:hover{text-decoration:underline}

  /* SEO guide pages */
  .guidePage{width:min(1020px,calc(100% - 40px));margin:32px auto 56px}
  .breadcrumbs{margin-bottom:12px;color:#9299a7;font-size:9.5px}
  .guideHero{
    padding:34px 36px;border:1px solid #e2e2eb;border-radius:19px;
    background:linear-gradient(115deg,#faf9ff,#fff 72%);box-shadow:var(--pro-shadow-sm);
  }
  .guideHero h1{font-weight:780;letter-spacing:-.045em;color:#171b2a}
  .guideHero p{max-width:800px;font-size:13px;color:#667083}
  .guideCtas a{border-radius:8px;font-size:11px}.primaryLink{background:#5b4bc7}.secondaryLink{border-color:#dedfe7}
  .guideBody{gap:10px;margin-top:11px}
  .guideSection{padding:20px 22px;border-color:#e5e6ec;border-radius:13px;background:#fff}
  .guideSection h2{font-size:18px;font-weight:750;letter-spacing:-.02em}
  .guideSection p,.guideSection li{font-size:11.8px;color:#657083}
  .guideCallout{border-color:#e2def2;border-radius:10px;background:#f9f8ff}

  /* Dialog */
  .reportOverlay,.galleryDetailOverlay{background:rgba(22,24,38,.5);backdrop-filter:blur(5px)}
  .reportModal{border:1px solid rgba(255,255,255,.35);border-radius:17px;box-shadow:0 28px 80px rgba(14,17,30,.22)}

  /* Accessibility / motion */
  button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{
    outline:3px solid rgba(91,75,199,.16);outline-offset:2px;
  }

  @media (max-width:900px){
    .topInner,.heroV2,.trustStrip,.wrap,.publicFooter{width:calc(100% - 28px)}
    .topInner{gap:14px}
    .brandSub{display:none}
    .heroV2{grid-template-columns:minmax(0,1.35fr) minmax(260px,.68fr)}
    .heroCopy{padding:28px 24px 27px 28px}
    .modeBtn{min-height:128px}
    .gate{width:calc(100% - 32px);grid-template-columns:1fr 390px;gap:34px}
  }

  @media (max-width:760px){
    .top{position:sticky}
    .topInner{display:block;padding:11px 0 9px}
    .topInner>.brand{display:flex;margin-bottom:8px}
    .publicNav{display:flex;width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:1px;scrollbar-width:none}
    .publicNav::-webkit-scrollbar{display:none}
    .publicNav button:not(.navLang),.publicNav a{display:block}
    .publicNav button,.publicNav a{flex:0 0 auto}
    .navLang{margin-left:auto!important}
    .heroV2{grid-template-columns:1fr;min-height:0;margin-top:12px}
    .heroCopy{padding:25px 22px 21px}
    .heroVisual{height:136px}
    .heroVisual:before{left:0;right:0;top:0;width:auto;height:40%;background:linear-gradient(180deg,#fff,rgba(255,255,255,0))}
    .heroV2 h1{font-size:clamp(29px,7.5vw,40px)}
    .trustGrid{grid-template-columns:1fr 1fr}
    .trustItem:nth-child(2){border-right:0}.trustItem:nth-child(-n+2){border-bottom:1px solid #ececf1}
    .modebar{grid-template-columns:1fr 1fr}
    .modeBtn{min-height:124px}
    .valueGrid{grid-template-columns:1fr}
    .valueCard{min-height:0}
    .gate{min-height:0;grid-template-columns:1fr;gap:25px;padding:28px 0 24px}
    .gate>div:first-child{max-width:none}.gate .heroKicker{margin-top:24px!important}.gate h1{font-size:clamp(37px,9.5vw,50px)}
    .gate .card{padding:16px}
    .guidePage{width:calc(100% - 28px);margin-top:18px}.guideHero{padding:25px 22px}
  }

  @media (max-width:520px){
    .topInner,.heroV2,.trustStrip,.wrap,.publicFooter{width:calc(100% - 20px)}
    .brandMark{width:34px;height:34px;border-radius:10px}.brandTitle{font-size:15px}
    .publicNav button,.publicNav a{padding:7px 8px;font-size:11px}
    .heroV2{border-radius:16px}.heroCopy{padding:22px 19px 19px}.heroVisual{height:112px}
    .heroV2 h1{font-size:clamp(28px,9.5vw,36px)}.heroLead{font-size:13px}.heroMicro{margin-top:13px}
    .trustItem{padding:10px 11px}.trustValue{font-size:13px}.trustLabel{font-size:8.4px}
    .sectionIntro{margin-top:21px}
    .modebar{grid-template-columns:1fr}.modeBtn{min-height:112px;padding:14px 15px}.modeBtn strong{font-size:15.5px}
    .learningTools{grid-template-columns:1fr}.pathLaunch,.galleryLaunch{min-height:74px}
    .panel{padding:16px;border-radius:14px}.questionCard{padding:15px;border-radius:12px}.q{font-size:16.7px}
    .topicGrid{grid-template-columns:1fr 1fr}
    .studyToolbar,.examHead{align-items:flex-start;flex-direction:column}
    .studyControls{width:100%}.studyControls select{max-width:100%;flex:1}
    .plainPage{width:calc(100% - 24px);margin:24px auto;padding:24px 20px;border-radius:15px}.plainPage h1{font-size:27px}
    .guidePage{width:calc(100% - 20px)}.guideHero,.guideSection{padding:18px}.guideHero{border-radius:15px}
  }

  @media (prefers-reduced-motion:reduce){
    *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
  }
}
