/* SurfLexAI landing — design system */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08), 0 10px 20px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

html[data-theme="dark"] {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #1a1a25;
  --border: #26263a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --accent-2: #c084fc;
  --accent-soft: rgba(129, 140, 248, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
  --gradient-soft: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, rgba(192, 132, 252, 0.15) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── Header ───── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] header {
  background: rgba(10, 10, 15, 0.85);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:not(.btn):hover { color: var(--text); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-muted); }

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

/* ───── Hero ───── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-soft);
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero .container { text-align: center; max-width: 820px; }

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero .badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-preview {
  margin: 64px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar .url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.mock-body {
  padding: 32px;
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.mock-body .target-word {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Hero mock — side-by-side layout (text + popup) */
.hero-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  text-align: left;
  align-items: start;
}
.hero-mock-grid .text-side .line {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}
.hero-mock-grid .popup-side .mock-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 760px) {
  .hero-mock-grid { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
}
.mock-tooltip {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: inline-block;
  max-width: 360px;
}
.mock-tooltip .tt-word { font-weight: 700; font-size: 16px; }
.mock-tooltip .tt-tr { color: var(--accent); font-weight: 600; margin-top: 2px; }
.mock-tooltip .tt-ctx { color: var(--text-muted); font-size: 13px; margin-top: 8px; font-style: italic; }

/* ───── Sections ───── */
section { padding: 96px 0; }

.section-title { text-align: center; margin-bottom: 56px; }
.section-title .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.section-title p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ───── Features ───── */
.features { background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient-soft);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 18px;
}

/* ───── Waitlist form (Paddle checkout devre dışıyken) ───── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.waitlist-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: var(--surface-2, rgba(255,255,255,0.04));
  color: var(--text, inherit);
  font-size: 15px;
  font-family: inherit;
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.waitlist-form button {
  width: 100%;
}
.waitlist-status {
  margin: 4px 0 0;
  font-size: 13px;
  min-height: 18px;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ───── Showcase (feature deep-dive) ───── */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}
.showcase-block:last-child { margin-bottom: 0; }
.showcase-block.reverse .showcase-text { order: 2; }
.showcase-block.reverse .showcase-visual { order: 1; }

.showcase-text .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.showcase-text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.showcase-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 20px;
  line-height: 1.7;
}
.showcase-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.showcase-text ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 14.5px;
  color: var(--text);
}
.showcase-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
}

.device-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.3s ease;
}
.device-frame:hover { transform: translateY(-6px); }

.device-frame .frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.device-frame .frame-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.device-frame .frame-bar .label {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
}

/* Decorative glow behind visual */
.showcase-visual {
  position: relative;
}
.showcase-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--gradient-soft);
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}

