/* Read24x7 website — claymorphism, same palette as the app (no violet). */
:root {
  --bg: #FFF1E8;
  --card: #FFF9F4;
  --well: #FBE6DA;
  --ink: #2B2321;
  --sub: #6B564D;
  --link: #B72A21;
  --red: #CF3329;
  --red-dark: #B72A21;
  --red-soft: #FFD6CF;
  --red-ink: #7A1A14;
  --teal: #22A898;
  --teal-deep: #137A6F;
  --teal-soft: #C6EEE7;
  --teal-ink: #0B4E46;
  --yellow: #F5B400;
  --yellow-soft: #FFE9AE;
  --yellow-ink: #634400;
  --blue: #3D95DB;
  --blue-soft: #D3E8FA;
  --blue-ink: #0F426B;
  --orange: #F08A2E;
  --shadow: 10px 12px 24px rgba(186, 110, 80, .22), inset -4px -4px 10px rgba(186, 110, 80, .12), inset 4px 4px 10px rgba(255, 255, 255, .95);
  --shadow-sm: 6px 8px 16px rgba(186, 110, 80, .2), inset -3px -3px 8px rgba(186, 110, 80, .12), inset 3px 3px 8px rgba(255, 255, 255, .95);
  --inset: inset 4px 4px 10px rgba(186, 110, 80, .22), inset -4px -4px 10px rgba(255, 255, 255, .9);
  --head: 'Baloo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--red-ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 48px 0 72px; }
.section-head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--sub); font-size: 18px; }

