/* IPE × Reading Town · Marketing site
 * Premium NA prep tone — deep navy + warm gold + cream
 * Avenir Next typography, generous whitespace
 */

:root {
  --ink: #0B1F3F;          /* deep navy, headlines */
  --ink-soft: #1E3A5F;     /* navy soft, body emphasis */
  --gold: #C9A05C;         /* warm gold accent */
  --gold-deep: #A88B4A;
  --cream: #FBF8F0;        /* paper background */
  --warm-bg: #F4EFE3;      /* card lift */
  --char: #2D3748;         /* body text */
  --muted: #718096;        /* secondary text */
  --line: #E5DCC9;         /* warm dividers */
  --hover: #F0E9D6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--char);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; }
h3 { font-size: 22px; }

p { margin: 0 0 1em; }

/* HEADER */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 60px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo-ipe { height: 28px; width: auto; display: block; }
.brand-logo-rt { height: 42px; width: auto; display: block; }
.brand-logo-rtprep { height: 38px; width: auto; display: block; }
.brand-x {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  user-select: none;
}
.site-nav {
  display: flex; gap: 28px; align-items: center;
}
.site-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.site-nav a:hover { color: var(--gold-deep); }
.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--ink-soft); color: var(--cream) !important; }

/* HERO */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 40px 70px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-accent {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 60%, rgba(201, 160, 92, 0.25) 60%);
  padding: 0 4px;
}
.hero-sub {
  font-size: 19px;
  color: var(--char);
  max-width: 640px;
  margin: 24px auto 36px;
  line-height: 1.5;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-tests {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-tests .dot { margin: 0 10px; color: var(--gold-deep); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 31, 63, 0.15);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* THREE PILLAR */
.three-pillar {
  max-width: 1120px;
  margin: 80px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 31, 63, 0.08);
}
.pillar-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.pillar h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.pillar p {
  font-size: 15px;
  color: var(--char);
  line-height: 1.6;
  margin: 0;
}

/* GRADE STRIP */
.grade-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 40px;
  text-align: center;
}
.grade-strip h2 {
  color: var(--cream);
  margin-bottom: 40px;
}
.grade-row {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.grade-card {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 160, 92, 0.3);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  color: var(--cream);
  transition: all 0.2s;
}
.grade-card:hover {
  background: rgba(201, 160, 92, 0.18);
  border-color: var(--gold);
  transform: translateY(-3px);
  color: var(--cream);
}
.grade-card.highlight {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.grade-card.highlight:hover {
  background: var(--gold-deep);
  color: var(--ink);
}
.grade-id {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}
.grade-test {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 4px;
}
.grade-note {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* SAMPLE STRIP */
.sample-strip {
  max-width: 1120px;
  margin: 80px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.sample-text h2 {
  margin-bottom: 16px;
}
.sample-text p {
  font-size: 17px;
  color: var(--char);
  margin-top: 16px;
}
.sample-cards {
  display: grid;
  gap: 16px;
}
.sample-card {
  display: block;
  padding: 28px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: all 0.2s;
}
.sample-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 31, 63, 0.1);
  color: var(--ink);
}
.sample-domain {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 8px;
}
.sample-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.sample-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.sample-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sample-card:hover .sample-cta {
  color: var(--gold-deep);
}

/* FOOTER CTA */
.footer-cta {
  text-align: center;
  padding: 100px 40px;
  background: var(--warm-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 {
  margin-bottom: 12px;
}
.footer-cta p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 30px;
}

/* FOOTER */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 48px 60px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-main {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.footer-brand-logo {
  height: 14px;
  width: auto;
  display: block;
  align-self: flex-start;
}
.footer-tagline {
  font-size: 13px;
  color: var(--char);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}
.footer-location {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--char);
  line-height: 1.5;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bar {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-bar .footer-mark {
  color: var(--char);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .brand-logo-ipe { height: 24px; }
  .brand-logo-rt { height: 36px; }
  .brand-logo-rtprep { height: 32px; }
  .site-nav { gap: 18px; }
  .three-pillar { grid-template-columns: 1fr; gap: 18px; padding: 0 24px; }
  .grade-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sample-strip { grid-template-columns: 1fr; gap: 30px; padding: 0 24px; }
  .site-footer { padding: 32px 24px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
  .footer-brand-block { text-align: left; }
  .footer-bar { flex-direction: column; gap: 6px; padding: 14px 0; text-align: center; }
}

@media (max-width: 540px) {
  .grade-row { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 24px 50px; }
}

/* ============================================
   CURRICULUM PAGE
   ============================================ */

.page-curriculum {
  background: var(--cream);
}

.curr-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 40px 30px;
}
.curr-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}
.curr-hero p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

.grade-tabs {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 0 40px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.grade-tab {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  transition: all 0.15s;
}
.grade-tab:hover { color: var(--ink); }
.grade-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.grade-tab .grade-tab-test {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.grade-tab.active .grade-tab-test { color: var(--gold-deep); }

.curr-content {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 40px;
}

.domain-block {
  margin-bottom: 50px;
}
.domain-block h2 {
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.chapter-card {
  display: block;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s;
  position: relative;
}
.chapter-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.chapter-card.coming {
  background: var(--warm-bg);
}
.chapter-card.sample {
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(11, 31, 63, 0.08);
}
.chapter-card.sample::before {
  content: "TRY SAMPLE";
  position: absolute;
  top: -8px; right: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
}
.chapter-card:not(.locked):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 31, 63, 0.1);
  border-color: var(--ink);
  color: var(--ink);
}

.chapter-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.chapter-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chapter-meta .tier-pills {
  display: inline-flex;
  gap: 3px;
}
.chapter-meta .tier-pill {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  background: var(--warm-bg);
  color: var(--muted);
}
.chapter-meta .tier-pill.active {
  background: var(--ink);
  color: var(--cream);
}
.chapter-card.locked .tier-pill { background: var(--line); }
.coming-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================
   GENERIC PAGE STYLE (How It Works, About)
   ============================================ */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
}
.content-page h1 {
  margin-bottom: 16px;
}
.content-page .lead {
  font-size: 19px;
  color: var(--char);
  margin-bottom: 40px;
  line-height: 1.5;
}
.content-page h2 {
  margin-top: 50px;
  font-size: 28px;
}
.content-page h3 {
  margin-top: 30px;
  font-size: 19px;
}
.content-page p, .content-page li {
  font-size: 16px;
  color: var(--char);
  line-height: 1.7;
}
.content-page ul, .content-page ol {
  padding-left: 22px;
}
