:root {
  --black: #000;
  --white: #fff;
  --muted: rgba(0, 0, 0, 0.5);
  --card-bg: #f9f9f9;
  --card-border: #e6e6e6;
  --outline: #9e9e9e;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
  line-height: 1.2;
}

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

main {
  padding: 0 16px 160px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 123px;
}

.app-icon {
  width: 86px;
  height: 86px;
  border: 9.556px solid rgba(0, 0, 0, 0.08);
  border-radius: 20.574px;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-name {
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 542px;
  margin-top: 30px;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(40px, 8vw, 60px);
  letter-spacing: -0.04em;
}

.lead {
  margin-top: -12px; /* 20px gap between title and subtitle */
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: -0.04em;
  color: var(--muted);
}

.hero-note {
  max-width: 420px;
  margin-top: -12px; /* 20px below the download button */
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 242px;
  height: 64px;
  padding: 0 32px;
  border-radius: 300px;
  background: var(--black);
  color: var(--white);
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.btn-primary svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: -3px; /* the Apple logo sits low in its box */
}

a.btn-primary:hover {
  background: #333;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

/* Answer popup preview */
.answer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 485px;
  min-height: 294px;
  margin-top: 75px;
  padding: 34px 26px 26px;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
}

.answer-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-label {
  font-size: 20px;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.answer-text {
  font-size: clamp(20px, 5vw, 24px);
  letter-spacing: -0.04em;
}

.hints {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-system);
  font-weight: 510;
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint kbd {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 14px;
}

.hint span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Section headings ---------- */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 890px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading .sub {
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: -0.04em;
  color: var(--muted);
}

/* ---------- Feature ---------- */
.feature {
  margin-top: 201px;
}

.mockup {
  position: relative;
  max-width: 1194px;
  margin: 14px auto 0;
}

.mockup img {
  width: 100%;
  height: auto;
}

/* Covers a strip of the screenshot, matching the Figma frame */
.mockup-mask {
  position: absolute;
  left: 61.04%;
  top: 11.18%;
  width: 28.37%;
  height: 1.74%;
  background: #0a0a0b;
}

/* ---------- Pricing ---------- */
.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin-top: 201px;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.plan {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  padding: 48px 40px;
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  background: var(--card-bg);
}

.plan h3 {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.plan-desc {
  min-height: 40px;
  margin-top: 12px;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.plan-price {
  margin-top: 40px;
  font-size: 40px;
  letter-spacing: -0.04em;
}

.plan-meta {
  margin-top: 10px;
  margin-right: -20px; /* lets the line run into the side padding like the design */
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.plans-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.btn-outline {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 28px;
  padding: 18px;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .hero {
    padding-top: 64px;
  }

  .feature,
  .pricing {
    margin-top: 120px;
  }

  .plan {
    padding: 36px 28px;
  }

  .plan-meta {
    margin-right: 0;
  }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Typewriter ---------- */
.answer-text[data-typewriter] {
  min-height: 2.4em; /* keep two lines reserved while typing */
}

.tw-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: tw-blink 1s steps(1) infinite;
}

@keyframes tw-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 16px 48px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.site-footer a {
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-decoration: none;
}

.site-footer .copyright {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--black);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 16px 120px;
  font-weight: 400;
}

.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--black);
  text-decoration: none;
}

.legal-home img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.legal h1 {
  margin-top: 56px;
  font-size: clamp(32px, 6vw, 40px);
  letter-spacing: -0.04em;
}

.legal-date {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.legal h2 {
  margin-top: 40px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.75);
}

.legal p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  font-weight: 700;
  color: var(--black);
}

.legal a:not(.legal-home) {
  color: var(--black);
}
