/* Seanos AI marketing site — modern minimal stylesheet.
   System fonts, CSS variables for theming, single accent.
   No framework, no JS dependency. Mobile-first. */

:root {
    --color-bg: #ffffff;
    --color-fg: #111827;
    --color-muted: #6b7280;
    --color-soft: #f3f4f6;
    --color-border: #e5e7eb;
    --color-accent: #2f6fcb;
    --color-accent-strong: #1f5fa8;
    --color-error: #b91c1c;
    --color-success: #15803d;

    --radius: 8px;
    --radius-lg: 14px;
    --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container-max: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0b1020;
        --color-fg: #f1f5f9;
        --color-muted: #94a3b8;
        --color-soft: #131a2c;
        --color-border: #1f2a44;
        --color-accent: #60a5fa;
        --color-accent-strong: #93c5fd;
        --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--color-accent-strong);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: var(--color-fg);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

code {
    background: var(--color-soft);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 1px 6px;
}

/* ---- Layout primitives ----------------------------------------- */

.container {
    margin: 0 auto;
    max-width: var(--container-max);
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 64px 0;
}

/* The previous block's bottom padding already supplies breathing room
   between stacked sections — drop the top padding to avoid a 128px
   dead zone between them (and between the hero and the first one). */
.hero + .section,
.section + .section {
    padding-top: 0;
}

.section--narrow {
    max-width: 640px;
}

.section--muted {
    background: var(--color-soft);
}

.section__title {
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.section__lede {
    color: var(--color-muted);
    margin: 0 0 32px;
    max-width: 640px;
}

/* ---- Header / footer ------------------------------------------- */

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(150%) blur(8px);
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 24px;
    height: 64px;
    justify-content: space-between;
}

.site-brand {
    align-items: center;
    color: var(--color-fg);
    display: inline-flex;
    text-decoration: none;
}

.site-brand:hover { text-decoration: none; }

/* Logo is a 2508×627 PNG; constrain by height and let width auto-scale.
   The `display: block` strips the inline baseline gap so the brand sits
   vertically centred against the nav links. */
.site-brand__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 220px;
}

@media (prefers-color-scheme: dark) {
    /* Logo is dark on light; lift it slightly in dark mode so the
       black wordmark doesn't sink into the dark header background. */
    .site-brand__logo { filter: invert(1) hue-rotate(180deg); }
}

@media (max-width: 640px) {
    .site-brand__logo { height: 30px; }
}

.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-nav > a {
    color: var(--color-muted);
    font-weight: 600;
}

.site-nav > a:hover, .site-nav > a:focus {
    color: var(--color-fg);
    text-decoration: none;
}

.site-nav__group { position: relative; }

.site-nav__toggle {
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 4px 0;
}
.site-nav__toggle:hover, .site-nav__toggle:focus { color: var(--color-fg); outline: none; }
.site-nav__caret { font-size: 0.75rem; margin-left: 2px; }

.site-nav__menu {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    display: none;
    flex-direction: column;
    left: 0;
    min-width: 240px;
    padding: 6px;
    position: absolute;
    top: calc(100% + 6px);
    z-index: 20;
}
/* Transparent bridge so the cursor can travel from the toggle into the
   menu without crossing dead space and dismissing the dropdown. */
.site-nav__menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}
.site-nav__group:hover > .site-nav__menu,
.site-nav__group:focus-within > .site-nav__menu,
.site-nav__group.is-open > .site-nav__menu {
    display: flex;
}
.site-nav__group:hover > .site-nav__toggle,
.site-nav__group:focus-within > .site-nav__toggle,
.site-nav__group.is-open > .site-nav__toggle { color: var(--color-fg); }

.site-nav__menu a {
    align-items: flex-start;
    border-radius: 6px;
    color: var(--color-fg);
    display: flex;
    flex-direction: column;
    font-weight: 500;
    gap: 2px;
    padding: 8px 12px;
}
.site-nav__menu a:hover, .site-nav__menu a:focus {
    background: var(--color-soft);
    text-decoration: none;
}
.site-nav__menu a strong { font-weight: 700; font-size: 0.95rem; }
.site-nav__menu a small  { color: var(--color-muted); font-size: 0.78rem; }

