/* ── Qurio Design System ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* -- Qurio Design System - Clean Pastel Edition -- */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0F0F1A;
  --ink2: #1A1A2E;
  --muted: #6B7280;
  --soft: #9CA3AF;
  --border: #E8E8F0;
  --accent: #6366F1;
  --accent-h: #4F46E5;
  --accent-lt: #EEF2FF;
  --violet: #8B5CF6;
  --pink: #A78BFA;
  --green: #10B981;
  --green-lt: #ECFDF5;
  --red: #EF4444;
  --red-lt: #FEF2F2;
  --grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, .07) 0%, rgba(139, 92, 246, .07) 100%);
  --glass-bg: rgba(255, 255, 255, .97);
  --glass-border: rgba(220, 220, 235, .9);
  --glass-blur: blur(12px);
  --shadow: 0 2px 12px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .03);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .07), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .09), 0 2px 12px rgba(0, 0, 0, .05);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --nav-h: 64px;
  --ease: 0.2s cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0A0A14;
  --surface: #12121F;
  --ink: #F0EEFF;
  --ink2: #D1D5DB;
  --muted: #9CA3AF;
  --soft: #6B7280;
  --border: rgba(139, 92, 246, .15);
  --accent-lt: rgba(99, 102, 241, .15);
  --green-lt: rgba(16, 185, 129, .1);
  --red-lt: rgba(239, 68, 68, .1);
  --glass-bg: rgba(18, 18, 31, .85);
  --glass-border: rgba(139, 92, 246, .2);
  --shadow: 0 4px 16px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .4);
  color-scheme: dark;
}


html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease)
}

/* Fixed full-screen pastel gradient background */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #FFFFFF;
  transition: background var(--ease);
}

.bg-blob-1 {
  position: absolute;
  width: 60vw;
  height: 80vh;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(120, 50%, 78%, .55) 0%, transparent 70%);
  top: -20%;
  left: -20%;
  filter: blur(70px);
  will-change: transform;
}

.bg-blob-2 {
  position: absolute;
  width: 55vw;
  height: 75vh;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(270, 55%, 85%, .5) 0%, transparent 70%);
  top: -10%;
  right: -15%;
  filter: blur(70px);
  will-change: transform;
}

.bg-blob-3 {
  position: absolute;
  width: 40vw;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(55, 70%, 85%, .35) 0%, transparent 70%);
  bottom: -10%;
  right: 0%;
  filter: blur(60px);
  will-change: transform;
}

[data-theme="dark"] .bg-blobs {
  background: #0A0A14;
}

[data-theme="dark"] .bg-blob-1 {
  background: radial-gradient(circle, hsla(120, 40%, 30%, .25) 0%, transparent 70%);
}

[data-theme="dark"] .bg-blob-2 {
  background: radial-gradient(circle, hsla(270, 50%, 35%, .2) 0%, transparent 70%);
}

[data-theme="dark"] .bg-blob-3 {
  background: radial-gradient(circle, hsla(55, 50%, 30%, .12) 0%, transparent 70%);
}

/* ── Typography ── */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink)
}

.heading-xl {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1
}

.heading-lg {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15
}

.heading-md {
  font-size: 1.25rem;
  line-height: 1.3
}

.text-muted {
  color: var(--muted)
}

.text-accent {
  color: var(--accent)
}

/* -- Logo -- */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none
}

.logo span {
  color: var(--ink)
}

/* ── Page system ── */
.page {
  display: none;
  min-height: 100vh
}

.page.active {
  display: block
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 3rem);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--ease)
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06)
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--ease);
  position: relative
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: width var(--ease)
}

.nav-link:hover {
  color: var(--ink)
}

.nav-link:hover::after {
  width: 100%
}

.nav-right {
  display: flex;
  gap: .75rem;
  align-items: center
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--ink)
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem
}

.mobile-menu.open {
  display: flex
}

.mobile-menu .nav-link {
  font-size: 1.125rem
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  padding: .625rem 1.25rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1
}

.btn-primary {
  background: #0F0F1A;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

.btn-primary:hover {
  background: #1A1A2E;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2)
}

.btn-primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15)
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent)
}

.btn-outline:hover {
  background: var(--accent-lt)
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border)
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--ink)
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid rgba(220, 38, 38, .2)
}

