/* 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;
}

.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;
    font-weight: 800;
    gap: 10px;
    text-decoration: none;
}

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

.site-brand__mark {
    align-items: center;
    background: var(--color-accent);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 28px;
    justify-content: center;
    letter-spacing: 0.06em;
    width: 28px;
}

.site-nav {
    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-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 {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.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;
}

/* ---- Product grid + cards -------------------------------------- */

.product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 24px 0 0;
}

.product-card {
    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: 12px;
    padding: 22px;
}

.product-card__name { font-size: 1.2rem; margin: 0; }
.product-card__summary { color: var(--color-muted); margin: 0; }
.product-card__price { font-size: 1.3rem; font-weight: 800; }

/* ---- 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); }
.alert--info  { background: var(--color-soft); color: var(--color-fg); }

.pay-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.pay-buttons .btn {
    flex: 1 1 240px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    padding: 14px 18px;
}

.pay-buttons__hint {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
}

.btn--stripe {
    background: #635bff;
    border-color: #635bff;
    color: #fff;
}
.btn--stripe:hover, .btn--stripe:focus {
    background: #5046e4;
    border-color: #5046e4;
    color: #fff;
}

.btn--paypal {
    background: #ffc439;
    border-color: #ffc439;
    color: #142c8e;
}
.btn--paypal:hover, .btn--paypal:focus {
    background: #f0b321;
    border-color: #f0b321;
    color: #0d1f63;
    text-decoration: none;
}

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

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

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

.steps li {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 18px 16px 60px;
    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;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    left: 16px;
    position: absolute;
    top: 14px;
    width: 30px;
}

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

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

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

.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); }

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