/* Home page: the answer-sheet hero demo (same for every subject) and the AI section. Uses the site's --ui-* tokens. */


.sheet-wrap{position:relative;padding:28px 0 36px}
.sheet{position:relative;max-width:500px;margin-left:auto;background:var(--ui-surface);color:var(--ui-text);
  border:1px solid var(--ui-border);border-radius:6px;padding:24px 26px 18px 46px;
  box-shadow:0 40px 70px -40px rgba(16,24,40,.45),0 2px 4px rgba(16,24,40,.05)}
/* Registration squares in the corners, as on optically read sheets */
.sheet-corner{position:absolute;width:10px;height:10px;background:var(--ui-text);opacity:.85}
.sheet-corner:nth-of-type(1){top:12px;left:12px}.sheet-corner:nth-of-type(2){top:12px;right:12px}
.sheet-corner:nth-of-type(3){bottom:12px;left:12px}.sheet-corner:nth-of-type(4){bottom:12px;right:12px}

.sheet-head{display:grid;grid-template-columns:1fr auto;gap:6px 18px;align-items:end;padding-bottom:14px;border-bottom:1.5px solid var(--ui-text)}
.sheet-title{margin:0;font-size:1.05rem;font-weight:700;letter-spacing:-.01em}
.sheet-variant{grid-row:span 2;display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--ui-muted)}
.sheet-variant b{width:34px;height:34px;display:grid;place-items:center;border:1.5px solid var(--ui-text);border-radius:4px;font-size:1rem;color:var(--ui-text)}
.sheet-name{display:flex;gap:10px;align-items:baseline;font-size:.78rem;color:var(--ui-muted)}
.sheet-name{min-width:0}
.sheet-name em{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic;font-size:.95rem;color:var(--ui-text);border-bottom:1px dotted var(--ui-muted);padding:0 4px 1px}

.sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;margin-top:14px}
.sheet-row{position:relative;display:flex;align-items:center;gap:6px;height:28px;min-width:0}
/* Timing marks along the left edge, one per row of the first column */
.sheet-col-1 .sheet-row::before{content:"";position:absolute;left:-36px;width:12px;height:4px;background:var(--ui-text);opacity:.8}
.sheet-row .num{width:22px;margin-right:2px;text-align:right;font-size:.74rem;font-variant-numeric:tabular-nums;color:var(--ui-muted)}
.bubble{position:relative;width:22px;height:22px;flex-shrink:0}
.bubble input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer;z-index:1}
.bubble span{position:absolute;inset:0;display:grid;place-items:center;border:1.5px solid color-mix(in srgb,var(--ui-text) 40%,transparent);
  border-radius:50%;font-size:.6rem;font-weight:650;color:var(--ui-muted);transition:background-color .18s,border-color .18s,color .18s,transform .18s var(--ui-ease)}
.bubble input:hover+span{border-color:var(--ui-primary)}
.bubble input:focus-visible+span{outline:2px solid var(--ui-primary);outline-offset:2px}
/* Pencil mark */
.bubble input:checked+span{background:var(--ui-text);border-color:var(--ui-text);color:transparent;transform:scale(1.04)}
/* After checking: right answers turn teal, wrong ones red, and the right bubble of a wrong row is ringed */
.sheet.is-graded .is-right .bubble input:checked+span{background:var(--ui-accent);border-color:var(--ui-accent)}
.sheet.is-graded .is-wrong .bubble input:checked+span{background:var(--ui-danger);border-color:var(--ui-danger)}
.sheet.is-graded .bubble.is-key input:not(:checked)+span{border:2px dashed var(--ui-accent);color:var(--ui-accent)}
.sheet.is-graded .bubble input:checked+span::after{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:.72rem;font-weight:800;line-height:1}
.sheet.is-graded .is-right .bubble input:checked+span::after{content:"✓"}
.sheet.is-graded .is-wrong .bubble input:checked+span::after{content:"✕"}

.sheet-foot{display:flex;align-items:center;gap:16px;margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-border)}
.sheet-score{display:flex;align-items:baseline;gap:6px;font-variant-numeric:tabular-nums}
.sheet-score strong{font-size:1.9rem;line-height:1;letter-spacing:-.03em}
.sheet-score span{font-size:.82rem;color:var(--ui-muted)}
.sheet-percent{margin-left:auto;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ui-accent)}
.sheet-replay{font:inherit;font-size:.8rem;font-weight:600;min-height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--ui-border);background:transparent;color:var(--ui-text);cursor:pointer}
.sheet-replay:hover{border-color:var(--ui-primary);color:var(--ui-primary)}
.sheet-replay:focus-visible{outline:2px solid var(--ui-primary);outline-offset:2px}
.sheet-hint{max-width:500px;margin:12px 0 0 auto;font-size:.82rem;color:var(--ui-muted);text-align:right}

