/*
Theme Name: LetterDeck Theme
Description: LetterDeck marketing site — WorkDeck brand system, crimson accent.
Version: 1.0.0
Author: WorkDeck
*/

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
    --ld-navy:      #0F1121;
    --ld-surface:   #161929;
    --ld-surface2:  #1E2235;
    --ld-border:    #2A2F47;
    --ld-crimson:   #DC2626;
    --ld-crimson-h: #B91C1C;
    --ld-text:      #E8EAF0;
    --ld-muted:     #8B90A7;
    --ld-white:     #FFFFFF;
    --ld-font:      'DM Sans', -apple-system, sans-serif;
    --ld-max:       1200px;
    --ld-radius:    8px;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ld-navy); color: var(--ld-text); font-family: var(--ld-font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Container ────────────────────────────────────────────────────── */
.ld-container { max-width: var(--ld-max); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ───────────────────────────────────────────────────── */
.ld-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15,17,33,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ld-border);
    height: 64px;
    display: flex; align-items: center;
}
.ld-nav-inner {
    max-width: var(--ld-max); margin: 0 auto; padding: 0 24px;
    width: 100%;
    display: flex; align-items: center; gap: 32px;
}
.ld-nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; color: var(--ld-white);
    flex-shrink: 0;
}
.ld-nav-logo svg { width: 32px; height: 32px; }
.ld-nav-logo .logo-letter { color: var(--ld-white); }
.ld-nav-logo .logo-deck { color: var(--ld-crimson); }

.ld-nav-links {
    display: flex; align-items: center; gap: 28px;
    list-style: none;
    flex: 1; justify-content: center;
}
.ld-nav-links a {
    font-size: 15px; font-weight: 500; color: var(--ld-muted);
    transition: color 0.15s;
}
.ld-nav-links a:hover { color: var(--ld-white); }

.ld-nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ld-nav-login { font-size: 15px; font-weight: 500; color: var(--ld-muted); transition: color 0.15s; }
.ld-nav-login:hover { color: var(--ld-white); }

.ld-btn-nav {
    background: var(--ld-crimson);
    color: var(--ld-white);
    border: none; border-radius: var(--ld-radius);
    padding: 8px 18px;
    font-family: var(--ld-font); font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.ld-btn-nav:hover { background: var(--ld-crimson-h); }

.ld-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
    margin-left: auto;
}
.ld-hamburger span { display: block; width: 22px; height: 2px; background: var(--ld-text); border-radius: 2px; transition: 0.3s; }

.ld-mobile-menu {
    display: none; flex-direction: column; gap: 0;
    background: var(--ld-surface);
    border-bottom: 1px solid var(--ld-border);
    position: absolute; top: 64px; left: 0; right: 0; z-index: 999;
}
.ld-mobile-menu.open { display: flex; }
.ld-mobile-menu a {
    padding: 14px 24px; border-bottom: 1px solid var(--ld-border);
    font-size: 16px; font-weight: 500; color: var(--ld-text);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.ld-hero {
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ld-hero::before {
    content: '';
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ld-hero-tag {
    display: inline-block;
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.3);
    color: #F87171;
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 20px;
    margin-bottom: 24px;
}
.ld-hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 700; line-height: 1.15;
    color: var(--ld-white);
    margin-bottom: 20px;
    max-width: 820px; margin-left: auto; margin-right: auto;
}
.ld-hero h1 span { color: var(--ld-crimson); }
.ld-hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--ld-muted);
    max-width: 560px; margin: 0 auto 36px;
    line-height: 1.6;
}
.ld-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.ld-hero-trust {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    font-size: 13px; color: var(--ld-muted);
}
.ld-hero-trust span { width: 4px; height: 4px; background: var(--ld-border); border-radius: 50%; }

