.trust-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.trust-footer .wrap {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.trust-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(150px, 0.7fr));
    gap: 1.5rem;
    align-items: start;
}

.trust-footer-brand {
    display: grid;
    gap: 0.6rem;
}

.trust-footer-brand strong,
.trust-footer-heading {
    color: var(--text);
    font-weight: 800;
}

.trust-footer-brand p,
.trust-footer-links,
.trust-footer-bottom p {
    color: var(--text-2);
    line-height: 1.6;
}

.trust-footer-links {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-footer a {
    color: var(--hedy-teal);
    font-weight: 700;
    text-decoration: none;
}

.trust-footer a:hover {
    color: var(--hedy-teal-strong);
    text-decoration: underline;
}

.feedback-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hedy-teal);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.feedback-link:hover {
    color: var(--hedy-teal-strong);
    text-decoration: underline;
}

.trust-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.hedy-feedback-pill {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    min-height: 32px;
    padding: 0.34rem 0.72rem;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-3);
    box-shadow: 0 4px 14px rgba(15, 14, 38, 0.08);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.72;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: opacity 140ms ease, color 140ms ease, border-color 140ms ease;
}

.hedy-feedback-pill:hover,
.hedy-feedback-pill:focus-visible {
    opacity: 1;
    border-color: var(--hedy-teal);
    color: var(--hedy-teal-strong);
}

.hedy-feedback-open {
    overflow: hidden;
}

.hedy-feedback-modal[hidden] {
    display: none;
}

.hedy-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.hedy-feedback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 38, 0.42);
    backdrop-filter: blur(4px);
}

.hedy-feedback-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(760px, calc(100vh - 2rem));
    overflow: auto;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--r) + 10px);
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 14, 38, 0.24);
}

.hedy-feedback-card h2 {
    margin: 0.35rem 0 0.55rem;
    font-family: var(--ff-display);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    line-height: 1.1;
}

.hedy-feedback-copy,
.hedy-feedback-status {
    color: var(--text-2);
    line-height: 1.55;
}

.hedy-feedback-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.hedy-feedback-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.hedy-feedback-form .form-field {
    display: grid;
    gap: 0.38rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
}

.hedy-feedback-form input,
.hedy-feedback-form select,
.hedy-feedback-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.78rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-weight: 500;
}

.hedy-feedback-form textarea {
    resize: vertical;
}

