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

:root {
  --accent: #0071e3;
  --accent-dark: #0058b0;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-codesolve {
  height: 26px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
  margin-left: 20px;
  flex-shrink: 0;
}

.nav-codesolve:hover {
  opacity: 0.85;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  margin: 0 auto 28px;
  display: block;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #3a3a3c;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-secondary:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* ── App Store Badge ── */
.badge-store {
  height: 48px;
  width: auto;
  display: block;
}

/* ── Screenshot placeholder ── */
.hero-screenshot {
  margin: 60px auto 0;
  max-width: 860px;
  padding: 0 24px;
}

.screenshot-frame {
  background: var(--bg-alt);
  border-radius: 16px;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  overflow: hidden;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ── Section shared ── */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

section .section-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 56px;
}

/* ── Features grid ── */
.features-section {
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.features-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}

.feature-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Handoff callout ── */
.handoff-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.handoff-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.handoff-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 16px;
}

.handoff-inner p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA band ── */
.cta-section {
  background: var(--bg-alt);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 8px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1.0625rem;
}

/* ── Footer ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Privacy page ── */
.legal-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--accent);
}

/* ── Guide sub-headings ── */
.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
  color: var(--text);
}

/* ── FAQ ── */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  border-top: 1px solid var(--border);
  list-style: none;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236e6e73' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ── Mac-only message ── */
.not-mac-msg {
  display: none;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 64px 20px 56px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
