/* TinyTale Landing Page — Clean, white, professional */

/* Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-2: #f1f3f5;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #9a9ab0;
  --text-faint: #c0c0d0;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-bg: #f5f3ff;
  --violet-border: #ddd6fe;
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --amber: #f59e0b;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-name {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-cta {
  margin-left: auto;
  padding: 7px 18px;
  background: var(--violet);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: -0.01em;
}

.nav-cta:hover { background: #6d28d9; }

/* Sections shared */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}

.section-headline {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  background: var(--white);
}

.hero-inner {
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet-bg);
  border: 1px solid var(--violet-border);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--violet);
  letter-spacing: 0.03em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 400;
}

/* Browser mockup */
.hero-browser {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  max-width: 620px;
  width: 100%;
  margin: 8px 0;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-address {
  margin-left: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font);
  letter-spacing: 0.03em;
}

.browser-body { padding: 24px; }

.browser-story {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  text-align: left;
}

.story-genre {
  font-size: 10px;
  color: var(--violet-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.story-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.story-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-model {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.story-offline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
  font-weight: 500;
}

.browser-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.input-icon { flex-shrink: 0; }

.input-placeholder {
  font-size: 13px;
  color: var(--text-faint);
}

.generate-btn {
  background: var(--violet);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  border: none;
}

.generate-btn:hover { background: #6d28d9; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* How it works */
.how {
  padding: 100px 48px;
  background: var(--surface);
}

.how-inner {
  max-width: 860px;
  margin: 0 auto;
}

.how-header {
  margin-bottom: 56px;
}

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

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

@media (max-width: 639px) {
  .step { padding: 22px 24px; }
  .step + .step { margin-top: 14px; }
}

.step-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

/* Tiers */
.tiers {
  padding: 100px 48px;
  background: var(--white);
}

.tiers-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.tiers .section-headline { margin-bottom: 40px; }

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 680px) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.tier-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}

.tier-pro {
  border-color: var(--violet-border);
  box-shadow: 0 0 0 1px var(--violet-border), 0 2px 8px rgba(124,58,237,0.08);
}

.tier-pro:hover {
  box-shadow: 0 0 0 1px var(--violet-border), 0 4px 20px rgba(124,58,237,0.12);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.tier-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.tier-price {
  margin-bottom: 4px;
}

.price-main {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.tier-model {
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  font-weight: 500;
}

.tier-features {
  list-style: none;
  margin-bottom: 20px;
}

.tier-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.tier-features li:last-child { border-bottom: none; }

.tier-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-light);
  flex-shrink: 0;
}

.tier-who {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--violet-bg);
  border: 1px solid var(--violet-border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tier-insight svg { flex-shrink: 0; margin-top: 1px; }

/* Privacy */
.privacy {
  padding: 100px 48px;
  background: var(--surface);
}

.privacy-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 800px) {
  .privacy-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.privacy-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.privacy-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 32px;
}

.privacy-stats {
  display: flex;
  gap: 28px;
}

.stat-value {
  font-size: 34px;
  font-weight: 700;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Vault */
.vault {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.vault-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.vault-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.vault-dot.active {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

.vault-label {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.vault-body { padding: 16px; }

.vault-line {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.vault-line:last-child { border-bottom: none; }

.vault-tag {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.vault-val {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.vault-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.vault-status.ok {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}

.vault-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  background: var(--green-bg);
}

/* Manifesto */
.manifesto {
  padding: 100px 48px;
  background: var(--white);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.manifesto-quote {
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 36px;
  border-left: 3px solid var(--violet-border);
  padding-left: 24px;
  font-weight: 400;
}

.manifesto-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 18px;
}

.manifesto-body p:last-child { margin-bottom: 0; }

/* Closing */
.closing {
  padding: 100px 48px;
  background: var(--surface);
}

.closing-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 800px) {
  .closing-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.closing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.closing-headline {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.closing-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 28px;
}

.closing-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tab stack */
.tab-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 400px;
  margin-left: auto;
}

.tab-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tab-deepest {
  border-radius: 12px 12px 0 0;
  opacity: 0.4;
  transform: scale(0.95) translateY(-4px);
}

.tab-mid {
  opacity: 0.75;
  transform: scale(0.97) translateY(-2px);
  border-radius: 12px 12px 0 0;
  margin-top: -1px;
}

.tab-top {
  border-radius: 12px;
  background: var(--white);
  border-color: var(--violet-border);
  box-shadow: 0 0 0 1px var(--violet-border), 0 2px 8px rgba(124,58,237,0.08);
  margin-top: -1px;
}

.tab-label {
  font-size: 11px;
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tab-preview {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Footer */
.footer {
  padding: 48px 48px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-weight: 400;
}

.footer-sep { color: var(--border); }

.footer-copy {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 480px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 100px 20px 60px; }
  .how, .tiers, .privacy, .manifesto, .closing { padding: 72px 20px; }
  .footer { padding: 36px 20px; }
  .browser-body { padding: 16px; }
  .tier-card { padding: 22px; }
  .privacy-stats { gap: 16px; }
  .stat-value { font-size: 26px; }
}