/* Plans page (pro.html): GitHub's light theme (Primer colors: white canvas, #f6f8fa insets,
   #d0d7de borders, blue links, green primary buttons, purple for AI), flat and quiet, with
   real screenshots of the app instead of drawings. */
:root {
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --bg-3: #eff2f5;
  --border: #d0d7de;
  --border-muted: #d8dee4;
  --fg: #1f2328;
  --fg-dim: #59636e;
  --fg-strong: #1f2328;
  --accent: #0969da;
  --accent-soft: #ddf4ff;
  --accent-border: #54aeff66;
  --ok: #1a7f37;
  --btn: #1f883d;
  --btn-hover: #1c8139;
  --btn-border: rgba(31, 35, 40, 0.15);
  --ai: #8250df;
  --ai-soft: #fbefff;
  --ai-border: #d8b9ff;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 0 rgba(31, 35, 40, 0.04);
  --shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Noto Sans',
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  color: var(--fg-strong);
  letter-spacing: -0.015em;
  margin: 0;
}
.muted {
  color: var(--fg-dim);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- buttons (GitHub's) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--btn-border);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--btn);
  color: #fff;
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.1);
}
.btn-primary:hover {
  background: var(--btn-hover);
}
.btn-ghost {
  background: var(--bg-2);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--bg-3);
  border-color: rgba(31, 35, 40, 0.15);
}
.btn-sm {
  padding: 3px 12px;
  font-size: 13px;
}
.btn-lg {
  padding: 10px 20px;
  font-size: 15px;
}
body[data-plan='ai'] .btn-primary.cta-buy,
.plan[data-card='ai'] .btn-primary {
  background: var(--ai);
}
body[data-plan='ai'] .btn-primary.cta-buy:hover,
.plan[data-card='ai'] .btn-primary:hover {
  background: #7340d0;
}

