/* D4D: www.buildwithsanket.com design system (amber accent, neutral surfaces, Inter + Manrope). */
:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #1c1c1e;
  --muted-foreground: #48484a;
  --secondary: #f3f4f6;
  --border: #e5e7eb;
  --primary: #f59e0b;
  --primary-foreground: #000000;
  --link: #d97706;
  --accent: #fffbeb;
  --accent-foreground: #92400e;
  --strike: #ff3b2f;
  --page-glow: rgba(245, 158, 11, 0.10);
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(229, 231, 235, 0.9);
  --card-border-hover: rgba(245, 158, 11, 0.55);
  --header-bg: rgba(255, 255, 255, 0.8);
  --radius: 0.375rem;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark {
  color-scheme: dark;
  --background: #171717;
  --foreground: #e5e5e5;
  --muted-foreground: #a3a3a3;
  --secondary: #262626;
  --border: #404040;
  --link: #fbbf24;
  --accent: rgba(245, 158, 11, 0.12);
  --accent-foreground: #fde68a;
  --page-glow: rgba(245, 158, 11, 0.14);
  --card-bg: rgba(38, 38, 38, 0.6);
  --card-border: rgba(64, 64, 64, 0.8);
  --card-border-hover: rgba(245, 158, 11, 0.5);
  --header-bg: rgba(23, 23, 23, 0.8);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background-color: var(--background);
  background-image: radial-gradient(ellipse 70% 45% at 15% 0%, var(--page-glow), transparent 60%);
  background-attachment: fixed;
  color: var(--foreground);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--foreground); }

a { color: var(--link); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }

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

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

.strike {
  text-decoration: line-through;
  text-decoration-color: var(--strike);
  text-decoration-thickness: 0.08em;
}

.text-gradient {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Product header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--foreground);
  text-decoration: none;
  font: 800 22px/1 var(--font-display);
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dark .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }

.site-nav { display: flex; gap: 4px; margin: 0 auto; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.icon-button:hover { background: var(--secondary); }
.icon-button svg { width: 20px; height: 20px; }
.theme-sun { display: none; }
.dark .theme-sun { display: block; }
.dark .theme-moon { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.button:hover { opacity: 0.9; }
.button:active { transform: scale(0.98); }

.button-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.button-outline:hover { background: var(--secondary); opacity: 1; }

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: opacity 0.2s;
}

.app-store-badge:hover { opacity: 0.85; }
.app-store-badge svg { width: 26px; height: 26px; }
.app-store-badge small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.85; }
.app-store-badge strong { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 85% 10%, var(--page-glow), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow svg { width: 16px; height: 16px; }

.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 800; margin: 24px 0 20px; }

.lede { font-size: 19px; color: var(--muted-foreground); max-width: 34em; margin: 0 0 32px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-foreground);
  font-size: 14px;
}

.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--link); }

/* Phone */
.phone-stage { position: relative; display: flex; flex-direction: column; align-items: center; }

.phone {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 54px;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px #2a2a2a, 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 0 80px -20px rgba(245, 158, 11, 0.35);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  border-radius: 44px;
  background: #000;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.phone-screen img.is-active { opacity: 1; }

.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.screen-caption { margin: 20px 0 4px; min-height: 24px; color: var(--muted-foreground); font-size: 14px; font-weight: 500; text-align: center; }

.dots { display: flex; justify-content: center; gap: 0; }

.dots button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dots button span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.3s, background-color 0.3s;
}

.dots button[aria-current="true"] span { width: 20px; background: var(--primary); }


/* Sections */
section { padding: 88px 0; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; font-weight: 800; margin: 0 0 16px; }
.section-head p { font-size: 18px; color: var(--muted-foreground); margin: 0; }

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature { padding: 28px; border-radius: 16px; }
.feature:hover { border-color: var(--card-border-hover); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.18); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--link);
}

.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted-foreground); font-size: 15px; }

.pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font: 600 11px/1.6 var(--font-sans);
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; font-weight: 800; margin: 16px 0; }
.split p { color: var(--muted-foreground); font-size: 18px; }

.checklist { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--link);
}
.checklist .check svg { width: 16px; height: 16px; }
.checklist b { display: block; color: var(--foreground); }
.checklist span { color: var(--muted-foreground); font-size: 15px; }

.phone-pair { display: flex; justify-content: center; gap: 24px; }
.phone-pair .phone { width: 260px; }
.phone-pair .phone:last-child { margin-top: 64px; }
.phone-pair .phone-screen img { opacity: 1; position: static; }

/* Gallery */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 28px;
  overflow-x: auto;
  padding: 8px max(24px, calc((100% - 1072px) / 2)) 24px;
  scroll-padding-inline: max(24px, calc((100% - 1072px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .phone { width: 232px; padding: 8px; border-radius: 42px; }
.gallery .phone-screen { border-radius: 34px; }
.gallery .phone-screen img { opacity: 1; position: static; }
.gallery figcaption { margin-top: 16px; text-align: center; }
.gallery figcaption b { display: block; font-family: var(--font-display); font-size: 16px; }
.gallery figcaption span { color: var(--muted-foreground); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { padding: 32px; border-radius: 16px; }
.plan.featured { border-color: var(--card-border-hover); box-shadow: 0 0 0 1px var(--card-border-hover), 0 20px 40px -20px rgba(245, 158, 11, 0.35); }
.plan h3 { font-size: 22px; margin: 0; }
.plan .price { margin: 8px 0 20px; color: var(--muted-foreground); font-size: 15px; }
.plan .price b { color: var(--foreground); font: 800 32px/1.2 var(--font-display); display: block; }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--link); }
.plan .button { width: 100%; }
.fine-print { max-width: 880px; margin: 20px auto 0; text-align: center; color: var(--muted-foreground); font-size: 14px; }

/* Privacy band */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* CTA */
.cta-band { padding: 56px; border-radius: 24px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; font-weight: 800; }
.cta-band p { color: var(--muted-foreground); font-size: 18px; margin: 0 0 28px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 40px 0 48px; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted-foreground); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--foreground); }
.site-footer small { color: var(--muted-foreground); font-size: 14px; }

/* Document pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; font-weight: 800; margin: 0 0 8px; }
.doc .lede { margin-bottom: 32px; }
.doc .card { padding: 8px 32px 28px; border-radius: 16px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc p, .doc li { color: var(--muted-foreground); }
.doc strong { color: var(--foreground); }

@media (max-width: 960px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .trust { justify-content: center; }
  .feature-grid, .privacy-grid { grid-template-columns: 1fr 1fr; }
  .split-media { order: -1; }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .feature-grid, .privacy-grid, .pricing { grid-template-columns: 1fr; }
  .phone { width: 264px; }
  .phone-pair .phone { width: 46%; padding: 6px; border-radius: 30px; }
  .phone-pair .phone-screen { border-radius: 25px; }
  .phone-pair .phone-island { top: 10px; width: 48px; height: 14px; }
  .phone-pair .phone:last-child { margin-top: 40px; }
  .cta-band { padding: 40px 20px; }
  .site-header .button { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-screen img, .glass-card, .button { transition: none; }
}