.btn-danger:hover {
  background: var(--red-lt)
}

.btn-lg {
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
  min-height: 52px;
  height: 52px;
  line-height: 52px
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .8125rem
}

.btn-block {
  width: 100%
}

.btn-google {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border)
}

.btn-google:hover {
  background: var(--bg);
  border-color: var(--muted)
}

.btn:disabled {
  opacity: .5;
  pointer-events: none
}

/* ── Cards ── */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow)
}

[data-theme="dark"] .card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, .2)
}

/* ── Section ── */
.section {
  padding: 5rem clamp(1rem, 3vw, 3rem)
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto
}

.section-header {
  text-align: center;
  margin-bottom: 3rem
}

.section-header p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-top: .75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden
}

/* Hero blobs handled by fixed .bg-blobs element now */
.hero::before,
.hero::after {
  display: none;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(40px, 30px) scale(1.08)
  }

  100% {
    transform: translate(-20px, -40px) scale(.95)
  }
}

.hero-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 1.25rem auto 2rem;
  line-height: 1.6
}

.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap
}

/* Plain black hero heading (no gradient) */
.heading-xl.grad {
  color: var(--ink);
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em
}

.stat-label {
  color: var(--muted);
  font-size: .875rem;
  margin-top: .25rem
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.feature-card {
  padding: 2rem
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lt);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  color: var(--accent);
  transition: transform .2s ease, box-shadow .2s ease
}

.card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .15)
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem
}

.feature-card p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5
}

/* ── App Panel Replica ── */
.demo-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: center
}

.app-panel {
  width: 340px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden
}

[data-theme="dark"] .app-panel {
  background: rgba(30, 30, 30, .92)
}

.app-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.app-panel-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #1C1C1E
}

[data-theme="dark"] .app-panel-label {
  color: #F5F5F5
}

.app-panel-label svg {
  width: 14px;
  height: 14px;
  color: #4A9EF5
}

.app-panel-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600
}

.app-panel-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E8B57
}

.app-panel-status span {
  color: #2E8B57
}

.app-panel-divider {
  height: 1px;
  background: #E0E4EE;
  margin-bottom: 10px
}

[data-theme="dark"] .app-panel-divider {
  background: rgba(255, 255, 255, .08)
}

.app-panel-result {
  background: #F0F4FF;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  transition: opacity .3s ease
}

[data-theme="dark"] .app-panel-result {
  background: rgba(74, 158, 245, .08)
}

.app-panel-result p {
  color: #2E8B57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0
}

[data-theme="dark"] .app-panel-result p {
  color: #4ADE80
}

.app-panel-meta {
  font-size: 9px;
  color: #5A5A6A;
  margin-bottom: 10px;
  padding-left: 2px
}

[data-theme="dark"] .app-panel-meta {
  color: #9CA3AF
}

.app-panel-buttons {
  display: flex;
  gap: 6px
}

.app-panel-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: default;
  font-family: 'Inter', sans-serif;
  border: none;
  transition: all .2s ease
}

.app-panel-btn.outline {
  background: transparent;
  color: #5A5A6A;
  border: 1.5px solid #E0E4EE
}

[data-theme="dark"] .app-panel-btn.outline {
  border-color: rgba(255, 255, 255, .1);
  color: #9CA3AF
}

.app-panel-btn.primary {
  background: #4A9EF5;
  color: #fff;
  flex: 1.2
}

.app-panel-btn.primary.pressing {
  animation: btnPress .35s ease;
}

@keyframes btnPress {
  0% {
    transform: scale(1)
  }

  35% {
    transform: scale(1.13)
  }

  70% {
    transform: scale(1.06)
  }

  100% {
    transform: scale(1)
  }
}

.app-panel-btn svg {
  width: 12px;
  height: 12px
}

/* Loading state */
.app-panel-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  font-size: 11px;
  color: #5A5A6A;
  font-weight: 500
}

.app-panel-loading.show {
  display: flex
}

.app-panel-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #E0E4EE;
  border-top-color: #4A9EF5;
  border-radius: 50%;
  animation: spin .7s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* ── Phone Demo ── */
.phone-demo {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto
}

.phone-screen {
  width: 320px;
  min-height: 520px;
  background: #F2F2F7;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column
}

