*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

:root {
   --ink: #1a1a2e;
   --ink-light: #4a4a6a;
   --ink-faint: #8888aa;
   --paper: #f8f6f0;
   --paper-warm: #efe9dc;
   --paper-rule: #e2ddd4;
   --accent: #2a5c8a;
   --accent-light: #d6e8f5;
   --accent-warm: #c4813a;
   --green: #2d6a4f;
   --green-light: #d4edde;
   --serif: 'DM Serif Display', Georgia, serif;
   --sans: 'DM Sans', system-ui, sans-serif;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: var(--sans);
   background: var(--paper);
   color: var(--ink);
   line-height: 1.6;
   overflow-x: hidden;
}

.contact-form {
   background: transparent;
   border: none;
   cursor: pointer;
   color: var(--ink-light);
}

/* ── NAV ── */
nav {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 100;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 1.1rem 3rem;
   background: rgba(248, 246, 240, 0.92);
   backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--paper-rule);
}

.nav-logo {
   font-family: var(--serif);
   font-size: 1.25rem;
   color: var(--ink);
   text-decoration: none;
}

.nav-logo span {
   color: var(--accent);
}

.nav-links {
   display: flex;
   gap: 2rem;
   list-style: none;
   align-items: center;
}

.nav-links a {
   font-size: 0.875rem;
   color: var(--ink-light);
   text-decoration: none;
   transition: color 0.2s;
}

.nav-links a:hover, .nav-links .contact-form:hover {
   color: var(--ink);
}

.nav-cta {
   background: var(--ink) !important;
   color: var(--paper) !important;
   padding: 0.5rem 1.25rem;
   border-radius: 4px;
   font-weight: 500 !important;
}

.nav-cta:hover {
   background: var(--accent) !important;
   color: var(--paper) !important;
}

/* ── HERO ── */
.hero {
   min-height: 100vh;
   display: grid;
   grid-template-columns: 1fr 1fr;
   align-items: center;
   gap: 4rem;
   padding: 8rem 3rem 4rem;
   max-width: 1200px;
   margin: 0 auto;
}

.hero-text {
   animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.75rem;
   font-weight: 500;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--accent);
   margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
   content: '';
   width: 24px;
   height: 1px;
   background: var(--accent);
}

.hero-headline {
   font-family: var(--serif);
   font-size: clamp(2.5rem, 5vw, 3.75rem);
   line-height: 1.1;
   letter-spacing: -0.02em;
   margin-bottom: 1.5rem;
}

.hero-headline em {
   font-style: italic;
   color: var(--accent);
}

.hero-sub {
   font-size: 1.05rem;
   color: var(--ink-light);
   max-width: 480px;
   line-height: 1.75;
   margin-bottom: 2.5rem;
   font-weight: 300;
}

.hero-actions {
   display: flex;
   gap: 1rem;
   align-items: center;
   flex-wrap: wrap;
   margin-bottom: 2rem;
}

.btn-primary {
   background: var(--ink);
   color: var(--paper);
   padding: 0.875rem 2rem;
   border-radius: 4px;
   font-size: 0.9rem;
   font-weight: 500;
   text-decoration: none;
   transition: background 0.2s, transform 0.15s;
   font-family: var(--sans);
   display: inline-block;
}

.btn-primary:hover {
   background: var(--accent);
   transform: translateY(-1px);
}

.btn-secondary {
   color: var(--ink-light);
   font-size: 0.875rem;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 0.4rem;
   transition: color 0.2s;
}

.btn-secondary:hover {
   color: var(--ink);
}

.btn-secondary::after {
   content: '→';
}

.hero-trust {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   font-size: 0.8rem;
   color: var(--ink-faint);
}

.hero-trust-dot {
   width: 4px;
   height: 4px;
   border-radius: 50%;
   background: var(--paper-rule);
}

/* ── HERO VISUAL ── */
.hero-visual {
   animation: fadeUp 0.8s 0.2s ease both;
   position: relative;
}

