/* Public website and authentication. Shared palette extends DESIGN.md. */
:root {
    --sy-public-navy: var(--sy-navy);
    --sy-public-deep: #061f30;
    --sy-public-muted: #576c7b;
    --sy-on-dark: #c1d0d8;
    --sy-soft: #e9f4fa;
    --sy-public-line: #dbe3e7;
    --sy-dark-line: #355263;
    --sy-public-radius: 16px;
    --sy-public-shadow: 0 24px 56px #03131f24;
}
.sy-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sy-navy);
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.8px;
    flex-shrink: 0;
}
.sy-brand-accent {
    color: var(--sy-navy);
}
.sy-brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 36px;
    background: var(--sy-accent);
    color: var(--sy-public-deep);
    border-radius: 10px;
}
.sy-brand-mark svg {
    width: 24px;
    height: 24px;
}
.sy-button {
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}
.sy-button-accent {
    color: var(--sy-public-deep);
    background: var(--sy-accent);
}
.sy-button-dark-outline {
    color: white;
    border-color: var(--sy-dark-line);
    background: transparent;
}
.sy-button-dark-outline:hover {
    background: var(--sy-dark-line);
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    padding: 12px 20px;
    background: white;
    color: var(--sy-navy);
    z-index: 1001;
    border-radius: 8px;
}
.skip-link:focus {
    top: 12px;
}
.sy-header > nav > a:not(.sy-button),
.quiet-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sy-header > nav > a:not(.sy-button):hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.public-home {
    margin-top: -16px;
    background: #e8f5ff;
    border-radius: 12px;
}
.marketing-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    background: radial-gradient(
        ellipse at 85% 25%,
        #243b67,
        var(--sy-public-navy) 70%
    );
    padding: 64px 44px;
    border-radius: var(--sy-public-radius);
    color: white;
}
.product-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--sy-on-dark);
    margin: 0 0 26px;
}
.product-kicker > span {
    height: 6px;
    width: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sy-accent);
}
.marketing-hero h1 {
    color: white;
    font-size: clamp(30px, 3.05vw, 44px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}
.marketing-hero h1 span {
    color: #ffac8e;
}
.hero-description {
    font-size: 16px;
    line-height: 1.9;
    color: var(--sy-on-dark);
    margin-bottom: 28px;
}
.hero-availability {
    font-size: 12px;
    color: var(--sy-on-dark);
    margin: 20px 0 0;
    max-width: 400px;
}
.marketing-hero .sy-button {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 14px;
}
.marketing-hero .actions {
    gap: 10px;
}
.library-preview {
    margin: 0;
    background: #f6f8f9;
    border: 1px solid var(--sy-dark-line);
    border-radius: 12px;
    color: var(--sy-navy);
    box-shadow: var(--sy-public-shadow);
    transform: rotate(-2deg);
}
.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--sy-public-line);
    font-size: 10px;
    color: var(--sy-public-muted);
}
.preview-dots {
    display: flex;
    gap: 5px;
}
.preview-dots i {
    width: 6px;
    height: 6px;
    background: #a5b5c0;
    border-radius: 50%;
}
.preview-content {
    padding: 20px;
}
.preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}
.preview-label {
    font-size: 10px;
    font-weight: 400;
    background: #e7eeee;
    color: #45616a;
    border-radius: 4px;
    padding: 3px 7px;
}
.preview-film {
    position: relative;
    border-radius: 7px;
    overflow: hidden;
    background: var(--sy-public-deep);
    aspect-ratio: 16 / 9;
}
.sy-media-artwork {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.preview-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f5f6f2;
    border-radius: 50%;
    color: var(--sy-public-navy);
}
.preview-play svg {
    width: 21px;
    height: 21px;
}
.preview-film-title {
    position: absolute;
    left: 14px;
    bottom: 12px;
    font-size: 15px;
    color: white;
    font-weight: 600;
}
.preview-film-title small {
    display: block;
    font-size: 9px;
    color: var(--sy-on-dark);
    font-weight: 400;
    letter-spacing: 0.03em;
}
.preview-duration {
    position: absolute;
    bottom: 14px;
    right: 12px;
    color: white;
    font-size: 10px;
    background: var(--sy-public-deep);
    border-radius: 3px;
    padding: 1px 5px;
}
.preview-collection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}
.preview-collection > div {
    display: flex;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--sy-public-line);
    padding: 10px;
    border-radius: 6px;
    background: white;
    font-size: 11px;
}
.preview-collection small {
    display: block;
    font-size: 9px;
    color: var(--sy-public-muted);
}
.preview-file-icon {
    color: #577c87;
    background: var(--sy-soft);
    padding: 6px;
    border-radius: 4px;
    font-size: 10px;
}
.preview-storage {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    font-size: 9px;
    color: var(--sy-public-muted);
}
.library-preview figcaption {
    font-size: 10px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--sy-public-line);
    color: var(--sy-public-muted);
}
.product-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--sy-public-line);
    padding: 28px 32px;
    text-align: center;
    font-size: 12px;
    color: var(--sy-public-muted);
    gap: 20px;
}
.product-principles span + span {
    border-left: 1px solid var(--sy-public-line);
}
.product-principles strong {
    color: var(--sy-navy);
    display: block;
    font-size: 14px;
    font-weight: 600;
}
.home-features {
    padding: 64px 40px;
}
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}
.section-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--sy-public-muted);
    margin: 0 0 14px;
}
.section-heading h2 {
    font-size: 30px;
    line-height: 1.5;
    margin: 0;
    letter-spacing: -0.03em;
}
.section-heading > p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--sy-public-muted);
    margin: 0 0 4px;
    max-width: 390px;
}
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.home-feature-grid article {
    padding: 28px;
    background: white;
    border: 1px solid var(--sy-public-line);
    border-radius: 12px;
}
.feature-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--sy-soft);
    color: var(--sy-navy);
}
.feature-symbol svg {
    width: 23px;
    height: 23px;
}
.home-feature-grid h3 {
    margin: 22px 0 10px;
    font-size: 19px;
}
.home-feature-grid p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--sy-public-muted);
    margin-bottom: 22px;
}
.feature-caption {
    display: block;
    padding-top: 16px;
    border-top: 1px solid var(--sy-public-line);
    font-size: 12px;
    color: var(--sy-public-muted);
}
.home-start {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: var(--sy-public-navy);
    border-radius: 8px;
    padding: 36px 40px;
    margin: 0 40px 40px;
    color: white;
}
.home-start h2 {
    margin: 0;
    font-size: 28px;
    color: white;
}
.home-start .section-kicker,
.home-start p:last-child {
    color: var(--sy-on-dark);
}
.home-start .sy-button {
    color: var(--sy-public-deep);
    background: var(--sy-accent);
}
.home-start p:last-child {
    font-size: 14px;
    color: var(--sy-on-dark);
    margin-bottom: 0;
}
.auth-page {
    min-height: 100vh;
    background: #fafbfc;
}
.auth-header,
.auth-footer {
    max-width: 1200px;
    margin: auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.quiet-link {
    color: var(--sy-public-muted);
    text-decoration: none;
    font-size: 13px;
}
.quiet-link:hover {
    color: var(--sy-navy);
    text-decoration: underline;
}
.auth-shell {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    max-width: 1120px;
    margin: 8px auto 0;
    border: 1px solid var(--sy-public-line);
    border-radius: 18px;
    background: white;
    overflow: hidden;
}
.auth-story {
    background: var(--sy-public-navy);
    padding: 48px 42px 36px;
    display: flex;
    flex-direction: column;
    color: white;
}
.auth-story h2 {
    color: white;
    font-size: 36px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
}
.auth-story-description {
    color: var(--sy-on-dark);
    font-size: 14px;
    margin: 0;
    line-height: 1.9;
}
.auth-artwork {
    margin: 12px -24px 8px;
}
.auth-artwork svg {
    width: 100%;
    height: auto;
    max-height: 320px;
}
.auth-artwork > span {
    display: block;
    padding: 11px 16px;
    background: var(--sy-public-deep);
    color: var(--sy-on-dark);
    font-size: 9px;
    letter-spacing: 0.12em;
}
.auth-story-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.8;
    margin-top: auto;
}
.auth-story-bottom strong {
    font-size: 18px;
    font-weight: 500;
}
.story-mark {
    font-size: 32px;
    color: var(--sy-accent);
}
.auth-development-note {
    border-top: 1px solid var(--sy-dark-line);
    padding-top: 18px;
    margin: 22px 0 0;
    font-size: 12px;
    color: var(--sy-on-dark);
    line-height: 1.8;
}
.auth-form-panel {
    padding: 44px 48px 32px;
    align-self: center;
    min-width: 0;
}
.auth-form-content {
    max-width: 400px;
    margin: auto;
}
.auth-form-content h1 {
    font-size: 30px;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.5;
}
.auth-intro {
    font-size: 14px;
    color: var(--sy-public-muted);
    margin: 0 0 24px;
}
.auth-submit {
    width: 100%;
    min-height: 48px;
}
.auth-submit:disabled {
    opacity: 1;
    color: #677682;
    background: #f5f7f8;
    border-color: var(--sy-public-line);
}
.external-login .sy-button {
    font-size: 14px;
}
.external-login svg {
    flex-shrink: 0;
}
.field-hint {
    margin: 7px 0 0;
    color: var(--sy-public-muted);
    font-size: 12px;
    line-height: 1.8;
}
.external-hint {
    text-align: center;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--sy-public-muted);
    font-size: 12px;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--sy-public-line);
}
.auth-form-content .field {
    margin-bottom: 18px;
}
.auth-form-content .field label {
    font-size: 13px;
    font-weight: var(--sy-control-font-weight);
}
.auth-form-content .sy-input {
    min-height: 48px;
    font-size: 16px;
    border-color: #80939e;
    border-radius: 7px;
}
.auth-form-content .sy-input::placeholder {
    color: #687a88;
    font-size: 14px;
}
.auth-form-content .sy-input.invalid {
    border-color: var(--sy-error);
}
.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.auth-label-row a {
    font-size: 12px;
    text-decoration: none;
}
.auth-label-row a:hover {
    text-decoration: underline;
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 12px;
    margin: -6px 0 12px;
    cursor: pointer;
    width: fit-content;
}
.auth-remember input {
    margin: 0;
}
.auth-switch {
    margin: 24px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--sy-public-line);
    text-align: center;
    font-size: 13px;
    color: var(--sy-public-muted);
}
.auth-switch a {
    display: inline-block;
    padding: 10px 3px;
    font-weight: var(--sy-control-font-weight);
    text-underline-offset: 4px;
}
.auth-alternative {
    margin-top: 14px;
    font-size: 12px;
    color: var(--sy-public-muted);
}
.auth-alternative summary {
    cursor: pointer;
    min-height: 44px;
    padding: 10px 0;
}
.auth-alternative summary:focus-visible {
    outline: 3px solid var(--sy-focus);
    outline-offset: 3px;
    border-radius: 4px;
}
.auth-alternative > a {
    display: inline-block;
    padding: 12px 0;
}
.auth-alternative .sy-button {
    font-size: 13px;
}
.auth-next-step {
    font-size: 12px;
    color: var(--sy-public-muted);
    text-align: center;
    line-height: 1.8;
    margin: 14px 0 0;
}
.auth-footer {
    font-size: 11px;
    color: var(--sy-public-muted);
    padding-top: 24px;
    padding-bottom: 24px;
}
.auth-footer a {
    padding: 10px 0;
    color: var(--sy-public-muted);
    text-decoration: none;
}
.auth-error,
.auth-form-content .alert {
    background: #fff1ee;
    color: #922b21;
    border: 1px solid #e7b3ab;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
}
.auth-error ul {
    margin: 6px 0 0;
    padding-left: 20px;
}
.auth-form-content .validation-message {
    font-size: 12px;
    margin-top: 6px;
}
@media (min-width: 1280px) {
    .public-home {
        margin-left: -24px;
        margin-right: -24px;
    }
}
@media (max-width: 1100px) {
    .marketing-hero {
        padding: 44px 30px;
        gap: 28px;
    }
    .desktop-break {
        display: none;
    }
    .auth-shell {
        margin-left: 24px;
        margin-right: 24px;
    }
    .auth-story {
        padding: 36px 28px;
    }
    .auth-form-panel {
        padding: 36px 28px;
    }
    .auth-story h2 {
        font-size: 31px;
    }
}
@media (max-width: 800px) {
    .marketing-hero {
        grid-template-columns: 1fr;
        padding: 38px 30px;
    }
    .marketing-hero h1 {
        font-size: 40px;
    }
    .library-preview {
        max-width: 500px;
        width: 100%;
        margin: 12px auto 0;
        transform: none;
    }
    .hero-copy {
        max-width: 560px;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
    .home-feature-grid {
        gap: 14px;
    }
    .home-feature-grid article {
        padding: 20px;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 8px auto 0;
    }
    .auth-story {
        display: none;
    }
    .auth-form-panel {
        padding: 36px 40px;
    }
    .auth-header,
    .auth-footer {
        max-width: 600px;
    }
}
@media (max-width: 540px) {
    .sy-header {
        padding: 16px 20px;
        gap: 12px;
    }
    .sy-header > nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .sy-header > nav .sy-button {
        padding: 9px 14px;
    }
    .public-home {
        margin-top: 0;
    }
    .marketing-hero {
        margin: -8px -4px 0;
        padding: 30px 22px;
        gap: 26px;
        border-radius: 12px;
    }
    .marketing-hero h1 {
        font-size: clamp(26px, 7.2vw, 37px);
        line-height: 1.55;
    }
    .product-kicker {
        font-size: 9px;
        letter-spacing: 0.1em;
        margin-bottom: 22px;
    }
    .hero-description {
        font-size: 14px;
    }
    .marketing-hero .actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .hero-availability {
        font-size: 11px;
    }
    .preview-content {
        padding: 12px;
    }
    .preview-toolbar {
        padding: 10px;
        font-size: 8px;
    }
    .preview-heading {
        font-size: 12px;
    }
    .preview-collection {
        grid-template-columns: 1fr;
    }
    .preview-film-title {
        font-size: 12px;
    }
    .preview-play {
        width: 32px;
        height: 32px;
    }
    .preview-storage {
        flex-wrap: wrap;
    }
    .product-principles {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 16px;
        padding: 24px 4px;
    }
    .product-principles span + span {
        border: 0;
    }
    .product-principles strong {
        display: inline;
        margin-right: 8px;
        font-size: 12px;
    }
    .product-principles span {
        font-size: 11px;
    }
    .home-features {
        padding: 40px 20px 36px;
    }
    .section-heading h2 {
        font-size: 26px;
    }
    .home-feature-grid {
        grid-template-columns: 1fr;
    }
    .home-feature-grid article {
        padding: 24px;
    }
    .home-start {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
        margin: 0 20px 24px;
    }
    .home-start .sy-button {
        width: 100%;
    }
    .auth-header {
        padding: 18px 24px;
    }
    .auth-shell {
        margin: 0;
        border: 0;
        border-radius: 0;
    }
    .auth-page,
    .auth-form-panel {
        background: white;
    }
    .auth-form-panel {
        padding: 24px;
    }
    .auth-form-content h1 {
        font-size: 28px;
    }
    .auth-intro {
        font-size: 13px;
    }
    .auth-footer {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 0 16px;
        border-top: 1px solid var(--sy-public-line);
    }
}
@media (prefers-reduced-motion: reduce) {
    .sy-button {
        transition: none;
    }
}

/* Marketing composition follows the supplied Bunny reference with SyVideo assets. */
.public-home {
    display: flow-root;
}
.hero-illustration {
    position: relative;
}
.sy-streaming-artwork {
    display: block;
    width: 100%;
    height: auto;
}
.illustration-caption {
    display: block;
    text-align: center;
    color: var(--sy-on-dark);
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-top: -8px;
}
.home-features .section-heading {
    text-align: center;
    display: block;
}
.home-features .section-heading > p {
    max-width: 600px;
    margin: 16px auto 0;
}
.home-features .section-heading h2 br {
    display: none;
}
.home-feature-grid article {
    border-color: transparent;
    border-radius: 7px;
    box-shadow: 0 2px 5px #153a5310;
}
.home-library {
    padding: 4px 40px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.home-library .library-preview {
    transform: none;
    box-shadow: 0 12px 32px #153a5314;
    border-color: var(--sy-public-line);
}
.home-library h2 {
    font-size: 28px;
    line-height: 1.5;
    margin: 0 0 20px;
}
.home-library p,
.home-library li {
    font-size: 14px;
    color: var(--sy-public-muted);
}
.home-library ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.home-library li {
    padding: 12px 0;
    border-bottom: 1px solid #ccdee9;
}
.home-library strong {
    color: var(--sy-navy);
    margin-right: 8px;
}
.home-text-link {
    display: inline-block;
    padding: 8px 0;
    font-size: 13px;
    text-underline-offset: 5px;
}
@media (max-width: 800px) {
    .hero-illustration {
        max-width: 480px;
        width: 100%;
        margin: auto;
    }
    .home-library {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
@media (max-width: 540px) {
    .product-principles {
        padding: 24px;
    }
    .marketing-hero {
        margin: 0;
    }
    .home-library {
        padding: 0 20px 40px;
    }
    .home-library h2 {
        font-size: 24px;
    }
}

.auth-label-row a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: -8px 0;
}
