:root {
  --bg: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --divider: #e5e5ea;
  --card-bg: #f5f5f7;
  --radius: 16px;
}

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

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

.landing {
  min-height: 100vh;
  background: radial-gradient(circle at top, #f5f5f7, #ffffff 60%);
}

html {
  scroll-behavior: smooth;
}

html.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

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

.container {
  padding: 24px 20px 56px;
  max-width: 720px;
  margin: 0 auto;
}

.landing-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
header {
  padding-top: 12px;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-landing {
  text-align: center;
  gap: 16px;
}

.logo {
  width: 40%;
  max-width: 200px;
  height: auto;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

header p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 16px;
}

.badges {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--card-bg);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.secondary-link {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-tag {
  position: relative;
  display: inline;
  padding-left: 1.6em;
  line-height: inherit;
  color: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.brand-tag::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 50%;
  width: 1.2em;
  height: 1.2em;
  transform: translateY(-50%);
  background-image: url("assets/apple.intelligence.png");
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0) saturate(100%) invert(38%) sepia(72%) saturate(1954%) hue-rotate(189deg) brightness(91%) contrast(91%);
  opacity: 0.9;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reminder {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(100%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.scroll-reminder svg {
  width: 20px;
  height: 20px;
}

.scroll-reminder[data-active="true"] {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Section */
section {
  margin-top: 48px;
}

.hero + section {
  margin-top: 0;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p, .card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

ul {
  padding-left: 18px;
}

ul li + li {
  margin-top: 6px;
}

ol {
  padding-left: 20px;
}

ol li + li {
  margin-top: 6px;
}

details.expandable {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

details.expandable summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

details.expandable[open] summary {
  margin-bottom: 8px;
}

details.expandable ul {
  margin-top: 4px;
  padding-left: 18px;
}

details.expandable ul li {
  font-size: 0.9rem;
}

details.expandable ol {
  margin-top: 4px;
  padding-left: 18px;
}

details.expandable ol li {
  font-size: 0.9rem;
}

/* Steps */
.step-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Button */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--divider);
  padding: 16px 0;
}

.faq-item:first-child {
  border-top: none;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Desktop enhancement */
@media (min-width: 768px) {
  header h1 {
    font-size: 2.6rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .cta-group {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: calc(100vh - 40px);
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-reminder {
    transition: none;
  }
}
