/* ==========================================================================
   IsaacPro / QuizaacPro — marketing CSS (W3 punch-list applied)
   Brand tokens: ../../00-foundations/brand-tokens.css
   2026 design concept: institutional trust, software clarity
   ========================================================================== */

@import url("brand-tokens.css");

/* Soft brand wash for AI / insight cards (maroon family — not a third accent) */
:root {
  --ip-ai-wash: rgba(107, 15, 26, 0.06);
  --ip-ai-border: rgba(107, 15, 26, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ip-ink);
  background: var(--ip-brand-cream);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ip-maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ip-maroon-dark); }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }

/* ---------- Layout ---------- */
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

/* ---------- Draft banner ---------- */
.draft-banner {
  background: var(--ip-maroon);
  color: var(--ip-white);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}
.draft-banner span { color: var(--ip-brand-gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 238, 0.95);
  border-bottom: 1px solid var(--ip-line);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ip-maroon);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-lockup img { width: 40px; height: 40px; object-fit: contain; }
.brand-lockup .omr { color: var(--ip-brand-orange); }
/* Parent brand → site home (product pages) */
.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.hub-home-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ip-ink-muted);
  text-decoration: none;
  width: fit-content;
}
.hub-home-link:hover { color: var(--ip-maroon); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  font-size: 0.92rem;
}
/* Text links only — never paint .btn CTAs (avoids grey-on-maroon) */
.nav a:not(.btn) {
  text-decoration: none;
  color: var(--ip-ink-muted);
  font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--ip-maroon); }
.nav a.nav-home:not(.btn) {
  color: var(--ip-maroon);
  font-weight: 600;
}
/* Explicit CTA colors in nav (higher specificity + hex fallback) */
.nav a.btn.btn-primary,
.nav a.btn.btn-primary:hover,
.nav a.btn.btn-primary:visited,
.nav a.btn.btn-primary:focus {
  color: #ffffff !important;
}
.nav a.btn.btn-secondary,
.nav a.btn.btn-secondary:hover,
.nav a.btn.btn-secondary:visited,
.nav a.btn.btn-secondary:focus {
  color: #ffffff !important;
}
.nav a.btn.btn-outline,
.nav a.btn.btn-outline:hover,
.nav a.btn.btn-outline:visited,
.nav a.btn.btn-outline:focus {
  color: var(--ip-maroon) !important;
}

/* ---------- Hero — PUNCH-LIST #1: flat sand + bubble grid, no gradient wash ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;       /* #6: more vertical space */
  overflow: hidden;
  background: var(--ip-brand-cream);
}

/* Bubble grid: low-opacity dot matrix — the brand code, not decoration */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='2.2' fill='%236B0F1A' fill-opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Right-side accent strip (replaces gradient) */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--ip-maroon);
  opacity: 0.18;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ip-brand-orange);   /* orange for eyebrow, not maroon */
  margin-bottom: 0.75rem;
}

/* #6: larger display type */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
  color: var(--ip-maroon);
  max-width: 14ch;
  letter-spacing: -0.02em;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ip-ink-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* #2: hero split layout for OMR device screenshot */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-device { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.5rem;
}
.hero-phone-photo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
}

/* Phone mockup shell (other product pages) */
.device-shell {
  width: 220px;
  background: var(--ip-maroon-dark);
  border-radius: 32px;
  padding: 14px 10px;
  position: relative;
}
.device-screen {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.btn-primary { background: var(--ip-maroon); color: var(--ip-white); }
.btn-primary:hover { background: var(--ip-maroon-dark); color: var(--ip-white); }
.btn-secondary { background: var(--ip-brand-orange); color: var(--ip-white); }
.btn-secondary:hover { filter: brightness(0.93); color: var(--ip-white); }
.btn-outline { background: transparent; color: var(--ip-maroon); border-color: var(--ip-maroon); }
.btn-outline:hover { background: rgba(107, 15, 26, 0.06); }

/* ---------- Proof strip — PUNCH-LIST #3: offline, class record, privacy, teachers ---------- */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ip-line);
  font-size: 0.85rem;
  color: var(--ip-ink-muted);
}
.proof-strip .proof-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.proof-strip .proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ip-maroon);
  flex-shrink: 0;
}

/* ---------- Insight divider — PUNCH-LIST #7: dotted → solid rising line ---------- */
.insight-divider {
  width: 100%;
  height: 32px;
  overflow: visible;
  display: block;
  margin: 0.5rem 0;
  opacity: 0.55;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }

