/* ============================================================
   COUNTDOWN TO COLLEGE — STYLES
   Flat, minimalist, vibrant. No gradients, no shadows.
   Mobile-first; layout upgrades at 640px and 900px.
   ============================================================ */

:root {
  /* Brand colors */
  --orange:       #FF6B35;  /* primary: CTAs, timer, accents */
  --orange-deep:  #E85D04;  /* hover states, emphasis */
  --yellow:       #FFB627;  /* badges, highlights, flourishes */
  --cream:        #FFF3E2;  /* alternating sections, cards */
  --white:        #FFFFFF;
  --ink:          #2B2118;  /* warm charcoal body text */
  --ink-soft:     #5C4F42;  /* secondary text (passes AA on white & cream) */
  --line:         #EFE3D0;  /* hairline borders on white */
  --line-cream:   #EBD9BC;  /* hairline borders on cream */

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Shape & rhythm */
  --radius: 1rem;           /* rounded-2xl */
  --radius-lg: 1.5rem;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --container: 72rem;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--cream); }
.section-cream .btn-outline:hover { background: var(--white); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ---------- Badges & flourishes ---------- */
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* Yellow highlighter behind heading text — flat, no gradient */
.mark {
  background: var(--yellow);
  padding: 0.08em 0.28em;
  border-radius: 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--orange); flex: none; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-accent { color: var(--orange-deep); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 22px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.5rem;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 0.25rem;
}
.site-nav a:not(.btn):hover { color: var(--orange-deep); }
.site-nav .btn { margin-top: 0.5rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
  }
  .site-nav a { padding: 0.25rem 0; font-size: 0.95rem; }
  .site-nav .btn { margin-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-cream { background: var(--cream); }

/* offset anchors below the sticky header */
section[id], footer[id] { scroll-margin-top: 5rem; }

.section-heading {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  max-width: 40rem;
}
.section-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.section-cream .card { border-color: var(--line-cream); }

.card-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  margin-bottom: 0.5em;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Countdown timer (signature element) ---------- */
.timer {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.timer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.timer-dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.timer-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.timer-big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
}
.timer-big-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.timer-big-unit {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--orange);
}
.timer-label {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--cream);
}

.timer-units {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
  max-width: 22rem;
  margin-inline: auto;
}
.unit {
  background: rgba(255, 243, 226, 0.08);
  border-radius: calc(var(--radius) * 0.6);
  padding: 0.6rem 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.unit-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.unit-num.tick,
.timer-big-num.tick { animation: tickIn 0.4s ease; }
@keyframes tickIn {
  from { opacity: 0.2; transform: translateY(-0.18em); }
  to   { opacity: 1;   transform: translateY(0); }
}
.unit-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 0.15rem;
}

/* Grade picker chips */
.grade-picker { margin-top: 1.25rem; text-align: center; }
.grade-picker-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.grade-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.chip {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: var(--cream); }
.chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.06);
}

/* ---------- Problem stat cards ---------- */
.stat-card .stat {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.05;
  color: var(--orange-deep);
  margin-bottom: 0.5rem;
}
.stat-card h3 { font-size: 1.2rem; }
.stat-card p:last-child { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Guide section ---------- */
.guide-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .guide-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}

.guide-cover-wrap {
  position: relative;
  width: min(19rem, 80%);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
}
.guide-cover-back {
  position: absolute;
  inset: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(4deg);
}
.guide-cover {
  position: relative;
  height: 100%;
  background: var(--orange);
  border-radius: var(--radius);
  transform: rotate(-3deg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform 0.25s ease;
}
.guide-cover-wrap:hover .guide-cover { transform: rotate(-1deg) translateY(-4px); }
.guide-cover-glyph { width: 2.4rem; height: 2.4rem; color: var(--ink); margin-bottom: 1.25rem; }
.guide-cover-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.guide-cover-sub { font-size: 0.9rem; margin-bottom: 1rem; }
.guide-cover-badge {
  align-self: flex-start;
  background: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: auto;
}
.guide-cover-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.guide-cover-lines span {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 243, 226, 0.55);
}
.guide-cover-lines span:nth-child(2) { width: 80%; }
.guide-cover-lines span:nth-child(3) { width: 60%; }

.check-list {
  list-style: none;
  margin-bottom: 2rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.9rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--yellow);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.31rem; top: 0.62em;
  width: 0.55rem; height: 0.3rem;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}

/* ---------- Pick your path ---------- */
.path-widget {
  background: var(--white);
  border: 1px solid var(--line-cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.path-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.path-tab {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--line-cream);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.path-tab:hover { border-color: var(--ink); }
.path-tab[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
}

.path-panel[hidden] { display: none; }
.path-panel-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}
.path-panel-title .path-panel-grade { color: var(--orange-deep); }

.path-items {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .path-items { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.path-items li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.path-item-num {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  width: 1.7rem; height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  margin-top: 0.15rem;
}

/* ---------- Audience cards ---------- */
.audience-card { background: var(--cream); border-color: var(--line-cream); }
.audience-card h3 { font-size: 1.35rem; }
.audience-card p { color: var(--ink-soft); }
.audience-card .btn { margin-top: 0.5rem; }

/* ---------- Webinars ---------- */
.session-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.session-meta {
  list-style: none;
  margin-bottom: 1rem;
}
.session-meta li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.session-meta .meta-key {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-deep);
  min-width: 3.4rem;
}
.session-date-badge {
  display: inline-block;
  background: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.session-blurb { color: var(--ink-soft); margin-bottom: 0; }

.signup-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .signup-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

.signup-card iframe {
  width: 100%;
  min-height: 28rem;
  border: none;
  border-radius: calc(var(--radius) * 0.6);
}
.signup-placeholder {
  background: var(--cream);
  border: 2px dashed var(--line-cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}
.signup-placeholder .btn { margin-top: 1rem; }

.counselor-card h3 { font-size: 1.25rem; }
.counselor-card p { color: var(--ink-soft); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.8fr; gap: 5rem; }
}

.about-portrait { text-align: center; }
.portrait-placeholder,
.about-portrait img {
  width: min(14rem, 70%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.portrait-placeholder {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-placeholder svg { width: 35%; color: var(--orange); }
.portrait-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.25rem 0 0.1rem;
}
.portrait-role { font-size: 0.9rem; color: var(--ink-soft); }

.about-story p { max-width: 36rem; }
.about-story p:first-child {
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 3.5rem 2.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 243, 226, 0.15);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

.brand-light { color: var(--cream); }
.brand-light .brand-accent { color: var(--yellow); }
.footer-tagline { margin-top: 0.9rem; font-size: 0.95rem; color: rgba(255, 243, 226, 0.75); }

.footer-social ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
@media (min-width: 640px) { .footer-social ul { text-align: right; } }
.footer-social a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-social a:hover { text-decoration: underline; }
.footer-social .social-handle {
  color: rgba(255, 243, 226, 0.65);
  font-weight: 400;
  margin-left: 0.4rem;
}

.footer-legal {
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 243, 226, 0.65);
}
.footer-legal p { margin-bottom: 0.35rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* gentle stagger inside card grids */
.card-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .timer-dot { animation: none; }
  .unit-num.tick,
  .timer-big-num.tick { animation: none; }
  .btn, .chip, .guide-cover { transition: none; }
}
