/* Adepts storefront — public, customer-facing pages. Hand-written (no build
   pipeline) so it ships via git and iterates without a rebuild. Brand: teal. */

:root {
    --brand: #0d9488;
    --brand-700: #0f766e;
    --brand-50: #f0fdfa;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: keep the footers at the bottom on short pages. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(1.4) blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; display: block; }
.storefront-logo { height: 18px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link { color: var(--muted); font-weight: 500; font-size: .92rem; }
.header-link:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 64px 0 24px; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
    font-weight: 700; color: var(--brand-700); background: var(--brand-50);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto; }

/* Currency toggle */
.currency-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 28px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.currency-toggle a { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.currency-toggle a.is-active { background: var(--ink); color: #fff; }
.currency-note { display: block; color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* Plans grid */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; padding: 40px 0 8px; }
.plan {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-badge { align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.plan h3 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.01em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.plan-price .amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price .per { color: var(--muted); font-size: .85rem; font-weight: 500; }
.plan-renewal { color: var(--muted); font-size: .85rem; min-height: 1.2em; }
.plan-features { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; color: #334155; }
.plan-features li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f766e'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.1 3.1 6.8-6.8a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-cta {
    margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
    height: 44px; border-radius: 10px; font-weight: 600; font-size: .95rem;
    background: var(--brand); color: #fff; transition: background .15s;
}
.plan-cta:hover { background: var(--brand-700); }
.plan-cta.is-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.plan-cta.is-ghost:hover { border-color: var(--ink); }
.plan-cta.is-disabled { background: var(--line); color: var(--muted); pointer-events: none; }

/* Support */
.support { margin: 56px 0; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 24px; }
.support h2 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.02em; }
.support p { color: var(--muted); margin: 0 0 18px; }
.btn-outline { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--brand); color: var(--brand-700); font-weight: 600; }
.btn-outline:hover { background: var(--brand-50); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 28px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.site-footer a:hover { color: var(--ink); }

/* Corporate legal bar — pinned at the bottom of every customer-facing page. */
.legal-bar { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; padding: 18px 0; }
.legal-bar .container { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.legal-bar a { color: var(--muted); }
.legal-bar a:hover { color: var(--brand-700); }

/* Checkout */
.checkout-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 24px; text-align: left; }
.checkout-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.checkout-line strong { font-size: 1.4rem; letter-spacing: -.02em; }
.checkout-note { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }
.checkout-secure { color: var(--muted); font-size: .8rem; text-align: center; margin: 16px 0 0; }
.checkout-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
#checkout-form { display: grid; gap: 12px; margin-top: 20px; }
#checkout-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #334155; }
#checkout-form input { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
#checkout-form input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.license-key { display: block; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1.05rem; letter-spacing: .04em; background: var(--brand-50); color: var(--brand-700); border: 1px dashed var(--brand); border-radius: 10px; padding: 14px; margin-top: 8px; word-break: break-all; }

/* Header sign-in button */
.header-signin { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; }
.header-signin:hover { background: var(--brand-700); }

/* Help / FAQ */
.faq { display: grid; gap: 16px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -.01em; }
.faq-item p { margin: 0; color: #475569; font-size: .95rem; }

/* ===== Storefront redesign: home, product cards, sections, footer, legal ===== */

.home-hero { padding-bottom: 8px; }

.section-head { text-align: center; max-width: 600px; margin: 64px auto 28px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--left { text-align: left; max-width: none; margin: 42px auto 18px; }
.catalog-section:first-of-type .section-head--left { margin-top: 12px; }

/* Product cards (home) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; padding: 12px 0; }
.product-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 26px 26px 24px; display: flex; flex-direction: column;
    position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 24px 48px -20px rgba(15,23,42,.22); }
.product-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-card__icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.product-card__icon svg { width: 28px; height: 28px; }
.product-card__head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.product-card__tagline { margin: 3px 0 0; color: var(--accent); font-weight: 600; font-size: .9rem; }
.product-card__summary { color: #475569; font-size: .96rem; margin: 0 0 18px; }
.product-highlights { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.product-highlights li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: #334155; }
.product-highlights li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23334155'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.1 3.1 6.8-6.8a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 12px no-repeat; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 8px; }
.product-from { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.product-from small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.product-card .plan-cta { background: var(--accent); height: 42px; padding: 0 20px; margin: 0 0 0 auto; }
.product-card .plan-cta:hover { background: var(--accent); filter: brightness(.93); }

/* Why Adepts */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 8px; }
.why-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); margin-bottom: 12px; }
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 { margin: 0 0 5px; font-size: 1.05rem; letter-spacing: -.01em; }
.why-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Footer navigation (above the corporate legal bar) */
.site-footer .footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 24px; align-items: start; }
.footer-brand { max-width: 280px; }
.footer-brand img { height: 18px; margin-bottom: 12px; display: block; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .85rem; }
.footer-col h4 { margin: 0 0 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; padding: 3px 0; }
.footer-col a:hover { color: var(--ink); }

/* Legal / policy pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 52px 24px 24px; }
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 6px; }
.legal-updated { color: var(--muted); font-size: .85rem; margin: 0 0 26px; }
.legal-page h2 { font-size: 1.15rem; letter-spacing: -.01em; margin: 32px 0 8px; }
.legal-page p, .legal-page li { color: #334155; font-size: .96rem; }
.legal-page ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.legal-note { background: var(--brand-50); border: 1px solid #cfe8e4; border-radius: 12px; padding: 14px 16px; font-size: .88rem; color: #334155; margin: 6px 0 22px; }

@media (max-width: 720px) {
    .site-footer .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .product-card__foot { flex-direction: column; align-items: stretch; gap: 12px; }
    .product-card__foot .plan-cta { width: 100%; }
}

@media (max-width: 560px) {
    .hero { padding-top: 40px; }
    .header-link.hide-sm { display: none; }
}
