/* Cutoff website · colours and type from the Cutoff brand guidelines v2 */
:root {
  --cutoff-red: #F93E35; --ink: #231F20; --crimson: #C42A22; --ember: #FE8741; --blush: #FBE7E4;
  --porcelain: #FAF8F8; --linen: #F1ECE8; --stone: #C9C0BB; --graphite: #5A5254; --white: #fff;
  --gradient: linear-gradient(120deg, #F93E35 0%, #FE8741 100%);
  --series-current-affairs: #2B4C7E; --series-practice: #5B3A5E; --series-tricks: #A8502E;
  --series-visualizer: #2C6B63; --series-static-gk: #4A6340;
  --correct: #2E7D4F; --correct-tint: #E5F0E9; --wrong: #C42A22; --wrong-tint: #FBE7E4;
  --font-display: "Poppins", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif;
  --radius: 24px; --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -36px rgba(35, 31, 32, .35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--porcelain); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 1800px) { html { font-size: 18px; } .wrap { width: min(1360px, 100% - 160px); } }
@media (min-width: 760px) { .wrap { width: min(1200px, 100% - 96px); } }

/* Type */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.06; font-weight: 700; }
h1 { font-size: clamp(34px, 10.4vw, 56px); }
@media (min-width: 760px) { h1 { font-size: clamp(56px, 7vw, 88px); } }
h2 { font-size: clamp(30px, 4.6vw + 12px, 58px); overflow-wrap: break-word; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.hl { color: var(--cutoff-red); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--graphite); max-width: 560px; margin-top: 20px; }
.muted { color: var(--graphite); }
.small { font-size: 14px; }
.label { display: inline-flex; align-items: center; gap: 14px; font: 600 12.5px var(--font-display); letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent, var(--crimson)); }
.label::before { content: ""; width: 32px; height: 1.5px; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font: 600 14px var(--font-display); letter-spacing: .08em; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--cutoff-red); outline-offset: 3px; }
.btn-cta { background: var(--gradient); color: #fff; box-shadow: 0 14px 30px -14px rgba(249, 62, 53, .7); }
.btn-ghost { border: 1.5px solid var(--stone); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--crimson); }
/* Store buttons (iOS + Android) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none; font: 600 18px/1.1 var(--font-display); letter-spacing: -.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store small { display: block; font: 500 11px var(--font-body); letter-spacing: .02em; opacity: .75; margin-bottom: 2px; }
.stores-light .store { background: #fff; color: var(--ink); }
.platforms { margin-top: 16px; font-size: 14.5px; color: var(--graphite); }
.platforms b { color: var(--ink); font-weight: 600; }
.platforms a { color: var(--crimson); }
.platforms-light { color: rgba(255,255,255,.85); }
@media (max-width: 400px) { .store { flex: 1 1 100%; justify-content: center; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 248, .82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: rgba(201, 192, 187, .6); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 88px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }
@media (max-width: 600px) { .nav-inner { height: 72px; } .brand img { height: 50px; } }
.nav-links { display: flex; gap: 28px; margin-left: auto; font: 500 15px var(--font-display); }
.nav-links a { text-decoration: none; color: var(--graphite); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { min-height: 44px; padding: 0 22px; font-size: 13px; }
.menu-cta { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--porcelain); border-bottom: 1px solid var(--stone); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--linen); font-size: 17px; color: var(--ink); }
  .nav-links a.menu-cta { display: flex; margin-top: 16px; border: 0; color: #fff; font-size: 14px; }
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cutline { display: flex; align-items: center; gap: 14px; }
.cutline .rule { flex: 1; height: 2px; background: var(--cutoff-red); transform-origin: left; }
.cutline .flag { font: 600 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--cutoff-red); white-space: nowrap; }
.hero-line { margin-top: 48px; max-width: 560px; }
@keyframes draw { from { transform: scaleX(0); } }
@media (max-width: 480px) { .cutline .flag { white-space: normal; font-size: 11px; } }
@media (max-width: 400px) { .label { letter-spacing: .2em; gap: 10px; font-size: 11.5px; } .label::before { width: 22px; } .btn { padding: 0 22px; } }
/* Landscape phones and short screens: side-by-side hero, phone sized by height */
@media (min-width: 640px) and (max-height: 560px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
  .hero-visual { padding: 24px 0; }
  .phone { width: min(300px, 70vw, 42vh); }
  .nav-inner { height: 64px; } .brand img { height: 46px; }
  .chip { display: none; }
  h1 { font-size: clamp(38px, 5.6vw, 56px); }
  .hero { padding-top: 24px; }
}

.hero-visual { position: relative; display: grid; place-items: center; padding: 40px 0; }
.red-field { position: absolute; inset: 0 0 0 18%; background: var(--cutoff-red); border-radius: 32px; overflow: hidden; }
.red-field .watermark, .cta-band .watermark { position: absolute; width: 360px; right: -80px; bottom: -70px; opacity: .14; }
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 1080 / 2242; padding: 10px; background: var(--ink);
  border-radius: 46px; box-shadow: 0 50px 90px -40px rgba(35, 31, 32, .65); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: #fff; }
