/* ──────────────────────────────────────────────────────────
   DeckBase — Calm, premium, focused
   Linear × Apple Notes × Anki
   Colors + typography exactly as specified
   ────────────────────────────────────────────────────────── */

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

:root {
  --ink: #0A0E1A;
  --cream: #F8F7F3;
  --amber: #FFB340;
  --slate: #5C6573;
  --ink-2: #1A1F2C;
  --success: #2EA66E;

  --bg: #F8F7F3;
  --surface: #FFFFFF;
  --surface-2: #F1F0EB;
  --border: #E5E3DA;
  --border-strong: #C9C6BA;

  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

/* Subtle paper grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' fill='none'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.6rem, 5.8vw, 3.9rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--slate);
  font-size: 1.02rem;
  margin-top: 0.5rem;
}

/* ── NAV / STICKY HEADER ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--amber);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.85rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1.35rem;
  background: var(--amber);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-cta:hover {
  background: #F5A61F;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-mobile-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.6);
  z-index: 300;
  display: flex;
  justify-content: flex-end;
}

.mobile-sheet[hidden] {
  display: none;
}

.mobile-sheet-content {
  background: var(--cream);
  width: 82%;
  max-width: 320px;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.05rem;
}

.mobile-sheet-content a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  font-weight: 500;
}

.sheet-cta {
  margin-top: 1rem;
  background: var(--amber);
  color: var(--ink) !important;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
}

.mobile-sheet-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate);
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: #F5A61F;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-2);
}

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

.btn-ghost {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--ink-2);
}

.btn-block {
  width: 100%;
  padding: 0.85rem 1.25rem;
}

/* ── HERO ── */
.hero {
  padding: 7.5rem 0 4rem;
  background: linear-gradient(to bottom, #F8F7F3 0%, #F4F3ED 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #111;
  border-radius: 52px;
  padding: 12px;
  box-shadow: 0 30px 80px -15px rgba(10,14,26,0.35),
              0 0 0 1px #222;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #111;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #F8F7F3;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  border: 1px solid #222;
}

.phone-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 5px;
  background: #333;
  border-radius: 999px;
}

.demo-stage {
  height: 100%;
  padding: 18px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.demo-label {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.85rem;
  letter-spacing: 0.02em;
}

/* Demo inner states */
.demo-paste { display: flex; flex-direction: column; gap: 10px; }
.demo-textarea {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  min-height: 92px;
  resize: none;
}
.demo-btn {
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 9px 0;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.demo-cards { display: grid; gap: 8px; margin-top: 6px; }
.demo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 12px;
}
.demo-card .src {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  margin-top: 4px;
}
.demo-card .tap {
  font-size: 10px;
  color: var(--amber);
  margin-top: 3px;
}

.demo-study {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.study-front {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.study-source {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #F1F0EB;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--slate);
  cursor: pointer;
}
.study-source:hover { color: var(--amber); }

/* ── PROBLEM ── */
.problem {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.4rem;
}

.pain-icon {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
}

.pain-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pain-card p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* Comparison */
.comparison {
  margin-top: 1.5rem;
}

.compare-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.compare-header {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.compare-card.anki .compare-header { color: #8B5A4A; }
.compare-card.deckbase .compare-header { color: var(--success); }

.compare-foot {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.mock-clunky {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.clunky-row {
  height: 13px;
  background: #EDEAE3;
  border-radius: 3px;
}
.clunky-row.short { width: 62%; }
.clunky-card {
  margin-top: 8px;
  padding: 9px;
  background: #F5F2EB;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.35;
}
.clunky-card .tiny {
  font-size: 10px;
  color: #8B8171;
}

.mock-clean {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clean-card {
  background: #F8F7F3;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
}
.clean-card .card-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate);
  margin-top: 3px;
}

/* ── SOLUTION / 3 STEPS ── */
.solution {
  padding: 4.75rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step {
  display: flex;
  gap: 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--slate);
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
}

.micro-mock {
  background: #F1F0EB;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}

.micro-paste .paste-bar {
  height: 7px;
  background: #D9D5CA;
  border-radius: 999px;
  margin-bottom: 7px;
}
.micro-paste .paste-text {
  height: 5px;
  background: #C9C5B9;
  border-radius: 999px;
  margin-bottom: 4px;
}
.micro-paste .paste-text.short { width: 64%; }
.micro-btn {
  margin-top: 8px;
  font-size: 11px;
  padding: 4px 12px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-weight: 600;
}

.micro-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mini-card {
  background: white;
  border-radius: 7px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.mini-card .pill {
  font-size: 9px;
  background: #EDEAE3;
  padding: 1px 6px;
  border-radius: 999px;
}

.micro-study .study-card {
  background: white;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
}
.micro-study .source-link {
  color: var(--amber);
  font-size: 10px;
  margin-top: 3px;
}
.micro-study .source-highlight {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: #E8E5DA;
  padding: 6px;
  border-radius: 5px;
  line-height: 1.3;
}

/* ── FEATURES BENTO ── */
.features {
  padding: 4.5rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1.15rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.bento-large {
  grid-column: span 2;
}

.bento-icon {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.bento-card h3 {
  margin-bottom: 0.35rem;
}

.bento-card p {
  color: var(--slate);
  font-size: 0.94rem;
  flex: 1;
}

.bento-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  background: #F2E9D6;
  color: #8C6F30;
  margin-top: 0.65rem;
}

.bento-cta {
  justify-content: space-between;
}

.bento-cta .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* ── BUILT FOR STUDENTS ── */
.students {
  padding: 4.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.persona-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.55rem 1.35rem;
}

.persona-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.85rem;
}

.persona-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.persona-card p {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.persona-example {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
}

.example-card {
  font-family: var(--font-mono);
  line-height: 1.35;
}
.example-src {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--slate);
}

/* ── SOCIAL PROOF ── */
.proof {
  padding: 4.5rem 0;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  font-size: 0.95rem;
}

.quote p {
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.quote cite {
  font-size: 0.82rem;
  color: var(--slate);
  font-style: normal;
}

.waitlist-counter {
  text-align: center;
  margin: 1.5rem 0 1rem;
}

.counter-number {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--ink);
}

.counter-label {
  display: block;
  color: var(--slate);
  font-size: 0.95rem;
  margin-top: -6px;
}

.school-logos {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.logo-placeholder {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: var(--surface-2);
  padding: 4px 14px;
  border-radius: 999px;
}

.logos-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.5rem;
}

/* ── PRICING ── */
.pricing {
  padding: 4.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.price-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.45rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--amber);
  background: white;
  box-shadow: 0 10px 30px -15px rgba(255, 179, 64, 0.2);
  position: relative;
}

.price-card.lifetime {
  border: 2px solid var(--amber);
  background: #FFFBF0;
  position: relative;
}

.price-card.lifetime::before {
  content: "LIMITED";
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--amber);
  color: #1A1F2C;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 9px;
  border-radius: 999px;
}

.price-header {
  margin-bottom: 1.15rem;
}

.tier {
  font-weight: 600;
  font-size: 0.95rem;
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edu-badge {
  font-size: 0.65rem;
  background: #E7F0E7;
  color: #2C5F3A;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.edu-badge.best {
  background: #FFF0D9;
  color: #8B5E00;
}

.price {
  margin-top: 0.4rem;
}

.amount {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.period {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 400;
}

.alt-price {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 2px;
}

.price-features {
  list-style: none;
  flex: 1;
  font-size: 0.9rem;
  color: var(--slate);
}

.price-features li {
  padding: 0.32rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-features li::before {
  content: "→";
  color: var(--success);
  font-weight: 700;
}

.price-note {
  font-size: 0.72rem;
  color: var(--slate);
  margin-top: 0.75rem;
  text-align: center;
}

.pricing-support-note {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.65rem;
}
.pricing-support-note a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ensure pricing action buttons fit text cleanly */
.price-card .btn {
  font-size: 0.86rem;
  padding: 0.72rem 1rem;
  line-height: 1.25;
  white-space: normal; /* allow wrap if needed for long labels on narrow cards */
  min-height: 42px;
}

/* ── FAQ ── */
.faq {
  padding: 4.5rem 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

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

.faq-item summary {
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--amber);
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 1.25rem;
  color: var(--slate);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ── FINAL CTA ── */
.final-cta {
  padding: 3.5rem 0 5rem;
}

.final-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.final-header h2 {
  color: white;
  margin-bottom: 0.6rem;
}

.final-header p {
  color: #A8A39A;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.sticky-banner {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: #2A2F3B;
  color: var(--amber);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.waitlist-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 0.65rem;
}

.form-row input {
  flex: 1;
  padding: 0.95rem 1.25rem;
  font-size: 0.97rem;
  border: 1px solid #3A3F4A;
  background: #161A25;
  color: white;
  border-radius: 999px;
  outline: none;
}

.form-row input::placeholder {
  color: #7F766B;
}

.form-row input:focus {
  border-color: var(--amber);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #827C72;
}

.form-note a {
  color: #B9A98C;
}

.form-error {
  margin-top: 0.75rem;
  color: #E08A8A;
  font-size: 0.85rem;
}

.form-error[hidden] { display: none; }

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
}

.form-success[hidden] { display: none; }

.success-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2EA66E;
  color: white;
  border-radius: 50%;
  font-weight: 700;
}

.success-main {
  color: #C4C0B3;
  font-weight: 500;
}
.success-sub {
  font-size: 0.85rem;
  color: #827C72;
}

.final-note {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: #827C72;
}

/* ── FOOTER ── */
.footer {
  padding: 2.75rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--slate);
}

.footer-brand p {
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
}

.footer-links a {
  color: var(--slate);
  text-decoration: none;
}

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

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.78rem;
}

.social-icons a {
  color: var(--slate);
  text-decoration: none;
  margin-left: 0.35rem;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 1.5rem;
  }
  .phone-frame {
    width: 250px;
    height: 500px;
  }

  .pain-grid,
  .steps,
  .persona-grid,
  .quotes-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links.desktop {
    display: none;
  }
  .nav-mobile-btn {
    display: flex;
  }

  .form-row {
    flex-direction: column;
  }
  .form-row .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Subtle hover states */
.bento-card:hover,
.persona-card:hover,
.price-card:hover,
.quote:hover {
  border-color: #D4CBB9;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* ── SUPPORT MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.65rem 1.5rem 1.35rem;
  width: 100%;
  max-width: 440px;
  margin: 1rem;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.7rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.form-grid select {
  grid-column: 1 / -1;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.94rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: var(--amber);
}

.modal-content textarea {
  resize: vertical;
  min-height: 92px;
  margin-bottom: 0.85rem;
}

#support-form .btn {
  margin-top: 0.1rem;
}

/* Responsive modal grid */
@media (max-width: 420px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid select {
    grid-column: auto;
  }
}