/* ===== Design Tokens ===== */
:root {
    --color-primary: #1a6fb5;
    --color-primary-dark: #155a96;
    --color-accent: #00bcd4;
    --color-dark: #1a2a3a;
    --color-text: #333333;
    --color-text-sub: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f4f8fc;
    --color-bg-dark: #0e1d2b;
    --color-critical: #e53935;
    --color-warn: #f57c00;
    --color-ok: #388e3c;
    --color-border: #e0e8f0;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(26, 111, 181, 0.10);
    --shadow-hover: 0 8px 32px rgba(26, 111, 181, 0.18);
    --font-main: 'Noto Sans JP', sans-serif;
    --font-num: 'Inter', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}
.container--wide { max-width: 1000px; }

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: #ffffff;
    color: var(--color-dark);
    padding: 100px 40px 80px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 56px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-col-text { text-align: left; }

.hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: var(--color-dark);
}

.hero-headline-accent { color: var(--color-primary); }

.hero-sub {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 28px;
}

.hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 36px;
}

.hero-badges li {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a6fb5, #00bcd4);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(26,111,181,0.30);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
    margin-bottom: 20px;
    text-decoration: none;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26,111,181,0.40);
    text-decoration: none;
    color: #fff;
}

.hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #c8dff5;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    color: #2a4a6a;
}

.hero-counter strong {
    font-family: var(--font-num);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Browser mock + slideshow */
.hero-col-slide { position: relative; }

.browser-mock {
    background: #1a2a3a;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.20);
    overflow: hidden;
}

.browser-bar {
    background: #2a3a4a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots { display: flex; gap: 6px; }

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
}
.browser-dots span:nth-child(1) { background: #e53935; }
.browser-dots span:nth-child(2) { background: #f57c00; }
.browser-dots span:nth-child(3) { background: #388e3c; }

.browser-url {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-num);
}

.slideshow {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e0e8f0;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slideshow-slide.is-active { opacity: 1; }

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow-slide .sample-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.slideshow-caption {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

.sample-badge {
    display: inline-block;
    background: rgba(229,57,53,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1;
}

/* Wave */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    overflow: hidden;
    pointer-events: none;
}

.hero-waves svg { display: block; }
.wave { transform-origin: bottom center; }
.wave-1 { animation: wave-flow 10s linear infinite; }
.wave-2 { animation: wave-flow 15s linear infinite reverse; opacity: 0.7; }
.wave-3 { animation: wave-flow 20s linear infinite; opacity: 0.4; }

@keyframes wave-flow {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Sample Section ===== */
.sample-section {
    background: #f4f8fc;
    padding: 80px 40px 100px;
    position: relative;
    overflow: hidden;
}

.sample-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sample-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-label-sm {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.sample-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.sample-sub {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.sample-card {
    background: #f8faff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid #e8eef8;
}

.sample-card img { width: 100%; display: block; }

.sample-card-body {
    background: #f8faff;
    padding: 24px 28px 28px;
    border-top: 1px solid #e8eef8;
}

.sample-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a6fb5;
    margin: 0 0 8px;
}

.sample-card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

.sample-card .sample-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.sample-note {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.sample-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.sample-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ===== Form Section ===== */
.form-section {
    background: #fff;
    padding: 80px 40px;
}

.form-section-inner {
    max-width: 560px;
    margin: 0 auto;
}

.form-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.form-section-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.form-section-head p {
    font-size: 15px;
    color: #666;
}

.form-section .form-card {
    margin-top: 0;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(26,111,181,0.12);
    transition: box-shadow 0.25s;
}

.form-section .form-card:hover {
    box-shadow: 0 16px 60px rgba(26,111,181,0.18);
}

.btn--lg-submit {
    width: 100% !important;
    padding: 18px !important;
    font-size: 17px !important;
    font-weight: 700;
    background: linear-gradient(135deg, #1a6fb5, #00bcd4) !important;
    box-shadow: 0 8px 32px rgba(26,111,181,0.35) !important;
    border-radius: 8px;
    justify-content: center;
}

.btn--lg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26,111,181,0.45) !important;
}

/* ===== Fade-in (IntersectionObserver) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Form Card ===== */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 36px 32px;
    position: relative;
    z-index: 10;
}

.form-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 24px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-bg-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.form-label .badge-req {
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.12);
}

.form-control::placeholder { color: #aaa; }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-error {
    color: var(--color-critical);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-error.is-visible { display: block; }

.form-hint {
    font-size: 12px;
    color: var(--color-text-sub);
    margin-top: 5px;
}

/* Checkbox */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-sub);
    line-height: 1.5;
}

.checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e8bc3 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 111, 181, 0.35);
    width: 100%;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 111, 181, 0.45);
    text-decoration: none;
    color: #fff;
}

.btn--primary:active { transform: translateY(0); }

.btn--accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0097a7 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.35);
    width: 100%;
    font-size: 17px;
    padding: 18px 32px;
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.45);
    text-decoration: none;
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 28px;
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

