/* WinterHowl — dark winter theme */

:root {
    /* Honeycomb cell 31.176×36 — same SVG tiled with half-cell offset. */
    --wh-hex-cell-w: 77.94px;  /* 31.176 × 2.5 */
    --wh-hex-cell-h: 90px;     /* 36 × 2.5 */
    /* Fixed nav clearance for in-page anchor links */
    --wh-header-height: 4.25rem;
}

/* Homepage sections below hero — one viewport; true vertical center at 50vh */
.home-screen-section {
    box-sizing: border-box;
    min-height: 100svh;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-rows: var(--wh-header-height) minmax(0, 1fr) var(--wh-header-height);
}

.home-screen-section__inner {
    grid-row: 2;
    align-self: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.home-screen-section__inner--stretch {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.home-screen-section__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-section-site-footer {
    flex-shrink: 0;
}

/* Homepage — full-viewport section scroll snap */
html.home-page,
body.home-page {
    height: 100%;
    overflow: hidden;
}

body.home-page {
    min-height: 0;
}

body.home-page > .flex.flex-1.flex-col {
    flex: 1 1 auto;
    min-height: 0;
}

.home-scroll-container {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
}

.home-scroll-section {
    scroll-snap-align: start;
}

.home-scroll-section.hero {
    border-top: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-scroll-container {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }
}

@media (min-width: 640px) {
    .home-screen-section__inner {
        padding-inline: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--wh-header-height);
}

html.home-page {
    scroll-behavior: auto;
}

.about-panel {
    position: relative;
    overflow: hidden;
}

.about-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(91, 150, 184, 0.5), rgba(139, 184, 212, 0.15));
}

/* Our standards — compact grid; AI spans two columns on large screens */
@media (min-width: 1024px) {
    .commitments-grid .commitments-ai-card {
        grid-column: span 2;
    }
}

.commitment-card.value-card:hover {
    transform: none;
}

::selection {
    background: rgba(139, 184, 212, 0.35);
    color: #f0f7fa;
}

/* Site shell — hex grid + atmosphere (same technique as Shift .shift-app-bg) */
.wh-site-bg {
    background-color: #0a0e14;
    background-image:
        var(--wh-hex-bg),
        var(--wh-hex-bg),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 150, 184, 0.16), transparent),
        radial-gradient(ellipse 50% 40% at 90% 85%, rgba(61, 122, 158, 0.05), transparent),
        linear-gradient(180deg, #0f1419 0%, #0a0e14 100%);
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    background-size:
        var(--wh-hex-cell-w) var(--wh-hex-cell-h),
        var(--wh-hex-cell-w) var(--wh-hex-cell-h),
        auto, auto, auto;
    background-position:
        0 0,
        calc(var(--wh-hex-cell-w) / 2) calc(var(--wh-hex-cell-h) / 2),
        center, center, center;
}


.value-card,
.product-card {
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.value-card:hover,
.product-card:hover {
    border-color: rgba(139, 184, 212, 0.25);
    transform: translateY(-2px);
}

.product-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid rgba(139, 184, 212, 0.25);
    background: rgba(61, 122, 158, 0.1);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b8d4e6;
}

/* Contact modal */
.contact-modal.is-open {
    display: flex;
}

.bug-report-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
}

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

.bug-report-modal.is-open .relative {
    animation: modal-in 0.25s ease-out;
}

.contact-modal.is-open .relative {
    animation: modal-in 0.25s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile nav */
@media (max-width: 1023px) {
    #nav-menu.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 0.75rem 1rem 1rem;
    }
}

/* Toast messages */
.message-box .message {
    pointer-events: auto;
    overflow: hidden;
    transition: height 0.35s ease;
}

