﻿:root {
    --bg: #f6f8ff;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --border: #dbe4ff;
    --text: #122033;
    --muted: #5d697d;
    --accent: #4f46e5;
    --accent-alt: #7c3aed;
    --amazon: #ff9900;
    --amazon-dark: #e77700;
    --shadow: 0 18px 50px rgba(30, 41, 59, 0.08);
    --shadow-soft: 0 10px 30px rgba(30, 41, 59, 0.06);
    --radius-xl: 8px;
    --radius-lg: 8px;
    --radius-md: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #f7f8fe 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(246, 248, 255, 0.84);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(219, 228, 255, 0.8);
}

.site-header-inner {
    display: flex;
    align-items: center;
    min-height: 72px;
}

.site-header a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
    font-size: 1.15rem;
}

.site-header a::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.14);
}

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

.hero,
.card,
form,
.summary-box,
.setup-product-card,
.trust-strip div,
.choice-card,
.link-grid a,
.cookie-banner,
.notice,
.faq-item,
.metric-card,
.comparison-card {
    background: var(--surface);
    border: 1px solid rgba(219, 228, 255, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 20px;
}

.hero h1,
.card h2,
.form-section h2,
.section-header h2 {
    letter-spacing: 0;
    line-height: 1.15;
}

.hero h1 {
    margin-top: 0;
    font-size: 2.45rem;
    margin-bottom: 0.75rem;
}

.hero-page .hero-content {
    display: grid;
    gap: 20px;
}

.hero-page p,
.section-block p,
.product-name,
.comparison-reason,
.faq-item p,
.trust-strip span,
.summary-box span,
.metric-card span,
.affiliate-note,
.form-section > p {
    color: var(--muted);
}

.hero-panel {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.92));
    border: 1px solid rgba(219, 228, 255, 0.9);
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
    background: rgba(79, 70, 229, 0.08);
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.85rem;
}

.badge {
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent);
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.9rem;
}

.card {
    padding: 24px;
    margin-bottom: 18px;
}

.card > :last-child,
.hero > :last-child,
.form-section > :last-child,
.notice > :last-child {
    margin-bottom: 0;
}

.section-header {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.section-header h2,
.card h2 {
    margin: 0;
    font-size: 1.65rem;
}

.section-summary {
    margin: 0;
    font-weight: 700;
    color: var(--accent);
    background: rgba(79, 70, 229, 0.08);
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    width: fit-content;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.metric-grid,
.summary-grid,
.trust-strip,
.feature-grid,
.link-grid,
.choice-grid,
.comparison-grid,
.faq-list {
    display: grid;
    gap: 16px;
}

.metric-card,
.summary-box {
    background: var(--surface-strong);
    border: 1px solid rgba(219, 228, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.metric-card strong,
.summary-box strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.35rem;
}

/* Slightly smaller text for goal metric (can be longer than other metrics) */
.metric-card--goal strong {
    font-size: 1.1rem;
    line-height: 1.12;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.guide-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-alt);
    font-size: 0.9rem;
    font-weight: 700;
}

.comparison-section {
    padding: 24px;
}

.seo-context-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.setup-insight-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.context-card {
    margin-bottom: 0;
}

.setup-insight-card {
    margin-bottom: 0;
}

.context-card h2 {
    margin-top: 0;
}

.setup-insight-card h2 {
    margin-top: 0;
}

.setup-note-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.setup-note-list li + li {
    margin-top: 0.55rem;
}

.affiliate-disclosure-box {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.14);
    color: var(--text);
    font-size: 0.95rem;
}

.product-supporting-copy {
    color: var(--muted);
    font-size: 0.95rem;
}

.comparison-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(219, 228, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.product-card {
    display: grid;
    gap: 18px;
    align-items: start;
}

.product-media img,
.product-card img,
.setup-product-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #f8faff, #eef2ff);
}

.product-body h3,
.faq-item h3,
.choice-card span {
    margin-top: 0;
    margin-bottom: 0.4rem;
    letter-spacing: 0;
}

.product-card h2,
.product-body h3 {
    line-height: 1.2;
}

.product-card h2 {
    margin-top: 0.25rem;
}

.product-card p {
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
}

.product-name {
    margin-top: 0;
}

.price {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0.4rem 0 0.75rem;
}

.button,
.button-secondary,
.amazon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: white;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
    margin-top: 12px;
}

.button:hover,
.button:focus-visible,
.amazon-button:hover,
.amazon-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.24);
}

.button-secondary {
    color: var(--accent);
    border: 1px solid rgba(79, 70, 229, 0.18);
    background: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(79, 70, 229, 0.08);
}

