/* Inner pages of the public site (pricing, about, contact, terms, privacy).
   Same visual language as the landing page: indigo/violet gradient, soft cards, grid hero. */
:root {
    --brand: #6366f1;
    --brand-2: #8b5cf6;
    --ink: #0f172a;
    --muted: #64748b;
    --surface-alt: #f8fafc;
    --border-soft: #e7e9f3;
    --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

html, body { overflow-x: clip; }

/* ---------- Hero ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4ff 100%);
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 100%);
    pointer-events: none;
}
.page-hero::after {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    top: -180px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(139,92,246,.22), transparent);
    pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: .9rem; color: var(--ink); }
.page-hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem .95rem; margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.18);
    color: var(--brand);
    font-size: .82rem; font-weight: 700;
}

.section-py { padding: 4.5rem 0; }
.bg-surface-alt { background: var(--surface-alt); }
.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: .6rem; }
.section-lead { color: var(--muted); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }

.soft-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1.8rem;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.soft-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(99,102,241,.12); border-color: rgba(99,102,241,.3); }
.icon-tile {
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-brand); color: #fff; font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(99,102,241,.3);
    margin-bottom: 1rem;
}

/* ---------- Pricing ---------- */
.billing-toggle {
    display: inline-flex; gap: .25rem; padding: .3rem;
    background: #fff; border: 1px solid var(--border-soft); border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.billing-toggle button {
    border: 0; background: none; padding: .55rem 1.3rem; border-radius: 999px;
    font-weight: 700; font-size: .9rem; color: var(--muted);
}
.billing-toggle button.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 8px 18px rgba(99,102,241,.35); }
.billing-toggle .save-pill { font-size: .72rem; background: #dcfce7; color: #15803d; border-radius: 999px; padding: .1rem .5rem; margin-inline-start: .35rem; }
.billing-toggle button.active .save-pill { background: rgba(255,255,255,.25); color: #fff; }

.price-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 2rem 1.2rem 1.5rem;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15,23,42,.1); }
.price-card.is-featured {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--gradient-brand) border-box;
    box-shadow: 0 28px 60px rgba(99,102,241,.22);
}
.price-card .ribbon {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-brand); color: #fff;
    font-size: .75rem; font-weight: 800; padding: .3rem .95rem; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 8px 18px rgba(99,102,241,.35);
}
.price-card .plan-name { font-weight: 800; font-size: 1.2rem; }
.price-card .plan-desc { color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.price-card .price { margin: 1.1rem 0 .2rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-card .price .amount { font-size: 2.1rem; font-weight: 900; color: var(--ink); line-height: 1.1; }
.price-card .price .unit { color: var(--muted); font-size: .85rem; }
.price-card .price-note { color: #15803d; font-size: .8rem; min-height: 1.4em; }
.price-card .features { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; flex-grow: 1; }
.price-card .features li { display: flex; align-items: center; gap: .4rem; padding: .36rem 0; font-size: .84rem; }
.price-card .features li > span:first-of-type { min-width: 0; }
.price-card .features li i { width: 18px; text-align: center; }
.price-card .features li.off { color: #94a3b8; }
.price-card .features li .val { margin-inline-start: auto; font-weight: 700; font-size: .74rem; color: var(--ink); white-space: nowrap; background: #f1f5f9; border-radius: 999px; padding: .1rem .45rem; }
.price-card .features li .val.unlimited { color: var(--brand); background: rgba(99,102,241,.08); }

.compare-wrap { border: 1px solid var(--border-soft); border-radius: 18px; overflow: auto; max-height: 80vh; background: #fff; position: relative; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: .85rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.compare-table thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; text-align: center; font-weight: 800; }
.compare-table thead th:first-child { text-align: right; }
.compare-table thead th small { display: block; color: var(--muted); font-weight: 500; }
.compare-table td:not(:first-child) { text-align: center; font-size: .9rem; }
.compare-table .group td { background: #eef2ff; color: #3730a3; font-weight: 800; }
.compare-table .feature-name { font-weight: 600; }
.compare-table .feature-desc { color: var(--muted); font-size: .78rem; }
.compare-table .yes { color: #16a34a; }
.compare-table .no { color: #cbd5e1; }
.compare-table .unlimited { color: var(--brand); font-weight: 700; }
.compare-table .col-featured { background: rgba(99,102,241,.05); }

/* ---------- Prose (terms / privacy) ---------- */
.prose { max-width: 820px; margin: 0 auto; line-height: 2.05; color: #334155; }
.prose h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 2.2rem 0 .7rem; display: flex; gap: .6rem; align-items: center; }
.prose h2 .num {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,.1); color: var(--brand); font-size: .9rem;
}
.prose ul { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose .updated { color: var(--muted); font-size: .88rem; }
.toc { position: sticky; top: 96px; }
.toc a { display: block; padding: .35rem .8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc a:hover { background: rgba(99,102,241,.08); color: var(--brand); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.form-control-lg, .form-select-lg { border-radius: 12px; border-color: var(--border-soft); font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(99,102,241,.15); }
.visually-hidden-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- CTA ---------- */
.cta-band {
    background: var(--gradient-brand);
    border-radius: 26px;
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(99,102,241,.55);
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.2) 2px, transparent 2px);
    background-size: 26px 26px; opacity: .45; pointer-events: none;
}
.cta-band > * { position: relative; }

@media (max-width: 767px) {
    .page-hero { padding: 3.2rem 0 2.6rem; }
    .page-hero h1 { font-size: 1.9rem; }
    .section-py { padding: 3.2rem 0; }
    .section-title { font-size: 1.55rem; }
    .toc { position: static; }
}