.hedy-feedback-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hedy-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.hedy-feedback-status {
    min-height: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.hero-proof {
    display: inline-flex;
    max-width: 58ch;
    margin-top: 0.95rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--hedy-teal-soft);
    border-radius: 999px;
    background: var(--hedy-teal-soft);
    color: var(--hedy-teal-text);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-secondary-note {
    margin-top: 0.65rem;
    color: var(--text-3);
    font-size: 0.9rem;
}

.page-main {
    padding: 0 0 4rem;
}

.page-hero-simple {
    padding: 4rem 0 2.5rem;
}

.page-kicker {
    color: var(--hedy-accent-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-hero-simple h1 {
    max-width: 12ch;
    margin: 0.75rem 0 1rem;
    font-family: var(--ff-display);
    font-size: clamp(2.35rem, 6vw, 4.35rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.page-lead {
    max-width: 66ch;
    color: var(--text-2);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.page-hero-simple {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-hero-simple::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(580px 320px at 12% 10%, rgba(215, 205, 234, 0.45), transparent 70%),
        radial-gradient(520px 320px at 90% 0%, rgba(198, 161, 91, 0.18), transparent 66%);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.page-hero-copy {
    min-width: 0;
}

.page-hero-card,
.page-preview-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: calc(var(--r) + 8px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 70px rgba(15, 14, 38, 0.1);
}

.page-hero-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.page-card-kicker,
.page-card-title {
    display: block;
}

.page-card-kicker {
    color: var(--hedy-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-card-title {
    color: var(--text);
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.15;
}

.page-card-copy {
    color: var(--text-2);
    line-height: 1.6;
}

.page-proof-strip {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.32);
}

.page-proof-strip .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.page-proof-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.38rem 0.78rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-preview-card {
    overflow: hidden;
}

.page-preview-bar {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.page-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hedy-lavender-strong);
}

.page-preview-dot:nth-child(2) {
    background: var(--hedy-accent);
}

.page-preview-dot:nth-child(3) {
    background: var(--hedy-sage);
}

.page-preview-url {
    min-width: 0;
    flex: 1;
    margin-left: 0.4rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-preview-panel {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: linear-gradient(180deg, var(--hedy-ink), var(--hedy-ink-soft));
    color: #fff;
}

.page-preview-panel strong,
.page-preview-panel span,
.page-preview-panel p {
    color: inherit;
}

.page-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.page-preview-title {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 600;
}

.page-preview-status {
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(198, 161, 91, 0.45);
    border-radius: 999px;
    background: rgba(198, 161, 91, 0.18);
    color: var(--hedy-accent);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-check-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.preview-check-list li,
.preview-evidence-row {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.62rem;
    border-left: 3px solid var(--hedy-accent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(248, 241, 231, 0.95);
    font-size: 0.82rem;
    line-height: 1.42;
}

.preview-check-list li::before,
.preview-evidence-row::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-top: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.preview-check-list li.is-complete {
    border-left-color: var(--hedy-sage);
}

.preview-check-list li.is-complete::before {
    border-color: var(--hedy-sage);
    background: var(--hedy-sage);
}

.preview-evidence-grid {
    display: grid;
    gap: 0.55rem;
}

.preview-mini-frame {
    min-height: 98px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(215, 205, 234, 0.18), rgba(198, 161, 91, 0.16)),
        rgba(255, 255, 255, 0.05);
}

.preview-mini-frame span {
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(248, 241, 231, 0.92);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 18rem);
}

.content-card,
.use-case-card {
    box-shadow: 0 10px 30px rgba(15, 14, 38, 0.045);
}

.use-case-card {
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--hedy-accent);
}

.legal-content {
    max-width: 940px;
}

.legal-content .content-card {
    padding: clamp(1.25rem, 3vw, 1.65rem);
}

.content-shell {
    display: grid;
    gap: 1rem;
    max-width: 880px;
}

.content-shell-offset {
    margin-top: 1rem;
}

.hedy-download-grid[data-astro-cid-u7srbxfv] {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
}

.content-card,
.use-case-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: #fff;
}

.content-card h2,
.use-case-card h2,
.use-case-card h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--ff-display);
    font-weight: 600;
    line-height: 1.18;
}

.content-card p,
.content-card li,
.use-case-card p,
.use-case-card li {
    color: var(--text-2);
    line-height: 1.68;
}

.content-card ul,
.use-case-card ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.page-cta {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--hedy-accent);
    border-radius: var(--r);
    background: linear-gradient(135deg, var(--hedy-lavender-soft), var(--hedy-accent-soft));
}

.page-cta h2 {
    margin: 0;
    color: var(--hedy-ink);
    font-family: var(--ff-display);
    font-weight: 600;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.58rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-weight: 800;
    text-decoration: none;
}

.cli-download-release {
    display: grid;
    gap: 1rem;
}

.cli-release-state {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--hedy-lavender-soft);
    color: var(--text-2);
    line-height: 1.55;
}

.cli-release-state[data-state="available"] {
    border-color: color-mix(in srgb, var(--hedy-teal) 42%, var(--border));
    background: color-mix(in srgb, var(--hedy-teal-soft) 62%, #fff);
}

.cli-release-state[data-state="unavailable"] {
    border-color: color-mix(in srgb, var(--hedy-accent) 42%, var(--border));
    background: color-mix(in srgb, var(--hedy-accent-soft) 68%, #fff);
}

#cli-release-content {
    display: grid;
    gap: 1rem;
}

.cli-release-version {
    margin: 0;
    color: var(--text-2);
    line-height: 1.65;
}

.cli-artifact-grid,
.cli-installer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.cli-artifact-card,
.cli-installer-command {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

.cli-artifact-card h3,
.cli-installer-command h3,
.cli-installer-heading {
    margin: 0;
    color: var(--text);
    font-family: var(--ff-display);
    font-size: 1rem;
}

.cli-artifact-card p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cli-artifact-details {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.cli-artifact-details div {
    display: grid;
    gap: 0.2rem;
}

.cli-artifact-details dt {
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cli-artifact-details dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.cli-artifact-details code,
.cli-installer-command code {
    display: block;
    padding: 0.65rem;
    border-radius: 0.45rem;
    background: var(--hedy-ink);
    color: #f8f1e7;
    font-size: 0.78rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cli-installer-heading {
    margin-top: 0.25rem;
}

.cli-copy-status {
    min-height: 1.5rem;
    margin: 0;
    color: var(--text-2);
    font-size: 0.88rem;
}

.cli-setup-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-2);
    line-height: 1.65;
}

.cli-mode-callout {
    margin-top: 1rem;
}

.cli-mode-callout__action {
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .page-hero-card,
    .page-preview-card {
        background: var(--hedy-card);
    }

    .page-preview-url {
        background: #07060f;
    }

    .page-proof-strip {
        background: rgba(255, 255, 255, 0.03);
    }

    .page-section {
        background:
            linear-gradient(180deg, rgba(215, 205, 234, 0.05), transparent 18rem);
    }

    .content-card,
    .use-case-card {
        background: var(--hedy-card);
        border-color: var(--border);
    }

    .cli-release-state[data-state="available"] {
        background: color-mix(in srgb, var(--hedy-teal-soft) 44%, var(--hedy-card));
    }

    .cli-release-state[data-state="unavailable"] {
        background: color-mix(in srgb, var(--hedy-accent-soft) 46%, var(--hedy-card));
    }

    .page-cta h2 {
        color: var(--text);
    }
}

@media (max-width: 900px) {
    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .trust-footer-grid,
    .use-case-grid,
    .cli-artifact-grid,
    .cli-installer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-proof {
        align-items: flex-start;
        border-radius: var(--r);
    }

    .page-hero-simple {
        padding-top: 2.75rem;
    }

    .page-hero-simple h1 {
        max-width: 14ch;
    }

    .page-hero-card {
        padding: 1rem;
    }

    .page-proof-strip .wrap {
        gap: 0.45rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .page-proof-strip .wrap::-webkit-scrollbar {
        display: none;
    }

    .page-proof-item {
        font-size: 0.66rem;
    }
}