@media(max-width:520px){
  .sheet{padding:20px 16px 16px 30px}
  .sheet-grid{gap:0 12px}
  .sheet-row{gap:4px}
  .sheet-row .num{width:18px}
  .bubble{width:19px;height:19px}
  .sheet-col-1 .sheet-row::before{left:-24px;width:9px}
  .sheet-hint{text-align:left}
}
@media(prefers-reduced-motion:reduce){.bubble span{transition:none}}

/* AI on the home page: the sparkle from the Sinora logo (✦, teal) marks everything the AI does, nothing else uses it. */
:root{--ai:#0d9488;--ai-soft:#dff7f3}
html.dark{--ai:#2dd4bf;--ai-soft:#123a37}

/* In the hero: the chip on the answer sheet and the essay row */
.sheet-ai-chip{position:absolute;z-index:2;top:-16px;left:-22px;margin:0;display:inline-flex;align-items:center;gap:8px;max-width:calc(100% + 22px);
  padding:8px 14px 8px 10px;border-radius:999px;background:var(--ui-surface);border:1px solid var(--ai);color:var(--ui-text);
  font-size:.8rem;font-weight:600;box-shadow:0 14px 30px -16px rgba(13,148,136,.55)}
.ai-mark{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ai);color:#fff;font-size:.78rem;flex-shrink:0}
.sheet-essay{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--ui-border)}
.sheet-essay .num{width:22px;margin-right:2px;text-align:right;font-size:.74rem;font-variant-numeric:tabular-nums;color:var(--ui-muted)}
.sheet-essay-title{font-size:.82rem;font-weight:650}
.sheet-essay-lines{flex:1;height:22px;background:repeating-linear-gradient(to bottom,transparent 0 9px,var(--ui-border) 9px 10px)}
.ai-tag{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--ai-soft);color:var(--ai);font-size:.78rem;font-weight:650;white-space:nowrap}
.ai-tag b{color:var(--ui-text)}
/* The one entrance sequence: the chip shows first (file read), the essay suggestion last (after checking). */
[data-answer-sheet].js-sequence .sheet-ai-chip,[data-answer-sheet].js-sequence .ai-tag{opacity:0;transform:translateY(6px);transition:opacity .4s var(--ui-ease),transform .4s var(--ui-ease)}
[data-answer-sheet].is-imported .sheet-ai-chip,[data-answer-sheet].is-essay-checked .ai-tag{opacity:1;transform:none}