.classroom-card {
   background: white;
   border: 1px solid var(--paper-rule);
   border-radius: 12px;
   padding: 1.5rem;
   box-shadow: 0 8px 40px rgba(26, 26, 46, 0.08), 0 2px 8px rgba(26, 26, 46, 0.04);
}

.classroom-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 1.25rem;
   padding-bottom: 1rem;
   border-bottom: 1px solid var(--paper-rule);
}

.classroom-title {
   font-family: var(--serif);
   font-size: 0.95rem;
}

.classroom-badge {
   font-size: 0.7rem;
   font-weight: 500;
   background: var(--green-light);
   color: var(--green);
   padding: 3px 10px;
   border-radius: 20px;
}

.avatars-row {
   display: flex;
   gap: 0.5rem;
   margin-bottom: 1.25rem;
   flex-wrap: wrap;
}

.avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.7rem;
   font-weight: 500;
   border: 2px solid white;
   position: relative;
   flex-shrink: 0;
}

.avatar.focused {
   background: var(--accent-light);
   color: var(--accent);
}

.avatar.confused {
   background: #fef3c7;
   color: #92400e;
}

.avatar.bored {
   background: #f3f4f6;
   color: #6b7280;
}

.avatar.excited {
   background: var(--green-light);
   color: var(--green);
}

.avatar.questioning {
   background: #fde8f0;
   color: #9d174d;
}

.avatar-status {
   position: absolute;
   bottom: -2px;
   right: -2px;
   width: 12px;
   height: 12px;
   border-radius: 50%;
   border: 2px solid white;
}

.chat-thread {
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
}

.chat-bubble {
   max-width: 85%;
   padding: 0.625rem 0.875rem;
   border-radius: 10px;
   font-size: 0.8rem;
   line-height: 1.5;
}

.bubble-student {
   background: var(--paper);
   border: 1px solid var(--paper-rule);
   color: var(--ink);
   align-self: flex-start;
   border-radius: 10px 10px 10px 2px;
}

.bubble-teacher {
   background: var(--accent);
   color: white;
   align-self: flex-end;
   border-radius: 10px 10px 2px 10px;
}

.bubble-meta {
   font-size: 0.65rem;
   color: var(--ink-faint);
   margin-bottom: 3px;
   font-weight: 500;
}

.typing-indicator {
   display: flex;
   gap: 3px;
   align-items: center;
   padding: 0.625rem 0.875rem;
   background: var(--paper);
   border: 1px solid var(--paper-rule);
   border-radius: 10px 10px 10px 2px;
   width: fit-content;
}

.typing-dot {
   width: 5px;
   height: 5px;
   background: var(--ink-faint);
   border-radius: 50%;
   animation: typing 1.2s infinite;
}

.typing-dot:nth-child(2) {
   animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
   animation-delay: 0.4s;
}

.hero-decoration {
   position: absolute;
   top: -20px;
   right: -20px;
   width: 80px;
   height: 80px;
   border: 2px solid var(--paper-rule);
   border-radius: 50%;
   opacity: 0.5;
}

.hero-decoration-2 {
   position: absolute;
   bottom: -15px;
   left: -15px;
   width: 50px;
   height: 50px;
   background: var(--accent-light);
   border-radius: 50%;
   opacity: 0.6;
}

/* ── PROOF BAR ── */
.proof-bar {
   background: var(--paper-warm);
   border-top: 1px solid var(--paper-rule);
   border-bottom: 1px solid var(--paper-rule);
   padding: 1.25rem 3rem;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 3rem;
   flex-wrap: wrap;
}

.proof-stat {
   text-align: center;
}

.proof-number {
   font-family: var(--serif);
   font-size: 1.5rem;
   color: var(--ink);
   display: block;
}

.proof-label {
   font-size: 0.75rem;
   color: var(--ink-faint);
   letter-spacing: 0.05em;
   text-transform: uppercase;
}

.proof-divider {
   width: 1px;
   height: 36px;
   background: var(--paper-rule);
}

