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

:root {
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-soft: #F3F5F7;
    --text: #1A2332;
    --text-soft: #4A5568;
    --text-muted: #6B7280;
    --primary: #2B5C8A;
    --primary-dark: #1E4266;
    --primary-light: #E8F0F7;
    --border: #E2E6EB;
    --border-strong: #C8D0D9;
    --footer-bg: #1A2332;
    --footer-text: #C5CDD6;
    --footer-heading: #F3F5F7;
    --error: #B42318;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(26, 35, 50, 0.05);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-name,
.footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.28em 0.38em;
}

.brand-name {
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.1;
}

.footer-brand {
    font-size: 28px;
    margin-bottom: 14px;
}

.brand-word-rebuild {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand-word-your {
    font-family: 'Caveat', cursive;
    font-size: 1.42em;
    font-weight: 600;
    color: var(--primary);
    transform: rotate(-4deg) translateY(3px);
    display: inline-block;
    line-height: 1;
}

.brand-word-future {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.94em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.site-footer .brand-word-rebuild {
    color: var(--footer-heading);
}

.site-footer .brand-word-your {
    color: #8BB8E0;
}

.site-footer .brand-word-future {
    color: var(--footer-heading);
}

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

.header-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 10px;
}

.header-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-nav .nav-button {
    color: #fff;
    background: var(--primary);
    padding: 10px 16px;
}

.header-nav .nav-button:hover {
    color: #fff;
    background: var(--primary-dark);
}

/* Hero */
.hero {
    padding: 84px 0 72px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 720px;
}

.hero-lead {
    font-size: 17px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    position: relative;
}

.visual-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.visual-header {
    height: 54px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.visual-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.visual-call {
    padding: 26px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.visual-person {
    min-height: 180px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.visual-person-main {
    background: var(--bg-soft);
}

.visual-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--primary);
    margin-bottom: 24px;
    opacity: 0.9;
}

.visual-avatar.small {
    width: 54px;
    height: 54px;
    background: var(--border-strong);
}

.visual-line {
    display: block;
    width: 70%;
    height: 10px;
    border-radius: 10px;
    background: var(--border);
    margin-bottom: 9px;
}

.visual-line.wide {
    width: 88%;
    background: var(--text-soft);
    opacity: 0.22;
}

.visual-line.short {
    width: 48%;
}

.visual-footer {
    padding: 0 26px 26px;
    display: flex;
    gap: 10px;
}

.visual-pill {
    display: block;
    height: 42px;
    flex: 1;
    border-radius: 999px;
    background: var(--primary);
}

.visual-pill.light {
    flex: 0.7;
    background: #fff;
    border: 1px solid var(--border);
}

.visual-note {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -34px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visual-note strong {
    font-size: 15px;
    color: var(--text);
}

.visual-note span {
    font-size: 14px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Sections */
section { padding: 72px 0; }

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--text);
}

.section-head {
    margin-bottom: 40px;
    max-width: 640px;
}

.section-desc {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.65;
}

/* Progress steps */
.steps {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.progress-track {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    padding-top: 8px;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.progress-point {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-num {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.progress-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.progress-body p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
    max-width: 240px;
    margin: 0 auto;
}

/* Sessions */
.sessions { background: var(--bg-card); }

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.session-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.session-card h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

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

.session-desc {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.5;
    flex: 1;
}

.session-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.session-card .btn {
    margin-top: 8px;
    width: 100%;
}

.empty-sessions, .loading-text {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* Register */
.register {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.register-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 48px;
    align-items: start;
}

.register-copy .section-head {
    margin-bottom: 28px;
}

.register-copy .section-desc {
    margin-bottom: 0;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-list li {
    font-size: 15px;
    color: var(--text-soft);
    padding-left: 24px;
    position: relative;
}

.benefit-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.register-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
}

.field input,
.field select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    background: #fff;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 92, 138, 0.12);
}

.form-message {
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
    color: var(--text-muted);
}

.form-message.success { color: var(--primary-dark); font-weight: 500; }
.form-message.error { color: var(--error); }

/* Why — editorial reassurance band */
.why {
    padding: 0;
    background: var(--bg);
}

.why-band {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.why-statement {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 36px 40px;
    border-bottom: 1px solid var(--border);
}

.why-statement:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.why-index {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.45;
}

.why-copy h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.why-copy p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.65;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 56px 0 34px;
}

.footer-inner {
    max-width: 1120px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-main h2,
.footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--footer-heading);
}

.footer-main h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-main p {
    max-width: 620px;
    color: var(--footer-text);
    font-size: 15px;
    line-height: 1.7;
}

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

.footer-links a {
    color: var(--footer-heading);
    text-decoration: none;
    font-size: 15px;
}

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

.footer-note {
    padding-top: 26px;
    max-width: 760px;
}

.footer-inner p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.footer-inner strong { color: var(--footer-heading); }

.footer-small {
    margin-top: 28px;
    font-size: 12px;
    color: #8B95A3;
}

@media (max-width: 900px) {
    .hero-inner,
    .register-inner { grid-template-columns: 1fr; gap: 32px; }
    .why-grid { grid-template-columns: 1fr; border-top: none; }
    .why-statement:nth-child(odd) { border-right: none; }
    .why-statement { padding: 28px 0; }
    .why-statement:first-child { padding-top: 0; }
    .hero { padding: 60px 0 82px; }
    .hero-visual { max-width: 520px; }
    .footer-main { grid-template-columns: 1fr; gap: 28px; }

    .progress-track {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 400px;
        margin: 0 auto;
        padding-top: 0;
    }

    .progress-track::before {
        top: 28px;
        bottom: 28px;
        left: 27px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .progress-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        padding: 0 0 32px;
    }

    .progress-step:last-child {
        padding-bottom: 0;
    }

    .progress-point {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }

    .progress-num {
        font-size: 16px;
    }

    .progress-body p {
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 18px; }
    section { padding: 48px 0; }
    .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; min-height: auto; }
    .brand-name { font-size: 20px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .header-nav { gap: 6px; width: 100%; }
    .header-nav a { font-size: 13px; }
    .header-nav .nav-button { margin-left: auto; }
    .visual-call { grid-template-columns: 1fr; }
    .visual-person { min-height: 140px; }
    .visual-note { position: static; margin: 12px 12px 0; }
    .register-form { padding: 24px; }
    .why-band { padding: 56px 0; }
    .why-statement {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 20px;
    }
    .why-index { font-size: 32px; }
}