/* ── Buttons (marketing) ──────────────────────────────────────────── */
.ld-btn-hero-primary {
    background: var(--ld-crimson); color: var(--ld-white);
    border: none; border-radius: var(--ld-radius);
    padding: 14px 28px;
    font-family: var(--ld-font); font-size: 16px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.ld-btn-hero-primary:hover { background: var(--ld-crimson-h); }

.ld-btn-hero-ghost {
    background: transparent; color: var(--ld-text);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 14px 28px;
    font-family: var(--ld-font); font-size: 16px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.ld-btn-hero-ghost:hover { border-color: var(--ld-text); color: var(--ld-white); }

/* ── Section ──────────────────────────────────────────────────────── */
.ld-section { padding: 80px 0; }
.ld-section-alt { background: var(--ld-surface); }

.ld-section-tag {
    display: inline-block;
    background: rgba(220,38,38,0.1);
    color: #F87171;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.ld-section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; color: var(--ld-white); margin-bottom: 16px; }
.ld-section-sub { font-size: 17px; color: var(--ld-muted); max-width: 560px; line-height: 1.6; }
.ld-section-header { text-align: center; margin-bottom: 56px; }
.ld-section-header .ld-section-sub { margin: 0 auto; }

/* ── Category grid ────────────────────────────────────────────────── */
.ld-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.ld-cat-item {
    background: var(--ld-surface2);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s;
    cursor: pointer;
}
.ld-cat-item:hover { border-color: var(--ld-crimson); transform: translateY(-2px); }
.ld-cat-item-icon { font-size: 36px; margin-bottom: 12px; }
.ld-cat-item-label { font-size: 15px; font-weight: 600; color: var(--ld-white); margin-bottom: 6px; }
.ld-cat-item-desc { font-size: 13px; color: var(--ld-muted); line-height: 1.5; }

/* ── Features ─────────────────────────────────────────────────────── */
.ld-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.ld-feature-card {
    background: var(--ld-surface2);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 28px;
}
.ld-feature-icon { font-size: 28px; margin-bottom: 16px; }
.ld-feature-title { font-size: 17px; font-weight: 700; color: var(--ld-white); margin-bottom: 8px; }
.ld-feature-desc { font-size: 14px; color: var(--ld-muted); line-height: 1.6; }

/* ── How it works ─────────────────────────────────────────────────── */
.ld-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}
.ld-step { text-align: center; padding: 32px 24px; position: relative; }
.ld-step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--ld-crimson);
    color: var(--ld-white); font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.ld-step-title { font-size: 18px; font-weight: 700; color: var(--ld-white); margin-bottom: 10px; }
.ld-step-desc { font-size: 15px; color: var(--ld-muted); line-height: 1.6; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.ld-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; margin: 0 auto; }

.ld-plan {
    background: var(--ld-surface2);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    padding: 36px 32px;
}
.ld-plan.ld-plan-pro {
    border-color: var(--ld-crimson);
    background: linear-gradient(180deg, rgba(220,38,38,0.08) 0%, var(--ld-surface2) 100%);
    position: relative;
}
.ld-plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--ld-crimson); color: var(--ld-white);
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 14px; border-radius: 20px;
    white-space: nowrap;
}
.ld-plan-name { font-size: 16px; font-weight: 700; color: var(--ld-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ld-plan-price { font-size: 42px; font-weight: 700; color: var(--ld-white); line-height: 1; margin-bottom: 4px; }
.ld-plan-price sub { font-size: 20px; vertical-align: bottom; }
.ld-plan-period { font-size: 14px; color: var(--ld-muted); margin-bottom: 28px; }
.ld-plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.ld-plan-features li { font-size: 14px; color: var(--ld-text); display: flex; align-items: flex-start; gap: 8px; }
.ld-plan-features li::before { content: '✓'; color: var(--ld-crimson); font-weight: 700; flex-shrink: 0; }
.ld-plan-features li.ld-no::before { content: '✗'; color: var(--ld-border); }
.ld-plan-features li.ld-no { color: var(--ld-muted); }
.ld-plan-cta { display: block; text-align: center; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.ld-faq { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 1px; }
.ld-faq-item { border: 1px solid var(--ld-border); border-radius: var(--ld-radius); overflow: hidden; }
.ld-faq-q {
    width: 100%; background: var(--ld-surface2); color: var(--ld-text);
    font-family: var(--ld-font); font-size: 15px; font-weight: 600;
    padding: 18px 20px; text-align: left; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ld-faq-q span { flex: 1; }
.ld-faq-chevron { transition: transform 0.2s; font-size: 12px; }
.ld-faq-item.open .ld-faq-chevron { transform: rotate(180deg); }
.ld-faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--ld-muted); line-height: 1.7; background: var(--ld-surface2); }
.ld-faq-item.open .ld-faq-a { display: block; }

/* ── CTA band ─────────────────────────────────────────────────────── */
.ld-cta-band {
    background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(220,38,38,0.05));
    border-top: 1px solid rgba(220,38,38,0.2);
    border-bottom: 1px solid rgba(220,38,38,0.2);
    text-align: center;
    padding: 80px 24px;
}
.ld-cta-band h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; color: var(--ld-white); margin-bottom: 16px; }
.ld-cta-band p { font-size: 17px; color: var(--ld-muted); margin-bottom: 32px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.ld-footer {
    background: var(--ld-surface);
    border-top: 1px solid var(--ld-border);
    padding: 56px 0 32px;
}
.ld-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.ld-footer-brand p { font-size: 14px; color: var(--ld-muted); margin: 12px 0 20px; line-height: 1.6; max-width: 300px; }
.ld-footer-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--ld-white); }
.ld-footer-logo .logo-deck { color: var(--ld-crimson); }
.ld-footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ld-muted); margin-bottom: 16px; }
.ld-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ld-footer-col ul li a { font-size: 14px; color: var(--ld-muted); transition: color 0.15s; }
.ld-footer-col ul li a:hover { color: var(--ld-text); }

.ld-workdeck-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-pill {
    font-size: 12px; padding: 3px 10px; border-radius: 20px;
    background: var(--ld-surface2); border: 1px solid var(--ld-border);
    color: var(--ld-muted); text-decoration: none; transition: border-color 0.15s;
}
.ld-pill:hover { border-color: var(--ld-text); color: var(--ld-text); }

.ld-footer-bottom {
    border-top: 1px solid var(--ld-border);
    padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: var(--ld-muted);
}
.ld-footer-bottom a { color: var(--ld-muted); }
.ld-footer-bottom a:hover { color: var(--ld-text); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ld-nav-links { display: none; }
    .ld-hamburger { display: flex; }
    .ld-steps { grid-template-columns: 1fr; }
    .ld-pricing-grid { grid-template-columns: 1fr; }
    .ld-footer-grid { grid-template-columns: 1fr 1fr; }
    .ld-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .ld-footer-grid { grid-template-columns: 1fr; }
    .ld-hero { padding: 64px 0 56px; }
}

/* ── WordPress core ───────────────────────────────────────────────── */
.wp-block-group { max-width: 100% !important; }
.elementor-section-wrap { background: var(--ld-navy) !important; }