/* ---------- header ---------- */
.titlebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
  padding: 0 28px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-strong);
  font-weight: 600;
  font-size: 15px;
}
.brand:hover {
  text-decoration: none;
}
.titlebar nav {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.titlebar nav a {
  padding: 5px 10px;
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}
.titlebar nav a:hover {
  background: rgba(208, 215, 222, 0.32);
  text-decoration: none;
}

/* ---------- hero ---------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 48px;
}
/* GitHub's segmented control */
.switch {
  display: flex;
  width: max-content;
  padding: 2px;
  margin-bottom: 22px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.switch button:hover {
  background: rgba(208, 215, 222, 0.4);
}
.switch button[aria-selected='true'] {
  background: var(--bg);
  border-color: var(--border);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tag {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  padding: 0 7px;
  line-height: 18px;
  border: 1px solid var(--ai-border);
  border-radius: 99px;
  color: var(--ai);
  background: var(--ai-soft);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
body[data-plan='free'] .chip {
  color: var(--fg-dim);
  background: var(--bg-2);
  border-color: var(--border);
}
body[data-plan='free'] .dot {
  background: var(--fg-dim);
}
body[data-plan='ai'] .chip,
body[data-plan='combo'] .chip {
  color: var(--ai);
  background: var(--ai-soft);
  border-color: var(--ai-border);
}
body[data-plan='ai'] .dot,
body[data-plan='combo'] .dot {
  background: var(--ai);
}
.hero h1 {
  margin: 16px 0;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
body[data-plan='ai'] .hero h1 em,
body[data-plan='combo'] .hero h1 em {
  color: var(--ai);
}
body[data-plan='free'] .hero h1 em {
  color: var(--ok);
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0 0 26px;
  max-width: 33em;
}
.lead b {
  color: var(--fg-strong);
  font-weight: 600;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  margin: 18px 0 0;
  font-size: 14px;
}
.price-line b {
  color: var(--fg-strong);
  font-size: 22px;
  font-weight: 600;
}
.price-line .muted {
  margin-left: 10px;
}
.hero-copy > *,
.hero-shot img {
  transition: opacity 0.2s;
}
body.swapping .hero-copy > :not(.switch),
body.swapping .hero-shot img {
  opacity: 0.25;
}

/* ---------- real screenshots ---------- */
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot img {
  width: 100%;
}
.hero-shot figcaption {
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg-dim);
  font-size: 13px;
}
.gallery {
  max-width: 1080px;
  margin: 0 auto;
}
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
/* GitHub's underline nav */
.gallery-tabs button {
  position: relative;
  padding: 8px 14px 12px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.gallery-tabs button:hover {
  color: var(--fg-strong);
}
.gallery-tabs button[aria-selected='true'] {
  font-weight: 600;
}
.gallery-tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #fd8c73;
}
#gallery-caption {
  margin-top: 14px;
}

/* ---------- trust strip under the hero ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0 0 8px;
  padding: 14px 20px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--fg-dim);
}
.trust li {
  white-space: nowrap;
}
.trust b {
  color: var(--fg-strong);
}

/* ---------- sections ---------- */
.section {
  padding: 80px 0 24px;
}
.head {
  text-align: center;
  margin-bottom: 36px;
}
.head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 8px 0 6px;
  font-weight: 600;
}
.head p {
  margin: 0;
  font-size: 16px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.cur-name {
  color: var(--accent);
}
body[data-plan='ai'] .cur-name,
body[data-plan='combo'] .cur-name {
  color: var(--ai);
}

/* features that switch on/off with the plan */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.features article {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition:
    opacity 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.features article.off {
  opacity: 0.45;
  background: var(--bg-2);
}
.features article.on {
  border-color: var(--accent-border);
}
.features h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.features p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-dim);
}
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 18px;
}
.features article.on .ico {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

/* plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.plan:hover {
  box-shadow: var(--shadow);
}
.plan.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan[data-card='ai'].selected,
.plan[data-card='combo'].selected {
  border-color: var(--ai);
  box-shadow: 0 0 0 1px var(--ai);
}
.plan.combo {
  background: linear-gradient(180deg, var(--ai-soft), var(--bg) 45%);
}
.ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  translate: -50% 0;
  padding: 0 10px;
  line-height: 20px;
  border: 1px solid var(--ai-border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--ai);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.plan h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-strong);
}
.price {
  margin-top: 10px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
}
.price small {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0;
}
.plan p {
  margin: 6px 0 16px;
  min-height: 2.6em;
}
.plan ul {
  list-style: none;
  padding: 16px 0 0;
  margin: 0 0 22px;
  flex: 1;
  border-top: 1px solid var(--border-muted);
}
.plan li {
  position: relative;
  padding: 4px 0 4px 26px;
  font-size: 14px;
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 4px;
  color: var(--ok);
  font-weight: 700;
}
.plan .btn {
  width: 100%;
  padding: 8px 16px;
}
#buy-note {
  margin-top: 20px;
}

/* compare */
.compare {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th,
.compare td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-muted);
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.compare tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--fg);
}
.compare thead th {
  background: var(--bg-2);
  font-weight: 600;
  color: var(--fg-strong);
  border-bottom-color: var(--border);
}
.compare tbody tr:hover > * {
  background: var(--bg-2);
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare td {
  color: var(--fg-dim);
}
.compare .sel,
.compare tbody tr:hover > .sel {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
body[data-plan='ai'] .compare .sel,
body[data-plan='combo'] .compare .sel {
  background: var(--ai-soft);
  color: var(--ai);
}
.price-row td,
.price-row th {
  color: var(--fg-strong);
  font-weight: 600;
  font-size: 15px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.steps li {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg-strong);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.steps h3 {
  font-size: 16px;
  font-weight: 600;
}
.steps p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fg-dim);
}

/* faq */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg);
}
.faq summary {
  position: relative;
  padding: 12px 44px 12px 16px;
  font-weight: 600;
  color: var(--fg-strong);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  color: var(--fg-dim);
  font-size: 20px;
  transition: transform 0.2s;
}
.faq details[open] summary {
  border-bottom: 1px solid var(--border-muted);
  background: var(--bg-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.faq details[open] summary::after {
  transform: rotate(90deg);
}
.faq details p {
  margin: 0;
  padding: 14px 16px;
  color: var(--fg-dim);
}
.faq details p b {
  color: var(--fg-strong);
}

/* final call to action */
.final {
  margin: 88px 0 72px;
  padding: 56px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.final img {
  margin: 0 auto 14px;
}
.final h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
}
.final p {
  margin: 8px 0 24px;
}
.final p b {
  color: var(--fg-strong);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 13px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s,
    transform 0.5s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }
  .plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }
}
@media (max-width: 640px) {
  main {
    padding: 0 18px;
  }
  .titlebar {
    padding: 0 18px;
  }
  .titlebar nav {
    display: none;
  }
  .titlebar .btn {
    margin-left: auto;
  }
  .switch {
    width: 100%;
  }
  .switch button {
    flex: 1;
    justify-content: center;
    padding: 5px 6px;
  }
  .switch .tag {
    display: none;
  }
  .gallery-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .gallery-tabs button {
    white-space: nowrap;
  }
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 60px;
  }
  .final {
    padding: 44px 20px;
  }
}
body[data-plan='free'] .cta .btn-ghost {
  display: none;
}
