@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

:root {
    --bg: #0a0a0b;
    --bg-elevated: #121214;
    --bg-card: #161618;
    --fg: #f4f4f5;
    --fg-dim: #e4e4e7;
    --muted: #71717a;
    --muted-dim: #52525b;
    --border: #27272a;
    --border-focus: #3f3f46;
    --accent: #eab308;
    --accent-hover: #facc15;
    --accent-dim: #a16207;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
    color: var(--fg);
    background: var(--bg);
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.has-floating-cta { padding-bottom: 5.5rem; }
.site-footer { margin-top: auto; }

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.nav-brand a { color: inherit; text-decoration: none; }
.nav-brand a:hover { color: var(--accent); }
.nav-links a {
    margin-left: 1.75rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-links a:hover { color: var(--fg); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 520px; }

/* Page header */
.page-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0 2.75rem;
}
.page-header-compact { padding: 2.25rem 0 1.75rem; }
.page-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.page-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--fg);
    line-height: 1.2;
}
.page-lead {
    font-size: 1.05rem;
    max-width: 560px;
    margin-top: 1rem;
    color: var(--fg-dim);
}
.page-tagline {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    color: var(--muted);
}
.page-meta { font-size: 1.75rem; font-weight: 700; margin-top: 0.5rem; color: var(--accent); }
.page-stats {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.page-stats strong { display: block; font-size: 1.35rem; color: var(--fg); margin-bottom: 0.2rem; }

.trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.section-intro {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

/* Layout */
.layout-with-jump {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}
.jump-nav {
    position: sticky;
    top: 5rem;
    height: fit-content;
}
.jump-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.jump-links { list-style: none; }
.jump-links li { margin-bottom: 0.4rem; }
.jump-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.jump-links a:hover { color: var(--fg); }

.main-content { min-width: 0; }

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.feature-list { list-style: none; }
.feature-item {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--fg-dim);
}
.feature-item:last-child { border-bottom: none; }

/* Tier cards – dark elevated */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    min-width: 0;
}
.tier-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-width: 0;
}
.tier-card:hover {
    border-color: var(--border-focus);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}
.tier-card.tier-popular {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 30px rgba(0, 0, 0, 0.4);
}
.tier-card.tier-popular:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(0, 0, 0, 0.45); }
.tier-card.tier-guru {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 10px 40px rgba(234, 179, 8, 0.2);
}
.tier-card.tier-guru:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 14px 50px rgba(234, 179, 8, 0.25); }
.tier-badge-guru { color: var(--accent); font-weight: 800; }
.tier-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}
.tier-badge-value { color: var(--muted); }
.tier-header { margin-bottom: 0.75rem; }
.tier-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.tier-price { font-size: 1.75rem; font-weight: 700; margin-top: 0.35rem; color: var(--accent); }
.tier-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5; }
.tier-note {
    font-size: 0.75rem;
    color: var(--muted-dim);
    margin-top: 0.75rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: #0a0a0b;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.cta-button-full { width: 100%; margin-top: 0.5rem; text-align: center; }

.floating-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; }
.floating-cta a {
    display: inline-block;
    background: var(--accent);
    color: #0a0a0b;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.floating-cta a:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(234, 179, 8, 0.4);
}

/* Guarantee / why buy */
.guarantee-list { list-style: none; }
.guarantee-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--fg-dim);
}
.guarantee-list li:last-child { border-bottom: none; }
.guarantee-list strong { color: var(--fg); }
.section-guarantee { margin-bottom: 2rem; }

