@property --pct {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@media screen {
  .skip-link {
    position: fixed;
    z-index: 1000;
    inset: 12px auto auto 12px;
    padding: 10px 16px;
    border: 2px solid var(--green);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    transform: translateY(calc(-100% - 16px));
  }

  .skip-link:focus { transform: none; }
  main[tabindex="-1"]:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

  .motion-site .trial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 8px;
    padding-inline: 34px 22px;
  }

  .motion-site .trial-hero h1 { font-size: clamp(32px, 3vw, 44px); }
  .hero-copy { min-width: 0; }
  .hero-orbit { position: relative; min-height: 280px; align-self: stretch; }
  .hero-orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  .hero-orbit::before,
  .hero-orbit::after {
    content: '';
    position: absolute;
    width: 172px;
    height: 172px;
    top: calc(50% - 86px);
    left: calc(50% - 86px);
    border: 1px solid #cce1a426;
    border-radius: 50%;
    transform: rotateX(58deg) rotateZ(-28deg);
    pointer-events: none;
  }

  .hero-orbit::after { transform: rotateY(58deg) rotateZ(28deg); }

  .orbit-brand {
    position: absolute;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding-bottom: 6px;
    border: 1px solid #cce1a44d;
    border-radius: 18px;
    background: #183f34df;
    box-shadow: 0 10px 35px #00000030, 0 0 30px #ddf7ae12;
    color: #ddf7ae;
    font: 800 49px/1 Manrope, sans-serif;
    letter-spacing: -4px;
  }

  .orbit-brand > span { font-size: 27px; margin-left: 2px; }

  .orbit-subject {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #b8d1b938;
    border-radius: 9px;
    background: #244b3fde;
    box-shadow: 0 4px 12px #00000010;
    color: #e8f2e1;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform .3s, border-color .3s, background .3s;
  }

  .orbit-subject span { color: #cce1a4; }
  .orbit-subject:hover { transform: translateY(-4px); background: #315b47; border-color: #cce1a480; }
  .orbit-turkce { top: 5%; right: 3%; }
  .orbit-matematik { top: 24%; left: 0; }
  .orbit-tarih { bottom: 22%; left: 0; }
  .orbit-cografya { bottom: 22%; right: 0; }
  .orbit-vatandaslik { bottom: 0; left: 50%; translate: -50% 0; }

  .motion-site .trial-note {
    background-image: radial-gradient(ellipse at 100% 0%, #cce1a417, transparent 65%);
  }

  .motion-site .trial-note p {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: 9px;
    background: var(--soft);
  }

  .motion-site .trial-note p b {
    color: var(--green);
    background: var(--surface);
    border-radius: 4px;
    padding: 1px 4px;
  }

  .motion-site :is(.hero, .notes-heading, .countdown-feature, .result-banner, .exam-heading) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .motion-site :is(.hero, .notes-heading, .countdown-feature, .result-banner) > :not(canvas, .page-wireframe) {
    position: relative;
    z-index: 1;
  }

  .page-wireframe {
    position: absolute;
    z-index: 0;
    right: -24px;
    top: calc(50% - 150px);
    width: 300px;
    height: 300px;
    opacity: .3;
    pointer-events: none;
  }

  .page-wireframe canvas { width: 100%; height: 100%; }
  .notes-heading .page-wireframe { opacity: .58; }
  .page-wireframe canvas, .hero-orbit canvas { --wireframe-color: 204, 225, 164; }
  :root[data-theme='light'] .notes-heading .page-wireframe { filter: none; opacity: .72; }
  :root[data-theme='light'] .notes-heading canvas { --wireframe-color: 28, 101, 80; }
  :root[data-theme='dark'] .notes-heading canvas { --wireframe-color: 172, 213, 182; }
  .motion-site #na-history-demo .hero { padding: 36px; min-height: 300px; border: 1px solid #3c6351; }
  .motion-site #na-history-demo .hero h1 { font-size: clamp(30px, 3.4vw, 46px); }
  .motion-site #na-history-demo .hero .primary { min-height: 44px; border-radius: 9px; padding: 11px 16px; font-size: 13px; }
  .motion-site #na-history-demo .timeline { border-left: 1px solid #cce1a43b; padding-left: 26px; }
  .motion-site #na-history-demo .timeline > div { padding-block: 10px; color: #dfede1; font-size: 13px; }
  .motion-site #na-history-demo .timeline span { color: #cce1a4; font-size: 10px; letter-spacing: .06em; }
  .motion-site #na-history-demo .section-head { margin-block: 30px 19px; }
  .motion-site #na-history-demo .subjects { gap: 9px; }
  .motion-site #na-history-demo .subject { border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .25s; }
  .motion-site #na-history-demo .subject:hover { border-color: var(--green); transform: translateY(-2px); }
  .motion-site #na-history-demo .subject.selected { background: var(--soft); color: var(--green); border-color: var(--green); }

  .motion-site :is(.topic, .note-card, .source-card, .history-row, .mistake-row, .countdown-grid li) {
    transition: border-color .25s, box-shadow .25s, transform .25s;
  }

  .motion-site #na-history-demo article.topic {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
  }

  .motion-site #na-history-demo article.topic h3 { font-size: 19px; }
  .motion-site #na-history-demo article.topic p { color: var(--muted); font-size: 13px; }
  .motion-site #na-history-demo article.topic .primary { color: var(--green); border: 1px solid var(--line); background: var(--soft); }
  .motion-site #na-history-demo .catalog-note { margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 13px; }
  .motion-site #na-history-demo .catalog-note h2 { color: var(--ink); font-size: 22px; }
  .motion-site .launch-card { width: 100%; max-width: 1080px; margin: 8px auto 24px; padding: clamp(23px, 4vw, 46px); }
  .motion-site .launch-card > h1 { max-width: 25ch; font-size: clamp(30px, 4vw, 43px); }
  .motion-site .launch-card > p { max-width: 80ch; color: var(--muted); font-size: 14px; }
  .motion-site .pilot-test-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .motion-site .pilot-test-button { width: 100%; min-height: 86px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; transition: transform .25s, border-color .25s, background .25s; }
  .motion-site .pilot-test-button strong { display: block; margin-bottom: 6px; font-size: 15px; }
  .motion-site .pilot-test-button span { display: block; color: var(--muted); font-size: 12px; }
  .motion-site .pilot-test-button:hover { transform: translateY(-3px); border-color: var(--green); background: var(--soft); }

  .motion-site .exam-heading { border: 1px solid #3c6351; border-radius: 18px; padding: 25px 30px; background: linear-gradient(125deg, #143c35, #234c3c); color: #eef6ed; }
  .motion-site .exam-heading h1 { color: #eef6ed; font-size: clamp(27px, 3.2vw, 40px); }
  .motion-site .exam-heading p { color: #c8dece; }
  .motion-site .exam-heading .eyebrow { color: #cce1a4; }
  .motion-site .question-card { border-radius: 17px; border-color: var(--line); }
  .motion-site .map-card { border-radius: 16px; border-color: var(--line); }
  .motion-site .option { transition: border-color .2s, background .2s, box-shadow .2s; }
  .motion-site .option .letter { transition: background .2s, color .2s, transform .25s; }
  .motion-site .option.selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
  .motion-site .option.selected .letter { animation: choice-confirm .28s ease-out; }
  .motion-site .question-map button { transition: color .2s, border-color .2s, background .2s, box-shadow .2s; }
  .motion-site .question-map button.current { box-shadow: 0 0 0 3px var(--soft); }
  .motion-site .progress { height: 6px; }
  .motion-site .progress > div { transition: width .35s cubic-bezier(.2,.8,.2,1); }
  .motion-site .save-state { font-size: 12px; }
  .motion-site .stats { gap: 13px; }
  .motion-site .stat { border-radius: 14px; border-color: var(--line); background: var(--surface); color: var(--ink); }
  .motion-site .result-banner { padding: 30px 36px; }
  .motion-site .result-banner h1 { color: #eef6ed; font-size: clamp(29px, 3.6vw, 46px); }
  .motion-site .result-banner .eyebrow { color: #cce1a4; }
  .motion-site .score-ring::before { background: #183e32; }
  .motion-site .result-banner .score-label { color: #dae9da; }
  .motion-site .result-banner .score-label b { color: #ddf7ae; }
  .motion-site .filters { border: 1px solid var(--line); padding: 4px; border-radius: 12px; background: var(--surface); }
  .motion-site .filters button { border-radius: 8px; transition: background .2s, color .2s; }
  .motion-site .filters button.active { color: var(--green); background: var(--soft); }
  .motion-site .review-card { border-radius: 16px; border-color: var(--line); }
  .motion-site .history-row { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .motion-site .history-list { display: grid; gap: 12px; }
  .motion-site .history-score b { color: var(--green); }
  .motion-site .mistake-row { padding: 23px; border-radius: 15px; border-color: var(--line); }
  .motion-site .review-launch { border: 1px solid var(--line); border-radius: 17px; background: var(--soft); color: var(--ink); }
  .motion-site .review-launch h2 { color: var(--ink); }
  .motion-site .review-launch p { color: var(--muted); }
  .motion-site .review-launch .primary { background: #1c6550; border-color: #1c6550; color: #f1f7ef; }
  .motion-site .review-launch .primary:not(:disabled):hover { background: #174f3f; border-color: #174f3f; }
  .motion-site .review-launch .primary:disabled { opacity: 1; background: #dce5d8; border-color: #b8c9b7; color: #4d6256; box-shadow: none; transition: none; }
  :root[data-theme='dark'] .motion-site .review-launch .primary { background: #305844; border-color: #658675; color: #f0f6ef; }
  :root[data-theme='dark'] .motion-site .review-launch .primary:not(:disabled):hover { background: #3b654f; }
  :root[data-theme='dark'] .motion-site .review-launch .primary:disabled { background: #2c4436; border-color: #557260; color: #afc4b2; }
  .motion-site .archive-notice { border-radius: 14px; background: var(--soft); color: var(--ink); border-color: var(--line); }
  .motion-site .archive-filters { margin-bottom: 18px; }
  .motion-site .source-card { padding: 22px; border-radius: 15px; border-color: var(--line); background: var(--surface); }
  :root[data-theme] .motion-site .source-card .source-year { color: var(--green); background: transparent; }
  .motion-site .source-card h3 { color: var(--ink); }
  .motion-site .source-card p { color: var(--muted); }
  .motion-site .source-card .source-link { color: var(--green); }
  .motion-site .archive-notice p { color: var(--muted); }
  .motion-site .archive-filters :is(select, option) { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .motion-site .empty-state { padding: 36px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .motion-site .empty-state h2 { font-size: 23px; }
  .motion-site .countdown-page { width: var(--layout); padding-inline: 0; }
  .motion-site .countdown-number strong { display: inline-block; font-variant-numeric: tabular-nums; perspective: 600px; }
  .motion-site .countdown-feature { padding: clamp(27px, 4vw, 52px); }
  .motion-site .countdown-grid li { padding: 22px; border-radius: 15px; }
  .motion-site .notes-heading { padding-right: min(28vw, 300px); }
  .motion-site .notes-heading h1, .motion-site .note-card h2 { color: var(--ink); }
  .motion-site .notes-heading p, .motion-site .note-card .note-tip, .motion-site .notes-count { color: var(--muted); }
  .motion-site .note-card { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .motion-site .note-card .note-subject, .motion-site .note-card a { color: var(--green); }
  .motion-site .note-card .note-tip { background: var(--soft); }
  .motion-site .notes-filters button { transition: border-color .22s, transform .22s; }
  .motion-site .notes-filters button:hover { transform: translateY(-2px); }
  .motion-site .notes-filters button[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: var(--surface); }
  :root[data-theme='dark'] .motion-site .notes-filters button[aria-pressed='true'] { color: #183e32; }
  .motion-site .document-page { width: min(860px, var(--layout)); padding: clamp(23px, 4vw, 45px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .motion-site:has(#app):not(:has(#home-content)) > :is(.seo-guide, .site-about) { display: none; }
  .motion-site details[open] > :not(summary) { animation: detail-reveal .24s ease-out; }
  .motion-site dialog[open] { animation: detail-reveal .24s ease-out; }
  .motion-site :is(.primary, .secondary) { border-radius: 9px; }

  @keyframes choice-confirm {
    0% { transform: scale(.85); }
    65% { transform: scale(1.07); }
    100% { transform: scale(1); }
  }

  @keyframes detail-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (hover: hover) and (pointer: fine) {
    .motion-site :is(.topic, .note-card, .source-card, .countdown-grid li):hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 8px 22px #183b2d0c; }
  }

  @media (max-width: 1180px) and (min-width: 801px) {
    .motion-site .trial-intro { grid-template-columns: minmax(0, 1.7fr) minmax(255px, 1fr); }
    .motion-site .trial-hero { grid-template-columns: minmax(0, 1fr) 220px; padding-inline: 27px 15px; }
    .motion-site .trial-hero h1 { font-size: 35px; }
    .hero-orbit { min-height: 260px; }
    .orbit-subject { padding-inline: 7px; font-size: 9px; gap: 5px; }
  }

  @media (max-width: 800px) {
    .motion-site .trial-intro { grid-template-columns: minmax(0, 1fr); }
    .motion-site .trial-hero { grid-template-columns: minmax(0, 1fr) 240px; padding: 28px; }
    .motion-site .trial-note { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
    .motion-site .trial-note-top, .motion-site .trial-note h2, .motion-site .trial-note-link { grid-column: 1 / -1; }
    .motion-site .trial-note h2 br { display: none; }
    .motion-site .exam-grid { grid-template-columns: minmax(0, 1fr); }
    .motion-site .score { gap: 15px; }
  }

  @media (max-width: 620px) {
    .motion-site .trial-hero { grid-template-columns: minmax(0, 1fr); padding: 26px; gap: 8px; }
    .motion-site .trial-hero h1 { font-size: clamp(31px, 7.7vw, 41px); }
    .hero-orbit { width: 100%; max-width: 300px; min-height: 220px; margin-inline: auto; }
    .orbit-matematik { left: 0; }
    .orbit-tarih { left: 3%; }
    .orbit-subject { min-height: 37px; font-size: 11px; }
    .motion-site .trial-note { display: flex; }
    .motion-site #na-history-demo .hero { padding: 25px; min-height: 0; }
    .motion-site #na-history-demo .timeline { display: none; }
    .motion-site #na-history-demo .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .motion-site #na-history-demo .section-head { align-items: start; flex-direction: column; }
    .motion-site .pilot-test-list { grid-template-columns: minmax(0, 1fr); }
    .motion-site .exam-heading { padding: 22px; }
    .motion-site .question-card { padding: 20px; }
    .motion-site .question-top { align-items: start; gap: 12px; }
    .motion-site .question-text { font-size: 19px; }
    .motion-site .result-banner { padding: 25px; gap: 25px; }
    .motion-site .result-banner .score-ring { width: 110px; height: 110px; }
    .motion-site .review-head { gap: 12px; }
    .motion-site .filters { flex-wrap: wrap; }
    .motion-site .notes-heading { padding-right: 24px; }
    .motion-site .notes-heading .page-wireframe { right: -90px; opacity: .16; }
    .motion-site .notes-heading p { position: relative; }
  }

  @media (prefers-reduced-motion: reduce) {
    .motion-site *, .motion-site *::before, .motion-site *::after { animation: none !important; transition: none !important; }
    .motion-site .orbit-subject:hover, .motion-site .pilot-test-button:hover,
    .motion-site #na-history-demo .subject:hover { transform: none; }
  }
}