/* ── SECTIONS ── */
.section {
   max-width: 1100px;
   margin: 0 auto;
   padding: 6rem 3rem;
}

.section-label {
   font-size: 0.7rem;
   font-weight: 500;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--accent);
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.section-label::before {
   content: '';
   width: 20px;
   height: 1px;
   background: var(--accent);
}

.section-title {
   font-family: var(--serif);
   font-size: clamp(1.75rem, 3.5vw, 2.5rem);
   line-height: 1.15;
   letter-spacing: -0.02em;
   margin-bottom: 1rem;
   max-width: 520px;
}

.section-title em {
   font-style: italic;
   color: var(--accent);
}

.section-sub {
   font-size: 1rem;
   color: var(--ink-light);
   max-width: 480px;
   line-height: 1.75;
   font-weight: 300;
   margin-bottom: 3.5rem;
}

/* ── PROBLEM ── */
.problem-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1.5rem;
}

.problem-card {
   border: 1px solid var(--paper-rule);
   border-radius: 10px;
   padding: 1.75rem;
   background: white;
}

.problem-card .p-icon {
   font-size: 1.25rem;
   margin-bottom: 1rem;
}

.problem-card h3 {
   font-family: var(--serif);
   font-size: 1.05rem;
   margin-bottom: 0.5rem;
}

.problem-card p {
   font-size: 0.845rem;
   color: var(--ink-light);
   line-height: 1.7;
   font-weight: 300;
}

/* ── HOW IT WORKS ── */
.how-bg {
   background: var(--paper-warm);
   border-top: 1px solid var(--paper-rule);
   border-bottom: 1px solid var(--paper-rule);
}

.steps {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2px;
}

.step {
   background: white;
   border: 1px solid var(--paper-rule);
   padding: 2rem;
   transition: box-shadow 0.2s;
}

.step:first-child {
   border-radius: 10px 0 0 10px;
}

.step:last-child {
   border-radius: 0 10px 10px 0;
}

.step:hover {
   box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
   z-index: 1;
   position: relative;
}

.step-number {
   font-family: var(--serif);
   font-size: 3rem;
   color: var(--paper-rule);
   line-height: 1;
   margin-bottom: 1rem;
}

.step-title {
   font-family: var(--serif);
   font-size: 1.15rem;
   margin-bottom: 0.75rem;
}

.step-desc {
   font-size: 0.875rem;
   color: var(--ink-light);
   line-height: 1.7;
   font-weight: 300;
}

/* ── DEBRIEF PREVIEW ── */
.debrief-preview-wrap {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   margin-top: 4rem;
}