.message-box .message-inner {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.message-box .message--success .message-inner {
    background: #166534;
    color: #ecfdf5;
}

.message-box .message--danger .message-inner {
    background: #991b1b;
    color: #fef2f2;
}

/* Form validation */
.contact-form input:user-invalid:not(:placeholder-shown),
.contact-form select:user-invalid,
.contact-form textarea:user-invalid {
    border-color: rgba(248, 113, 113, 0.6);
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated select:invalid {
    border-color: rgba(248, 113, 113, 0.6);
}

.contact-form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.platform-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(15, 20, 25, 0.72);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.platform-btn-primary {
    background: #3d7a9e;
    color: #0a0e14;
}

.platform-btn-primary:hover {
    background: #5a96b8;
}

.platform-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.55);
    color: #dceaf2;
}

.platform-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(21, 28, 36, 0.85);
}

.platform-link {
    color: #8bb8d4;
    text-decoration: none;
    font-weight: 500;
}

.platform-link:hover {
    color: #dceaf2;
    text-decoration: underline;
}

.platform-flash {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.platform-flash-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.platform-flash-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.platform-flash-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.platform-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #b8d4e6;
    margin-bottom: 0.375rem;
}

.platform-form input[type="text"],
.platform-form input[type="email"],
.platform-form input[type="password"],
.platform-form input[type="search"],
.platform-form input[type="number"],
.platform-form select,
.platform-form textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.65);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #f0f7fa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.platform-form input:focus,
.platform-form select:focus,
.platform-form textarea:focus {
    outline: none;
    border-color: rgba(91, 150, 184, 0.55);
    box-shadow: 0 0 0 3px rgba(61, 122, 158, 0.2);
}

.platform-form > div,
.platform-form .mb-3 {
    margin-bottom: 1rem;
}

.platform-form ul {
    margin: 0.375rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: #fecaca;
}

.password-strength {
    margin-top: 0.625rem;
}

.password-strength__track {
    height: 0.375rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.password-strength__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: rgba(148, 163, 184, 0.55);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.password-strength--weak .password-strength__bar {
    background: #ef4444;
}

.password-strength--fair .password-strength__bar {
    background: #f59e0b;
}

.password-strength--good .password-strength__bar {
    background: #38bdf8;
}

.password-strength--ready .password-strength__bar {
    background: #22c55e;
}

.password-strength__label {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.password-strength__checks {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.password-strength__check {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.password-strength__check span {
    width: 0.875rem;
    flex-shrink: 0;
    text-align: center;
}

.password-strength__check--met {
    color: #86efac;
}

.password-strength__check--unmet {
    color: #64748b;
}

.platform-nav-list {
    display: grid;
    gap: 0.5rem;
}

.platform-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 20, 0.45);
    padding: 0.875rem 1rem;
    color: #dceaf2;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.platform-nav-list a:hover {
    border-color: rgba(139, 184, 212, 0.25);
    background: rgba(21, 28, 36, 0.85);
}

.platform-table-wrap {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-table {
    min-width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.platform-table thead {
    background: rgba(10, 14, 20, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8bb8d4;
}

.platform-table th,
.platform-table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.platform-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #dceaf2;
}

.platform-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.filterable-select {
    position: relative;
}

.filterable-select__input {
    width: 100%;
}

.filterable-select__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: 14rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 20, 25, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.filterable-select__option {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #dceaf2;
    cursor: pointer;
}

.filterable-select__option:hover,
.filterable-select__option.is-active {
    background: rgba(139, 184, 212, 0.12);
    color: #f0f7fb;
}

.filterable-select__option.is-hidden {
    display: none;
}

.filterable-select__empty {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #8bb8d4;
}

.platform-muted {
    color: #8bb8d4;
}

.platform-code-block {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 20, 0.55);
    padding: 1rem;
}

.platform-code-block ul {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: #f0f7fa;
}

.platform-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8bb8d4;
}

.platform-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.platform-filter-bar label {
    flex: 1;
    min-width: 12rem;
}

.platform-btn-danger {
    background: #991b1b;
    color: #fef2f2;
}

.platform-btn-danger:hover {
    background: #b42318;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    border: 1px solid rgba(91, 150, 184, 0.25);
    background: rgba(61, 122, 158, 0.12);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b8d4e6;
}

.platform-callout {
    border-radius: 0.75rem;
    border: 1px solid rgba(91, 150, 184, 0.22);
    background: rgba(61, 122, 158, 0.08);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #b8d4e6;
}

.platform-admin-intro__panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.platform-admin-intro__text {
    flex: 1;
    margin: 0;
}

.platform-admin-intro__dismiss {
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8bb8d4;
    text-decoration: underline;
    cursor: pointer;
}

.platform-admin-intro__dismiss:hover {
    color: #dceaf2;
}

.platform-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.platform-message__content {
    flex: 1;
}

.platform-message__title {
    margin: 0 0 0.375rem;
    font-weight: 600;
    color: inherit;
}

.platform-message__body {
    margin: 0;
    line-height: 1.55;
}

.platform-message__dismiss-form {
    flex-shrink: 0;
    margin: 0;
}

.platform-form-hint {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #8bb8d4;
}

.platform-form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .platform-form-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.platform-form-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-form-section-title {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dceaf2;
}

.platform-details {
    overflow: hidden;
}

.platform-details > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    font-weight: 600;
    color: #dceaf2;
    transition: background-color 0.15s ease;
}

.platform-details > summary::-webkit-details-marker {
    display: none;
}

.platform-details > summary::before {
    content: '▸';
    margin-right: 0.25rem;
    color: #8bb8d4;
    transition: transform 0.15s ease;
}

.platform-details[open] > summary::before {
    transform: rotate(90deg);
}

.platform-details > summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.platform-details__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8bb8d4;
}