/* Footer */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}
.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.footer-brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.footer-brand a { color: var(--fg); text-decoration: none; }
.footer-brand a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
}
.footer-links a:hover { color: var(--fg); }
.footer-copy {
    font-size: 0.8rem;
    color: var(--muted-dim);
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Forms */
input[type="email"],
input[type="password"],
input[type="number"],
input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--fg);
}
input::placeholder, textarea::placeholder { color: var(--muted-dim); }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.standalone-form { max-width: 400px; }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
    color: var(--fg-dim);
}
.form-error { color: #f87171; margin-bottom: 1rem; }
.form-footer { margin-top: 1.5rem; font-size: 0.9rem; }
.form-footer a { color: var(--accent); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

.checkout-benefit {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}
.checkout-intro {
    margin-bottom: 1.25rem;
    color: var(--fg-dim);
}

/* Checkout */
.payment-embed { margin: 1.5rem 0; border-radius: 12px; }
.payment-embed-link .payment-kofi-cta { margin: 1.25rem 0; }
.payment-embed-link .payment-kofi-cta a { display: inline-block; text-align: center; }
.payment-intro { margin-bottom: 1rem; color: var(--muted); }
.payment-fallback {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 1.5rem 0;
}
.payment-amount { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--accent); }
.payment-fallback p { margin-bottom: 0.6rem; color: var(--fg-dim); }
.payment-fallback p:last-of-type { margin-bottom: 0; }
.payment-note { font-size: 0.85rem; color: var(--muted); }
.payment-error { margin: 1rem 0; padding: 1rem; border: 3px solid #b91c1c; background: rgba(185, 28, 28, 0.1); border-radius: 8px; color: var(--fg); }
.payment-error p { margin: 0; }
.payment-confirm-note { font-size: 0.9rem; color: var(--muted); margin: 1rem 0 0.5rem; }

/* Upsell */
.upsell-section { text-align: center; }
.upsell-product { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--fg); }
.upsell-desc { color: var(--muted); margin-bottom: 1rem; }
.upsell-price { font-size: 2rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--accent); }
.upsell-skip { margin-top: 1.5rem; font-size: 0.9rem; }
.upsell-skip a { color: var(--muted); text-decoration: none; }
.upsell-skip a:hover { color: var(--fg); text-decoration: underline; }

/* Dashboard */
.page-dashboard { background: var(--bg); }
.dashboard-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 2rem;
}
.dashboard-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}
.dashboard-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.dashboard-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
}
.dashboard-jump {
    position: sticky;
    top: 5rem;
    height: fit-content;
}
.dashboard-content { min-width: 0; }
.dashboard-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.dashboard-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}
.overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.overview-value { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.overview-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.order-list { list-style: none; }
.order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; }
.order-product { font-weight: 500; color: var(--fg); }
.order-meta { font-size: 0.9rem; color: var(--muted); }
.order-action {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}
.order-action:hover { text-decoration: underline; }

.dashboard-empty { color: var(--muted); margin-bottom: 1.5rem; }
.dashboard-empty a { color: var(--accent); text-decoration: none; }
.section-cta { margin-top: 1.5rem; }

.settings-form { max-width: 400px; }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
    color: var(--fg-dim);
}
.label-optional { font-weight: 400; color: var(--muted); }
.settings-form .cta-button { margin-top: 0.5rem; }
.form-message { margin-bottom: 1rem; color: var(--fg-dim); }

.error { color: #f87171; }

/* Admin */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-section h2 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); color: var(--fg-dim); }
.admin-table input { width: 100%; }
.admin-section-highlight { border-color: var(--accent-dim); }
.admin-hint { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.admin-hint code { background: var(--bg-elevated); padding: 0.2em 0.4em; border-radius: 4px; color: var(--fg-dim); }

.legal-content p { margin-bottom: 1rem; color: var(--fg-dim); }
.legal-content a { color: var(--accent); }

@media (max-width: 900px) {
    .tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tiers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links a { margin-left: 1rem; }
    .layout-with-jump { grid-template-columns: 1fr; gap: 2rem; }
    .jump-nav { position: static; }
    .jump-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .dashboard-container { grid-template-columns: 1fr; gap: 2rem; }
    .dashboard-jump { position: static; }
    .order-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .order-action { justify-self: start; }
    .admin-grid-2 { grid-template-columns: 1fr; }
}