@media (max-width: 640px) {
    .site-nav__menu { position: static; box-shadow: none; padding: 0 0 0 12px; border: none; }
    .site-nav__group:not(.is-open) .site-nav__menu { display: none; }
}

.site-footer {
    background: var(--color-soft);
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.92rem;
    padding: 32px 0;
    margin-top: 80px;
}

.site-footer__inner {
    text-align: center;
}

.site-footer p { margin: 0; }

/* ---- Hero ------------------------------------------------------- */

.hero {
    padding: 96px 24px 48px;
}

.hero__title {
    font-size: clamp(2rem, 5vw + 0.5rem, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 880px;
}

.hero__title em {
    color: var(--color-accent);
    font-style: normal;
}

.hero__lede {
    color: var(--color-muted);
    font-size: 1.15rem;
    margin: 0 0 28px;
    max-width: 760px;
}

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

/* ---- Buttons ---------------------------------------------------- */

.btn {
    appearance: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-fg);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 8px;
    line-height: 1;
    padding: 12px 18px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
                box-shadow 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.btn--primary:hover, .btn--primary:focus {
    background: var(--color-accent-strong);
    border-color: var(--color-accent-strong);
    color: #fff;
    text-decoration: none;
}

.btn--ghost:hover, .btn--ghost:focus {
    border-color: var(--color-fg);
    text-decoration: none;
}

/* ---- Free vs Pro comparison table ------------------------------ */

.section__subtitle {
    font-size: 1.1rem;
    margin: 32px 0 14px;
}

.compare-table-wrap {
    margin: 24px 0 8px;
    overflow-x: auto;
}
.compare-table {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-collapse: separate;
    border-radius: var(--radius);
    border-spacing: 0;
    color: var(--color-fg);
    font-size: 0.9rem;
    overflow: hidden;
    width: 100%;
}
.compare-table th,
.compare-table td {
    padding: 9px 14px;
    text-align: left;
    vertical-align: middle;
}
.compare-table thead th {
    background: var(--color-soft);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.compare-table tbody tr + tr th,
.compare-table tbody tr + tr td,
.compare-table tfoot th,
.compare-table tfoot td {
    border-top: 1px solid var(--color-border);
}
.compare-table__feat {
    color: var(--color-fg);
    font-weight: 400;
    line-height: 1.45;
}
.compare-table tfoot .compare-table__feat { font-weight: 500; }
.compare-table__tier,
.compare-table__cell { text-align: center; width: 90px; }
.compare-table__tier--pro,
.compare-table__cell--pro { background: #fffaf0; }
.compare-table thead .compare-table__tier--pro {
    background: #fef3c7;
    color: #92400e;
}
.compare-table__yes {
    color: #15803d;
    font-size: 0.95rem;
    font-weight: 600;
}
.compare-table__no { color: #cbd5e1; font-size: 1rem; }
.compare-table__price { font-weight: 600; }
.compare-table__price-meta {
    color: var(--color-muted);
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ---- Get-it-for-your-platform rows ----------------------------- */

.get-grid {
    display: grid;
    gap: 16px;
    margin: 12px 0 0;
}
.get-row {
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(180px, 1fr) 2fr 2fr;
    padding: 18px 22px;
}
.get-row__head {
    align-items: center;
    display: flex;
    gap: 12px;
}
.get-row__mark {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    justify-content: center;
    width: 28px;
}
.get-row__mark svg { height: 100%; width: 100%; }
.get-row--wordpress .get-row__mark { color: #21759b; }
.get-row--joomla    .get-row__mark { color: #f9a541; }
.get-row__title { font-size: 1.05rem; margin: 0; }
.get-row__requires {
    color: #6b7280;
    font-size: 0.82rem;
    margin: 2px 0 0;
}
.get-row__cta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.get-row__cta .btn { flex: 0 1 auto; }
.get-row__buy-form { margin: 0; }
.get-row__tier-label {
    color: var(--color-muted);
    flex: 1 1 100%;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.get-row__cta--pro {
    background: #fffaf0;
    border-radius: var(--radius);
    margin: -10px -10px -10px 0;
    padding: 10px;
}
.get-row__pending {
    color: var(--color-muted);
    font-style: italic;
}
.badge--pro { background: #fef3c7; color: #92400e; }

@media (max-width: 800px) {
    .get-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .get-row__cta--pro { margin: 0; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; }
    .compare-table__feat { font-size: 0.9rem; }
    .compare-table__tier,
    .compare-table__cell { width: 70px; }
}

/* ---- Product detail page -------------------------------------- */

.breadcrumb {
    color: var(--color-muted);
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.product__title { font-size: 2rem; margin: 0 0 4px; }
.product__price { color: var(--color-accent); font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.product__body { max-width: 720px; }

.buy-form {
    align-items: center;
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 12px;
}

.field {
    display: flex;
    flex-direction: column;
    flex: 1 1 260px;
    gap: 4px;
}

.field__label {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.field__input {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-fg);
    font: inherit;
    padding: 11px 12px;
}

.field__input:focus {
    border-color: var(--color-accent);
    outline: 2px solid color-mix(in oklab, var(--color-accent) 30%, transparent);
}

.alert {
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 12px 0;
}
.alert--error { background: #fee2e2; color: var(--color-error); }

/* ---- Relink form ---------------------------------------------- */

.relink-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 12px;
    padding: 22px;
}
.relink-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.relink-form__field span {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.relink-form__field input {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    padding: 10px 12px;
}
.relink-form__field input:focus {
    border-color: var(--color-accent);
    outline: 2px solid #c7d2fe;
}
.relink-form__hp {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

/* ---- Contact page --------------------------------------------- */

.contact-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 12px;
    padding: 22px;
}
.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-form__field span {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.contact-form__field input,
.contact-form__field textarea {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-fg);
    font: inherit;
    padding: 10px 12px;
}
.contact-form__field textarea { min-height: 120px; resize: vertical; }
.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--color-accent);
    outline: 2px solid #c7d2fe;
}
.contact-form__check {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    gap: 8px;
}
.contact-form__check input { height: 18px; width: 18px; }
.contact-form__error {
    color: var(--color-error);
    font-size: 0.82rem;
    font-style: normal;
}
.contact-form__hp {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.site-footer__links { margin-top: 6px !important; }
.site-footer__links a {
    color: var(--color-muted);
    text-decoration: none;
}
.site-footer__links a:hover { color: var(--color-fg); text-decoration: underline; }
.alert--info  { background: var(--color-soft); color: var(--color-fg); }

.pay-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}
.pay-buttons form { margin: 0; flex: 1 1 240px; }

/* Unified pay-button: same height, same padding, same gap. The brand
   colour comes from the per-provider modifier below. */
.pay-btn {
    align-items: center;
    appearance: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 8px;
    height: 56px;
    justify-content: center;
    padding: 0 18px;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 100%;
}
.pay-btn__price { font-size: 1rem; }
.pay-btn__sep   { font-size: 0.85rem; font-weight: 500; opacity: 0.7; }
.pay-btn__logo  { display: inline-block; height: 22px; width: auto; }

.pay-btn--small {
    height: 44px;
    padding: 0 14px;
    font-size: 0.95rem;
}
.pay-btn--small .pay-btn__logo { height: 18px; }

.pay-btn--learn {
    background: #fff;
    border-color: var(--color-border);
    color: var(--color-fg);
    text-decoration: none;
}
.pay-btn--learn:hover,
.pay-btn--learn:focus {
    background: var(--color-soft);
    border-color: var(--color-border);
    text-decoration: none;
}

.pro-buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.pro-buy-row__form { margin: 0; flex: 1 1 0; min-width: 130px; }
.pro-buy-row > .pay-btn { flex: 1 1 0; min-width: 130px; }

/* Stripe: brand purple background, white wordmark. */
.pay-btn--stripe {
    background: #635bff;
    border-color: #635bff;
    color: #fff;
}
.pay-btn--stripe:hover,
.pay-btn--stripe:focus {
    background: #5046e4;
    border-color: #5046e4;
}

/* PayPal: brand yellow background, two-tone wordmark in dark / light blue. */
.pay-btn--paypal {
    background: #ffc439;
    border-color: #ffc439;
    color: #142c8e;
}
.pay-btn--paypal:hover,
.pay-btn--paypal:focus {
    background: #f0b321;
    border-color: #f0b321;
    text-decoration: none;
}

.footnote {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ---- Product page (rebuilt) ------------------------------------ */

.product__hero {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    margin: 0 0 36px;
}
@media (max-width: 880px) {
    .product__hero { grid-template-columns: 1fr; }
}

.product__platform-tag {
    background: var(--color-soft);
    border-radius: 999px;
    color: var(--color-muted);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    text-transform: uppercase;
}

.product__price-meta {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 8px;
}

.badge {
    background: var(--color-soft);
    border-radius: 999px;
    color: var(--color-muted);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    text-transform: uppercase;
}
.badge--free { background: #dcfce7; color: #166534; }

.product__highlights {
    color: var(--color-fg);
    line-height: 1.55;
    margin: 16px 0 24px;
    padding-left: 20px;
}
.product__highlights li { margin: 4px 0; }

.product__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 4px;
}

.btn--ghost {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-fg);
}
.btn--small { padding: 8px 14px; font-size: 0.9rem; }

.product__hero-card {
    background: var(--color-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    align-self: start;
}
.product__hero-card h2 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    text-transform: uppercase;
    color: var(--color-muted);
}
.product__hero-card dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 14px;
    margin: 0 0 14px;
}
.product__hero-card dt { color: var(--color-muted); font-size: 0.85rem; }
.product__hero-card dd { margin: 0; font-weight: 600; }
.product__hero-card-cta { color: var(--color-fg); font-size: 0.92rem; line-height: 1.45; margin: 0; }

.product__overview {
    margin: 0 0 36px;
    max-width: 820px;
}
.product__overview h2 { margin: 0 0 8px; font-size: 1.3rem; }
.product__overview p  { color: var(--color-fg); line-height: 1.55; margin: 0; }

.product__tools-head {
    margin: 0 0 18px;
    max-width: 820px;
}
.product__tools-head h2 { margin: 0 0 4px; font-size: 1.3rem; }
.product__tools-head p  { color: var(--color-muted); margin: 0; }

.product__tool-group {
    margin: 0 0 24px;
}
.product__tool-group--pro { padding-top: 8px; }
.product__tool-group-head {
    align-items: baseline;
    color: var(--color-fg);
    display: flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.product__tool-group-pro {
    background: #f59e0b;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 1px 8px;
    text-transform: uppercase;
}

.product__tool-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tool-tile {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
}
.tool-tile header {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}
.tool-tile__name {
    background: transparent;
    color: var(--color-accent);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0;
}
.tool-tile p {
    color: var(--color-fg);
    font-size: 0.86rem;
    line-height: 1.4;
    margin: 0;
}
.tool-tile__tier {
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    text-transform: uppercase;
}
.tool-tile__tier--free { background: #dcfce7; color: #166534; }
.tool-tile__tier--pro  { background: #fef3c7; color: #92400e; }
.tool-tile--pro        { border-color: #fcd34d; }
.tool-tile--pro-locked { opacity: 0.85; }

.product__tool-pro-peek {
    background: #fffaf0;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    margin-top: 8px;
    padding: 14px 18px;
}
.product__tool-pro-peek > summary {
    color: #92400e;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding-left: 24px;
    position: relative;
}
.product__tool-pro-peek > summary::before {
    content: '▸';
    left: 4px;
    position: absolute;
    transition: transform 0.1s ease;
}
.product__tool-pro-peek[open] > summary::before { content: '▾'; }
.product__tool-pro-peek > summary a { color: #b45309; }
.product__tool-pro-peek > .product__tool-group { margin-top: 16px; }
.product__tool-pro-peek-cta {
    margin: 12px 0 0;
}

/* ---- How it works ---------------------------------------------- */

.steps {
    counter-reset: step;
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.steps li {
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 18px;
    padding: 18px 22px;
    position: relative;
}

.steps li::before {
    align-items: center;
    background: var(--color-accent);
    border-radius: 50%;
    color: #fff;
    counter-increment: step;
    content: counter(step);
    display: flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

/* ---- Lede / utilities ------------------------------------------ */

.lede { color: var(--color-muted); font-size: 1.1rem; }

/* ---- Admin ----------------------------------------------------- */

.admin-nav {
    align-items: center;
    background: var(--color-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 20px;
    padding: 6px;
}
.admin-nav__link {
    border-radius: 6px;
    color: var(--color-fg);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 12px;
    text-decoration: none;
}
.admin-nav__link:hover { background: rgba(15, 23, 42, 0.06); text-decoration: none; }
.admin-nav__link.is-active {
    background: var(--color-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.admin-nav__logout { margin: 0 0 0 auto; }

.admin-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 32px;
}

.kpi {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.kpi__label { color: var(--color-muted); font-size: 0.85rem; font-weight: 700; }
.kpi__value { display: block; font-size: 1.8rem; font-weight: 800; margin-top: 4px; }

.data-table {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    width: 100%;
}

.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: var(--color-soft);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-table tbody tr + tr td { border-top: 1px solid var(--color-border); }

.data-table .num { text-align: right; }

.data-table__empty {
    color: var(--color-muted);
    text-align: center !important;
    padding: 28px !important;
}

.status {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 9px;
    text-transform: lowercase;
}
.status--pending   { background: #fef3c7; color: #92400e; }
.status--completed { background: #dcfce7; color: var(--color-success); }
.status--failed,
.status--cancelled { background: #fee2e2; color: var(--color-error); }
.status--new       { background: #dbeafe; color: #1d4ed8; }
.status--read      { background: var(--color-soft); color: var(--color-muted); }
.status--resolved  { background: #dcfce7; color: var(--color-success); }
.status--archived  { background: #e5e7eb; color: #374151; }

.provider {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 9px;
    text-transform: lowercase;
    background: var(--color-soft);
    color: var(--color-muted);
}
.provider--paypal  { background: #e0e7ff; color: #1d4ed8; }
.provider--stripe  { background: #ede9fe; color: #6d28d9; }

/* ---- Admin inbox ----------------------------------------------- */

.kpi--link {
    color: inherit;
    position: relative;
    text-decoration: none;
}
.kpi--link:hover { box-shadow: var(--shadow-soft); text-decoration: none; }
.kpi__badge {
    background: #1d4ed8;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 6px;
    padding: 2px 8px;
}

.inbox-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}
.inbox-filters__label {
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-right: 4px;
    text-transform: uppercase;
}
.inbox-filters__sep {
    border-left: 1px solid var(--color-border);
    height: 18px;
    margin: 0 6px;
}
.inbox-filters__chip {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-fg);
    font-size: 0.85rem;
    padding: 4px 11px;
    text-decoration: none;
}
.inbox-filters__chip:hover { background: var(--color-soft); text-decoration: none; }
.inbox-filters__chip.is-active {
    background: var(--color-fg);
    border-color: var(--color-fg);
    color: #fff;
}

.inbox-badge {
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    text-transform: uppercase;
}
.inbox-badge--support   { background: #dcfce7; color: #166534; }
.inbox-badge--feature   { background: #dbeafe; color: #1d4ed8; }
.inbox-badge--complaint { background: #fee2e2; color: #b91c1c; }
.inbox-badge--feedback  { background: #fef3c7; color: #92400e; }
.inbox-badge--contact   { background: #ede9fe; color: #5b21b6; }

.inbox-show__meta {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 4px 0 0;
}
.inbox-show__status-label {
    align-items: center;
    color: var(--color-muted);
    display: inline-flex;
    font-size: 0.85rem;
    gap: 6px;
}
.inbox-show__status-label select {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    padding: 6px 10px;
}
.inbox-show__body {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin: 24px 0;
    padding: 22px;
}
.inbox-show__body pre {
    background: var(--color-soft);
    border-radius: var(--radius);
    font: inherit;
    margin: 12px 0 0;
    padding: 14px 16px;
    white-space: pre-wrap;
}
.inbox-show__transcript {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.chat-log { list-style: none; margin: 12px 0 0; padding: 0; }
.chat-log__item {
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 10px 14px;
}
.chat-log__role {
    color: var(--color-muted);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.chat-log__item--user      { background: var(--color-soft); }
.chat-log__item--assistant { background: #eef2ff; }
.chat-log__item--tool      { background: #fafaf6; border: 1px dashed var(--color-border); font-size: 0.85rem; }
.chat-log__item--tool pre { font: inherit; margin: 6px 0 0; white-space: pre-wrap; }
.chat-log__item p { margin: 4px 0 0; }

/* ---- Documentation wiki --------------------------------------- */

.docs {
    align-items: flex-start;
    display: grid;
    gap: 40px;
    grid-template-columns: 240px minmax(0, 1fr);
    padding: 40px 24px;
}

.docs-sidebar {
    border-right: 1px solid var(--color-border);
    padding-right: 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}

.docs-sidebar__brand {
    color: var(--color-fg);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.docs-nav__list,
.docs-nav__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-nav__list > li {
    margin-bottom: 14px;
}

.docs-nav__sublist {
    border-left: 1px solid var(--color-border);
    margin-top: 6px;
    padding-left: 12px;
}

.docs-nav__sublist li {
    margin-bottom: 4px;
}

.docs-nav__link {
    color: var(--color-muted);
    display: block;
    font-size: 0.92rem;
    padding: 4px 0;
    text-decoration: none;
}

.docs-nav__link:hover,
.docs-nav__link:focus {
    color: var(--color-fg);
    text-decoration: none;
}

.docs-nav__list > li > .docs-nav__link {
    color: var(--color-fg);
    font-weight: 700;
}

.docs-nav__link.is-current {
    color: var(--color-accent);
}

.docs-article {
    max-width: 760px;
}

.docs-article h1 { font-size: 2.1rem; margin-top: 0; }
.docs-article h2 {
    border-top: 1px solid var(--color-border);
    font-size: 1.4rem;
    margin: 48px 0 12px;
    padding-top: 24px;
}
.docs-article h3 { font-size: 1.1rem; margin: 28px 0 8px; }

.docs-article h2 .anchor,
.docs-article h3 .anchor {
    color: var(--color-muted);
    font-weight: 400;
    margin-left: 6px;
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.docs-article h2:hover .anchor,
.docs-article h3:hover .anchor { opacity: 1; }

.docs-article h1 .anchor { display: none; }

.docs-article p { line-height: 1.65; }

.docs-article pre {
    background: var(--color-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 16px 0;
    overflow-x: auto;
    padding: 14px 16px;
}

.docs-article pre code {
    background: transparent;
    padding: 0;
}

.docs-article blockquote {
    border-left: 3px solid var(--color-accent);
    color: var(--color-muted);
    margin: 16px 0;
    padding: 4px 16px;
}

.docs-article table {
    border-collapse: collapse;
    margin: 16px 0;
    width: 100%;
}

.docs-article th,
.docs-article td {
    border-bottom: 1px solid var(--color-border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.docs-article th {
    background: var(--color-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.docs-article ul,
.docs-article ol { padding-left: 22px; }

.docs-article li { margin-bottom: 4px; }

.docs-article hr {
    background: var(--color-border);
    border: 0;
    height: 1px;
    margin: 32px 0;
}

@media (max-width: 760px) {
    .docs {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
        max-height: none;
        padding-bottom: 16px;
        padding-right: 0;
        position: static;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    .section { padding: 40px 0; }
    .hero { padding: 56px 24px 24px; }
    .site-nav { gap: 12px; }
}
