/* ============================================================
   TuneAPrompt — Landing page styles
   Brand colors: #1F4E79 (primary), #2E75B6 (accent)
   ============================================================ */

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

:root {
    --primary: #1F4E79;
    --accent: #2E75B6;
    --accent-light: #7BB3E0;
    --pale: #EAF1F8;
    --text: #1A1A1A;
    --text-muted: #595959;
    --border: #D0D6DD;
    --surface: #FAFBFC;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #FFFFFF;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.01em;
}

h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 20px; color: var(--text); }
h4 { font-size: 14px; color: var(--text); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

p { color: var(--text-muted); }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    font-size: 18px;
    margin-top: 16px;
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 117, 182, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ===== HEADER ===== */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand { display: flex; align-items: center; }

.nav { display: flex; align-items: center; gap: 8px; }

.nav > a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.nav > a:hover { color: var(--primary); }
.nav > a.btn { padding: 9px 18px; }

/* ===== HERO ===== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--pale) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(46, 117, 182, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero visual: evaluation card */
.hero-visual { display: flex; justify-content: center; }

.hero-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(31, 78, 121, 0.08);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hero-card-badge {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hero-card-time {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-card-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-card-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--pale);
    border: 4px solid var(--warning);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-value {
    font-size: 26px;
    font-weight: 500;
    color: var(--warning);
    line-height: 1;
}

.score-unit {
    font-size: 11px;
    color: var(--text-muted);
}

.hero-card-verdict {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.hero-card-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.dim-row {
    display: grid;
    grid-template-columns: 100px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 12px;
}

.dim-name { color: var(--text-muted); }
.dim-bar {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}
.dim-fill { height: 100%; border-radius: 3px; }
.dim-score {
    font-weight: 500;
    color: var(--text);
    text-align: right;
}

/* ===== PROOF ===== */
.proof {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.proof-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== HOW IT WORKS ===== */
.how { padding: 100px 0; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.2s;
}

.step:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.step-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.step p {
    font-size: 15px;
}

/* ===== USE CASES ===== */
.use-cases {
    padding: 100px 0;
    background: var(--surface);
}

.cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.case-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.case h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.case p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== DIMENSIONS ===== */
.dimensions { padding: 100px 0; }

.dim-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dim-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    background: #FFFFFF;
    transition: all 0.2s;
}

.dim-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(31, 78, 121, 0.06);
}

.dim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.dim-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.dim-card-weight {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.dim-card ul {
    list-style: none;
}

.dim-card li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.dim-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
    background: var(--surface);
}

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plan {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-featured {
    border-color: var(--accent);
    border-width: 2px;
    transform: scale(1.02);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 36px;
    font-weight: 500;
    color: var(--primary);
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.plan-tag {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 36px;
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 14px;
    color: var(--text);
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 7px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

/* ===== FAQ ===== */
.faq { padding: 100px 0; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item summary {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    padding-right: 32px;
    position: relative;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    color: var(--accent);
    transition: transform 0.2s;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 80px 0;
    background: var(--primary);
    color: #FFFFFF;
    text-align: center;
}

.final-cta h2 {
    color: #FFFFFF;
    margin-bottom: 12px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.final-cta .btn-primary {
    background: #FFFFFF;
    color: var(--primary);
}

.final-cta .btn-primary:hover {
    background: var(--pale);
    color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.5;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-social a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .steps, .cases, .dim-cards { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: repeat(2, 1fr); }
    .plan-featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    .nav > a:not(.btn) { display: none; }
    .hero { padding: 48px 0 64px; }
    .hero-lead { font-size: 17px; }
    .steps, .cases, .dim-cards, .plans, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}
