:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f1f4f9;
    --text: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --primary: #111827;
    --primary-2: #1f2937;
    --accent: #344054;
    --success: #0f766e;
    --danger: #b42318;
    --warning: #b45309;
    --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f6f7fb 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 231, 236, 0.85);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.brand {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1.2px;
    color: var(--primary);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topnav a {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.topnav a:hover,
.topnav a.active {
    color: var(--primary);
}

.hero {
    padding: 72px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 760px;
}

.hero-text,
.lead,
.section-heading p,
.status-text,
.cta-box p {
    color: var(--muted);
    font-size: 16px;
    max-width: 720px;
}

.hero-actions,
.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.btn-primary:hover {
    background: var(--primary-2);
}

.btn-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

.hero-card,
.preview-card,
.step-card,
.info-card,
.status-card,
.mini-card,
.analysis-form-card {
    background: var(--surface);
    border: 1px solid rgba(228, 231, 236, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.preview-card {
    padding: 28px;
}

.preview-badge {
    display: inline-flex;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.preview-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
}

.preview-line:last-child {
    border-bottom: 0;
}

.preview-line span,
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.trust-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.trust-item span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 42px 0;
}

.soft-section {
    background: linear-gradient(180deg, rgba(241, 244, 249, 0.75), rgba(246, 247, 251, 0.45));
    border-top: 1px solid rgba(228, 231, 236, 0.7);
    border-bottom: 1px solid rgba(228, 231, 236, 0.7);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.status-card h1,
.analysis-form-card h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.steps-grid,
.info-grid,
.details-grid {
    display: grid;
    gap: 18px;
}

.steps-grid {
    grid-template-columns: repeat(4, 1fr);
}

.info-grid {
    grid-template-columns: repeat(2, 1fr);
}

.step-card,
.info-card {
    padding: 24px;
}

.step-card h3,
.info-card h3,
.status-panel h2,
.mini-card h3,
.legal-content h2 {
    margin: 16px 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.step-card p,
.info-card p,
.mini-card p,
.status-panel p,
.legal-content p {
    color: var(--muted);
    margin: 0 0 14px;
}

.clean-list {
    padding-left: 18px;
    margin: 0;
}

.clean-list li {
    margin-bottom: 10px;
    color: var(--muted);
}

.cta-box {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
}

.cta-box h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 40px);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.site-footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    margin-top: 42px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer-inner p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.status-page {
    padding: 56px 0 70px;
}

.status-card {
    padding: 34px;
}

.centered-card {
    text-align: center;
}

.status-icon {
    margin: 0 auto 18px;
}

.spinner-ring {
    width: 66px;
    height: 66px;
    border: 5px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: rgba(180, 35, 24, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.details-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 26px;
}

.detail-box {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.detail-box span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-box strong {
    font-size: 14px;
    color: var(--primary);
    word-break: break-word;
}

.step-status-box,
.status-sections {
    margin-top: 24px;
}

.step-status-box {
    display: grid;
    gap: 10px;
    text-align: left;
}

.step-line {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--muted);
    font-weight: 600;
}

.step-line.active {
    background: rgba(17, 24, 39, 0.04);
    color: var(--primary);
    border-color: rgba(17, 24, 39, 0.12);
}

.status-sections {
    display: grid;
    gap: 18px;
}

.status-panel {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 20px;
    padding: 22px;
}

.notice-box {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(17, 24, 39, 0.04);
    color: var(--primary);
    font-size: 14px;
}

.success-box {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: rgba(15, 118, 110, 0.08);
    color: var(--success);
    font-size: 14px;
}

.error-box {
    border-color: rgba(180, 35, 24, 0.14);
    background: rgba(180, 35, 24, 0.05);
    color: #7a271a;
}

.inline-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}

.legal-card {
    max-width: 920px;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .hero-grid,
    .steps-grid,
    .info-grid,
    .details-grid,
    .trust-row {
        grid-template-columns: 1fr;
    }

    .cta-box,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .topbar-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topnav {
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 38px;
    }

    .status-card,
    .step-card,
    .info-card,
    .preview-card {
        padding: 22px;
    }

    .hero-content h1,
    .section-heading h2,
    .status-card h1,
    .analysis-form-card h2 {
        font-size: 30px;
    }
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.book-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.book-cover-wrap {
    background: var(--surface-soft);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card-body {
    padding: 18px;
}

.book-card-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.book-card-body p {
    color: var(--muted);
    margin: 0 0 14px;
}

.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.panel-like {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}

.book-detail-cover-wrap {
    width: 100%;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.book-detail-cover {
    width: 100%;
    height: auto;
    display: block;
}

.ebook-buy-form {
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .book-grid,
    .book-detail-grid {
        grid-template-columns: 1fr;
    }
}

.hidden-box {
    display: none;
}

.promo-banner {
    margin: 0 0 28px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.promo-banner-content {
    position: relative;
    z-index: 1;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.promo-banner h3 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.promo-banner p {
    margin: 0;
    max-width: 820px;
    color: rgba(255,255,255,0.84);
    font-size: 16px;
    line-height: 1.7;
}

.promo-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.promo-contact-item {
    min-width: 220px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 14px 16px;
}

.promo-contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.promo-contact-item span {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
}

.duration-note-card {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.duration-note-card strong {
    font-weight: 800;
}