.btn-submit-wrap {
    margin-top: 28px;
}

.btn-note {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-sub);
    margin-top: 10px;
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert--error {
    background: #fdf0f0;
    border: 1px solid #f5c0c0;
    color: var(--color-critical);
}

/* ===== Loading Screen ===== */
.loading-wrap {
    min-height: 100vh;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.loading-brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 48px;
    text-transform: uppercase;
}

.loading-spinner-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-ring-outer {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(0,188,212,0.15);
    border-radius: 50%;
    animation: spin 3s linear infinite reverse;
}

.loading-dot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.loading-message {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    min-height: 28px;
    transition: opacity 0.3s ease;
}

.loading-progress-track {
    width: 280px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 48px;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 320px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.loading-step .step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.loading-error {
    text-align: center;
}

.loading-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--color-warn);
}

/* ===== Results: Overall Comment ===== */
.result-section {
    padding: 60px 20px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-hero {
    background: linear-gradient(135deg, var(--color-dark), #112233);
    color: #fff;
    padding: 48px 20px 56px;
    text-align: center;
}

.result-hero .section-label { color: var(--color-accent); }

.overall-score-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.overall-score-num {
    font-family: var(--font-num);
    font-size: 72px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-accent);
}

.overall-score-unit {
    font-size: 24px;
    color: rgba(255,255,255,0.6);
    margin-top: 36px;
}

.overall-comment {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
}

/* ===== Radar Chart ===== */
.chart-section {
    background: var(--color-bg-light);
    padding: 48px 20px;
    text-align: center;
}

.chart-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.chart-section p {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 32px;
}

.chart-wrap {
    max-width: 460px;
    margin: 0 auto;
    position: relative;
}

.score-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    max-width: 580px;
    margin: 28px auto 0;
}

.score-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
}

.score-legend-label { color: var(--color-text-sub); }

.score-legend-val {
    font-family: var(--font-num);
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== Issues ===== */
.issues-section {
    padding: 48px 20px;
}

.issues-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.issues-section > p {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 28px;
}

.issue-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.issue-card-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
}

.issue-rank {
    font-family: var(--font-num);
    font-size: 13px;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    padding: 2px 8px;
    color: #555;
}

.issue-axis {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
}

.issue-score {
    font-family: var(--font-num);
    font-size: 22px;
    font-weight: 600;
}

