/* Inner pages: product tour chapters, pricing, help, and editorial pages. */

/* Page name chip above an inner page headline. */
.kicker {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  margin-bottom: 22px;
  border-radius: var(--pill);
  background: var(--glass-bg);
  box-shadow: inset 0 0 0 1px var(--glass-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Product tour ---------- */
.tour-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.chapter-copy { padding: 72px clamp(20px, 3.6vw, 52px); min-width: 0; }
.chapter-copy h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 30px 0 18px;
  text-wrap: balance;
}
.chapter-copy > p { color: var(--fg-muted); font-size: 17px; max-width: 52ch; }
.chapter-copy > p + p { margin-top: 14px; }
.chapter-copy strong { color: var(--fg); }
.chapter-copy .text-link { margin-top: 26px; }
.instruction-list { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; display: grid; border-top: 1px dashed var(--sub); }
.instruction-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--sub);
}
.instruction-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  font: 500 12px/1 var(--mono);
  margin-top: 1px;
}
.example-note {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--sub);
  background: var(--paper);
}
.example-note .label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.example-note p { font-size: 18px; margin-top: 6px; }
.example-note strong { display: block; margin-top: 8px; }
.small-copy { font-size: 14.5px; color: var(--fg-muted); margin-top: 16px; }

.tour-figure {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 56px 0 28px 9%;
  overflow: hidden;
  border-left: 1px solid var(--sub);
  background: linear-gradient(90deg, var(--a) 0 36%, var(--b) 36% 100%);
}
.tour-figure.art-blue { --a: #3d6ddc; --b: #a9bdf0; }
.tour-figure.art-ink { --a: #1c243c; --b: #34416b; }
.tour-figure.art-gold { --a: #e8c98d; --b: #f4e4c3; }
.screenshot-frame {
  margin-right: -6%;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--card-radius) 0 0 var(--card-radius);
  box-shadow: var(--shadow);
}
.screenshot-frame img { display: block; width: 100%; }
.tour-figure figcaption { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-right: 24px; }
.tour-figure figcaption > span,
.view-larger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: color-mix(in srgb, #fff 88%, transparent);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12.5px;
}
.view-larger { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--accent); }
.view-larger:hover { color: var(--accent-hover); }

.starting-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.starting-heading > p { color: var(--fg-muted); font-size: 18px; max-width: 40ch; }
.use-cases { margin-top: 40px; }

/* ---------- Pricing ---------- */
.pricing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 56px clamp(20px, 3.6vw, 52px);
  background: var(--paper);
  border-right: 1px solid var(--sub);
}
.pricing-card + .pricing-card { border-right: 0; }
.pricing-card .included-list { width: 100%; flex: 1; align-content: start; }
.pricing-card .go { max-width: 100%; }
.price-unit { font-size: clamp(18px, 2vw, 24px); font-weight: 460; letter-spacing: 0; }
.pricing-examples { width: 100%; margin-top: 20px; border-top: 1px solid var(--sub); }
.pricing-examples > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--sub); }
.pricing-examples dd { font-weight: 600; }
.pricing-layout > .pricing-explanation { grid-column: 1 / -1; border-top: 1px solid var(--sub); }
.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--mist);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.pricing-card h2 { font-size: 28px; font-weight: 540; letter-spacing: -0.015em; margin-top: 22px; }
.price-announcement {
  margin-top: 10px;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 460;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.pricing-card > p:not([class]) { color: var(--fg-muted); font-size: 17px; margin-top: 16px; max-width: 46ch; }
.pricing-card .go { margin-top: 32px; }
.pricing-explanation { padding: 56px clamp(20px, 3.6vw, 52px); min-width: 0; }
.pricing-explanation h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 460; letter-spacing: -0.02em; margin-top: 26px; }
.fact-list { margin-top: 24px; border-top: 1px solid var(--sub); }
.fact-list > div { padding: 16px 0; border-bottom: 1px solid var(--sub); }
.fact-list dt { font-weight: 600; font-size: 17px; }
.fact-list dd { color: var(--fg-muted); margin-top: 4px; }

/* ---------- Help and editorial pages ---------- */
.help-layout,
.editorial-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.help-topics {
  align-self: start;
  position: sticky;
  top: var(--nav-h);
  display: grid;
  padding: 40px 0;
}
.help-topics a {
  padding: 10px 24px;
  border-left: 2px solid transparent;
  color: var(--fg-muted);
  font-weight: 540;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.help-topics a:hover { color: var(--fg); border-left-color: var(--brand); }
.help-articles,
.prose { border-left: 1px solid var(--sub); min-width: 0; }
.help-articles > section,
.prose > section { padding: 48px clamp(20px, 3.6vw, 56px); border-bottom: 1px solid var(--sub); }
.help-articles > section:last-child,
.prose > section:last-child { border-bottom: 0; }
.help-articles h2,
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 460; letter-spacing: -0.02em; line-height: 1.1; max-width: 26ch; }
.help-articles p,
.prose p { color: var(--fg-muted); font-size: 17px; max-width: 64ch; margin-top: 14px; }
.prose > p { margin: 48px clamp(20px, 3.6vw, 56px) 0; }
.help-articles strong,
.prose strong { color: var(--fg); }
.help-articles .text-link,
.prose .text-link { margin-top: 20px; }
.help-disclosure { margin-top: 20px; border-top: 1px solid var(--sub); border-bottom: 1px solid var(--sub); }
.help-disclosure summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.help-disclosure p { padding-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tour-chapter,
  .pricing-layout { grid-template-columns: minmax(0, 1fr); }
  .tour-figure { border-left: 0; border-top: 1px solid var(--sub); }
  .pricing-card { border-right: 0; border-bottom: 1px solid var(--sub); }
  .pricing-layout > .pricing-explanation { border-top: 0; }
}
@media (max-width: 900px) {
  .help-layout,
  .editorial-layout { grid-template-columns: 1fr; }
  .help-topics {
    position: static;
    padding: 12px 0;
    grid-auto-flow: column;
    overflow-x: auto;
    border-bottom: 1px solid var(--sub);
  }
  .help-topics a { white-space: nowrap; border-left: 0; padding: 10px 16px; }
  .help-articles,
  .prose { border-left: 0; }
}

/* Billing period: a segmented Monthly / Annual switch built on native radios. */
.pricing-period { display: flex; justify-content: center; margin: 0; padding: 40px 16px; border: 0; min-width: 0; }
.pricing-period[hidden] { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.period-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.period-switch label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  color: var(--fg-muted);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.period-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.period-switch > label > span { display: inline-flex; align-items: center; gap: 8px; }
.period-switch label:hover { color: var(--fg); }
.period-switch label:has(input:checked) { background: var(--night); color: #fff; }
.period-switch label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.save-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--pill);
  background: var(--mist);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.price-cadence { margin-top: 8px; color: var(--fg-muted); font-size: 14px; font-weight: 540; }
@media (max-width: 400px) {
  .period-switch label { padding: 0 14px; font-size: 15px; }
  .save-badge { padding: 0 6px; font-size: 11px; }
}
