/* MapleBooks Marketing Site — Apple-inspired, mobile-first */

:root {
  --blue-50: #eaf1fa;
  --blue-100: #d9e8f8;
  --blue-500: #1b6fd1;
  --blue-600: #2b7fe0;
  --blue-700: #4a5fc1;
  --gray-50: #f7f9fc;
  --gray-100: #f2f4f7;
  --gray-200: #e8ecf1;
  --gray-400: #8b95a5;
  --gray-600: #5c6678;
  --gray-800: #2d3440;
  --gray-900: #1a1f28;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(26, 31, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 111, 209, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 111, 209, 0.12);
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-600);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.nav-desktop a:hover {
  color: var(--gray-900);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-800);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--gray-100);
}

.nav-toggle-icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon-close {
  display: block;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 40, 0.35);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 16px 24px 32px;
  flex-direction: column;
  gap: 0;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 12px 40px rgba(26, 31, 40, 0.12);
  border-top: 1px solid var(--gray-200);
}

.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a:last-child {
  margin-top: 12px;
  padding: 14px 20px;
  text-align: center;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 980px;
  border-bottom: none;
  font-weight: 600;
}

.nav-mobile a:last-child:hover {
  color: var(--white);
  background: var(--blue-600);
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-secondary:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-outline {
  background: transparent;
  color: var(--blue-500);
  border: 1.5px solid var(--blue-500);
}

.btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 72%);
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--white);
  border-radius: 980px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 111, 209, 0.12);
}

.hero h1 {
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--gray-900);
  margin-bottom: 18px;
}

.hero .subhead {
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-cta .btn-primary {
  width: 100%;
  max-width: 280px;
  padding: 14px 28px;
  font-size: 16px;
}

.hero-cta .btn-secondary {
  width: 100%;
  max-width: 280px;
  padding: 12px 24px;
  font-size: 15px;
}

.trust-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-400);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-device {
  margin-top: 40px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.hero-device .app-screenshot-frame {
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Value cards */
.card-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 10px;
  color: var(--blue-500);
}

.feature-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 15px;
  color: var(--gray-600);
}

/* How it works */
.steps {
  display: grid;
  gap: 32px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-500);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.step p {
  font-size: 15px;
  color: var(--gray-600);
}

/* Screenshots */
.screenshots-section {
  padding-top: 64px;
}

.screenshot-showcase {
  display: grid;
  gap: 32px;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.screenshot-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.app-screenshot-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 32px;
  border: 3px solid var(--gray-200);
  background: var(--gray-100);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app-screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 55%, var(--gray-50) 100%);
  text-align: center;
}

.app-screenshot-placeholder .placeholder-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 980px;
  border: 1px solid var(--blue-100);
}

.app-screenshot-placeholder .placeholder-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
}

.app-screenshot-placeholder .placeholder-spec {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.45;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  gap: 16px;
}

.roadmap-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.roadmap-card .roadmap-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 980px;
}

.roadmap-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.roadmap-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
}

.roadmap-disclaimer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  font-family: inherit;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--gray-400);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--blue-500);
}

.cta-section .btn-primary:hover {
  background: var(--gray-50);
  color: var(--blue-600);
}

.cta-section .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cta-footer-note {
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.75;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  text-align: center;
}

/* Legal / prose pages */
.page-hero {
  padding: 48px 0 32px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.page-hero .meta {
  font-size: 14px;
  color: var(--gray-400);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 28px 0 8px;
}

.prose p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 24px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  word-break: break-word;
}

.prose .notice {
  padding: 16px 20px;
  background: var(--blue-50);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--blue-700);
  margin-bottom: 24px;
  border-left: 3px solid var(--blue-500);
}

/* Who it is for */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.tag {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

/* Scope callout */
.scope-callout {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.scope-callout p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Responsive */
@media (min-width: 640px) {
  .hero {
    padding: 72px 0 80px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: auto;
    max-width: none;
  }

  .screenshot-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero {
    padding: 96px 0 100px;
  }

  .hero-device {
    max-width: 300px;
  }

  .screenshot-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .screenshot-showcase {
    grid-template-columns: repeat(5, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