[data-theme="dark"] .phone-screen {
  background: #1C1C1E
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1C1C1E
}

[data-theme="dark"] .phone-statusbar {
  color: #F5F5F5
}

.phone-statusbar-right {
  display: flex;
  gap: 4px;
  align-items: center
}

.phone-statusbar-right svg {
  width: 14px;
  height: 14px
}

/* Test content */
.phone-test {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.test-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8E8E93;
  padding: 0 2px
}

.test-question-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06)
}

[data-theme="dark"] .test-question-card {
  background: #2C2C2E
}

.test-question-num {
  font-size: 9px;
  font-weight: 700;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px
}

.test-question-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #1C1C1E;
  margin-bottom: 12px
}

[data-theme="dark"] .test-question-text {
  color: #F5F5F5
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.test-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #F8F8FA;
  border-radius: 8px;
  font-size: 11px;
  color: #1C1C1E;
  border: 1.5px solid transparent;
  transition: all .3s ease;
  cursor: default
}

[data-theme="dark"] .test-option {
  background: #3A3A3C;
  color: #F5F5F5
}

.test-option-letter {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #E8E8ED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  color: #636366;
  flex-shrink: 0;
  transition: all .3s ease
}

[data-theme="dark"] .test-option-letter {
  background: #48484A;
  color: #AEAEB2
}

.test-option.correct {
  border-color: #2E8B57;
  background: #F0FFF5
}

[data-theme="dark"] .test-option.correct {
  background: rgba(46, 139, 87, .12)
}

.test-option.correct .test-option-letter {
  background: #2E8B57;
  color: #fff
}

.test-option.wrong {
  border-color: #D94040;
  background: #FFF5F5
}

/* Overlay in phone */
.phone-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 5
}

/* Drag handle hint */
.app-panel-drag-hint {
  width: 32px;
  height: 3px;
  background: rgba(0, 0, 0, .12);
  border-radius: 99px;
  margin: 0 auto 8px;
  cursor: grab
}

[data-theme="dark"] .app-panel-drag-hint {
  background: rgba(255, 255, 255, .15)
}

.phone-overlay .app-panel {
  width: 100%;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .1), 0 4px 20px rgba(0, 0, 0, .08)
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.testimonial-card {
  padding: 1.5rem
}

.testimonial-text {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink2);
  margin-bottom: 1rem;
  font-style: italic
}

.testimonial-author {
  font-size: .8125rem;
  font-weight: 600
}

.testimonial-role {
  font-size: .75rem;
  color: var(--muted)
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto
}

.pricing-card {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg)
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 99px
}

.pricing-title {
  font-size: 1.125rem;
  font-weight: 700
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: .75rem 0 .25rem;
  letter-spacing: -.03em
}

.pricing-price span {
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted)
}

.pricing-subtitle {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.25rem
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.5rem;
  flex: 1;
}


.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink2)
}

.pricing-features .check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px
}

.pricing-features .x-mark {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .6
}

.pricing-limit {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: .5rem .75rem;
  background: var(--accent-lt);
  border-radius: var(--radius-sm)
}

/* -- Auth -- */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  padding-top: calc(var(--nav-h) + 2rem);
  background:
    radial-gradient(ellipse 55% 65% at -5% 50%, hsla(140, 55%, 65%, .38) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 105% 20%, hsla(270, 70%, 80%, .32) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 105% 85%, hsla(55, 90%, 70%, .22) 0%, transparent 60%),
    #FFFFFF;
}

[data-theme="dark"] .auth-wrap {
  background:
    radial-gradient(ellipse 55% 65% at -5% 50%, hsla(140, 55%, 35%, .18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 105% 20%, hsla(270, 70%, 40%, .15) 0%, transparent 60%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  background: #FFFFFF;
  border: 1px solid #EBEBEB;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
  position: relative;
}

[data-theme="dark"] .auth-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.auth-card::before {
  display: none;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .375rem;
  color: var(--ink);
}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.auth-foot {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .8125rem;
  color: var(--muted)
}

.auth-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--soft);
  font-size: .8125rem
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

/* ── Form ── */
.field {
  margin-bottom: 1rem
}

.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: .375rem
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  box-sizing: border-box;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(245, 80%, 60%, .15);
}

.field input.error {
  border-color: var(--red)
}