/* #6: larger section titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  color: var(--ip-maroon);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--ip-ink-muted);
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1rem;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--radius-card);
  padding: 1.35rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.7rem 0 0.4rem;
  color: var(--ip-maroon);
}
.card p { margin: 0; color: var(--ip-ink-muted); font-size: 0.95rem; line-height: 1.55; }
.card-icon { width: 48px; height: 48px; }
.card-icon-lg { width: 72px; height: 72px; }

/* AI / insight cards — same IsaacPro maroon brand as app cards */
.card-ai {
  border-color: var(--ip-ai-border);
  background: var(--ip-white);
  position: relative;
  overflow: hidden;
}
.card-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%236B0F1A' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.card-ai h3 { color: var(--ip-maroon); }
.card-ai .card-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--ip-ai-wash);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.pill-ai {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-top: 0.85rem;
  background: rgba(243, 146, 0, 0.16);
  color: #9a5b00;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-top: 0.85rem;
}
.pill-live { background: rgba(75, 181, 67, 0.15); color: #1f7a1a; }
.pill-soon { background: rgba(245, 158, 11, 0.18); color: #92400e; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ip-brand-orange);
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- Screenshots section — PUNCH-LIST #4 ---------- */
.screenshots-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) { .screenshots-grid { grid-template-columns: 1fr; } }

.screenshot-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.screenshot-card .ss-label {
  padding: 0.6rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ip-maroon);
  border-bottom: 1px solid var(--ip-line);
}
.screenshot-card .ss-body {
  padding: 0;
  background: #f8f8f8;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-card .ss-body-phone {
  padding: 0.75rem;
  background: #1a1210;
  min-height: 280px;
  max-height: 420px;
}
.screenshot-card .ss-body-phone img {
  width: auto;
  max-width: 100%;
  max-height: 390px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}
.screenshot-card .ss-body-web {
  padding: 0;
  background: #f3efe6;
  min-height: 220px;
  max-height: 280px;
  overflow: hidden;
}
.screenshot-card .ss-body-web img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top left;
}
.screenshot-card .ss-body-lifestyle {
  padding: 0;
  background: #f3efe6;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.screenshot-card .ss-body-lifestyle img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.screenshot-card .ss-body-lifestyle {
  padding: 0;
  background: #f3efe6;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.screenshot-card .ss-body-lifestyle img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* ---------- Pricing ---------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 0.92rem;
}
.pricing-table th,
.pricing-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--ip-line);
  vertical-align: top;
}
.pricing-table th {
  background: var(--ip-maroon);
  color: var(--ip-white);
  font-family: var(--font-display);
  font-weight: 600;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ip-maroon);
  white-space: nowrap;
}
.pricing-table .muted { color: var(--ip-ink-muted); font-size: 0.82rem; }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--ip-brand-orange);
  background: var(--ip-white);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  margin-top: 1.25rem;
}
.callout strong { color: var(--ip-maroon); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--radius-btn);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ip-maroon);
  cursor: pointer;
}
.faq p { margin: 0.65rem 0 0; color: var(--ip-ink-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ip-maroon-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 2.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--ip-brand-gold); }
.site-footer .foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
.site-footer .legal { margin-top: 1.5rem; font-size: 0.82rem; opacity: 0.75; }
.site-footer .brand-lockup { color: var(--ip-white); }

/* ---------- Family badge ---------- */
.family-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ip-maroon);
  background: rgba(107, 15, 26, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ---------- Media / infomercial slot ---------- */
.media-slot {
  border: 1px dashed var(--ip-line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-card);
  min-height: 200px;
  display: grid;
  place-items: center;
  color: var(--ip-ink-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}
/* #7: insight-line end-card inside media slot */
.media-slot .insight-end-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

/* ---------- Legal links ---------- */
.legal-stubs { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.9rem; }

/* ---------- Video embed (infomercial) — W3 ---------- */
.video-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--ip-line);
}
.video-embed.ratio-16x9 { aspect-ratio: 16 / 9; }
.video-embed iframe,
.video-embed video,
.video-embed .demo-gif {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.demo-gif-embed {
  background: var(--ip-brand-cream);
}
.video-embed-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ip-brand-cream);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.video-embed-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-embed-poster.is-hidden { opacity: 0; pointer-events: none; }
.video-play-btn {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(107, 15, 26, 0.92);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.video-play-btn:hover { background: var(--ip-maroon-dark); }
.video-embed-note {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--ip-ink-muted);
  text-align: center;
}

.screenshot-card .ss-body img {
  width: 100%;
  height: auto;
  display: block;
}
