/* The marketing page. One long page: hero, how it works, the three
   surfaces, privacy, pricing, FAQ.

   Everything paints through tokens. The only pictures are captures of the
   shipped clients (README, "The hero showcase"); the frames around them are
   CSS so a fresh capture is just a PNG. */

/* ---------- hero ---------- */

.hero {
  padding: 5.5rem 0 0;
  text-align: center;
  position: relative;
}

.hero .container { position: relative; }

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero p.lead {
  max-width: 640px;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.hero-offers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* A quiet way in for people who already have the apps. It must read as a
   link, not as a third install button competing with the store pair. */
.hero-web {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-2);
  text-align: left;
  text-decoration: none;
  background: var(--surface-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.hero-web:hover {
  color: var(--text);
  background: var(--surface-card);
  border-color: var(--border-glow);
}

.hero-web-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

.hero-web-text strong { color: var(--accent); font-weight: 600; }

.hero-web-arrow {
  flex: none;
  color: var(--text-3);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.hero-web:hover .hero-web-arrow { color: var(--accent); transform: translateX(2px); }

@media (max-width: 560px) {
  .hero-web { border-radius: var(--radius-lg); padding: 10px 12px; flex-wrap: wrap; justify-content: center; text-align: center; }
  .hero-web-arrow { display: none; }
}

/* The two clients, together. A browser frame with the phone leaning on its
   corner: it is the one picture that says "this is one product on two
   devices" without a sentence. Both are real captures. */
.hero-scene {
  position: relative;
  max-width: 980px;
  margin: 3.5rem auto 0;
  padding: 0 0 2.5rem;
}

.hero-scene[hidden] { display: none; }

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 12% -10% -10%;
  background: radial-gradient(ellipse at 50% 60%, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.frame {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-browser {
  border-radius: var(--radius-lg);
  width: 86%;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.frame-url {
  margin-left: 10px;
  flex: 1;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-light);
}

.frame-phone {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 21%;
  min-width: 150px;
  border-radius: 26px;
  padding: 7px;
  z-index: 2;
}

.frame-phone img { border-radius: 20px; }

@media (max-width: 720px) {
  .hero { padding-top: 3.5rem; }
  .hero-scene { margin-top: 2.5rem; padding-bottom: 0; }
  .frame-browser { width: 100%; }
  .frame-phone { display: none; }
}

/* ---------- how it works ---------- */

.step-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- the surfaces ---------- */

.surface-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.surface-card h3 { font-size: 1.2rem; }

.surface-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* The store button sits on the floor of its card, so three cards with prose of
   different lengths still line their buttons up. */
.card-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.card-cta .btn { width: 100%; justify-content: center; }

.band {
  background: var(--surface-glass);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ---------- privacy ---------- */

.privacy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.privacy-row h2 { margin-top: 1rem; }

@media (max-width: 900px) {
  .privacy-row { grid-template-columns: 1fr; gap: 2rem; }
}

.never-list { margin-top: 1rem; }

.never-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-2);
}

.never-row:first-child { border-top: 0; }

.never-x {
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 24px;
  flex: none;
}

/* ---------- pricing ---------- */

.pricing-period-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  margin: 0 auto 2.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.pricing-period-wrap { text-align: center; }

.period-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-tab.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.period-tab .pill { padding: 1px 8px; font-size: 0.7rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 950px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  min-height: 44px;
  margin-bottom: 1.25rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-2);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}

.pricing-feature svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature.disabled { color: var(--text-3); text-decoration: line-through; }
.pricing-feature.disabled svg { color: var(--text-3); }

/* ---------- FAQ ---------- */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open { border-color: var(--border-glow); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--text-2);
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.4rem;
}

.faq-answer p { font-size: 0.95rem; }

.faq-item.is-open .faq-answer {
  padding: 0 1.4rem 1.4rem;
  max-height: 400px;
}

