/*
 * Plume Host marketing site — single stylesheet.
 * Reuses the same design tokens as the management portal theme.
 * Keep this self-contained so the marketing host can ship without
 * the WHMCS bundle.
 */

/* ── Fonts ───────────────────────────────────── */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
    font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/archivo-black-400.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
}

/* ── Tokens ──────────────────────────────────── */
:root {
    --cream-bg:      #F5EDE3;
    --cream-bg-2:    #EFE5D6;
    --cream-card:    #FFFDF9;
    --line-cream:    #E8DDD0;
    --ink:           #0E1014;
    --ink-2:         #2A2622;
    --muted:         #5D5042;
    --rust:          #B85C3C;
    --rust-hover:    #9C4A2D;
    --rust-soft:     rgba(184, 92, 60, 0.12);
    --rust-ring:     rgba(184, 92, 60, 0.30);
    --green:         #4B7A4B;
    --warn:          #B8893C;

    --font-heading:  "Archivo Black", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --font-body:     "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 999px;

    --shadow-card:  0 1px 0 rgba(14, 16, 20, 0.04), 0 6px 18px -8px rgba(14, 16, 20, 0.08);
    --shadow-hover: 0 1px 0 rgba(14, 16, 20, 0.05), 0 14px 32px -10px rgba(14, 16, 20, 0.18);
    --shadow-lift:  0 24px 48px -20px rgba(14, 16, 20, 0.25);
}

/* ── Base ────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--cream-bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }

a {
    color: var(--rust);
    text-decoration: none;
    transition: color .15s ease;
}
/* Scope the generic anchor hover so it does not override .btn text colour
   (a:hover would otherwise paint button labels rust-on-rust on hover). */
a:not(.btn):hover { color: var(--rust-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; }

/* ── Header ──────────────────────────────────── */
.site-header {
    background: var(--cream-bg);
    border-bottom: 1px solid var(--line-cream);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo img { height: 22px; width: auto; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    color: var(--ink);
    padding: 8px 14px;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--r-sm);
    transition: background .15s ease;
}
.site-nav a:hover { background: var(--cream-bg-2); }
.site-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .08s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--cream-bg); }
.btn-primary:hover { background: var(--rust); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-bg); }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-hover); color: #fff; }

/* ── Hero ────────────────────────────────────── */
.hero {
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
    max-width: 14ch;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.rust-dot {
    width: 8px;
    height: 8px;
    background: var(--rust);
    border-radius: 50%;
    display: inline-block;
}
.accent-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--rust);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: 6px;
}
.hero-sub {
    font-size: 19px;
    color: var(--muted);
    max-width: 56ch;
    margin: 0 0 28px;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}
.hero-trust strong { color: var(--ink); font-weight: 600; }

/* ── Section primitives ──────────────────────── */
.section {
    padding: 80px 0;
}
.section-cream-card { background: var(--cream-card); border-top: 1px solid var(--line-cream); border-bottom: 1px solid var(--line-cream); }
.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}
.section p.lede {
    font-size: 17px;
    color: var(--muted);
    max-width: 60ch;
    margin: 0 0 40px;
}

/* ── Plans grid ──────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.plan-card {
    background: var(--cream-card);
    border: 1px solid var(--line-cream);
    border-radius: var(--r-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .2s ease, transform .15s ease;
}
.plan-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.plan-card.is-featured {
    border-color: var(--rust);
    border-width: 2px;
    transform: translateY(-4px);
}
.plan-card.is-featured:hover { transform: translateY(-6px); }
.plan-card-tier {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.plan-card-name {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--ink);
    margin: 0;
}
.plan-card-price {
    font-family: var(--font-mono);
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.plan-card-price .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
}
.plan-card-price .cycle {
    font-size: 14px;
    color: var(--muted);
}
.plan-card-blurb {
    color: var(--muted);
    font-size: 14px;
    min-height: 48px;
}
.plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-2);
}
.plan-card-features li::before {
    content: "✓ ";
    color: var(--rust);
    font-weight: 700;
    margin-right: 6px;
}
.plan-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ── Features band ───────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: transparent;
    padding: 20px 0;
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 12px 0 6px;
}
.feature-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--rust-soft);
    color: var(--rust);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
}

/* ── Domain search band ─────────────────────── */
.domain-band {
    background: var(--ink);
    color: var(--cream-bg);
    padding: 64px 0;
}
.domain-band h2 { color: var(--cream-bg); }
.domain-band p.lede { color: rgba(245, 237, 227, 0.7); }
.domain-band-form {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 24px 0 0;
    background: var(--cream-card);
    padding: 8px;
    border-radius: var(--r-md);
}
.domain-band-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--ink);
    outline: none;
}
.domain-band-form input::placeholder { color: var(--muted); }
.domain-band-form .btn { white-space: nowrap; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(245, 237, 227, 0.78);
    padding: 60px 0 24px;
    flex-shrink: 0;
}
.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(245, 237, 227, 0.12);
}
.site-footer h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cream-bg);
    margin: 0 0 16px;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-footer a { color: rgba(245, 237, 227, 0.78); font-size: 14px; }
.site-footer a:hover { color: var(--cream-bg); }
.site-footer-brand img { height: 28px; }
.site-footer-brand p {
    margin-top: 14px;
    color: rgba(245, 237, 227, 0.6);
    font-size: 13px;
    line-height: 1.6;
    max-width: 30ch;
}
.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 12.5px;
    color: rgba(245, 237, 227, 0.55);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 980px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .site-nav { display: none; }
    .container { padding: 0 20px; }
    .hero { padding: 56px 0 40px; }
    .section { padding: 56px 0; }
    .plans-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .plan-card.is-featured { transform: none; }
    .plan-card.is-featured:hover { transform: translateY(-2px); }
    .domain-band-form { flex-direction: column; }
    .domain-band-form .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 12px; }
    .site-footer-bottom { flex-direction: column; text-align: center; }
}
