/* Static public pages (About, Contact, Privacy, Terms). Uses the tokens in style.css. */
body.static-page { background: var(--canvas); color: var(--ink); font-family: var(--font-ui); line-height: 1.6; margin: 0; }
.sp-top { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sp-top .brand { text-decoration: none; color: inherit; }
.sp-top .btn-ghost { background: var(--surface); text-decoration: none; }
.sp-main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.sp-main h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 1rem 0 0.75rem; }
.sp-main h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.sp-main p, .sp-main li { color: var(--ink); }
.sp-main ul { padding-left: 1.25rem; }
.sp-main li { margin: 0.35rem 0; }
.sp-main a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.sp-main a.btn-primary { display: inline-block; text-decoration: none; color: var(--on-accent); }
.sp-main .lead { font-size: 1.1rem; color: var(--ink-soft); }
.sp-main .meta { color: var(--ink-faint); font-size: 0.9rem; margin: 0 0 1rem; }
.sp-foot { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; }
.sp-foot nav { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0 -0.75rem 0.3rem; }
/* Tap targets of at least 24x24 px (WCAG 2.2, 2.5.8). */
.sp-foot a { color: var(--ink-soft); display: inline-block; padding: 0.5rem 0.75rem; }
.sp-main table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.sp-main th, .sp-main td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-main thead th { color: var(--ink-soft); font-weight: 600; }
.sp-main tbody th { font-weight: 500; }

/* ============================================================
   Pricing page (/pricing/). Wider than the other static pages
   because of the plan cards and the comparison table.
   ============================================================ */
.pricing-page .sp-top,
.pricing-page .sp-main,
.pricing-page .sp-foot { max-width: 1040px; }
.pricing-page .sp-main { padding-bottom: 1rem; }
.pricing-page .sp-main h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 3rem 0 0.6rem; }
.pricing-page .sp-main h3 { font-size: 1.02rem; margin: 1.5rem 0 0.3rem; }

