@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #1F3557;
  --navy-dark: #16283F;
  --gold: #C9A85C;
  --gold-deep: #8A6D2F;
  --cream: #FBFAF7;
  --cream-2: #F4F1EA;
  --text: #22262E;
  --text-muted: #565D6B;
  --border: #E4DFD3;
  --light-navy: #EAF0F6;
  --light-gold: #F7EFDE;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(31,53,87,0.25);
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme='dark'] {
  --cream: #131C2B;
  --cream-2: #182338;
  --text: #EDEFF3;
  --text-muted: #A7B0BE;
  --border: #2A3850;
  --light-navy: #1B2A42;
  --light-gold: #2A2416;
  --white: #182338;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: white; padding: 12px 20px; z-index: 300; }
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--navy); }
[data-theme='dark'] .brand-name { color: var(--text); }
.brand-sub { font-size: 10.5px; color: var(--text-muted); letter-spacing: 1.2px; text-transform: uppercase; }
nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); }
nav.main-nav a:hover { color: var(--gold-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: none; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.mobile-nav-toggle { display: none; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 30px 0 10px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; padding: 50px 0 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-family: var(--font-display); font-size: 52px; line-height: 1.08; font-weight: 600; color: var(--navy); letter-spacing: -0.5px; }
[data-theme='dark'] .hero h1 { color: var(--text); }
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero-lede { font-size: 18px; color: var(--text-muted); margin: 22px 0 30px; max-width: 480px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--gold-deep); flex-shrink: 0; }

.hero-visual { position: relative; }
.skyline-art { width: 100%; }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.section-head h2 { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--navy); line-height: 1.2; }
[data-theme='dark'] .section-head h2 { color: var(--text); }
.section-head p { font-size: 16.5px; color: var(--text-muted); margin-top: 14px; line-height: 1.6; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== Subscription fatigue ===== */
.fatigue-section { background: var(--cream-2); }
.fatigue-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.stat-callout { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-display); font-size: 60px; font-weight: 700; color: var(--navy); line-height: 1; }
[data-theme='dark'] .stat-num { color: var(--gold); }
.stat-desc { font-size: 15px; color: var(--text-muted); margin: 14px 0 16px; line-height: 1.55; }
.stat-source { font-size: 12.5px; color: var(--text-muted); }
.stat-source a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; }

.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-col { border-radius: var(--radius-sm); padding: 20px; }
.compare-col.bad { background: var(--light-navy); opacity: 0.75; }
.compare-col.good { background: var(--light-gold); }
.compare-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.compare-col ul { display: flex; flex-direction: column; gap: 9px; }
.compare-col li { font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.compare-col.bad li::before { content: '\2013'; position: absolute; left: 0; color: var(--text-muted); }
.compare-col.good li::before { content: '\2713'; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

/* ===== Pieces grid ===== */
.pieces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.piece-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.piece-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.piece-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--light-gold); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--gold-deep); }
.piece-card.featured .piece-icon { background: var(--navy); color: white; }
.piece-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
[data-theme='dark'] .piece-card h3 { color: var(--text); }
.piece-card p.piece-desc { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; }
.piece-card ul { display: flex; flex-direction: column; gap: 7px; }
.piece-card li { font-size: 13.5px; color: var(--text-muted); padding-left: 18px; position: relative; }
.piece-card li::before { content: '\2022'; position: absolute; left: 0; color: var(--gold); }
.new-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: var(--gold); color: var(--navy-dark); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }

