:root {
  --cream: #f8f7fc;
  --cream-dark: #edeaf5;
  --ink: #0c1220;
  --ink-muted: #4a5568;
  --ink-light: #6b7280;
  --orange: #00d4aa;
  --orange-hover: #00b894;
  --orange-light: #e6fff8;
  --purple: #a78bfa;
  --purple-dark: #7c3aed;
  --teal: #00d4aa;
  --teal-light: #e6fff8;
  --white: #ffffff;
  --border: #e2e0ea;
  --shadow-sm: 0 2px 8px rgba(28, 43, 58, 0.06);
  --shadow-md: 0 8px 32px rgba(28, 43, 58, 0.1);
  --shadow-lg: 0 16px 48px rgba(28, 43, 58, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.hidden { display: none !important; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.btn-ghost:hover { color: var(--orange); }

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

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

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

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

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-wordmark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.logo--lockup {
  gap: 0.5rem;
}

.logo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 1;
}

.logo-text {
  letter-spacing: -0.02em;
}

.logo-sim {
  color: var(--teal);
}

.patent-gate-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(12, 18, 32, 0.12);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--orange); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 4vw 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.nav-mobile a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav-mobile.open { display: flex; }

/* ─── Typography helpers ─── */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-title.center { text-align: center; }

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 680px;
  line-height: 1.7;
}

.section-lead.center { margin: 0 auto 3rem; text-align: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 1rem;
}

.link-arrow::after { content: '→'; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ─── Hero ─── */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 45%, #ddd6f3 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-visual {
  position: relative;
  height: 420px;
}

.hero-device {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.device-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-align: center;
}

.device-book {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #0c1220 50%, #00d4aa 100%);
  margin-bottom: 1rem;
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.2);
}

.device-btn {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  animation: float 4s ease-in-out infinite;
}

.hero-card strong { display: block; color: var(--ink); }
.hero-card span { color: var(--ink-light); font-size: 0.75rem; }