/* ---- Hero ---- */
.pr-hero { padding: 1.5rem 0 0.5rem; max-width: 46rem; }
.pr-hero .eyebrow { display: inline-block; margin: 0; }
.pricing-page .pr-hero h1 { margin: 0.9rem 0 0.6rem; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.08; text-wrap: balance; }
.pricing-page .pr-hero .lead { margin: 0; max-width: 40rem; }
.pr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 1.25rem 0 0; padding: 0; }
.pricing-page .pr-chips li {
  margin: 0; padding: 0.3rem 0.7rem 0.3rem 1.9rem; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.pr-chips li::before {
  content: ""; position: absolute; left: 0.6rem; top: 50%; margin-top: -0.4rem;
  width: 0.8rem; height: 0.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%232F7D6D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Plan cards ---- */
.pr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2.25rem 0 0; }
.pr-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
}
.pricing-page .pr-plan h2 { margin: 0; font-size: 1.15rem; }
.pr-plan-sub { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; min-height: 2.8em; }
.pr-price { margin: 1rem 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.pr-amount { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
/* --ink-soft, not --ink-faint: faint only clears 4.5:1 on --surface, and this
   sits on the Pro card's violet tint too (4.4:1 there). */
.pr-per { color: var(--ink-soft); font-size: 0.9rem; }

.pr-list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.pricing-page .pr-list li { position: relative; margin: 0; padding-left: 1.75rem; font-size: 0.93rem; line-height: 1.5; }
.pr-list li::before {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232F7D6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.pr-list-pro li::before {
  background: var(--ai-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%236B4FD8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.pricing-page a.pr-cta { margin-top: 1.5rem; align-self: flex-start; padding: 0.7rem 1.4rem; font-size: 0.95rem; }

.pr-plan-pro { background: var(--ai-soft); border-color: var(--ai-border); }
.pricing-page .pr-plan-pro h2 { color: var(--ai); }
/* Pinned to the corner so the "Pro" heading stays level with "Free". */
.pr-flag {
  position: absolute; top: 1.1rem; right: 1.1rem; margin: 0;
  background: var(--surface); border: 1px solid var(--ai-border); color: var(--ai);
  border-radius: 999px; padding: 0.22rem 0.7rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.pricing-page .pr-plan-pro h2 { padding-right: 9rem; }
.pr-note { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; }

/* ---- Free on every plan ---- */
.pr-always-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; }
.pricing-page .pr-always-list li {
  margin: 0; padding: 1.15rem 1.2rem;
  background: var(--accent-soft); border-radius: var(--radius-md);
}
.pricing-page .pr-always-list h3 { margin: 0 0 0.3rem; font-size: 0.98rem; color: var(--accent-ink); }
.pr-always-list p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.pr-always-note { margin: 1.1rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---- Comparison table ---- */
.pricing-page .pr-table { margin-top: 1.5rem; border-collapse: separate; border-spacing: 0; }
.pricing-page .pr-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--canvas); color: var(--ink); font-weight: 600; font-size: 0.9rem;
  border-bottom: 2px solid var(--line-strong); padding: 0.7rem 0.85rem;
}
.pricing-page .pr-table tbody th,
.pricing-page .pr-table tbody td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); }
.pricing-page .pr-table tbody th[scope="row"] { font-weight: 500; color: var(--ink); width: 46%; }
.pricing-page .pr-table td { color: var(--ink-soft); }
.pricing-page .pr-table .pr-col-pro { background: var(--ai-soft); }
.pricing-page .pr-table thead .pr-col-pro { color: var(--ai); }
.pricing-page .pr-table tbody tr:last-child .pr-col-pro { border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.pricing-page .pr-table .pr-group th {
  background: var(--surface-2); color: var(--ink-soft);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line);
}
.pr-yes, .pr-no { display: inline-block; width: 1.15rem; height: 1.15rem; vertical-align: -0.2em; }
.pr-yes { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%232F7D6D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pr-no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%23667070' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- AI note and closing ---- */
.pr-ai { margin-top: 2.5rem; padding: 1.4rem 1.5rem; background: var(--ai-soft); border: 1px solid var(--ai-border); border-radius: var(--radius-md); }
.pricing-page .pr-ai h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--ai); }
.pr-ai p { margin: 0.5rem 0 0; font-size: 0.93rem; line-height: 1.6; }
.pr-ai-links { color: var(--ink-soft); }

.pricing-page .pr-faq h3 { margin-top: 1.4rem; }
.pr-faq p { margin: 0.3rem 0 0; color: var(--ink-soft); }

.pr-end { margin: 3rem 0 1rem; padding: 2rem 1.5rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pricing-page .pr-end h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-wrap: balance; }
.pr-end p { margin: 0.5rem 0 0; color: var(--ink-soft); }
.pricing-page .pr-end a.pr-cta { margin-top: 1.1rem; align-self: center; }

/* Dark mode: the tick and dash SVGs carry their own colours, so swap them. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pr-chips li::before,
  :root:not([data-theme="light"]) .pr-yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%234FB59F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .pr-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234FB59F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .pr-list-pro li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23A99BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .pr-no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%2393A09C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] .pr-chips li::before,
:root[data-theme="dark"] .pr-yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%234FB59F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .pr-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234FB59F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .pr-list-pro li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23A99BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .pr-no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%2393A09C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---- Phone ---- */
@media (max-width: 760px) {
  .pr-plans, .pr-always-list { grid-template-columns: minmax(0, 1fr); }
  .pr-plan-sub { min-height: 0; }
  .pricing-page a.pr-cta { align-self: stretch; text-align: center; }
  /* The three-column table does not fit, so each row becomes a small card. */
  .pricing-page .pr-table,
  .pricing-page .pr-table tbody,
  .pricing-page .pr-table tr,
  .pricing-page .pr-table th,
  .pricing-page .pr-table td { display: block; }
  .pricing-page .pr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pricing-page .pr-table tbody tr { border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
  .pricing-page .pr-table tbody tr:last-child { border-bottom: none; }
  .pricing-page .pr-table tbody th[scope="row"] { width: auto; border-bottom: none; padding: 0 0 0.35rem; font-weight: 600; }
  .pricing-page .pr-table tbody td {
    border-bottom: none; padding: 0.15rem 0 0.15rem 5.5rem; position: relative;
    background: none; font-size: 0.92rem;
  }
  .pricing-page .pr-table tbody td::before {
    content: attr(data-label) ""; position: absolute; left: 0; width: 5rem;
    color: var(--ink-faint); font-size: 0.82rem; font-weight: 600;
  }
  .pricing-page .pr-table td.pr-col-pro::before { color: var(--ai); }
  .pricing-page .pr-table .pr-group th { margin-top: 0.5rem; padding: 0.5rem 0; border-bottom: none; background: none; }
}

/* Blog (served by the Go backend, internal/blog). Styles live here because
   the Content-Security-Policy blocks inline styles. */
.sp-main ol { padding-left: 1.4rem; }
.sp-main h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.sp-main blockquote { margin: 1rem 0; padding: 0.25rem 1rem; border-left: 3px solid var(--accent-ink); color: var(--ink-soft); }
.blog-list { list-style: none; padding: 0; }
.blog-card { margin: 1.25rem 0; padding: 0; }
.blog-card h2 { margin: 0 0 0.15rem; font-size: 1.2rem; }
.blog-card .meta { margin: 0 0 0.25rem; }
.blog-card p { margin: 0.25rem 0; }
.blog-cta { margin: 2rem 0; padding: 1rem 1.25rem; border: 1px solid var(--ink-faint); border-radius: 8px; }
.blog-cta p { margin: 0.4rem 0; }
.blog-sources li { font-size: 0.95rem; }
