*, *::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-section {
  padding: 0 24px 24px;
}

.hero {
  text-align: center;
  padding: 48px 24px 0;
  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;
}

.download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.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: 12px 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: 760px;
  margin-bottom: 42px;
}

.features-section .section-intro {
  max-width: 820px;
}

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

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

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

.feature-card--wide {
  grid-column: span 2;
}

.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;
  padding-top: 28px;
}

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

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

.cta-section .download-btn {
  margin-bottom: 18px;
}

/* ── 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;
}

/* ── Pricing ── */
.pricing-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.pricing-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

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

.pricing-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.pricing-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.pricing-grid-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 18px 48px rgba(29, 29, 31, 0.07);
}

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  box-shadow: 0 24px 60px rgba(0, 113, 227, 0.14);
  transform: translateY(-10px);
}

.pricing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #2f9d62;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-trial {
  display: inline-block;
  background: #2f9d62;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-amount {
  margin: 22px 0 6px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 6px;
}

.pricing-tax-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-savings {
  margin-top: 12px;
  color: #2f9d62;
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  text-align: left;
}

.pricing-features li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: #2f9d62;
  font-weight: 700;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-button {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}

.pricing-note {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 16px;
}

.pricing-note h2 {
  font-size: 1.125rem;
  margin: 0 0 14px;
}

.pricing-note ul {
  padding-left: 20px;
}

.pricing-note li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-links,
.pricing-back-link {
  text-align: center;
  color: var(--text-secondary);
}

.pricing-links {
  margin-top: 34px;
}

.pricing-back-link {
  margin-top: 18px;
}

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

.hero .download-block .download-meta,
.cta-section .download-meta,
.download-meta {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  max-width: none;
}

.hero .download-block .download-meta {
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
}

.download-btn {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 34px;
}

/* ── Status icon images ── */
.status-icon {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

.feature-status-icon {
  height: 36px;
  width: auto;
}

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  color: var(--text);
  line-height: 0;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {

  .features-grid--duo {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: auto;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-codesolve {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 20px;
    z-index: 99;
  }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    color: var(--text);
  }

  /* Hero */
  .hero-section {
    padding: 0 20px 20px;
  }

  .hero {
    padding: 28px 20px 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
  }

  .btn-primary {
    font-size: 0.9375rem;
    padding: 13px 22px;
  }

  .hero-screenshot {
    padding: 0 16px;
  }

  /* Features */
  .features-grid--duo {
    grid-template-columns: 1fr;
  }

  /* Sections */
  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 1.75rem;
  }

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

  /* Legal pages */
  .legal-page {
    margin: 40px auto;
  }

  .pricing-page {
    padding: 40px 20px 72px;
  }

  .pricing-header {
    margin-bottom: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .pricing-card--featured {
    transform: none;
  }
}
