.home-page .site-header,
.home-page .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
}

.home-page .site-header {
    margin-top: calc(-1 * var(--size-5));
}

.home-page .site-footer {
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: calc(-1 * var(--size-8));
    padding-top: var(--size-6);
    border: 0;
    background: #e4ddd1;
    text-align: center;
    box-shadow: none;
}

.hero {
    position: relative;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: min(760px, calc(100svh - 9rem));
    align-items: center;
    padding: clamp(1.5rem, 5vw, 4.5rem) 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -2rem calc(50% - 50vw);
    z-index: -1;
    background:
        radial-gradient(circle at 18% 22%, rgba(79, 70, 229, 0.12), transparent 30rem),
        radial-gradient(circle at 82% 72%, rgba(180, 83, 9, 0.10), transparent 26rem),
        linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0));
}

.hero-copy {
    display: grid;
    gap: var(--size-4);
    max-width: 660px;
}

.hero h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(3.2rem, 8vw, 7.2rem);
    letter-spacing: -0.075em;
    line-height: 0.88;
}

.lede {
    max-width: 64ch;
    margin: 0;
    color: var(--site-text-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.22rem);
    line-height: 1.75;
}

.lede a {
    color: var(--site-accent-strong);
    font-weight: var(--font-weight-7);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.coach-shell {
    display: grid;
    gap: var(--size-5);
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(39, 39, 42, 0.14);
    border-radius: 1.6rem;
    background: rgba(255, 252, 247, 0.86);
    box-shadow: 0 30px 80px rgba(50, 40, 30, 0.14);
    backdrop-filter: blur(18px);
}

.coach-header,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--size-4);
}

.coach-header h2 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.045em;
}

.status-pill {
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-round);
    background: rgba(79, 70, 229, 0.10);
    color: var(--site-accent-strong);
    font-size: 0.86rem;
    font-weight: var(--font-weight-7);
}

.coach-form {
    gap: var(--size-3);
}

.coach-form label {
    color: var(--gray-10);
}

.coach-form textarea {
    min-height: 8.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.94);
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.coach-form textarea:focus {
    outline: 3px solid rgba(79, 70, 229, 0.16);
    border-color: rgba(79, 70, 229, 0.55);
}

.hint {
    margin: 0;
    max-width: 35ch;
    color: var(--site-text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0 1.05rem;
    border: 0;
    border-radius: var(--radius-round);
    background: var(--site-text);
    color: white;
    font: inherit;
    font-weight: var(--font-weight-7);
    cursor: pointer;
}

button:hover,
button:focus-visible {
    background: var(--site-accent-strong);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.feedback-panel {
    min-height: 9rem;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border: 1px solid rgba(39, 39, 42, 0.10);
    border-radius: 1.1rem;
    background: rgba(255,255,255,0.72);
    color: var(--gray-10);
    line-height: 1.68;
}

.feedback-panel p {
    margin: 0;
}

.feedback-panel p + p,
.feedback-panel p + ul,
.feedback-panel p + ol,
.feedback-panel ul + p,
.feedback-panel ol + p {
    margin-top: 0.85rem;
}

.feedback-panel ul,
.feedback-panel ol {
    margin: 0.85rem 0 0;
    padding-left: 1.25rem;
}

.feedback-panel li + li {
    margin-top: 0.4rem;
}

.feedback-empty,
.feedback-loading {
    color: var(--site-text-muted);
}

.feedback-error {
    border-color: rgba(185, 28, 28, 0.22);
    background: rgba(254, 242, 242, 0.78);
}

.thinking-line::after {
    content: "";
    display: inline-block;
    width: 1.2em;
    animation: dots 1.1s steps(4, end) infinite;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 1.4rem;
    background: var(--site-border);
}

.principles-heading {
    grid-column: 1 / -1;
    margin: 0;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    background: rgba(255,255,255,0.68);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: -0.035em;
    text-align: center;
}

.principle {
    display: grid;
    gap: var(--size-2);
    padding: clamp(1.1rem, 3vw, 1.6rem);
    background: rgba(255,255,255,0.68);
}

.principle span {
    color: var(--site-accent-strong);
    font-size: 0.78rem;
    font-weight: var(--font-weight-8);
    letter-spacing: 0.16em;
}

.principle h2,
.principle p {
    margin: 0;
}

.principle h2 {
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.principle p {
    color: var(--site-text-muted);
    line-height: 1.65;
}

@keyframes dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75%, 100% { content: "..."; }
}

@media (min-width: 940px) {
    .hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(410px, 0.75fr);
    }
}

@media (max-width: 760px) {
    .hero {
        padding-top: var(--size-4);
    }

    .coach-header,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .principles {
        grid-template-columns: 1fr;
    }
}