.debrief-card {
   background: white;
   border: 1px solid var(--paper-rule);
   border-radius: 12px;
   padding: 1.75rem;
   box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.debrief-card-header {
   margin-bottom: 1.25rem;
   padding-bottom: 1rem;
   border-bottom: 1px solid var(--paper-rule);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.debrief-card-title {
   font-family: var(--serif);
   font-size: 0.9rem;
}

.debrief-card-meta {
   font-size: 0.7rem;
   color: var(--ink-faint);
}

.metrics-row {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 0.75rem;
   margin-bottom: 1.25rem;
}

.metric-box {
   background: var(--paper-warm);
   border-radius: 8px;
   padding: 0.875rem;
}

.metric-val {
   font-family: var(--serif);
   font-size: 1.75rem;
   line-height: 1;
   margin-bottom: 2px;
}

.metric-val.good {
   color: #2d6a4f;
}

.metric-val.warn {
   color: #92400e;
}

.metric-val.bad {
   color: #9b2c2c;
}

.metric-lbl {
   font-size: 0.65rem;
   color: var(--ink-faint);
   text-transform: uppercase;
   letter-spacing: 0.06em;
}

.gap-list {
   display: flex;
   flex-direction: column;
   gap: 0.625rem;
}

.gap-item {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   padding: 0.625rem 0.75rem;
   border-radius: 6px;
   border: 1px solid var(--paper-rule);
   background: var(--paper);
}

.gap-dot {
   width: 7px;
   height: 7px;
   border-radius: 50%;
   flex-shrink: 0;
   margin-top: 5px;
}

.gap-dot.high {
   background: #e53e3e;
}

.gap-dot.mid {
   background: #dd6b20;
}

.gap-dot.low {
   background: #38a169;
}

.gap-text {
   font-size: 0.775rem;
   color: var(--ink-light);
   line-height: 1.55;
}

.gap-text strong {
   color: var(--ink);
   font-weight: 500;
}

.debrief-copy h3 {
   font-family: var(--serif);
   font-size: clamp(1.5rem, 2.5vw, 2rem);
   line-height: 1.2;
   letter-spacing: -0.02em;
   margin-bottom: 1rem;
}

.debrief-copy p {
   font-size: 0.9rem;
   color: var(--ink-light);
   line-height: 1.8;
   font-weight: 300;
}

.debrief-copy ul {
   margin-top: 1.25rem;
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
   list-style: none;
}

.debrief-copy ul li {
   display: flex;
   align-items: flex-start;
   gap: 0.6rem;
   font-size: 0.875rem;
   color: var(--ink-light);
   font-weight: 300;
}

.debrief-copy ul li::before {
   content: '→';
   color: var(--accent);
   font-weight: 500;
   flex-shrink: 0;
   margin-top: 1px;
}

/* ── SCIENCE ── */
.science-section {
   background: var(--ink);
   padding: 6rem 3rem;
   position: relative;
   overflow: hidden;
}

.science-section::before {
   content: '';
   position: absolute;
   top: -100px;
   right: -100px;
   width: 400px;
   height: 400px;
   background: radial-gradient(circle, rgba(42, 92, 138, 0.3) 0%, transparent 70%);
   border-radius: 50%;
}

.science-inner {
   max-width: 1100px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 6rem;
   align-items: center;
}

.science-label {
   font-size: 0.7rem;
   font-weight: 500;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--accent-light);
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.science-label::before {
   content: '';
   width: 20px;
   height: 1px;
   background: var(--accent-light);
}

.science-title {
   font-family: var(--serif);
   font-size: clamp(1.75rem, 3vw, 2.25rem);
   color: var(--paper);
   line-height: 1.2;
   letter-spacing: -0.02em;
   margin-bottom: 1.5rem;
}

.science-title em {
   font-style: italic;
   color: var(--accent-light);
}

.science-body {
   font-size: 0.95rem;
   color: rgba(248, 246, 240, 0.65);
   line-height: 1.8;
   font-weight: 300;
   margin-bottom: 2rem;
}

.science-quote {
   border-left: 2px solid var(--accent);
   padding-left: 1.25rem;
   font-family: var(--serif);
   font-style: italic;
   font-size: 1.05rem;
   color: rgba(248, 246, 240, 0.85);
   line-height: 1.6;
}

.science-quote cite {
   display: block;
   font-family: var(--sans);
   font-style: normal;
   font-size: 0.75rem;
   color: rgba(248, 246, 240, 0.4);
   margin-top: 0.75rem;
   letter-spacing: 0.05em;
}

.stats-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1px;
   background: rgba(255, 255, 255, 0.08);
   border-radius: 10px;
   overflow: hidden;
}

.stat-card {
   background: rgba(255, 255, 255, 0.04);
   padding: 2rem;
}

.stat-number {
   font-family: var(--serif);
   font-size: 2.5rem;
   color: var(--paper);
   line-height: 1;
   margin-bottom: 0.5rem;
}

.stat-label {
   font-size: 0.8rem;
   color: rgba(248, 246, 240, 0.45);
   line-height: 1.5;
   font-weight: 300;
}

/* ── WHO ── */
.audience-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1.5rem;
   margin-top: 3rem;
}

.audience-card {
   border: 1px solid var(--paper-rule);
   border-radius: 10px;
   padding: 1.75rem;
   background: white;
   transition: border-color 0.2s, box-shadow 0.2s;
}

