:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.1);
  --brand: #2563eb;
  --brand-light: rgba(37, 99, 235, 0.1);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.08);
  --radius: 32px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #18181b;
  --text: #f9fafb;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(24, 24, 27, 0.65);
  --glass-strong: rgba(24, 24, 27, 0.85);
  --glass-border: rgba(255, 255, 255, 0.15);
  --brand: #3b82f6;
  --brand-light: rgba(59, 130, 246, 0.15);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Segoe UI, sans-serif;
  letter-spacing: -0.02em;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(780px, calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

html[data-theme="dark"] .site-header {
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
}

.site-header.is-scrolled {
  background: var(--glass-strong);
  box-shadow: 0 18px 80px rgba(0,0,0,.15);
}
html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 18px 80px rgba(0,0,0,.6);
}

.brand, .site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}
.brand img, .site-footer img { border-radius: 10px; box-shadow: 0 0 15px rgba(0,0,0,.1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a, .nav-links button {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  cursor: pointer;
}
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}
#theme-toggle svg {
  width: 18px;
  height: 18px;
}
.sun-icon { display: none; }
.moon-icon { display: block; }
html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
.nav-links a:hover, .nav-links button:hover { color: var(--text); background: var(--line); }
.nav-links .nav-store-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 8px;
  line-height: 0;
}
.nav-links .nav-store-badge:hover { background: transparent; }
.nav-store-badge img { width: auto; height: 34px; }

.hero {
  min-height: 94vh;
  display: grid;
  place-items: center;
  justify-items: center;
  text-align: center;
  padding: 126px 0 90px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--brand); }

.hero-icon {
  width: clamp(104px, 15vw, 164px);
  height: clamp(104px, 15vw, 164px);
  border-radius: 36px;
  margin: 28px 0 34px;
  box-shadow: 0 25px 70px rgba(0,0,0,.15), 0 0 0 1px var(--line);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 22px;
  padding-bottom: .07em;
  font-size: clamp(60px, 10vw, 120px);
  line-height: 1;
  letter-spacing: -0.052em;
  font-weight: 680;
  color: var(--text);
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.2;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.store-badge img { height: 52px; width: auto; }

.feature-row {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 108px);
  padding: 88px 0;
}
.feature-row--reverse { grid-template-columns: minmax(320px, 1fr) minmax(280px, .85fr); }
.feature-row--reverse .phone-card { order: 2; }
.feature-row--reverse .feature-copy { order: 1; }

.phone-card {
  position: relative;
  border-radius: var(--radius);
  isolation: isolate;
  filter: drop-shadow(0 38px 90px rgba(0,0,0,.15));
}
html[data-theme="dark"] .phone-card {
  filter: drop-shadow(0 38px 90px rgba(0,0,0,.55));
}

.phone-card img {
  width: min(100%, 470px);
  max-height: 760px;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 28px;
}

.feature-copy h2, .post-header h1, .blog-header h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 680;
}
.feature-copy p:not(.eyebrow), .post p, .post li, .blog-card p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
  font-weight: 560;
}
.feature-copy { max-width: 640px; }
.feature-copy .eyebrow { color: var(--brand); }

.glass-panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 44px 0 60px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer nav { display: flex; gap: 20px; font-weight: 700; }
.site-footer a:hover { color: var(--text); }

/* Blog */
.blog-page, .post-page { padding-top: 108px; }
.blog-header, .post-header { padding: 28px 0 24px; text-align: center; }
.blog-header h1, .post-header h1 {
  width: min(860px, 100%);
  max-width: 860px;
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 660;
  text-align: center;
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.04em;
  padding-bottom: .08em;
}
.blog-header p, .post-header p {
  max-width: 700px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  font-weight: 520;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin-inline: auto;
  padding-bottom: 92px;
}
.blog-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color .2s ease, transform .2s ease;
}
.blog-card:hover {
  border-color: var(--muted-2);
  transform: translateY(-2px);
}
.blog-card h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.blog-card p { margin-bottom: 16px; font-size: 18px; line-height: 1.5; }
.blog-card .read-more { color: var(--brand); font-size: 16px; font-weight: 700; }

.post {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding: 0 0 120px;
}
.post h2 { margin: 46px 0 14px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.038em; }
.post p, .post li { color: var(--muted); font-size: 18px; line-height: 1.72; font-weight: 480; }
.post ul, .post ol { padding-left: 1.25rem; }
.post li { margin: 10px 0; }
.post a { color: var(--brand); text-decoration: underline; }
.post-meta { color: var(--muted-2); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; display: block; }

.post blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 16px 16px 0;
}
.post blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 520;
  line-height: 1.6;
}

/* Privacy policy */
.policy-page { padding-top: 142px; }
.policy {
  width: min(820px, calc(100% - 40px));
  padding: 58px 0 120px;
  margin: 0 auto;
}
.policy h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.04;
}
.policy-date {
  margin-bottom: 42px;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 750;
}
.policy h2 {
  margin: 46px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}
.policy p, .policy li {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
  font-weight: 520;
}
.policy ul {
  padding-left: 1.25rem;
  margin: 0 0 24px;
}
.policy li { margin: 10px 0; }

@media (max-width: 840px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand span { display: none; }
  .nav-links { gap: 2px; font-size: 13px; }
  .nav-links a, .nav-links button { padding: 9px 11px; }
  .nav-links .nav-store-badge { padding: 0; }
  .hero { padding-top: 112px; min-height: 88vh; }
  .feature-row, .feature-row--reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 70px 0;
  }
  .feature-row--reverse .phone-card, .feature-row--reverse .feature-copy { order: initial; }
  .feature-copy { text-align: center; margin-inline: auto; }
  .phone-card img { max-height: 680px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .section-shell { width: min(var(--max), calc(100% - 24px)); }
  h1 { font-size: clamp(54px, 18vw, 86px); }
  .hero-copy { font-size: 19px; }
  .store-badge img { height: 46px; }
  .nav-store-badge img { height: 32px; }
  .phone-card img { border-radius: 22px; }
  .feature-copy h2 { font-size: clamp(40px, 13vw, 62px); }
}