.platform-details__meta {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8bb8d4;
}

.platform-details-panel + .platform-details-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-details-panel > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f0f7fa;
    transition: background-color 0.15s ease;
}

.platform-details-panel > summary::-webkit-details-marker {
    display: none;
}

.platform-details-panel > summary::before {
    content: '▸';
    color: #8bb8d4;
    transition: transform 0.15s ease;
}

.platform-details-panel[open] > summary::before {
    transform: rotate(90deg);
}

.platform-details-panel > summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.platform-details-panel__meta {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8bb8d4;
}

.platform-checkbox-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 20, 0.45);
    padding: 0.875rem 1rem;
}

.platform-checkbox-card__label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #dceaf2;
}

.platform-form .platform-checkbox-card__label {
    display: flex;
    margin-bottom: 0;
}

.platform-checkbox-card__label input {
    margin-top: 0.2rem;
    width: auto;
}

.platform-checkbox-card__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f0f7fa;
}

.platform-checkbox-card__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #8bb8d4;
}

.platform-scope-grid {
    display: grid;
    gap: 0.75rem;
}

.platform-danger-zone {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(127, 29, 29, 0.14);
    padding: 1rem 1.25rem;
}

.platform-danger-zone__title {
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fecaca;
}

.platform-danger-zone__hint {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #fca5a5;
}

.platform-secret-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.platform-secret-banner__value {
    flex: 1 1 100%;
    margin-top: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.65);
    padding: 0.75rem 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    word-break: break-all;
    color: #f0f7fa;
}

/* Legal pages */
.legal-prose {
    color: #b8d4e6;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal-prose h1 {
    margin-bottom: 0.5rem;
}

.legal-meta {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #8bb8d4;
}

.legal-prose h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f0f7fa;
}

.legal-prose p,
.legal-prose ul {
    margin-bottom: 1rem;
}

.legal-prose ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-prose li {
    margin-bottom: 0.375rem;
}

.legal-prose a {
    color: #8bb8d4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-prose a:hover {
    color: #dceaf2;
}

.legal-prose strong {
    color: #f0f7fa;
    font-weight: 600;
}

.legal-callout {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
}

.legal-callout-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.legal-callout-warning p {
    color: #fde68a;
}