.audience-card:hover {
   border-color: var(--accent);
   box-shadow: 0 4px 20px rgba(42, 92, 138, 0.08);
}

.audience-icon {
   width: 40px;
   height: 40px;
   border-radius: 8px;
   background: var(--accent-light);
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1rem;
   font-size: 1.1rem;
}

.audience-title {
   font-family: var(--serif);
   font-size: 1.05rem;
   margin-bottom: 0.5rem;
}

.audience-desc {
   font-size: 0.845rem;
   color: var(--ink-light);
   line-height: 1.65;
   font-weight: 300;
}

/* ── FAQ ── */
.faq-bg {
   background: var(--paper-warm);
   border-top: 1px solid var(--paper-rule);
}

.faq-inner {
   max-width: 720px;
   margin: 0 auto;
   padding: 6rem 3rem;
}

.faq-list {
   margin-top: 3rem;
}

details {
   border-top: 1px solid var(--paper-rule);
}

details:last-child {
   border-bottom: 1px solid var(--paper-rule);
}

summary {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 1.25rem 0;
   cursor: pointer;
   gap: 1rem;
   font-size: 0.95rem;
   font-weight: 500;
   color: var(--ink);
   list-style: none;
   user-select: none;
}

summary::-webkit-details-marker {
   display: none;
}

summary::after {
   content: '+';
   font-size: 1.25rem;
   font-weight: 300;
   color: var(--ink-faint);
   flex-shrink: 0;
}

details[open] summary::after {
   content: '−';
}

.faq-a {
   font-size: 0.875rem;
   color: var(--ink-light);
   line-height: 1.75;
   font-weight: 300;
   padding-bottom: 1.25rem;
   max-width: 580px;
}

/* ── CTA ── */
.cta-section {
   border-top: 1px solid var(--paper-rule);
   padding: 6rem 3rem;
   text-align: center;
}

.cta-inner {
   max-width: 560px;
   margin: 0 auto;
}

.cta-title {
   font-family: var(--serif);
   font-size: clamp(2rem, 4vw, 2.75rem);
   line-height: 1.15;
   letter-spacing: -0.02em;
   margin-bottom: 1rem;
}

.cta-sub {
   font-size: 0.95rem;
   color: var(--ink-light);
   line-height: 1.75;
   font-weight: 300;
   margin-bottom: 2rem;
}

.email-form {
   display: flex;
   gap: 0.75rem;
   max-width: 420px;
   margin: 0 auto;
}

.email-input {
   flex: 1;
   padding: 0.875rem 1rem;
   border: 1px solid var(--paper-rule);
   border-radius: 4px;
   font-size: 0.875rem;
   font-family: var(--sans);
   background: white;
   color: var(--ink);
   outline: none;
   transition: border-color 0.2s;
}

.email-input:focus {
   border-color: var(--accent);
}

.email-input::placeholder {
   color: var(--ink-faint);
}

.email-submit {
   background: var(--ink);
   color: var(--paper);
   border: none;
   padding: 0.875rem 1.5rem;
   border-radius: 4px;
   font-size: 0.875rem;
   font-weight: 500;
   font-family: var(--sans);
   cursor: pointer;
   transition: background 0.2s;
   white-space: nowrap;
}

.email-submit:hover {
   background: var(--accent);
}

.cta-note {
   font-size: 0.75rem;
   color: var(--ink-faint);
   margin-top: 1rem;
}

/* CONTACT PAGE */
.contact-body {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}
 
.contact-main {
   flex: 1;
   padding: 7rem 2rem 4rem;
   display: flex;
   justify-content: center;
}
 
.contact-container {
   width: 100%;
   max-width: 580px;
}
 
.contact-header {
   text-align: center;
   margin-bottom: 3rem;
}
 
.contact-title {
   font-family: var(--serif);
   font-size: clamp(2.25rem, 5vw, 3rem);
   color: var(--ink);
   margin: 0.75rem 0 1rem;
   line-height: 1.1;
}
 