/* ===== Accessibility scan section ===== */
.scan-section { background: var(--navy); color: white; border-radius: 24px; margin: 0 28px; padding: 60px 50px; position: relative; overflow: hidden; }
.scan-section::before {
  content: ''; position: absolute; bottom: 0; right: 0; width: 340px; height: 130px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 34px, transparent 34px 60px);
  opacity: 0.5;
}
.scan-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.scan-section .section-eyebrow { color: var(--gold); }
.scan-section h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }
.scan-section p.lede { font-size: 16px; color: #C8D2E0; line-height: 1.6; margin-bottom: 26px; }
.scan-form { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.scan-form input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: none; font-size: 15px; }
.scan-form button { padding: 14px 26px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); font-weight: 700; border: none; font-size: 15px; white-space: nowrap; }
.scan-form button:hover { background: #DAB96E; }
.scan-note { font-size: 12.5px; color: #9FACC0; }
.scan-example { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 22px; font-size: 13.5px; line-height: 1.55; color: #DDE4EE; }
.scan-example strong { color: white; }
.scan-result { display: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.scan-result.show { display: block; }

.scan-stat-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 30px; }
.scan-stat-box .stat-num { color: var(--gold); font-size: 54px; }
.scan-stat-box .stat-desc { color: #D3DAE6; }
.scan-stat-box .stat-source a { color: var(--gold); }

/* ===== How it works ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { position: relative; padding-top: 8px; }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); opacity: 0.55; line-height: 1; margin-bottom: 14px; }
.step-card h4 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
[data-theme='dark'] .step-card h4 { color: var(--text); }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ===== Examples ===== */
.examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.example-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--white); }
.example-status { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }
.example-status.live { background: var(--light-gold); color: var(--gold-deep); }
.example-status.soon { background: var(--light-navy); color: var(--navy); }
[data-theme='dark'] .example-status.soon { color: var(--text); background: rgba(255,255,255,0.12); }
.example-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
[data-theme='dark'] .example-card h3 { color: var(--text); }
.example-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; }
.example-card a.demo-link { font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }

/* ===== About / team ===== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; }
.team-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 19px; flex-shrink: 0; }
.team-card h4 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
[data-theme='dark'] .team-card h4 { color: var(--text); }
.team-role { font-size: 13px; color: var(--gold-deep); font-weight: 600; margin-bottom: 10px; }
.team-card p.bio { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ===== Contact ===== */
.contact-section { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info-card { background: var(--navy); color: white; border-radius: var(--radius); padding: 34px; }
.contact-info-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 14px; color: #D3DAE6; }
.contact-line strong { color: white; font-weight: 600; }
.contact-note { font-size: 12.5px; color: #9FACC0; margin-top: 18px; line-height: 1.5; }

.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--cream); font-size: 14.5px; }
.form-submit { margin-top: 6px; width: 100%; justify-content: center; padding: 13px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success h4 { font-family: var(--font-display); font-size: 20px; color: var(--navy); margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--text); }
.faq-q svg { transition: transform 0.2s ease; flex-shrink: 0; color: var(--gold-deep); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 200px; padding-top: 12px; }

/* ===== Closing CTA ===== */
.cta-section { text-align: center; padding: 90px 0; }
.cta-section h2 { font-family: var(--font-display); font-size: 36px; color: var(--navy); margin-bottom: 14px; }
[data-theme='dark'] .cta-section h2 { color: var(--text); }
.cta-section p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }

/* ===== Footer ===== */
footer { background: var(--navy-dark); color: #B7C1D1; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13.5px; margin-top: 12px; color: #94A1B5; line-height: 1.6; max-width: 260px; }
footer h5 { color: white; font-size: 13.5px; margin-bottom: 14px; }
footer ul { display: flex; flex-direction: column; gap: 9px; }
footer a { font-size: 13.5px; text-decoration: none; color: #B7C1D1; }
footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 12.5px; color: #7A87A0; }

/* ===== Chat widget (reuse pattern) ===== */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 120; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); border: none; }
.chat-window { position: fixed; bottom: 92px; right: 24px; z-index: 119; width: min(340px, calc(100vw - 48px)); max-height: min(520px, calc(100dvh - 140px)); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden; }
.chat-window.open { display: flex; }
.chat-window__head { background: var(--navy); color: white; padding: 16px 18px; }
.chat-window__head strong { display: block; font-size: 15px; }
.chat-window__head span { font-size: 12px; color: #B7C1D1; }
.chat-window__body { flex: 1; min-height: 130px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { background: var(--light-navy); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; max-width: 85%; }
.chat-quick { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 14px; }
.chat-quick button { text-align: left; padding: 9px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  nav.main-nav, .header-actions .btn-primary { display: none; }
  .mobile-nav-toggle { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }
  .hero-inner { grid-template-columns: 1fr; padding: 30px 0 40px; }
  .hero h1 { font-size: 36px; }
  .fatigue-grid, .scan-inner, .contact-grid { grid-template-columns: 1fr; }
  .pieces-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .examples-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scan-section { margin: 0 16px; padding: 40px 26px; }
}
@media (max-width: 560px) {
  .pieces-grid, .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
