﻿:root {
    --public-bg: #ffffff;
    --public-card: #ffffff;
    --public-text: #1f2937;
    --public-muted: #667085;
    --public-border: #f0d6c8;
    --public-primary: #2563eb;
    --public-primary-dark: #1d4ed8;
    --public-accent: #ff7a59;
    --public-yellow: #ffd166;
}

* {
    box-sizing: border-box;
}

.public-body {
    min-height: 100vh;
    margin: 0;
    color: var(--public-text);
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-main {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 28px 16px;
}

.public-footer {
    margin-top: 48px;
    padding: 24px 16px 30px;
    color: var(--public-muted);
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #edf0f5;
}

.public-footer p {
    margin: 0 0 12px;
    font-size: 13px;
}

.public-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}

.public-footer a {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.public-footer a:hover {
    color: var(--public-primary);
}

.public-page-card {
    margin: 24px auto 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--public-border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.public-page-card h1 {
    margin: 0 0 24px;
    font-size: 32px;
}

.public-page-card section + section {
    margin-top: 24px;
}

.public-page-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.public-page-card p {
    margin: 0;
    color: #475467;
    line-height: 1.8;
}

.about-list {
    display: grid;
    gap: 18px;
    margin: 0;
}

.about-list div {
    display: grid;
    gap: 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.about-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-list dt {
    color: var(--public-muted);
    font-size: 13px;
    font-weight: 800;
}

.about-list dd {
    margin: 0;
    font-weight: 700;
}

.about-list a {
    color: var(--public-primary);
}

.release-info {
    margin-top: 24px;
    padding-top: 16px;
    color: var(--public-muted);
    border-top: 1px solid #edf0f5;
    font-size: 13px;
    line-height: 1.6;
}

.release-info p {
    margin: 0;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--public-text);
    background: #ffffff;
    border: 1px solid var(--public-border);
    border-radius: 10px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--public-primary);
    outline: 3px solid rgba(37, 99, 235, 0.14);
}

.contact-submit {
    width: fit-content;
    min-width: 140px;
    border: 0;
    cursor: pointer;
}

.contact-complete-card {
    text-align: center;
}

.contact-complete-card .back-link {
    margin-top: 24px;
}

.public-main.home-main {
    width: min(1120px, 100%);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
    gap: 34px;
    align-items: center;
    min-height: 76vh;
    padding: 30px 0 34px;
}

.home-hero-copy {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.home-logo-wrap {
    position: relative;
    display: inline-grid;
}

.home-logo {
    display: block;
    width: min(520px, 100%);
    max-height: 260px;
    object-fit: contain;
}

.home-logo.is-missing {
    display: none;
}

.home-logo-fallback {
    display: none;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 900;
    line-height: 1;
}

.home-logo.is-missing + .home-logo-fallback {
    display: block;
}

.home-kicker {
    margin: 0;
    color: #e4572e;
    font-size: 20px;
    font-weight: 800;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 88px);
    line-height: 1;
}

.home-lead {
    max-width: 560px;
    margin: 0;
    color: #374151;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.8;
}

.home-catchcopy {
    margin: 0;
    color: #1f2937;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.75;
}

.home-catchcopy p {
    margin: 0;
}

.home-catchcopy p + p {
    margin-top: 14px;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 6px;
    padding: 14px 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7a59, #2563eb);
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
}

.home-hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.home-featured-card,
.home-step-card,
.home-insight-section,
.home-moya-card,
.home-empty-list {
    background: #ffffff;
    border: 1px solid var(--public-border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.home-featured-card {
    padding: 16px;
    border: 2px solid rgba(255, 122, 89, 0.24);
}

.home-card-label {
    margin: 0 0 12px;
    color: #e4572e;
    font-size: 13px;
    font-weight: 800;
}

.home-featured-image,
.home-moya-image {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.home-featured-image {
    height: 210px;
    margin-bottom: 14px;
}

.home-image-placeholder,
.home-card-placeholder {
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eaf3ff;
    border: 1px dashed #93c5fd;
    border-radius: 12px;
}

.home-image-placeholder {
    height: 210px;
    margin-bottom: 14px;
    font-size: 54px;
}

.home-featured-card h2,
.home-moya-card h3 {
    margin: 0 0 10px;
    line-height: 1.45;
}

.home-featured-card h2 {
    font-size: 24px;
}

.home-featured-card p,
.home-moya-card p,
.home-step-card p,
.home-empty-list p {
    margin: 0;
    color: #475467;
    line-height: 1.7;
}

.home-primary-link,
.home-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.home-primary-link {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7a59, #2563eb);
}

.home-primary-link:hover {
    background: var(--public-primary-dark);
}

.home-secondary-link {
    color: var(--public-primary);
    background: #ffffff;
    border: 1px solid var(--public-primary);
}

.home-secondary-link:hover {
    color: #ffffff;
    background: var(--public-primary);
}

.home-section {
    padding: 42px 0;
}

.home-howto-section {
    padding-top: 24px;
}

.home-section-heading {
    margin-bottom: 18px;
}

.home-section-heading h2,
.home-insight-section h2 {
    margin: 0;
    font-size: 30px;
}

.home-step-grid,
.home-moya-grid {
    display: grid;
    gap: 16px;
}

.home-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-step-card {
    padding: 22px;
}

.home-step-icon {
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 800;
}

.home-step-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.home-insight-section {
    padding: 30px;
    background: #fff8e6;
    border-color: #fde68a;
}

.home-insight-section p {
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
}

.home-moya-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-moya-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.home-moya-image,
.home-card-placeholder {
    height: 150px;
    margin-bottom: 12px;
}

.home-card-placeholder {
    font-size: 34px;
}

.home-moya-card h3 {
    font-size: 18px;
}

.home-moya-card .home-secondary-link {
    margin-top: auto;
}

.home-empty-list,
.home-empty-card {
    padding: 24px;
    text-align: center;
}

.moya-card,
.result-card {
    overflow: hidden;
    background: var(--public-card);
    border: 1px solid var(--public-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.moya-card {
    padding: 24px;
}

.moya-hero-image {
    display: block;
    width: 100%;
    max-height: 360px;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 10px;
}

.moya-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.moya-meta span {
    padding: 5px 10px;
    color: #344054;
    background: #eef2f7;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.moya-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.35;
}

.moya-description {
    margin: 0 0 28px;
    color: #475467;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.answer-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.answer-form legend {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

.answer-buttons {
    display: grid;
    gap: 10px;
}

.answer-button {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 12px 14px;
    color: var(--public-text);
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--public-border);
    border-radius: 10px;
    cursor: pointer;
}

.answer-button:hover,
.answer-button:focus {
    border-color: var(--public-primary);
    outline: 3px solid rgba(37, 99, 235, 0.14);
}

.answer-score {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: var(--public-primary);
    border-radius: 999px;
    font-weight: 700;
}

.answer-label {
    font-size: 16px;
    font-weight: 700;
}

.result-card {
    padding: 36px 24px;
    text-align: center;
}

.result-shell {
    display: grid;
    gap: 16px;
}

.result-summary-card {
    text-align: left;
}

.result-summary-card h1 {
    margin-bottom: 18px;
}

.result-moya-image {
    display: block;
    width: 100%;
    max-height: 340px;
    margin-bottom: 18px;
    object-fit: cover;
    border-radius: 10px;
}

.result-meta {
    margin-bottom: 0;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.result-metric-card {
    padding: 22px;
    text-align: left;
}

.result-label {
    margin: 0 0 10px;
    color: var(--public-muted);
    font-size: 13px;
    font-weight: 700;
}

.result-answer-label {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
}

.result-stars {
    color: #f59e0b;
    font-size: 24px;
    letter-spacing: 0;
}

.result-average {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 800;
}

.result-count {
    margin: 0;
    color: #475467;
    font-size: 16px;
}

.result-type-card {
    padding: 22px;
    text-align: left;
    border-left: 5px solid #64748b;
}

.result-type-shared-concern,
.result-type-shared-calm {
    border-left-color: #22c55e;
}

.result-type-user-concern,
.result-type-user-calm {
    border-left-color: #8b5cf6;
}

.result-type-mixed {
    border-left-color: #f59e0b;
}

.result-type-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 800;
}

.result-type-message {
    margin: 0;
    color: #475467;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}


.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.next-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--public-primary);
    background: #ffffff;
    border: 1px solid var(--public-primary);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.next-link:hover {
    color: #ffffff;
    background: var(--public-primary);
}

.next-moya-card {
    padding: 22px;
    text-align: left;
}

.next-moya-layout {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.next-moya-image {
    display: block;
    width: 148px;
    height: 112px;
    object-fit: cover;
    border-radius: 10px;
}

.next-moya-body {
    min-width: 0;
}

.next-moya-meta {
    margin-bottom: 10px;
}

.next-moya-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.4;
}

.next-moya-body p {
    margin: 0 0 14px;
    color: #475467;
    line-height: 1.7;
}

.next-moya-empty {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.next-moya-empty p {
    margin: 0;
    color: var(--public-muted);
}


.result-eyebrow {
    margin: 0 0 8px;
    color: var(--public-muted);
    font-size: 13px;
    font-weight: 700;
}

.result-card h1 {
    margin: 0 0 18px;
    font-size: 28px;
}

.result-score {
    margin: 0 0 24px;
    color: #475467;
    font-size: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--public-primary);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    background: var(--public-primary-dark);
}

@media (max-width: 560px) {
    .public-main {
        padding: 14px;
    }

    .public-page-card {
        margin-top: 12px;
        padding: 20px;
        border-radius: 12px;
    }

    .public-page-card h1 {
        font-size: 26px;
    }

    .contact-submit {
        width: 100%;
    }

    .public-footer {
        margin-top: 34px;
        padding: 22px 14px 26px;
    }

    .public-footer nav {
        gap: 8px 12px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        padding: 18px 0 28px;
    }

    .home-logo {
        width: min(330px, 100%);
        max-height: 170px;
    }

    .home-hero-cta {
        width: 100%;
    }

    .home-kicker {
        font-size: 18px;
    }

    .home-lead {
        font-size: 17px;
    }

    .home-catchcopy {
        font-size: 18px;
    }

    .home-featured-card {
        padding: 14px;
    }

    .home-featured-image,
    .home-image-placeholder {
        height: 180px;
    }

    .home-section {
        padding: 30px 0;
    }

    .home-section-heading h2,
    .home-insight-section h2 {
        font-size: 24px;
    }

    .home-step-grid,
    .home-moya-grid {
        grid-template-columns: 1fr;
    }

    .home-insight-section,
    .home-step-card,
    .home-empty-list {
        padding: 18px;
    }

    .home-insight-section p {
        font-size: 16px;
    }

    .home-secondary-link {
        width: 100%;
    }

    .moya-card {
        padding: 18px;
        border-radius: 10px;
    }

    .moya-title {
        font-size: 24px;
    }

    .moya-description {
        font-size: 15px;
    }

    .answer-button {
        grid-template-columns: 32px minmax(0, 1fr);
        min-height: 54px;
    }

    .answer-label {
        font-size: 15px;
    }

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

    .result-metric-card,
    .result-type-card {
        padding: 18px;
    }

    .result-answer-label,
    .result-type-message {
        font-size: 16px;
    }

    .result-type-name {
        font-size: 20px;
    }

    .result-average {
        font-size: 20px;
    }

    .result-actions a {
        width: 100%;
    }

    .next-moya-card {
        padding: 18px;
    }

    .next-moya-layout {
        grid-template-columns: 1fr;
    }

    .next-moya-image {
        width: 100%;
        height: auto;
        max-height: 220px;
    }

    .next-moya-body h2 {
        font-size: 18px;
    }

    .next-moya-body .next-link,
    .next-moya-empty .next-link {
        width: 100%;
    }
}

.result-chart-card {
    padding: 22px;
    text-align: left;
}

.result-chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.result-chart-note {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.result-chart-summary {
    display: grid;
    gap: 4px;
    min-width: 150px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.result-chart-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.result-chart-canvas-wrap {
    width: 100%;
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
}

.result-chart-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-chart-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--public-border);
}

.result-chart-list li:last-child {
    border-bottom: 0;
}

.result-chart-list span {
    color: #475467;
    font-size: 14px;
}

.result-chart-list strong {
    white-space: nowrap;
}

.result-empty-chart {
    margin: 0;
    padding: 28px 16px;
    color: var(--public-muted);
    text-align: center;
    background: #f8fafc;
    border-radius: 10px;
}

@media (max-width: 560px) {
    .result-chart-card {
        padding: 18px;
    }

    .result-chart-heading {
        display: grid;
    }

    .result-chart-summary {
        text-align: left;
    }

    .result-chart-layout {
        grid-template-columns: 1fr;
    }

    .result-chart-canvas-wrap {
        max-width: 220px;
        height: 220px;
    }
}