.contact-title em {
   font-style: italic;
   color: var(--accent);
}
 
.contact-sub {
   color: var(--ink-light);
   font-size: 1rem;
   line-height: 1.6;
   max-width: 480px;
   margin: 0 auto;
}
 
.contact-form-page {
   background: white;
   border: 1px solid var(--paper-rule);
   border-radius: 8px;
   padding: 2rem;
   box-shadow: 0 2px 12px rgba(26, 26, 46, 0.04);
}
 
.contact-field {
   display: flex;
   flex-direction: column;
   margin-bottom: 1.5rem;
   position: relative;
}
 
.contact-field label {
   font-size: 0.875rem;
   font-weight: 500;
   color: var(--ink);
   margin-bottom: 0.5rem;
}
 
.contact-field input,
.contact-field textarea {
   width: 100%;
   padding: 0.75rem;
   border: 1px solid var(--paper-rule);
   border-radius: 4px;
   background: var(--paper);
   color: var(--ink);
   font-family: var(--sans);
   font-size: 16px;
   line-height: 1.5;
   transition: border-color 0.15s, background 0.15s;
}
 
.contact-field input:focus,
.contact-field textarea:focus {
   outline: none;
   border-color: var(--accent);
   background: white;
}
 
.contact-field textarea {
   resize: vertical;
   min-height: 120px;
   font-family: var(--sans);
}
 
.char-count {
   position: absolute;
   bottom: -1.25rem;
   right: 0;
   font-size: 0.75rem;
   color: var(--ink-faint);
}
 
.contact-submit-btn {
   width: 100%;
   padding: 0.95rem;
   background: var(--ink);
   color: var(--paper);
   border: none;
   border-radius: 4px;
   font-family: var(--sans);
   font-size: 1rem;
   font-weight: 500;
   cursor: pointer;
   margin-top: 0.75rem;
   transition: background 0.2s;
}
 
.contact-submit-btn:hover:not(:disabled) {
   background: var(--accent);
}
 
.contact-submit-btn:disabled {
   opacity: 0.6;
   cursor: not-allowed;
}
 
.contact-status {
   text-align: center;
   margin-top: 1rem;
   font-size: 0.9rem;
   min-height: 1.25rem;
}
 
.contact-status.error {
   color: #9b2c2c;
}
 
.contact-status.success {
   color: var(--green);
}

/* ── MODAL ── */
.modal-overlay {
   position: fixed;
   inset: 0;
   background: rgba(26, 26, 46, 0.45);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1000;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.25s;
   backdrop-filter: blur(4px);
   -webkit-overflow-scrolling: touch;
   overflow-y: auto;
   touch-action: none;
}

.modal-overlay.show {
   opacity: 1;
   pointer-events: all;
}

.modal {
   position: relative;
   background: white;
   border-radius: 12px;
   padding: 2.5rem 2rem;
   max-width: 380px;
   max-height: 80vh;
   width: 90%;
   text-align: center;
   opacity: 0;
  transition: opacity 0.25s;
   box-shadow: 0 12px 48px rgba(26, 26, 46, 0.15);
   overflow: scroll;
}

.modal.contact {
   overflow: hidden;
   max-height: 85vh;
}