/* The section after the hero */
.ai-section{padding-top:32px}
.ai-grid{display:grid;gap:22px;margin-top:34px}
@media(min-width:900px){.ai-grid{grid-template-columns:1fr 1fr}}
.ai-card{display:flex;flex-direction:column;gap:12px;padding:28px;border-radius:18px;background:var(--ui-surface);border:1px solid var(--ui-border)}
.ai-card h3{margin:0;font-size:1.2rem;letter-spacing:-.02em;line-height:1.3}
.ai-card p{margin:0;color:var(--ui-muted);max-width:34rem}
.ai-card .ai-for{align-self:flex-start;font-size:.76rem;font-weight:650;color:var(--ai);background:var(--ai-soft);padding:4px 10px;border-radius:999px}
.ai-visual{margin-top:auto;padding:18px;border-radius:14px;background:var(--ui-background);border:1px solid var(--ui-border)}
/* Import: a file turns into a recognised exam */
.ai-file{display:flex;align-items:center;gap:12px}
.ai-file-icon{width:38px;height:46px;border-radius:6px;background:var(--ui-surface);border:1px solid var(--ui-border);position:relative;flex-shrink:0}
.ai-file-icon::after{content:"PDF";position:absolute;left:4px;bottom:5px;font-size:.55rem;font-weight:800;color:var(--ui-danger)}
.ai-file strong{display:block;font-size:.9rem}
.ai-file small{color:var(--ui-muted)}
.ai-arrow{display:flex;align-items:center;gap:8px;margin:12px 0 12px 18px;padding-left:16px;border-left:2px dashed var(--ai);color:var(--ai);font-size:.8rem;font-weight:650;min-height:34px}
.ai-found{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ai-found div{padding:10px;border-radius:10px;background:var(--ui-surface);border:1px solid var(--ui-border)}
.ai-found strong{display:block;font-size:1.25rem;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ai-found span{font-size:.76rem;color:var(--ui-muted)}
.ai-types{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ai-types span{font-size:.74rem;font-weight:600;padding:4px 10px;border-radius:999px;border:1px solid var(--ui-border);color:var(--ui-muted)}
/* Essay: criteria and a suggested grade the teacher confirms */
.ai-card .ai-essay-text{font-size:.86rem;color:var(--ui-muted);font-style:italic;border-inline-start:3px solid var(--ui-border);padding-inline-start:10px;margin:0 0 14px}
.ai-criteria{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.ai-criteria li{display:grid;grid-template-columns:8.5rem 1fr auto;gap:10px;align-items:center;font-size:.82rem}
.ai-criteria meter{width:100%;height:8px;-webkit-appearance:none;appearance:none;border:0;border-radius:99px;background:var(--ui-border);overflow:hidden}
.ai-criteria meter::-webkit-meter-bar{background:var(--ui-border);border:0;border-radius:99px;height:8px}
.ai-criteria meter::-webkit-meter-optimum-value,.ai-criteria meter::-webkit-meter-suboptimum-value{background:var(--ai);border-radius:99px}
.ai-criteria meter::-moz-meter-bar{background:var(--ai);border-radius:99px}
.ai-criteria b{font-variant-numeric:tabular-nums;font-size:.8rem}
.ai-decision{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-border)}
.ai-decision .ai-tag{font-size:.85rem}
.ai-decision .fake-btn{margin-left:auto;padding:7px 14px;border-radius:9px;background:var(--ui-primary);color:#fff;font-size:.82rem;font-weight:650}
.ai-decision .fake-btn.quiet{margin-left:0;background:transparent;color:var(--ui-text);border:1px solid var(--ui-border)}
.ai-trust{display:flex;flex-wrap:wrap;gap:10px 28px;margin:26px 0 0;padding:0;list-style:none;font-size:.88rem;color:var(--ui-muted)}
.ai-trust li{display:flex;align-items:center;gap:8px}
.ai-trust li::before{content:"✓";color:var(--ai);font-weight:800}

@media(max-width:520px){
  .sheet-ai-chip{left:-6px;top:-18px;font-size:.74rem}
  .ai-card{padding:20px}
  .ai-criteria li{grid-template-columns:6.5rem 1fr auto}
  .sheet-essay-lines{display:none}
}
@media(prefers-reduced-motion:reduce){[data-answer-sheet].js-sequence .sheet-ai-chip,[data-answer-sheet].js-sequence .ai-tag{opacity:1;transform:none;transition:none}}

/* "nəticəyə." in the hero: a real gradient (the site's .brand-gradient is a flat colour), indigo to the logo's teal. */
.brand-hero h1 .brand-gradient{background:linear-gradient(100deg,#4f6bed 10%,#14b8a6 95%);-webkit-background-clip:text;background-clip:text;color:transparent;
  padding-bottom:.08em}
html.dark .brand-hero h1 .brand-gradient{background-image:linear-gradient(100deg,#a6b5ff 5%,#5eead4 95%)}
@media(forced-colors:active){.brand-hero h1 .brand-gradient{background:none;color:CanvasText}}

/* Fit the whole hero (text, buttons and the full answer sheet) above the fold on laptop and desktop screens. */
.brand-home .sheet-wrap{padding:22px 0 20px}
.brand-home .sheet-row{height:26px}
.brand-home .sheet-hint{margin-top:8px}
/* Desktop: the hero fills the screen below the 97px header and both columns sit on its bottom edge, so the card ends where the screen ends. */
@media(min-width:1024px){.brand-home .brand-hero{min-height:calc(100vh - 97px);min-height:calc(100svh - 97px);align-items:end;padding-top:24px;padding-bottom:68px}.brand-home .sheet-wrap{padding-bottom:0}}
/* Short screens (laptops, 125% scaling): tighten the sheet so the hero fits without scrolling. */
@media(min-width:1024px) and (max-height:820px){
  .brand-home .sheet-wrap{padding:18px 0 0}
  .brand-home .sheet{padding-top:28px;padding-bottom:12px}
  .brand-home .sheet-head{padding-bottom:10px}
  .brand-home .sheet-grid{margin-top:8px}
  .brand-home .sheet-row{height:23px}
  .brand-home .bubble{width:20px;height:20px}
  .brand-home .sheet-essay{margin-top:6px;padding-top:6px}
  .brand-home .sheet-foot{margin-top:8px;padding-top:8px}
  .brand-home .sheet-score strong{font-size:1.6rem}
  .brand-home .sheet-hint{display:none}
}
/* Hero 60px higher than the original layout (desktop: larger bottom padding, the content sits at the bottom);
   capabilities strip 40px lower. Tablets and phones keep at least 12px under the header. */
.brand-home .brand-capabilities{margin-top:40px}
@media(max-width:1023px){.brand-home .brand-hero{padding-top:12px}}