.severity-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.severity-critical .severity-badge { background: #fde8e8; color: var(--color-critical); }
.severity-critical .issue-score { color: var(--color-critical); }
.severity-critical { border-top: 3px solid var(--color-critical); }

.severity-warn .severity-badge { background: #fff3e0; color: var(--color-warn); }
.severity-warn .issue-score { color: var(--color-warn); }
.severity-warn { border-top: 3px solid var(--color-warn); }

.severity-ok .severity-badge { background: #e8f5e9; color: var(--color-ok); }
.severity-ok .issue-score { color: var(--color-ok); }
.severity-ok { border-top: 3px solid var(--color-ok); }

.issue-card-body {
    padding: 20px;
}

.issue-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.issue-short {
    font-size: 14px;
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: 12px;
}

.issue-detail {
    font-size: 13px;
    color: var(--color-text-sub);
    line-height: 1.75;
    padding: 12px 14px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.issue-action {
    padding: 12px 14px;
    background: #f0f7ff;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
    font-size: 13px;
    color: var(--color-dark);
    line-height: 1.75;
}

.issue-action strong {
    color: var(--color-primary);
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

/* Locked issues */
.issue-card--locked {
    opacity: 0.75;
    position: relative;
}

.issue-locked-placeholder {
    position: relative;
    margin-top: 12px;
    min-height: 76px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.issue-locked-blur-text {
    font-size: 13px;
    color: var(--color-text-sub);
    line-height: 1.75;
    padding: 12px 14px;
    background: var(--color-bg-light);
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius);
    cursor: pointer;
    z-index: 2;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-sub);
}

.locked-overlay:hover {
    background: rgba(244,248,252,0.9);
}

.locked-icon {
    font-size: 20px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a5a9a 100%);
    padding: 56px 20px;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.cta-section .btn--accent {
    max-width: 400px;
}

.cta-arrow {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-top: 10px;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.75);
    backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 16px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    padding: 36px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover { color: #333; }

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 13px;
    color: var(--color-text-sub);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-email-note {
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text-sub);
    margin-bottom: 20px;
}

.modal-email-note strong { color: var(--color-primary); }

body.modal-open { overflow: hidden; }

/* ===== Step 5: Completion ===== */
.completion-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg-light);
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.completion-icon svg { width: 40px; height: 40px; }

.completion-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.completion-sub {
    font-size: 15px;
    color: var(--color-text-sub);
    margin-bottom: 8px;
}

.completion-time {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 32px;
}

.completion-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto 28px;
    text-align: left;
}

.completion-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.completion-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    font-size: 13px;
}

.completion-card dt { color: var(--color-text-sub); }
.completion-card dd { color: var(--color-text); word-break: break-all; }

.completion-cta {
    font-size: 13px;
    color: var(--color-text-sub);
    max-width: 400px;
}

.completion-cta a { font-weight: 700; }

/* ===== Page Header ===== */
.page-header {
    background: #f0f0f0;
    padding: 16px 0;
}

.page-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.page-header-brand img {
    display: block;
    height: 36px;
    width: auto;
}

.page-header-powered {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.05em;
}

/* ===== Page Footer ===== */
.page-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 24px 20px;
    font-size: 12px;
    margin-top: auto;
}

.page-footer a { color: rgba(255,255,255,0.5); }
.page-footer a:hover { color: #fff; }

/* ===== Privacy link ===== */
.privacy-link {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        padding: 64px 24px 60px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-col-text {
        text-align: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .hero-cta-btn {
        display: block;
        text-align: center;
    }
    .page-header {
        padding: 14px 0;
    }
    .page-header-inner {
        padding: 0 20px;
    }
    .sample-section {
        padding: 60px 24px 80px;
    }
    .sample-grid {
        grid-template-columns: 1fr;
    }
    .form-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .form-card { padding: 28px 20px 24px; }
    .overall-score-num { font-size: 56px; }
    .chart-wrap { max-width: 340px; }
    .score-legend { grid-template-columns: repeat(2, 1fr); }
    .modal-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 22px; }
    .btn { font-size: 15px; padding: 14px 24px; }
    .overall-score-num { font-size: 48px; }
    .score-legend { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .chart-wrap { max-width: 290px; }
    .issue-card-header { flex-wrap: wrap; gap: 8px; }
    .completion-card dl { grid-template-columns: 1fr; }
    .completion-card dt { color: var(--color-text-sub); font-size: 12px; }
}
