/* InkHero — Warm Paper & Ink Landing Page Design System */
:root {
  --bg-paper: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3EFE8;
  --bg-story: #F5F0E6;
  --text-main: #18181B;
  --text-muted: #52525B;
  --border-soft: rgba(24, 24, 27, 0.08);
  --ink-blue: #1D5CE5;
  --ink-blue-hover: #1649BA;
  --ink-blue-soft: rgba(29, 92, 229, 0.09);
  --magic-gold: #F59E0B;
  --gold-soft: rgba(245, 158, 11, 0.15);
  --emerald: #22C55E;
  --emerald-soft: rgba(34, 197, 94, 0.13);
  --coral: #EF4444;
  --shadow-card: 0 12px 32px -10px rgba(24, 24, 27, 0.07), 0 2px 6px -1px rgba(24, 24, 27, 0.03);
  --shadow-hero: 0 24px 48px -14px rgba(24, 24, 27, 0.10);
  --radius-card: 20px;
  --radius-pill: 999px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-paper);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-paper);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none !important;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink-blue);
  text-decoration: none;
}

.header-cta {
  background: var(--ink-blue);
  color: #FFFFFF !important;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
}

.header-cta:hover {
  background: var(--ink-blue-hover);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--ink-blue);
  color: #FFFFFF;
}

/* 1. Landing Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-blue-soft);
  color: var(--ink-blue);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.eyebrow.gold {
  background: var(--gold-soft);
  color: #B45309;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 48ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-blue);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -6px rgba(29, 92, 229, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-main) !important;
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 15px 20px;
  border-radius: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
}

.btn-secondary:hover {
  border-color: rgba(29, 92, 229, 0.35);
  transform: translateY(-1px);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
}

.hero-visual {
  background: var(--bg-card);
  padding: 14px;
  border-radius: 26px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-hero);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-soft);
  color: #15803D;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

/* Sections */
section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 42px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.06rem;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--ink-blue-soft);
  color: var(--ink-blue);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-box.gold {
  background: var(--gold-soft);
  color: #B45309;
}

.icon-box.green {
  background: var(--emerald-soft);
  color: #15803D;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

/* 3. Analog Storytelling Section */
.story-band {
  background: var(--bg-story);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 44px;
  align-items: center;
}

.story-visual {
  background: var(--bg-card);
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.story-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.story-content h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 16px;
}

.story-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
  line-height: 1.68;
}

.story-quote {
  background: var(--bg-card);
  border-left: 4px solid var(--ink-blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.96rem;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.04);
}

/* Paper Preview Card */
.paper-demo {
  background: #FFFFFF;
  border: 1px dashed rgba(24, 24, 27, 0.22);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 18px;
}

.paper-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ruled-row {
  padding: 5px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1.5px solid #94A3B8;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  color: rgba(24, 24, 27, 0.22);
  font-weight: 500;
}

.ruled-row span.traced {
  color: var(--ink-blue);
  font-weight: 600;
}

/* Scripts & Stages */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 10px;
}

.tag small {
  color: var(--text-muted);
  font-weight: 500;
}

/* Family Plan */
.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.featured {
  border: 2px solid var(--ink-blue);
}

.plan-pill {
  display: inline-block;
  background: var(--gold-soft);
  color: #B45309;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  width: fit-content;
}

.check-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* Bottom CTA Banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto 26px;
}

/* Subpages (Privacy / Support) */
.page-hero {
  padding: 48px 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.doc-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 60px;
}

.doc-stack .card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-stack .card p + p {
  margin-top: 10px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.footer-links a {
  color: var(--text-main);
}

.footer-legal {
  max-width: 580px;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  section {
    padding: 48px 0;
  }
}