.amazon-button {
    background: linear-gradient(135deg, var(--amazon), var(--amazon-dark));
    color: white;
    box-shadow: 0 14px 26px rgba(255, 153, 0, 0.22);
    margin-top: 14px;
    width: fit-content;
}

.amazon-button:hover,
.amazon-button:focus-visible {
    box-shadow: 0 16px 30px rgba(255, 153, 0, 0.28);
}

.related-guide-grid a {
    display: block;
    min-height: 100%;
    padding: 18px;
}

.related-guide-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

form {
    padding: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

select,
input[type="number"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8f6;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    background: white;
    color: var(--text);
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    font-weight: normal;
    margin-bottom: 8px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.trust-strip {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

.trust-strip div {
    padding: 18px;
}

.feature-grid,
.link-grid,
.summary-grid,
.choice-grid {
    grid-template-columns: 1fr;
}

.product-card {
    grid-template-columns: 1fr;
}

.summary-box span,
.trust-strip span,
.metric-card span,
.affiliate-note,
.form-section > p {
    color: var(--muted);
}

.hero-page p,
.section-block p,
.comparison-reason,
.faq-item p,
.product-name {
    color: var(--muted);
}

.faq-item {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 228, 255, 0.9);
}

@media (min-width: 720px) {
    .container {
        padding-inline: 24px;
    }

    .hero {
        padding: 32px;
    }

    .hero-page .hero-content {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
        align-items: start;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .summary-grid,
    .trust-strip,
    .feature-grid,
    .choice-grid,
    .link-grid,
    .seo-context-grid,
    .setup-insight-grid,
    .comparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .product-card {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    }
}

@media (min-width: 920px) {
    .summary-grid,
    .trust-strip,
    .feature-grid,
    .seo-context-grid,
    .setup-insight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #121a2f, #111827);
    color: #d7def5;
    font-size: 14px;
}

.site-footer .container {
    padding-top: 24px;
    padding-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 228, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 18px 40px rgba(30, 41, 59, 0.16);
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.cookie-banner p {
    margin: 6px 0 0;
    color: var(--muted);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-actions .button,
.cookie-actions .button-secondary {
    margin-top: 0;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions .button,
    .cookie-actions .button-secondary {
        text-align: center;
    }
}

[hidden] {
    display: none !important;
}

.hero-home {
    padding-top: 42px;
    padding-bottom: 42px;
}

.hero-home h1 {
    max-width: 820px;
    font-size: 44px;
    line-height: 1.1;
}

.hero-home p {
    max-width: 760px;
    font-size: 18px;
    color: var(--muted);
}

.builder-form {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.form-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-soft);
}

.form-section h2 {
    margin-top: 0;
}

.choice-grid {
    gap: 16px;
    margin-top: 18px;
}

.choice-grid.three {
    grid-template-columns: 1fr;
}

.choice-card {
    display: block;
    border: 1px solid rgba(219, 228, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.choice-card:hover {
    border-color: rgba(79, 70, 229, 0.35);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.choice-card input {
    margin-bottom: 12px;
}

.choice-card small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.choice-card:has(input:checked) {
    border-color: rgba(79, 70, 229, 0.55);
    background: rgba(79, 70, 229, 0.06);
}

.submit-section {
    text-align: center;
}

.submit-section .button {
    font-size: 18px;
    padding: 14px 24px;
}

.notice {
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 22px 0;
}

.notice p {
    margin-bottom: 0;
}

.notice-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.affiliate-note {
    font-size: 13px;
    margin-top: 12px;
}

.setup-product-card {
    border: 1px solid rgba(219, 228, 255, 0.95);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
}

.setup-product-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #f8faff, #eef2ff);
    margin-bottom: 16px;
}

.setup-product-placeholder-image {
    border: 1px solid #eef0f6;
}

.related-guides {
    margin-top: 3rem;
}

.related-guide-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.seo-updated-date {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 719px) {
    .container {
        padding: 18px 14px;
    }

    .site-header-inner {
        min-height: 60px;
    }

    .hero {
        padding: 20px;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.16;
    }

    .hero-home {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero-home h1 {
        font-size: 2.05rem;
    }

    .hero-home p {
        font-size: 1rem;
    }

    .card,
    .comparison-section,
    .form-section {
        padding: 18px;
    }

    .section-header h2,
    .card h2 {
        font-size: 1.35rem;
    }

    .summary-box,
    .metric-card {
        padding: 16px;
    }

    .button,
    .button-secondary,
    .amazon-button {
        width: 100%;
        min-height: 50px;
    }

    .product-card {
        gap: 14px;
    }

    .product-card h2,
    .product-body h3 {
        font-size: 1.25rem;
    }

    .setup-product-image {
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }

    .choice-grid {
        gap: 12px;
    }

    .choice-card {
        padding: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
}
