/* ═══════════════════════════════════════════════════════
   SAVIT landing page styles
   Dark + light theme — mobile-first — no build step
   ═══════════════════════════════════════════════════════ */

/* ── Custom properties — dark (default) ─────────────── */
:root {
  --bg:          #0d0d0d;
  --bg-alt:      #141414;
  --bg-card:     #1a1a1a;
  --bg-card-2:   #1f1f1f;
  --border:      #2a2a2a;
  --border-2:    #333;

  --text-1:      #f0f0f0;
  --text-2:      #a0a0a0;
  --text-3:      #666;

  --accent:      #818cf8;       /* indigo-400 */
  --accent-dark: #4f46e5;       /* indigo-600 */
  --accent-bg:   rgba(79,70,229,.12);
  --green:       #4ade80;
  --green-bg:    rgba(74,222,128,.10);

  --nav-bg:      rgba(13,13,13,.92);
  --cta-bg:      linear-gradient(135deg, #0d0d0d 0%, #111118 50%, #0d0d0d 100%);
  --hover-color: #ffffff;

  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 1px 3px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-w:       1100px;
  --max-w-narrow: 720px;
}

/* ── Custom properties — light ───────────────────────── */
[data-theme="light"] {
  --bg:          #fafafa;
  --bg-alt:      #f3f4f6;
  --bg-card:     #ffffff;
  --bg-card-2:   #f9fafb;
  --border:      #e5e7eb;
  --border-2:    #d1d5db;

  --text-1:      #111827;
  --text-2:      #374151;
  --text-3:      #6b7280;

  --accent:      #4338ca;
  --accent-dark: #3730a3;
  --accent-bg:   rgba(67,56,202,.08);
  --green:       #15803d;
  --green-bg:    rgba(21,128,61,.08);

  --nav-bg:      rgba(250,250,250,.92);
  --cta-bg:      linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #f9fafb 100%);
  --hover-color: #111827;

  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

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

a { color: var(--accent); }
a:hover { color: var(--hover-color); }

strong { font-weight: 600; color: var(--text-1); }

ul, ol { list-style: none; }

/* ── Layout helpers ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: var(--max-w-narrow); }

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

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  border-radius: var(--radius);
  line-height: 1.3;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(99,102,241,.4), 0 2px 8px rgba(79,70,229,.4);
}

.btn--primary:hover {
  background: #6366f1;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.5), 0 4px 16px rgba(79,70,229,.5);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--sm  { padding: 9px 18px; font-size: .875rem; }
.btn--lg  { padding: 16px 36px; font-size: 1.1rem; }
.btn--full { display: block; width: 100%; padding: 15px; font-size: 1rem; }

kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font-family: var(--font);
  font-size: .85em;
  color: var(--text-2);
}

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-1);
  text-decoration: none;
}

.nav__logo:hover { color: var(--text-1); }

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

.nav__theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  flex-shrink: 0;
  padding: 0;
}

.nav__theme:hover {
  background: var(--bg-card);
  border-color: var(--border-2);
  color: var(--text-1);
}

.nav__theme svg { width: 18px; height: 18px; }

/* icon visibility controlled by theme */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.hero__headline {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--text-1);
  margin-bottom: 24px;
}

.hero__accent {
  color: var(--accent);
}

.hero__sub {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__cta-note {
  font-size: .85rem;
  color: var(--text-3);
}

/* ── App compatibility section ───────────────────────── */
.app-compat {
  padding: 52px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.app-compat__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.app-compat__sub {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s, background .15s;
}

.app-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-2);
}

.app-icon {
  filter: brightness(0) invert(1);
  opacity: .75;
  transition: opacity .15s;
  flex-shrink: 0;
}

[data-theme="light"] .app-icon {
  filter: none;
  opacity: 1;
}

.app-card:hover .app-icon { opacity: 1; }

.app-name {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
}

.app-compat__also {
  margin: 36px 0 12px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--text-3);
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  white-space: nowrap;
}

.app-chip__icon {
  filter: brightness(0) invert(1);
  opacity: .6;
  flex-shrink: 0;
}

[data-theme="light"] .app-chip__icon {
  filter: none;
  opacity: .85;
}

.app-compat__disclaimer {
  margin-top: 28px;
  font-size: .68rem;
  color: var(--text-3);
  opacity: .55;
}

@media (max-width: 480px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 300px;
  }
}

/* ── Section base ────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: 12px;
  text-align: center;
}

.section__sub {
  text-align: center;
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 52px;
}

/* ── How it works — steps ────────────────────────────── */
.steps {
  display: grid;
  gap: 28px;
  counter-reset: none;
}

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

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.step p {
  font-size: .9rem;
  color: var(--text-2);
}

/* ── Privacy flow ────────────────────────────────────── */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 32px;
}

.flow__node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow__node strong {
  font-size: 1rem;
  font-weight: 600;
}

.flow__node span {
  font-size: .8rem;
  color: var(--text-3);
}

.flow__node--highlight {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.flow__node--highlight strong { color: var(--accent); }

.flow__arrow {
  font-size: 1.5rem;
  color: var(--text-3);
  flex-shrink: 0;
}

.privacy-note {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.75;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-2);
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--green-bg);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%234ade80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Features grid ───────────────────────────────────── */
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature__tag {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid rgba(99,102,241,.25);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.feature p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Pricing layout ──────────────────────────────────── */
.pricing-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 860px) {
  .pricing-layout { grid-template-columns: 340px 1fr; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.pricing-card__name {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-1);
  line-height: 1;
}

.pricing-card__period {
  font-size: .85rem;
  color: var(--text-3);
  margin-top: 4px;
  margin-bottom: 24px;
}

.pricing-card__list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-2);
}

.pricing-card__list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%234ade80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card__privacy {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--text-3);
  text-align: center;
}

/* ── Compare table ───────────────────────────────────── */
.compare { align-self: center; }

.compare__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
}

.compare__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 400px;
}

.compare__table th,
.compare__table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.compare__table thead th {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  padding-bottom: 8px;
}

.compare__table tbody th {
  font-weight: 400;
  color: var(--text-2);
}

.compare__table tbody td {
  color: var(--text-2);
}

.compare__savit {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--text-1) !important;
}

.compare__good {
  color: var(--green) !important;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.faq__item:last-child { border-bottom: none; }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: none;
  color: var(--text-1);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.faq__q:hover { background: var(--bg-card-2); }

.faq__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform .25s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-3);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 12px; transition: transform .25s ease, opacity .25s ease; }

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__a {
  padding: 0 22px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}

.faq__a:not([hidden]) {
  max-height: 400px;
  padding: 4px 22px 18px;
}

.faq__a p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.75;
}

.faq__a a { color: var(--accent); }
.faq__a a:hover { color: var(--hover-color); }

/* ── Final CTA section ───────────────────────────────── */
.cta-section {
  background: var(--cta-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: 12px;
}

.cta-section__sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-section__note {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--text-3);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-2);
}

.footer__copy {
  font-size: .82rem;
  color: var(--text-3);
}

.footer__copy a {
  color: var(--text-3);
}

.footer__copy a:hover { color: var(--text-2); }

/* ── Problem cards ───────────────────────────────────── */
.problem-cards {
  display: grid;
  gap: 20px;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.problem-card__icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.4;
}

.problem-card p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.problem-card p a {
  color: var(--accent);
}

/* ── Compare footnote ────────────────────────────────── */
.compare__footnote {
  margin-top: 10px;
  font-size: .75rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── Demo GIF (commented out — add when recording available) */
.demo-gif {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq__a, .faq__icon::after { transition: none; }
}
