/* ============================================================
   SwyCheckout — styles
   ============================================================ */
:root {
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --fg: #14162b;
    --muted: #565a75;
    --border: #e7e8f0;
    --card: #ffffff;

    --brand: #6366f1;
    --brand-2: #22d3aa;
    --brand-ink: #4f46e5;

    --grad: linear-gradient(120deg, #6366f1 0%, #22d3aa 100%);
    --shadow-sm: 0 1px 2px rgba(20, 22, 43, .06), 0 1px 3px rgba(20, 22, 43, .05);
    --shadow-md: 0 8px 24px rgba(20, 22, 43, .08);
    --shadow-lg: 0 20px 48px rgba(20, 22, 43, .12);

    --maxw: 1120px;
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0f1c;
        --bg-alt: #12142440;
        --fg: #eceef6;
        --muted: #a2a6c0;
        --border: #262a42;
        --card: #151830;
        --brand: #8b8cff;
        --brand-ink: #a5a6ff;
        --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
        --shadow-md: 0 8px 24px rgba(0,0,0,.45);
        --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
a { color: var(--brand-ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand-ink);
    margin: 0 0 .75rem;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: .7rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: var(--shadow-sm);
}
.button:hover { filter: brightness(1.07); box-shadow: var(--shadow-md); }
.button:active { transform: translateY(1px); }
.button--lg { padding: .9rem 1.6rem; font-size: 1.02rem; border-radius: 12px; }
.button--sm { padding: .5rem 1rem; font-size: .9rem; }
.button--block { width: 100%; }
.button--ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
    box-shadow: none;
}
.button--ghost:hover { border-color: var(--brand); color: var(--brand-ink); filter: none; }
.button--invert { background: #fff; color: var(--brand-ink); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--fg);
    text-decoration: none;
}
.brand .logo { flex: none; }

.wordmark {
    font-weight: 600;
    font-size: 1.28rem;
    letter-spacing: -0.02em;
    line-height: 1;
}
.wordmark__lead {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wordmark__rest { color: var(--fg); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .96rem;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.active { color: var(--fg); font-weight: 600; }
.site-nav a.button { color: #fff; }

/* Mobile nav toggle */
.nav-toggle__btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; }
.nav-toggle__btn span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

@media (max-width: 760px) {
    .nav-toggle__btn { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav a { padding: .6rem 0; }
    .site-nav a.button { margin-top: .5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section__head h2 { font-size: 2rem; margin: 0 0 .75rem; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -30% 0 auto 0;
    height: 520px;
    background: radial-gradient(60% 60% at 50% 0%, rgba(99,102,241,.18), transparent 70%),
               radial-gradient(50% 50% at 80% 10%, rgba(34,211,170,.16), transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: 0 0 1.25rem; }
.lead { font-size: 1.18rem; color: var(--muted); margin: 0 auto 2rem; max-width: 620px; }
.hero__actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

/* ---------- Trust bar ---------- */
.trustbar { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.trustbar p { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 1.25rem; }
.trustbar__logos {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2.5rem; align-items: center;
    font-weight: 700; font-size: 1.05rem; color: var(--fg); opacity: .55;
    letter-spacing: -.01em;
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    border-radius: 11px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.steps .step { text-align: center; padding: 1rem; }
.step__num {
    width: 44px; height: 44px; margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad);
    color: #fff; font-weight: 800;
}
.step h3 { margin: 0 0 .5rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat strong { display: block; font-size: 2.3rem; letter-spacing: -.02em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Quote ---------- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote p { font-size: 1.5rem; line-height: 1.4; font-weight: 500; margin: 0 0 1rem; letter-spacing: -.01em; }
.quote footer { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; }
.cta-band__inner { text-align: center; padding: 4.5rem 1.5rem; }
.cta-band h2 { font-size: 2.1rem; margin: 0 0 .75rem; }
.cta-band p { margin: 0 0 1.75rem; font-size: 1.1rem; opacity: .95; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 4rem 0 1rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 1rem; }
.page-hero .lead { margin-bottom: 1rem; }

/* ---------- Feature rows ---------- */
.feature-rows { display: flex; flex-direction: column; gap: 4.5rem; }
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.feature-row--rev .feature-row__text { order: 2; }
@media (max-width: 820px) {
    .feature-row, .feature-row--rev { grid-template-columns: 1fr; gap: 1.75rem; }
    .feature-row--rev .feature-row__text { order: 0; }
}
.feature-row__text h2 { font-size: 1.7rem; margin: .25rem 0 .75rem; }
.feature-row__text p { color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 1.2rem; height: 1.2rem;
    color: var(--brand-2); font-weight: 800;
}

/* ---------- Mock visuals ---------- */
.mock {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}
.mock__line, .mock__kv { display: flex; justify-content: space-between; padding: .55rem 0; }
.mock__line + .mock__line { border-top: 1px solid var(--border); }
.mock__line--total { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--border); }
.mock__badge {
    margin-top: 1rem; text-align: center;
    background: var(--bg-alt); color: var(--muted);
    border-radius: 8px; padding: .5rem; font-size: .85rem;
}
.mock__kv span { color: var(--muted); }
.mock__kv code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; }
.mock__kv code.ok, code.ok { color: var(--brand-2); }
.mock--checkout .mock__row {
    border: 1px solid var(--border); border-radius: 9px;
    padding: .7rem .9rem; margin-bottom: .6rem; font-weight: 500;
}
.mock__row--muted { color: var(--muted); font-weight: 400; text-align: center; }
.mock--checkout .button { margin-top: .4rem; }

/* ---------- Code block ---------- */
.code {
    background: #0f1226;
    color: #d7dbf5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    line-height: 1.6;
}
.code code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
code {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: .1rem .4rem;
    font-size: .88em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Pricing ---------- */
.pricing { align-items: start; }
.plan {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
}
.plan--featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
@media (max-width: 900px) { .plan--featured { transform: none; } }
.plan__flag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #fff;
    font-size: .78rem; font-weight: 700;
    padding: .3rem .85rem; border-radius: 999px;
}
.plan h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
.plan__desc { color: var(--muted); font-size: .92rem; margin: 0 0 1.25rem; min-height: 2.6em; }
.plan__price { margin: 0 0 1.25rem; }
.plan__price strong { font-size: 2.3rem; letter-spacing: -.02em; }
.plan__price span { color: var(--muted); font-size: .92rem; }
.plan .button { margin-bottom: 1.5rem; }
.plan .ticks li { font-size: .95rem; }
.pricing__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: .75rem 0 0; }

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 2rem; } }
.contact__aside h3 { margin-top: 0; }
.contact__alt { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.contact__form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field__err { display: block; color: #e5484d; font-size: .85rem; margin-top: .35rem; }
.contact__fine { color: var(--muted); font-size: .82rem; text-align: center; margin: 1rem 0 0; }
.notice { border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice--ok { background: color-mix(in srgb, var(--brand-2) 15%, transparent); border: 1px solid var(--brand-2); }
.notice p { margin: .35rem 0 0; }

/* ---------- Contact card ---------- */
.contact-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}
.contact-card h2 { font-size: 1.7rem; margin: 0 0 .5rem; }
.contact-card > p { color: var(--muted); margin: 0 auto 1.5rem; max-width: 46ch; }
.contact-card__email {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.01em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.75rem;
}
.contact-card__actions {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-card__fine { color: var(--muted); font-size: .88rem; margin: 1.5rem 0 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.25rem; display: grid; gap: .4rem; margin: .5rem 0; }
.legal li strong { color: var(--fg); }
.legal a { color: var(--brand-ink); }
.legal__updated { color: var(--muted); font-size: .95rem; }
.legal__note {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.site-footer__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem;
    display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__brand p { color: var(--muted); margin: .75rem 0 0; max-width: 30ch; font-size: .95rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__cols h4 { margin: 0 0 .75rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer__cols a { display: block; color: var(--fg); text-decoration: none; padding: .25rem 0; font-size: .95rem; }
.site-footer__cols a:hover { color: var(--brand-ink); }
.site-footer__bar {
    max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    color: var(--muted); font-size: .85rem;
}