.chip { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: #fff; border-radius: 16px;
  font: 500 14px var(--font-body); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.chip-k { font: 600 11px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--series-current-affairs); }
.chip-k.ok { color: var(--correct); }
.chip-a { left: 0; top: 58%; }
.chip-b { right: 2%; bottom: 14%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .chip-a { left: -4px; top: 8%; } .chip-b { right: -4px; bottom: 6%; } .chip { font-size: 13px; padding: 11px 14px; } }

/* Exams marquee */
.exams { border-block: 1px solid var(--stone); background: #fff; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 22px 30px; font: 600 15px var(--font-display); letter-spacing: .14em; color: var(--graphite); white-space: nowrap; }
.marquee-track span::after { content: "·"; margin-left: 60px; color: var(--cutoff-red); }
.marquee-track span { padding-right: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-linen { background: var(--linen); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 20px; }
.card { background: #fff; border: 1.5px solid rgba(201, 192, 187, .7); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }

/* Features bento */
.bento { display: grid; gap: 20px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.feat { display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); overflow: hidden; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat h3 { margin-top: 6px; }
.feat p { color: var(--graphite); font-size: 15.5px; }
.feat-wide { display: grid; gap: 28px; }
@media (min-width: 760px) { .feat-wide { grid-column: span 2; grid-template-columns: 1fr 220px; } }
.feat-wide img { border-radius: 18px 18px 0 0; border: 1px solid var(--linen); width: 220px; height: 280px; object-fit: cover; object-position: top;
  justify-self: center; align-self: end; margin-bottom: calc(-1 * clamp(24px, 3vw, 36px)); box-shadow: var(--shadow); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: #E6ECF4; color: var(--series-current-affairs); font: 500 13px var(--font-display); }
.big-num { margin-top: auto; font: 700 72px/1 var(--font-display); letter-spacing: -.04em; color: var(--accent, var(--ink)); }
.big-num span { color: var(--cutoff-red); }
.formula { margin-top: auto; font: 600 30px var(--font-display); letter-spacing: -.02em; padding-top: 16px; border-top: 1.5px solid var(--linen); }
.mini-opts { list-style: none; display: grid; gap: 8px; margin-top: auto; }
.mini-opts li { padding: 10px 14px; border: 1.5px solid var(--linen); border-radius: 12px; font-size: 14px; }
.mini-opts li.ok { border-color: var(--correct); background: var(--correct-tint); color: var(--correct); font-weight: 600; }
.levels { list-style: none; display: flex; gap: 8px; margin-top: auto; }
.levels li { flex: 1; text-align: center; padding: 10px 6px; border-radius: 12px; background: #E9EEE6; color: var(--series-static-gk); font: 600 13px var(--font-display); }
.levels li:first-child { background: var(--series-static-gk); color: #fff; }
.feat-dark { background: var(--ink); border-color: var(--ink); color: #fff; --accent: var(--ember); }
.feat-dark p { color: rgba(255, 255, 255, .72); }
.feat-dark .big-num { color: #fff; }
.feat-dark .big-num span { font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-left: 12px; }
.feat-full { grid-column: 1 / -1; display: grid; gap: 20px; align-items: end; }
@media (min-width: 760px) { .feat-full { grid-template-columns: 1fr auto; } .feat-full p { max-width: 520px; } .feat-full .big-num { font-size: 120px; } }

/* Try it */
.try-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .try-grid { grid-template-columns: 1fr 1fr; } }
.tool h3 { margin: 14px 0 6px; }
.viz { margin: 26px 0 22px; }
.viz-box { position: relative; width: 100%; aspect-ratio: 1; max-width: 330px; margin-inline: auto; }
.viz-orig, .viz-new { position: absolute; left: 0; bottom: 0; }
.viz-orig { width: 66.67%; height: 66.67%; border: 2px dashed var(--stone); border-radius: 4px; z-index: 2; }
.viz-new { background: rgba(44, 107, 99, .14); border: 2px solid var(--series-visualizer); border-radius: 4px; display: grid; place-items: center;
  font: 600 13px var(--font-display); color: var(--series-visualizer); transition: width .35s var(--ease), height .35s var(--ease); }
.slider { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--graphite); }
.slider span { display: flex; justify-content: space-between; }
.slider b { font-family: var(--font-display); color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--linen); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cutoff-red);
  border: 4px solid #fff; box-shadow: 0 2px 8px rgba(35, 31, 32, .3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cutoff-red); border: 4px solid #fff; cursor: pointer; }
.viz-result { margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--linen); text-align: center; }
.viz-formula { font: 500 15px var(--font-display); color: var(--graphite); }
.viz-total { font: 700 56px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--correct); }
.viz-total.neg { color: var(--crimson); }

.quiz { display: flex; flex-direction: column; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; }
.quiz-count { font: 600 13px var(--font-display); color: var(--graphite); letter-spacing: .1em; }
.quiz-bar { height: 4px; background: var(--linen); border-radius: 2px; margin: 18px 0 10px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 25%; background: var(--cutoff-red); transition: width .4s var(--ease); }
.quiz h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 22px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; padding: 15px 18px; text-align: left; border: 1.5px solid var(--linen);
  border-radius: 14px; background: #fff; font-size: 16px; transition: border-color .2s, background .2s, transform .2s; }
.opt:hover:not(:disabled) { border-color: var(--stone); transform: translateX(3px); }
.opt .k { font: 600 14px var(--font-display); color: var(--stone); width: 18px; }
.opt.correct { border-color: var(--correct); background: var(--correct-tint); color: var(--correct); font-weight: 600; }
.opt.correct .k { color: var(--correct); }
.opt.wrong { border-color: var(--wrong); background: var(--wrong-tint); color: var(--wrong); }
.opt:disabled { cursor: default; }
.explain { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--accent); background: #EFE8EF; border-radius: 0 12px 12px 0; font-size: 15px; }
.explain b { display: block; font: 600 11.5px var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--series-practice); margin-bottom: 4px; }
#qNext { margin-top: 18px; align-self: flex-start; }
.quiz-done { text-align: center; margin: auto 0; padding: 24px 0; }
.quiz-done .hero-actions { justify-content: center; }
.score { font: 700 88px/1 var(--font-display); letter-spacing: -.04em; color: var(--cutoff-red); }
.quiz-done p { font: 600 20px var(--font-display); margin-top: 12px; }

/* App tour */
.tour { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .tour { grid-template-columns: 1fr 1fr; gap: 64px; } }
.tour-tabs { display: grid; gap: 4px; }
.tour-tabs button { text-align: left; padding: 18px 22px; border-radius: 18px; border: 1.5px solid transparent; transition: background .3s, border-color .3s; }
.tour-tabs button:hover { background: #fff; }
.tour-tabs button[aria-selected="true"] { background: #fff; border-color: rgba(201, 192, 187, .7); box-shadow: var(--shadow); }
.tour-tabs .t { display: block; font: 600 19px var(--font-display); letter-spacing: -.01em; }
.tour-tabs button[aria-selected="true"] .t { color: var(--cutoff-red); }
.tour-tabs .d { display: block; color: var(--graphite); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.tour-tabs button[aria-selected="true"] .d { max-height: 80px; opacity: 1; margin-top: 4px; }
.tour-stage { position: relative; display: grid; place-items: center; padding: 48px 0; }
.tour-bg { position: absolute; inset: 0 8%; border-radius: 32px; background: #E6ECF4; transition: background .5s; }
.tour-stage .phone img { transition: opacity .25s; }
.tour-stage .phone img.swap { opacity: 0; }
@media (max-width: 959px) { .tour-stage { order: -1; } }

/* Steps & day */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 32px 0 0; border-top: 2px solid var(--ink); }
.step-n { font: 600 14px var(--font-display); color: var(--cutoff-red); letter-spacing: .1em; }
.steps h3 { margin: 14px 0 8px; }
.steps p { color: var(--graphite); }
.day { margin-top: 56px; }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.day-line { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .day-line { grid-template-columns: repeat(4, 1fr); } }
.day-item { display: flex; flex-direction: column; gap: 2px; padding: 18px 0 0; border-top: 1.5px solid var(--stone); position: relative; }
.day-item::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--cutoff-red); }
.time { font: 600 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }
.day-item b { font: 600 18px var(--font-display); }

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq details { border-bottom: 1.5px solid var(--stone); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0;
  font: 600 18px var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--cutoff-red); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--graphite); padding: 0 40px 24px 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--cutoff-red); color: #fff; padding: clamp(80px, 10vw, 128px) 0; }
.cta-band .watermark { width: 520px; right: -120px; bottom: -140px; }
.cta-inner { position: relative; }
.cta-logo { height: 72px; width: auto; margin-bottom: 40px; }
.cta-band h2 { color: #fff; }
.cta-band .stores { margin-top: 30px; }
.cta-band p { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .88); }

/* Footer */
.footer { padding: 48px 0; background: var(--porcelain); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-inner img { height: 52px; width: auto; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font: 500 14px var(--font-display); }
.footer-links a { text-decoration: none; color: var(--graphite); }
.footer-links a:hover { color: var(--ink); }

/* Reveal on scroll: text rises 24px while fading in (brand motion rule) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
/* Hero animates on load, so the first screen never waits for a scroll */
.rise { animation: rise .6s ease-out both; }
.rise-2 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero-line .rule { animation: draw 1.1s .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .chip, .hero-line .rule, .rise { animation: none; }
}