/* ── Mock UI primitives (shared by showcase mocks) ── */
.mock { padding: 18px; font-size: 13px; line-height: 1.5; }
.mock-row { display: flex; gap: 8px; align-items: center; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.mock-stats .stat { text-align: center; }
.mock-stats .stat .lbl {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock-stats .stat .val {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1;
}

.mock-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  overflow-x: hidden;
  font-size: 11px;
}
.mock-tabs .tab {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.mock-tabs .tab.active {
  background: var(--gradient);
  color: white;
  font-weight: 600;
}

.mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.mock-word-big {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin: 22px 0 6px;
  letter-spacing: -0.01em;
}
.mock-word-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.mock-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.mock-btn {
  font-size: 11px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  text-align: center;
}
.mock-btn.red { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.mock-btn.green { border-color: rgba(34,197,94,0.4); color: #22c55e; }
.mock-btn.gold { border-color: rgba(245,158,11,0.5); color: #f59e0b; }
.mock-btn.primary {
  background: var(--gradient);
  color: white;
  border: none;
}

.mock-sentence {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12.5px;
}
.mock-sentence .en { color: var(--text); }
.mock-sentence .tr {
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}
.mock-pill {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}
.mock-pill.dim {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
  letter-spacing: 0.1em;
}

.mock-input {
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text);
  margin-top: 8px;
}
.mock-input.dim { border-color: var(--border); color: var(--text-muted); font-style: italic; }

.mock-quiz-q {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}
.mock-quiz-word {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.mock-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
}
.mock-option.correct {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.4);
  color: #22c55e;
  font-weight: 700;
}

.mock-score {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 14px;
  font-size: 11px;
}
.mock-score .ok { color: #22c55e; font-weight: 600; }
.mock-score .err { color: #ef4444; font-weight: 600; }

.mock-listen-key {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.mock-listen-key b { color: var(--text); font-weight: 700; font-size: 13px; }

.mock-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.mock-controls .mock-btn { flex: 1; padding: 8px 0; font-size: 11px; }

.mock-slider {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  position: relative;
  margin: 12px 0;
}
.mock-slider::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 60%;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
}
.mock-slider .thumb {
  position: absolute;
  left: 58%;
  top: -4px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(99,102,241,0.4);
}

.mock-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-select .caret { color: var(--text-muted); font-size: 10px; }

/* Chat */
.mock-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.mock-chat-header .title { font-weight: 600; }
.mock-chat-header .actions { color: var(--text-muted); font-size: 10px; }
.mock-bubble {
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 85%;
  margin-bottom: 8px;
}
.mock-bubble.ai {
  background: var(--surface-2);
  color: var(--text);
}
.mock-bubble.ai .tr {
  color: var(--text-muted);
  font-style: italic;
  font-size: 11px;
  margin-top: 6px;
}
.mock-bubble.user {
  background: var(--gradient);
  color: white;
  margin-left: auto;
  text-align: right;
}
.mock-chat-input {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}
.mock-chat-input .field {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.mock-chat-input .send {
  background: var(--gradient);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Topic lesson */
.mock-topic h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent);
}
.mock-topic p { font-size: 12px; color: var(--text); margin: 0 0 8px; line-height: 1.6; }
.mock-topic h5 {
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--text);
}
.mock-topic ul { margin: 0 0 8px; padding-left: 18px; }
.mock-topic li { font-size: 11.5px; color: var(--text); margin-bottom: 3px; }
.mock-topic code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  font-family: ui-monospace, monospace;
}

/* Word forms modal */
.mock-modal-head {
  background: var(--gradient);
  color: white;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 14px;
  margin: -18px -18px 14px;
  display: flex;
  justify-content: space-between;
}
.mock-modal-head .x { opacity: 0.8; }
.mock-types-btn {
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.mock-forms-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mock-form-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.mock-form-row .pos {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.mock-form-row .en { font-weight: 600; color: var(--accent); }
.mock-form-row .tr { color: var(--text-muted); font-size: 11.5px; text-align: right; }

.mock-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
}

/* Tooltip mock (small) */
.mock-text-line {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 6px;
}
.mock-target {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
}

/* Highlight styles for in-page words */
.word-saved {
  text-decoration: underline wavy #ef4444;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  color: var(--text);
}
.word-type {
  text-decoration: underline solid #3b82f6;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  color: var(--text);
}

/* Highlight legend pill */
.mock-legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.mock-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mock-legend .sw {
  width: 16px; height: 3px; border-radius: 2px;
}
.mock-legend .sw.red { background: #ef4444; }
.mock-legend .sw.blue { background: #3b82f6; }

/* Gemini footer */
.mock-gemini-footer {
  margin: 14px -4px -4px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));
  border-radius: 8px;
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid var(--border);
}
.mock-gemini-footer b { color: var(--accent); font-weight: 600; }

/* Soru sor / düzelt / analiz secondary row */
.mock-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.mock-secondary-actions .mock-btn {
  font-size: 10.5px;
  background: var(--surface-2);
}

/* Daily streak mockup */
.mock-streak-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mock-streak-head .left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-streak-head .num {
  font-size: 26px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
}
.mock-streak-head .lbl {
  font-size: 12px;
  color: var(--text-muted);
}
.mock-streak-head .goal-pill {
  font-size: 11px;
  background: var(--surface-2);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.mock-streak-bar {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.mock-streak-bar .fill {
  height: 100%;
  width: 70%;
  background: var(--gradient);
}

.mock-streak-progress {
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--text-muted);
  margin: 6px 0 18px;
}
.mock-streak-progress b { color: var(--text); font-weight: 700; }

.mock-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.mock-days .day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.mock-days .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.mock-days .day.done .num {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border-color: rgba(34,197,94,0.4);
}
.mock-days .day.today .num {
  background: var(--gradient);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.mock-days .lbl {
  font-size: 10px;
  color: var(--text-muted);
}
.mock-days .day.today .lbl {
  color: var(--accent);
  font-weight: 700;
}

.mock-streak-msg {
  text-align: center;
  margin-top: 18px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
}

.mock-divider {
  border-top: 1px dashed var(--border);
  position: relative;
  margin: 4px 0 14px;
  text-align: right;
}
.mock-divider span {
  position: absolute;
  right: 0;
  top: -8px;
  background: var(--bg);
  padding-left: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

/* Phone frame variant */
.device-frame.phone {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px;
  border: 8px solid var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.2);
}
html[data-theme="dark"] .device-frame.phone {
  border-color: #2a2a35;
}
.device-frame.phone .phone-bar {
  background: var(--bg);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border-bottom: none;
}
.device-frame.phone .phone-bar .indicators {
  display: flex;
  gap: 4px;
  font-size: 10px;
}
.device-frame.phone .app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.device-frame.phone .phone-screen {
  background: var(--bg);
}
.device-frame.phone .sync-banner {
  margin: 12px 14px 0;
  padding: 8px 12px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px;
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.device-frame.phone .mock { padding: 14px; }
.device-frame.phone .bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 0 12px;
}
.device-frame.phone .bottom-nav .nav-item {
  text-align: center;
  font-size: 9.5px;
  color: var(--text-muted);
}
.device-frame.phone .bottom-nav .nav-item .ic { font-size: 16px; display: block; margin-bottom: 2px; }
.device-frame.phone .bottom-nav .nav-item.active { color: var(--accent); font-weight: 600; }

@media (max-width: 860px) {
  .showcase-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }
  .showcase-block.reverse .showcase-text { order: 1; }
  .showcase-block.reverse .showcase-visual { order: 2; }
}

/* ───── Steps ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.step h3 { margin: 8px 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ───── Platforms ───── */
.platforms { background: var(--surface); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.platform {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.platform .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform .icon svg { width: 24px; height: 24px; }
.platform h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.platform p { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }

/* ───── FAQ ───── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.2s;
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ───── CTA ───── */
.cta {
  text-align: center;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  margin: 96px auto;
  max-width: 1140px;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.cta p {
  font-size: 17px;
  opacity: 0.92;
  margin: 0 auto 28px;
  max-width: 520px;
}
.cta .btn-primary {
  background: white;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta .btn-primary:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

/* ───── Pricing ───── */
.pricing-header { text-align: center; padding: 80px 0 32px; }
.pricing-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.pricing-header p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 32px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.2s;
}
.billing-toggle button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.billing-toggle .save-badge {
  background: var(--gradient-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 48px auto 0;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s;
}
.plan.featured {
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.plan .plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan h2 {
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 4px;
}
.plan .price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.plan .price-note {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 24px;
  min-height: 20px;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; }
.plan li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14.5px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
}
.plan li.no { color: var(--text-muted); opacity: 0.6; }
.plan li.no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}
.plan .btn { width: 100%; }
.plan .btn-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  padding: 8px;
}
.plan .btn-link:hover { color: var(--accent); }

.pricing-footer {
  text-align: center;
  margin-top: 56px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.pricing-footer p { margin: 6px 0; }

/* ───── Legal pages ───── */
.legal {
  max-width: 760px;
  padding: 80px 24px;
  margin: 0 auto;
}
.legal h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal p, .legal li { font-size: 15px; }
.legal a { color: var(--accent); }

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
  background: var(--surface);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer span { color: var(--text-muted); font-size: 14px; }
footer ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
footer a:hover { color: var(--text); }

/* ───── Responsive ───── */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .cta { padding: 48px 24px; margin: 64px 16px; }
  nav ul { gap: 14px; }
  nav li.hide-sm { display: none; }
  .plan.featured { transform: none; }
}

/* ───── Animations ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero .lede, .hero-actions, .hero-meta {
  animation: fadeUp 0.6s ease-out backwards;
}
.hero .lede { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.2s; }
.hero-meta { animation-delay: 0.3s; }
.hero-preview { animation: fadeUp 0.8s ease-out 0.4s backwards; }