.field .err-text {
  display: none;
  color: var(--red);
  font-size: .75rem;
  margin-top: .25rem
}

.field input.error~.err-text {
  display: block
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between
}

/* Toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer
}

.toggle input {
  display: none
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 99px;
  transition: background var(--ease)
}

.toggle input:checked+.toggle-track {
  background: var(--accent)
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.toggle input:checked~.toggle-thumb {
  transform: translateX(20px)
}

/* ── Dashboard ── */
.dash-wrap {
  padding-top: calc(var(--nav-h) + 2rem);
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem
}

.search-box {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem
}

.search-box input {
  flex: 1;
  padding: .75rem 1rem;
  font-size: .9375rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color var(--ease)
}

.search-box input:focus {
  border-color: var(--accent)
}

.result-box {
  display: none;
  padding: 1.5rem;
  margin-bottom: 2rem
}

.result-box.show {
  display: block
}

.result-text {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink2)
}

/* ── Settings ── */
.settings-wrap {
  padding-top: calc(var(--nav-h) + 2rem);
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 4rem
}

.settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem
}

.settings-section {
  margin-bottom: 2rem
}

.settings-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .75rem;
  padding-left: .25rem
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease)
}

.settings-row:last-child {
  border-bottom: none
}

.settings-row:hover {
  background: rgba(99, 102, 241, .02)
}

[data-theme="dark"] .settings-row:hover {
  background: rgba(255, 255, 255, .02)
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: .875rem;
  min-width: 0
}

.settings-row-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lt);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0
}

.settings-row-icon.danger {
  background: var(--red-lt);
  color: var(--red)
}

.settings-row-text h4 {
  font-size: .875rem;
  font-weight: 600
}

.settings-row-text p {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .125rem
}

.settings-row-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem
}

.settings-value {
  font-size: .8125rem;
  color: var(--muted)
}

/* Plan badge */
.plan-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: 99px
}

.plan-free {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted)
}

.plan-pro {
  background: var(--accent-lt);
  color: var(--accent)
}

/* ── Avatar ── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.125rem
}

/* ── Dropdown ── */
.dropdown {
  position: relative
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .375rem;
  z-index: 200
}

.dropdown-menu.open {
  display: block
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  font-size: .8125rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease);
  border: none;
  background: none;
  width: 100%;
  font-family: inherit
}

.dropdown-item:hover {
  background: var(--accent-lt)
}

.dropdown-item.danger {
  color: var(--red)
}

.dropdown-item.danger:hover {
  background: var(--red-lt)
}

/* ── Modals ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .4);
  align-items: center;
  justify-content: center;
  padding: 1rem
}

.modal-backdrop.open {
  display: flex
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg)
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .375rem
}

.modal-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.25rem
}

.modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1.25rem
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
  z-index: 999;
  white-space: nowrap
}

.toast.show {
  transform: translateX(-50%) translateY(0)
}

.toast.success {
  background: #059669;
  color: #fff
}

.toast.error {
  background: var(--red);
  color: #fff
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 3vw, 3rem);
  text-align: center;
  font-size: .8125rem;
  color: var(--muted)
}

/* ── Dark mode toggle ── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--ease)
}

.theme-toggle:hover {
  border-color: var(--muted);
  color: var(--ink)
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem
  }

  .features-grid {
    grid-template-columns: 1fr
  }

  .testimonials-grid {
    grid-template-columns: 1fr
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .heading-xl {
    font-size: clamp(1.75rem, 8vw, 2.5rem)
  }

  .hero-sub {
    font-size: 1rem
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 3rem 1rem
  }

  .auth-card {
    padding: 1.75rem 1.5rem
  }

  .settings-row {
    padding: .875rem 1rem
  }

  .phone-demo {
    padding: 0 1rem
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .heading-xl {
    font-size: 1.75rem;
  }

  .btn-lg {
    font-size: .9375rem;
  }
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ── Lucide icon sizing ── */
.lucide {
  width: 20px;
  height: 20px;
  stroke-width: 2
}

.lucide-sm {
  width: 16px;
  height: 16px
}

.lucide-lg {
  width: 24px;
  height: 24px
}

/* Code inputs for verification */
.code-wrap {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1rem 0
}

.code-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--ease)
}

.code-input:focus {
  border-color: var(--accent)
}