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

:root {
  --accent: #007AFF;
  --accent-light: rgba(0, 122, 255, 0.1);
  --text-primary: #1C1C1E;
  --text-secondary: #6E6E73;
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --separator: rgba(60, 60, 67, 0.1);
  --radius-card: 14px;
  --radius-lg: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F2F2F7;
    --text-secondary: #8E8E93;
    --bg: #1C1C1E;
    --surface: #2C2C2E;
    --separator: rgba(255, 255, 255, 0.1);
    --accent-light: rgba(0, 122, 255, 0.15);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ── */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--separator);
  padding: 64px 20px 56px;
  text-align: center;
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.app-icon img {
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.badge img {
  height: 44px;
  display: inline-block;
}

/* ── Features ── */

.features {
  padding: 64px 20px;
}

.features h2,
.faq h2,
.support-contact h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 32px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
}

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

/* ── FAQ ── */

.faq {
  padding: 0 20px 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--separator);
  border-radius: var(--radius-card);
  overflow: hidden;
}

details {
  background: var(--surface);
}

details:first-child {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

details:last-child {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-left: 12px;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

details > p {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Contact ── */

.support-contact {
  padding: 0 20px 80px;
  text-align: center;
}

.support-contact p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

.contact-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-card);
  transition: opacity 0.15s ease;
}

.contact-btn:hover {
  opacity: 0.85;
}

/* ── Footer ── */

footer {
  background: var(--surface);
  border-top: 1px solid var(--separator);
  padding: 24px 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

footer a:hover {
  text-decoration: underline;
}

/* ── iCloud callout ── */

.icloud-section {
  background: var(--accent-light);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 32px 20px;
  margin-bottom: 64px;
}

.icloud-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.icloud-icon {
  width: 52px;
  height: 52px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icloud-inner h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.icloud-inner p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Pricing ── */

.pricing {
  padding: 0 20px 64px;
}

.pricing-sub {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.pricing-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}

.pricing-card.unlock {
  border: 1.5px solid var(--accent);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.plan-header .plan-label {
  margin-bottom: 0;
  color: var(--accent);
}

.plan-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.pricing-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

.pricing-card.unlock ul li::before {
  opacity: 1;
}

/* ── Nav bar (privacy page) ── */

.nav-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--separator);
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

/* ── Privacy page ── */

.prose-page {
  padding: 48px 20px 80px;
  max-width: 680px;
  margin: 0 auto;
}

.prose-page h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.prose-page .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.prose-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.prose-page ul {
  margin: 0 0 16px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 32px;
}

.back-link:hover {
  text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .features h2, .faq h2, .support-contact h2 { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-stack { grid-template-columns: 1fr; }

  .icloud-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