.hero-card-1 { left: 0; top: 15%; animation-delay: 0s; }
.hero-card-2 { left: 10%; bottom: 20%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mini-cover {
  width: 36px;
  height: 48px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cover-1 { background: linear-gradient(160deg, #a78bfa, #7c3aed); }
.cover-2 { background: linear-gradient(160deg, #00d4aa, #059669); }

/* ─── Features tabs ─── */
.features {
  padding: 5rem 0;
  background: var(--white);
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.feature-tab {
  padding: 0.85rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-light);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.feature-tab:hover { color: var(--ink); }

.feature-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.feature-panel {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-illustration {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-text h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.feature-text p {
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

/* Illustration elements */
.ill-book-stack { position: relative; width: 120px; height: 100px; }
.ill-book {
  position: absolute;
  width: 70px;
  height: 90px;
  border-radius: 4px 8px 8px 4px;
  box-shadow: var(--shadow-sm);
}
.ill-book.b1 { background: #a78bfa; left: 0; top: 10px; transform: rotate(-8deg); }
.ill-book.b2 { background: #00d4aa; left: 25px; top: 0; z-index: 1; }
.ill-book.b3 { background: #6366f1; left: 50px; top: 12px; transform: rotate(6deg); }

.ill-form {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 140px;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.ill-input { height: 28px; background: var(--cream); border-radius: 4px; margin-bottom: 0.5rem; }
.ill-btn-sm { height: 32px; background: var(--orange); border-radius: 4px; }

.ill-envelope {
  width: 140px;
  height: 100px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink-muted);
  position: relative;
}
.ill-seal {
  position: absolute;
  top: -12px;
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: 50%;
}
.ill-lock { position: absolute; bottom: 20%; right: 20%; font-size: 2rem; }

.ill-avatars { display: flex; gap: -8px; }
.ill-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -12px;
}
.ill-avatar:first-child { margin-left: 0; }
.ill-avatar.a1 { background: #c45c26; }
.ill-avatar.a2 { background: #2a7d6e; }
.ill-avatar.a3 { background: #3d5a80; }
.ill-swap-arrow { font-size: 2.5rem; color: var(--orange); margin-left: 1.5rem; }

.ill-cart {
  width: 100px;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.ill-cart-item { height: 20px; background: var(--cream-dark); border-radius: 3px; margin-bottom: 0.4rem; }
.ill-delivery { font-size: 2rem; color: var(--teal); margin-left: 1rem; }

.ill-qr {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background-image:
    linear-gradient(90deg, var(--ink) 2px, transparent 2px),
    linear-gradient(var(--ink) 2px, transparent 2px);
  background-size: 8px 8px;
}
.ill-code {
  margin-top: 1rem;
  font-family: monospace;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--orange);
}

.ill-pdf {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c0392b;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.ill-pages { display: flex; gap: 0.5rem; margin-left: 1rem; }
.ill-page {
  width: 40px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ─── CTA band ─── */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band .btn-primary:hover { color: var(--white); }

/* ─── Platform ─── */
.platform {
  padding: 5rem 0;
  background: var(--white);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.platform-card {
  background: var(--cream);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.platform-card-active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  box-shadow: var(--shadow-md);
}

.platform-card-soon {
  opacity: 0.85;
}

.platform-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.platform-card-active .platform-badge {
  background: var(--accent);
}

.platform-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.platform-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.platform-tagline {
  margin-top: 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Creation types (Studio formats) ─── */
.creation-types {
  padding: 4rem 0 5rem;
  background: var(--cream);
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.creation-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem;
  text-align: center;
  opacity: 0.55;
}

.creation-card-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.creation-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.creation-card h3 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.creation-card p {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.footer-sim {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ─── Trust ─── */
.trust {
  padding: 5rem 0;
  background: var(--cream);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.trust-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ─── Support ─── */
.support {
  padding: 5rem 0;
  background: var(--white);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.support-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.support-copy p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.support-highlight {
  font-size: 1.05rem;
  color: var(--ink) !important;
  padding: 1rem 0;
}

.support-chat {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.chat-them {
  background: var(--white);
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-us {
  background: var(--teal);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-badge {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Demos ─── */
.demos {
  padding: 5rem 0;
  background: var(--cream-dark);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.demo-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: box-shadow 0.2s, transform 0.2s;
}

.demo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--ink);
}

.demo-cover {
  width: 72px;
  height: 96px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #a78bfa, #7c3aed);
}

.demo-cover-alt { background: linear-gradient(160deg, #00d4aa, #059669); }

.demo-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.demo-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─── Testimonials ─── */
.testimonials {
  padding: 5rem 0;
  background: var(--white);
}

.testimonial-slider { margin-top: 2.5rem; }

.testimonial-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  scroll-behavior: smooth;
}

.testimonial-card {
  flex: 0 0 min(100%, 640px);
  background: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-card p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.testimonial-card footer strong {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
}

.testimonial-card footer span {
  font-size: 0.88rem;
  color: var(--ink-light);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.testimonial-btn:hover {
  border-color: var(--orange);
  background: var(--orange-light);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.testimonial-dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

/* ─── Pricing preview ─── */
.pricing-preview {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ede9fe 0%, var(--teal-light) 100%);
}

.pricing-preview-inner {
  text-align: center;
}

.pricing-preview h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.pricing-sub {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* ─── Pricing page ─── */
.pricing-page .pricing-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.pricing-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.pricing-hero-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.pricing-guarantee {
  font-size: 0.95rem;
  color: var(--ink-light);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.billing-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.billing-btn {
  padding: 0.55rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.billing-btn.active {
  background: var(--orange);
  color: var(--white);
}

.pricing-cards { padding: 2rem 0 4rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.plan-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  text-align: center;
}

.plan-price {
  text-align: center;
  margin-bottom: 0.5rem;
}

.plan-price > span {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-price > span span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-light);
}

.price-note {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.plan-tagline {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.plan-features {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.plan-features li {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding-left: 1.5rem;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.comparison {
  padding: 3rem 0 4rem;
  background: var(--cream);
}

.comparison h2 {
  font-family: var(--font-serif);
  text-align: center;
  margin-bottom: 2rem;
}

.table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.compare-table .yes { color: var(--teal); font-weight: 700; }
.compare-table .no { color: var(--ink-light); }

.publishers-cta {
  padding: 3rem 0 4rem;
  text-align: center;
  background: var(--white);
}

.publishers-cta h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo { color: var(--white); }

.footer-brand .logo-wordmark { height: 30px; }

.footer-brand .logo-sim { color: var(--teal); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; }

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

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

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

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid,
  .feature-panel-grid,
  .support-grid,
  .trust-grid,
  .platform-grid,
  .creation-grid,
  .demo-grid,
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { height: 300px; margin-top: 1rem; }
  .hero-device { width: 200px; right: 10%; }
  .plan-card.featured { transform: none; }

  .cta-band-inner { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-actions { display: none; }

  .nav-toggle { display: flex; }

  .feature-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }

  .testimonial-card { flex: 0 0 100%; }
}

/* ─── SIM Ph.D. Editorial Standard page ─── */
.standard-page .standard-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.standard-hero .standard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.standard-hero .standard-badge-icon { font-size: 1.1rem; }

.standard-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.standard-hero-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 1rem;
}

.standard-meta {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.standard-doc {
  padding: 0 0 4rem;
}

.standard-doc-inner {
  max-width: 780px;
  margin: 0 auto;
}

.standard-disclaimer {
  background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.standard-disclaimer strong { color: var(--ink); }

.standard-section {
  margin-bottom: 2.75rem;
}

.standard-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cream-dark);
}

.standard-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.standard-section p,
.standard-section li {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.standard-section p { margin-bottom: 0.85rem; }

.standard-section ul,
.standard-section ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.standard-section li { margin-bottom: 0.4rem; }

.standard-pipeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.pipeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.pipeline-card .phase-num {
  display: inline-block;
  background: var(--orange-light);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.pipeline-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.pipeline-card p {
  margin: 0;
  font-size: 0.92rem;
}

.standard-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.standard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.standard-table th,
.standard-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.standard-table th {
  background: var(--cream-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.standard-table tr:last-child td { border-bottom: none; }

.standard-table .grade-cell {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 3.5rem;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.guarantee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.guarantee-card.guarantee-yes { border-left: 4px solid var(--teal); }
.guarantee-card.guarantee-no { border-left: 4px solid #e8a0a0; }

.guarantee-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.guarantee-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guarantee-card li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.schema-block {
  background: var(--ink);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 1rem 0;
}

.schema-block .key { color: #7dd3fc; }
.schema-block .str { color: #86efac; }

.standard-cta {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.standard-cta p {
  margin-bottom: 1rem;
  color: var(--ink-muted);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.knowledge-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.knowledge-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.knowledge-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.knowledge-domains-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.5rem;
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.2rem;
}

.knowledge-domains-list li {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.knowledge-caveat {
  font-size: 0.9rem !important;
  color: var(--ink-light) !important;
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin-top: 1rem !important;
}

/* ─── SIM Ph.D. scorecard ─── */
.scorecard-root { margin-top: 1.25rem; }

.scorecard-loading,
.scorecard-error {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.scorecard-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.scorecard-hero.scorecard-pass {
  background: linear-gradient(135deg, #e6fff8 0%, #f0fdf9 100%);
  border-color: #9de8d5;
}

.scorecard-hero.scorecard-fail {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-color: #f0c4c4;
}

.scorecard-hero-grade {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 3px solid currentColor;
  font-weight: 700;
}

.scorecard-letter {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1;
}

.scorecard-pct {
  font-size: 0.8rem;
  opacity: 0.85;
}

.scorecard-hero-copy strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.scorecard-hero-copy p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.scorecard-meta {
  font-size: 0.82rem !important;
  color: var(--ink-light) !important;
}

.grade-a { color: #059669; }
.grade-b { color: #d97706; }
.grade-c { color: #dc2626; }
.grade-d { color: #991b1b; }

.scorecard-dimensions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.scorecard-dim {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.scorecard-dim-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  margin-bottom: 0.35rem;
}

.scorecard-dim-grade {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.scorecard-dim-pct {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.scorecard-modality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0.75rem 0 1.5rem;
}

.scorecard-modality {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.scorecard-modality strong {
  color: var(--teal);
  font-size: 1rem;
}

.scorecard-table code {
  font-size: 0.8rem;
  background: var(--cream-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.scorecard-gaps {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: #fffbeb;
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
}

.scorecard-gaps h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.scorecard-gaps ul {
  margin: 0;
  padding-left: 1.2rem;
}

.scorecard-gaps li {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.scorecard-rerun {
  margin-top: 1.25rem !important;
  font-size: 0.85rem !important;
  color: var(--ink-light) !important;
}

.scorecard-rerun code {
  background: var(--cream-dark);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .standard-pipeline,
  .guarantee-grid,
  .knowledge-grid,
  .knowledge-domains-list { grid-template-columns: 1fr; }

  .scorecard-hero { flex-direction: column; text-align: center; }
  .scorecard-dimensions { grid-template-columns: repeat(2, 1fr); }
  .scorecard-modality-grid { grid-template-columns: 1fr; }
}

/* ─── Auth & gate ─── */
.patent-gate-page {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.08), transparent 55%), var(--paper);
}
.patent-gate-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.patent-gate-card {
  width: min(400px, 100%);
  text-align: center;
}
.patent-gate-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.patent-gate-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin: 0 0 0.5rem;
  font-weight: 400;
}
.patent-gate-tagline {
  color: var(--ink-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
}
.patent-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.patent-gate-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}
.patent-gate-foot {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.patent-gate-foot a { color: var(--ink-muted); text-decoration: none; }
.patent-gate-foot a:hover { color: var(--accent); }
.patent-gate-foot span { margin: 0 0.5rem; opacity: 0.5; }
.form-success {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0;
}

.auth-page { min-height: 100vh; }
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  min-height: calc(100vh - var(--header-h));
}
.auth-card {
  width: min(480px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-lead { color: var(--ink-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.auth-form label { display: block; margin-bottom: 1rem; }
.auth-form label span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.checkbox-label {
  display: flex !important;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.checkbox-label input { margin-top: 0.2rem; }
.auth-footer { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-muted); text-align: center; }
.form-error { color: #dc2626; font-size: 0.9rem; margin-top: 0.75rem; }
.form-success { color: #059669; font-size: 0.9rem; margin-top: 0.75rem; }

.gate-banner {
  background: linear-gradient(135deg, #0c1220 0%, #1a2744 100%);
  color: var(--white);
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.gate-banner strong { color: var(--orange); }

.access-request-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.access-request-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.access-request-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.access-request-form h2 { font-family: var(--font-serif); margin-bottom: 0.5rem; }
.access-request-form label { display: block; margin-bottom: 1rem; }
.access-request-form label span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.access-request-form input,
.access-request-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}
.access-request-copy h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }
.access-request-copy p { color: var(--ink-muted); margin-bottom: 1rem; }
.access-request-steps { list-style: none; margin-top: 1.5rem; }
.access-request-steps li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.access-request-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.access-request-steps { counter-reset: step; }

.admin-page .admin-main { padding: 2rem 0 4rem; }
.admin-lead { color: var(--ink-muted); margin-bottom: 1.5rem; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--cream); font-weight: 600; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.account-card .account-info p { margin-bottom: 0.5rem; }
.account-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

@media (max-width: 768px) {
  .access-request-grid { grid-template-columns: 1fr; }
}