/* Clay surfaces */
.clay { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); }
.well { background: var(--well); border-radius: 20px; box-shadow: var(--inset); }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.tag-free { background: var(--teal-soft); color: var(--teal-ink); }
.tag-save { background: var(--red-soft); color: var(--red-ink); }
.tag-blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.tag-lock { background: var(--well); color: #6B3A2A; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 18px; font-family: var(--body); font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 6px 8px 16px rgba(207, 51, 41, .35), inset -3px -3px 8px rgba(0, 0, 0, .15), inset 3px 3px 8px rgba(255, 255, 255, .35); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-teal { background: var(--teal-deep); color: #fff; box-shadow: 6px 8px 16px rgba(19, 122, 111, .3), inset -3px -3px 8px rgba(0, 0, 0, .15), inset 3px 3px 8px rgba(255, 255, 255, .3); }
.btn-teal:hover { background: var(--teal-ink); color: #fff; }
.btn-cream { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-cream:hover { color: var(--link); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }

/* Header */
.site-header { padding: 18px 0; position: sticky; top: 0; z-index: 20; background: rgba(255, 241, 232, .92); backdrop-filter: blur(8px); }
.site-header > .wrap { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--red); box-shadow: 5px 6px 14px rgba(207, 51, 41, .3), inset -3px -3px 8px rgba(0, 0, 0, .15), inset 3px 3px 8px rgba(255, 255, 255, .35); }
.logo-text { font-family: var(--head); font-weight: 800; font-size: 27px; letter-spacing: .5px; color: var(--ink); }
.logo-text span { color: var(--red); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--link); }
.header-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; width: 240px; }
.header-search input { border: 0; background: transparent; font: 600 15px var(--body); color: var(--ink); width: 100%; outline: none; }
.header-search input::placeholder { color: #8A7268; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow-sm); cursor: pointer; align-items: center; justify-content: center; }
.site-header .mobile-menu { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 32px 0 72px; }
.hero h1 { font-size: clamp(42px, 6vw, 66px); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: 20px; color: var(--sub); max-width: 540px; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-weight: 700; color: var(--sub); font-size: 15px; list-style: none; padding: 0; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.board-chip { align-self: flex-start; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #6B3A2A; display: inline-block; }

.phone-stage { display: flex; justify-content: center; position: relative; min-height: 560px; }
.blob { position: absolute; border-radius: 50%; }
.phone { position: relative; width: 300px; padding: 14px; border-radius: 44px; background: var(--ink); box-shadow: 18px 22px 44px rgba(43, 35, 33, .28); }
.phone-screen { background: var(--bg); border-radius: 32px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; min-height: 560px; }
.phone-banner { height: 120px; border-radius: 20px; background: var(--red); color: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.phone-banner b { font-family: var(--head); font-size: 20px; line-height: 1.1; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-tile { border-radius: 18px; padding: 12px 6px; text-align: center; font-weight: 800; font-size: 13px; box-shadow: var(--shadow-sm); }
.mini-row { border-radius: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }

/* Slides */
.slides { position: relative; }
.slide-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 24px; }
.slide-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(560px, 86%); scroll-snap-align: start; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); aspect-ratio: 16 / 7; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide a { display: block; height: 100%; }

/* Grids and cards */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card-pad { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-link { text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.card-link:hover { transform: translateY(-3px); color: var(--ink); }
.card-link .more { margin-top: auto; font-weight: 800; color: var(--link); }

.board-badge { width: 72px; height: 72px; border-radius: 22px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 21px; overflow: hidden; box-shadow: inset -3px -3px 8px rgba(0, 0, 0, .15), inset 3px 3px 8px rgba(255, 255, 255, .35); }
.board-badge img { width: 100%; height: 100%; object-fit: cover; }
.board-card h3 { font-size: 23px; line-height: 1.2; }
.muted { color: var(--sub); font-weight: 700; }

.feature-icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--sub); }

.subject-card { padding: 20px; display: flex; align-items: center; gap: 16px; }
.thumb { width: 64px; height: 64px; flex: none; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--head); font-weight: 800; font-size: 20px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.subject-card .name { font-weight: 800; font-size: 18px; line-height: 1.25; }
.subject-card .meta { color: var(--sub); font-weight: 700; font-size: 14px; }
.subject-card .end { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.price { font-family: var(--head); font-weight: 800; color: var(--red); font-size: 22px; line-height: 1; }
.strike { color: var(--sub); text-decoration: line-through; font-weight: 700; font-size: 15px; }

.free-band { background: var(--teal-soft); padding: 44px; }
.free-band h2, .free-band .band-sub { color: var(--teal-ink); }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.band-head h2 { font-size: clamp(30px, 4vw, 42px); }
.band-head .btn { margin-left: auto; }

.combo-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.combo-card h3 { font-size: 28px; }
.combo-card .big { font-family: var(--head); font-weight: 800; font-size: 44px; color: var(--red); line-height: 1; }
.combo-subjects { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

.step-num { font-family: var(--head); font-weight: 800; font-size: 48px; line-height: 1; }

/* Store section */
.store { background: var(--red); color: #fff; padding: 56px 44px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; box-shadow: 12px 14px 28px rgba(207, 51, 41, .35), inset -6px -6px 14px rgba(0, 0, 0, .15), inset 6px 6px 14px rgba(255, 255, 255, .3); }
.store h2 { font-size: clamp(32px, 4.4vw, 46px); }
.store p { font-size: 19px; margin-top: 12px; opacity: .95; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.store-badge { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 22px 10px 16px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 6px 8px 16px rgba(0, 0, 0, .25), inset 2px 2px 6px rgba(255, 255, 255, .12); }
.store-badge small { display: block; font-size: 12px; font-weight: 700; opacity: .8; line-height: 1.2; }
.store-badge b { display: block; font-family: var(--head); font-size: 21px; line-height: 1.1; }
.store-badge[aria-disabled="true"] { cursor: default; }
.soon { position: absolute; top: -10px; right: -8px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 2px 3px 6px rgba(0, 0, 0, .2); }
.store-note { margin-top: 18px; font-size: 15px !important; }
.store-phone { justify-self: center; width: 220px; padding: 12px; border-radius: 36px; background: var(--ink); box-shadow: 14px 18px 32px rgba(0, 0, 0, .3); }
.store-phone div { background: var(--bg); border-radius: 26px; min-height: 380px; padding: 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin: 0 auto; }
.faq details { padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--head); font-size: 26px; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--sub); }

/* Footer */
.site-footer { padding: 32px 0 48px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; padding: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.footer-col b { font-weight: 800; }
.footer-col a { text-decoration: none; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; }
.copyright { margin-left: auto; align-self: flex-end; color: var(--sub); font-size: 14px; font-weight: 600; }

/* Board / subject pages */
.page-hero { padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.page-hero .board-badge { width: 116px; height: 116px; border-radius: 34px; font-size: 32px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.crumbs { font-weight: 700; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.tab { min-height: 48px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer; font: 800 16px var(--body); color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }
.tab[aria-selected="true"] { background: var(--red); color: #fff; box-shadow: 6px 8px 16px rgba(207, 51, 41, .35), inset -3px -3px 8px rgba(0, 0, 0, .15), inset 3px 3px 8px rgba(255, 255, 255, .35); }
.seg { padding: 6px; display: inline-flex; gap: 6px; border-radius: 18px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 12px; font: 700 15px var(--body); color: #6B3A2A; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 800; box-shadow: 3px 4px 8px rgba(186, 110, 80, .2); }
.row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 36px 0 20px; }
.row-head h2 { font-size: 30px; }
.row-head .seg { margin-left: auto; }

.subject-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; align-items: start; }
.subject-hero .main { padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.subject-hero .side { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.subject-cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--well); }
.subject-cover img { width: 100%; height: 100%; object-fit: cover; }
.counts { display: flex; flex-wrap: wrap; gap: 10px; }
.chapter { padding: 0; overflow: hidden; }
.chapter summary { cursor: pointer; padding: 22px 26px; display: flex; align-items: center; gap: 14px; list-style: none; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary .ch-no { width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--red-soft); color: var(--red-ink); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; }
.chapter summary h3 { font-size: 21px; flex: 1; }
.chapter summary::after { content: '+'; font-family: var(--head); font-size: 26px; color: var(--red); }
.chapter[open] summary::after { content: '–'; }
.lessons { list-style: none; margin: 0; padding: 0 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--well); }
.lesson .t { font-weight: 700; flex: 1; }
.chapters { display: flex; flex-direction: column; gap: 16px; }

.state { padding: 40px; text-align: center; color: var(--sub); font-weight: 700; }
.state .btn { margin-top: 16px; }
.skeleton { background: linear-gradient(90deg, var(--well) 0, #fff4ec 50%, var(--well) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 28px; min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Legal */
.legal { padding: 40px; max-width: 880px; margin: 0 auto; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 28px 0 8px; }
.legal p, .legal li { color: #4A3B35; }
.legal ul { padding-left: 22px; }
.draft-note { margin: 16px 0 8px; padding: 14px 18px; border-radius: 16px; background: var(--yellow-soft); color: var(--yellow-ink); font-weight: 700; }

@media (max-width: 1000px) {
  .header-search { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header > .wrap > .btn { display: none; }
  .site-header .mobile-menu[data-open="true"] { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 18px; }
  .mobile-menu a { padding: 12px 8px; font-weight: 800; color: var(--ink); text-decoration: none; border-radius: 12px; }
  .mobile-menu form { display: flex; gap: 8px; margin-top: 6px; }
  .mobile-menu input { flex: 1; min-width: 0; min-height: 46px; border: 0; padding: 0 14px; font: 600 16px var(--body); }
  .hero, .store, .subject-hero { grid-template-columns: minmax(0, 1fr); }
  .phone-stage { min-height: 0; transform: scale(.9); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .free-band, .store, .page-hero, .legal, .subject-hero .main, .footer-grid { padding: 26px 20px; }
  .store-phone { display: none; }
  .band-head .btn { margin-left: 0; }
  .subject-card { flex-wrap: wrap; }
  .subject-hero .side { position: static; }
  .copyright { margin-left: 0; }
  .row-head .seg { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link, .skeleton { transition: none; animation: none; }
}
