/* ── Landing ────────────────────────────────────────────────
   Hero, plans, FAQ and footer socials. The hero demo is styled in
   landing-demo.css; use cases and steps in landing-uses.css. */

/* Split hero: the promise on the left, the product proving it on the right.
   Below 980px it stacks and re-centres, demo first after the copy. */
.hero {
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
}

/* Sized for a half-width column. text-wrap: balance decides the line breaks,
   not max-width: change the font size if the line count needs to move. */
.hero-title {
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 13.5px;
  margin-top: 2px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 40px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-cta, .hero-meta { justify-content: center; }
  .demo-card { max-width: 560px; width: 100%; margin: 0 auto; }
}

/* ── Pricing band (landing) ─────────────────────────────────
   The landing's only word on pricing: free is real, the cards are one click
   away on /pricing. */

.pricing-band {
  margin-top: 76px;
  padding: 44px 28px 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 130% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.pricing-band-title { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.03em; }
.pricing-band-note { color: var(--muted); font-size: 15.5px; max-width: 44ch; line-height: 1.6; }
.pricing-band-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ── Pricing page ───────────────────────────────────────────
   The plans section carries the whole page, so its title steps up to page
   scale and the landing-sized top margin comes down. */

.pricing-page .plans { margin-top: 40px; }
.pricing-page .plans-title { font-size: clamp(32px, 4.4vw, 44px); }

/* ── Plans ──────────────────────────────────────────────── */

.plans { margin-top: 82px; display: flex; flex-direction: column; gap: 30px; }

.plans-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.plans-title { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.03em; }
.plans-note { color: var(--muted); font-size: 15.5px; }
.plans-save { font-size: 13px; color: var(--good); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  /* stretch (the grid default) so all three cards match the tallest, rather
     than each sizing to its own feature list. */
  align-items: stretch;
}

@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; width: 100%; } }

.plan {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.plan:hover { border-color: var(--line-hi); transform: translateY(-2px); }

.plan.is-featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 26px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.plan-name { font-size: 17px; font-weight: 600; }

.plan-price { display: flex; align-items: baseline; gap: 5px; }
/* Proportional figures: tabular-nums makes a large standalone number look loose. */
.plan-amount { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.plan-period { font-size: 14.5px; color: var(--muted); }

/* Fixed minimums on the two variable-length lines above the button, so the
   three CTAs sit on the same baseline instead of drifting by a line of text. */
.plan-billing { font-size: 12.5px; color: var(--subtle); min-height: 32px; line-height: 1.45; }
.plan-tagline { font-size: 14px; color: var(--muted); line-height: 1.55; min-height: 44px; }

.plan-features { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.plan-inherits { color: var(--muted); font-weight: 500; font-size: 13.5px !important; }

.plan-tick {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
}

.plan-tick svg { width: 13px; height: 13px; stroke-width: 2.6; }

/* The one clickable thing inside a feature list, so it carries both signals a
   link needs: the brand gold (the palette's only non-structural colour) and an
   underline, for anyone who does not see the colour at all. */
.plan-link {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.16s var(--ease);
}

.plan-link:hover { opacity: 0.75; text-decoration-thickness: 2px; }
.plan-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { margin-top: 72px; display: flex; flex-direction: column; gap: 22px; align-items: center; }

.faq-title {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.03em;
  text-align: center;
}

.faq-list { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item:hover { border-color: var(--line-hi); }
.faq-item[open] { border-color: var(--accent-soft); background: var(--accent-soft); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-md); }

.faq-mark {
  color: var(--muted);
  flex: none;
  display: grid;
  place-items: center;
  transition: transform 0.24s var(--ease), color 0.2s var(--ease);
}

.faq-mark svg { width: 15px; height: 15px; }
.faq-item[open] .faq-mark { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  padding: 0 22px 21px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  /* No max-width: the panel is already a comfortable measure at 720px, and
     capping it again left a ragged column of empty space on the right. */
}

/* ── Social links ───────────────────────────────────────── */

.socials { display: inline-flex; align-items: center; gap: 6px; }

.social-link {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--subtle);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

.social-link:hover { color: var(--text); background: var(--surface-hi); transform: translateY(-1px); }
.social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-link svg { width: 16px; height: 16px; }