.modal form {
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.modal input.contact-inputs {
   height: 30px;
   border-radius: 3px;
   margin-bottom: 10px;
   padding: 0 0.5rem;
   font-size: 1rem;
   font-weight: 500;
   font-family: var(--sans);
   text-decoration: none;
   border: 1px solid var(--ink-faint);
}

.modal .contact-inputs:focus {
   outline: none;
}

.modal textarea {
   resize: vertical;
   font-size: 1rem;
   font-weight: 500;
   font-family: var(--sans);
   text-decoration: none;
   height: 100px;
   max-height: 150px;
   overflow: scroll;
   padding: 5px 15px;
}

.modal.terms-modal h3, .modal.privacy-modal h3 {
   margin: 0;
}

.terms-section, .privacy-section {
   padding: 12px 0;
   border-bottom: 1px solid var(--ink-faint);
}

.modal-overlay.show .modal {
   opacity: 1;
}

.modal-icon {
   font-size: 2rem;
   margin-bottom: 1rem;
}

.close-icon {
   position: absolute;
   top: 1rem;
   right: 1rem;
   cursor: pointer;
   border: none;
   background-color: transparent;
}

.modal h3 {
   font-family: var(--serif);
   font-size: 1.5rem;
   color: var(--ink);
   margin-bottom: 0.75rem;
}

.modal p {
   font-size: 0.875rem;
   color: var(--ink-light);
   line-height: 1.7;
   font-weight: 300;
}

.modal-close {
   margin-top: 1.5rem;
   background: var(--ink);
   color: white;
   border: none;
   padding: 0.75rem 1.75rem;
   border-radius: 4px;
   font-size: 0.875rem;
   font-weight: 500;
   cursor: pointer;
   font-family: var(--sans);
}

.modal-close:hover {
   background: var(--accent);
}

/* ── FOOTER ── */
footer {
   border-top: 1px solid var(--paper-rule);
   padding: 2rem 3rem;
   display: flex;
   align-items: center;
   justify-content: space-between;
   max-width: 1200px;
   margin: 0 auto;
}

.footer-logo {
   font-family: var(--serif);
   font-size: 1rem;
   color: var(--ink);
   text-decoration: none;
}

.footer-logo span {
   color: var(--accent);
}

.footer-links {
   display: flex;
   gap: 1.5rem;
   list-style: none;
}

.footer-links a {
   text-decoration: none;
   color: var(--ink-faint);
   font-size: 0.8rem;
   transition: color 0.2s;
}

.footer-links a:hover {
   color: var(--ink);
}

.footer-links button {
   color: var(--ink-faint);
   text-decoration: none;
   background: transparent;
   border: none;
   cursor: pointer;
   font-size: 0.8rem;
   color: var(--ink-faint);
   transition: color 0.2s;
}

.footer-links button:hover {
   color: var(--ink);
}

.footer-copy {
   font-size: 0.75rem;
   color: var(--ink-faint);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
   from {
      opacity: 0;
      transform: translateY(24px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes typing {

   0%,
   60%,
   100% {
      opacity: 0.3;
      transform: translateY(0);
   }

   30% {
      opacity: 1;
      transform: translateY(-3px);
   }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
   .hero {
      grid-template-columns: 1fr;
      padding: 7rem 1.5rem 3rem;
      gap: 2.5rem;
   }

   .hero-visual {
      order: -1;
   }

   .steps {
      grid-template-columns: 1fr;
   }

   .step:first-child {
      border-radius: 10px 10px 0 0;
   }

   .step:last-child {
      border-radius: 0 0 10px 10px;
   }

   .science-inner {
      grid-template-columns: 1fr;
      gap: 3rem;
   }

   .audience-grid {
      grid-template-columns: 1fr;
   }

   .problem-grid {
      grid-template-columns: 1fr;
   }

   .debrief-preview-wrap {
      grid-template-columns: 1fr;
      gap: 2rem;
   }

   nav {
      padding: 1rem 1.5rem;
   }

   .nav-links {
      display: none;
   }

   .section {
      padding: 4rem 1.5rem;
   }

   .proof-bar {
      gap: 1.5rem;
      padding: 1.25rem 1.5rem;
   }

   .proof-divider {
      display: none;
   }

   footer {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
      padding: 2rem 1.5rem;
   }

   .email-form {
      flex-direction: column;
   }

   .science-section {
      padding: 4rem 1.5rem;
   }

   .cta-section {
      padding: 4rem 1.5rem;
   }

   .faq-inner {
      padding: 4rem 1.5rem;
   }
}

@media (max-width: 600px) {
   .contact-main {
      padding: 6rem 1rem 3rem;
   }
   .contact-form-page {
      padding: 1.5rem;
   }
}