:root {
    --c-primary: #202322;
    --c-primary-hover: #000;
    --c-accent: #35cc88;
    --gradient-primary: #202322;
    --zz-black: #050505;
    --zz-ink: #202322;
    --zz-paper: #f5f3ef;
    --zz-white: #fffefb;
    --zz-line: #d9d7d1;
    --zz-muted: #777875;
    --zz-green: #35cc88;
    --zz-pink: #ff4e78;
    --zz-blue: #dceaf1;
    --zz-mint: #dcebe5;
    --zz-wheat: #f1e6cb;
    --zz-sage: #e4e8d8;
}

body.landing-open,
body.auth-open {
    overflow: hidden;
}

button,
a,
input {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--zz-green);
    outline-offset: 3px;
}

.landing-page {
    position: fixed;
    inset: 0;
    z-index: 900;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--zz-ink);
    background: var(--zz-paper);
    scroll-behavior: smooth;
}

.landing-page.hidden {
    display: none;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 68px;
    color: #fff;
    background: var(--zz-black);
    border-bottom: 1px solid #252525;
}

.landing-nav-inner {
    width: min(1180px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    position: relative;
    display: inline-block;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    border: 3px solid currentColor;
    border-radius: 50%;
    color: currentColor;
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid currentColor;
    border-radius: 50%;
}

.brand-mark::before {
    left: 4px;
    width: 5px;
    height: 9px;
}

.brand-mark::after {
    right: 4px;
    width: 3px;
    height: 5px;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-login,
.landing-nav-cta,
.landing-primary-cta {
    border: 0;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.landing-login {
    padding: 9px 15px;
    color: #d6d6d6;
    background: transparent;
}

.landing-login:hover {
    color: #fff;
}

.landing-nav-cta {
    padding: 9px 17px;
    color: var(--zz-ink);
    background: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.landing-nav-cta:hover,
.landing-primary-cta:hover {
    transform: translateY(-2px);
}

.landing-hero {
    position: relative;
    height: calc(100svh - 104px);
    min-height: 600px;
    max-height: 780px;
    overflow: hidden;
    color: #fff;
    background: var(--zz-black);
}

.landing-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.landing-hero-product {
    position: absolute;
    z-index: 1;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: -36px;
    height: min(96%, 760px);
    width: auto;
    object-fit: contain;
    user-select: none;
}

.landing-kicker,
.landing-section-label {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--zz-green);
}

.landing-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.landing-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 78px;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-hero-title {
    margin: 24px 0 0;
    color: #fff;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-hero-copy {
    width: min(440px, 42vw);
    margin: 24px 0 0;
    color: #a9aaa7;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 600;
}

.landing-primary-cta {
    min-width: 188px;
    margin-top: 32px;
    padding: 15px 21px 15px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--zz-ink);
    background: #fff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
}

.landing-primary-cta span:last-child {
    font-size: 22px;
    line-height: 1;
}

.landing-scroll-note {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 20px;
    margin: 0;
    transform: translateX(-50%);
    color: #6e6f6d;
    font-size: 12px;
    font-weight: 700;
}

.landing-section-inner {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-principles {
    padding: 112px 0 124px;
    background: var(--zz-white);
}

.landing-section-label {
    color: var(--zz-muted);
}

.landing-principles h2,
.landing-scenes h2,
.landing-final-cta h2 {
    margin: 0;
    font-size: 50px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.principle-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 74px;
    border-top: 1px solid var(--zz-line);
    border-bottom: 1px solid var(--zz-line);
}

.principle-column {
    padding: 42px 48px 46px 0;
}

.principle-column + .principle-column {
    padding-right: 0;
    padding-left: 48px;
    border-left: 1px solid var(--zz-line);
}

.principle-column h3 {
    margin: 0 0 30px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
}

.principle-column ul {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.principle-column li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 10px;
    color: #686966;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 700;
}

.principle-column li span {
    font-size: 25px;
    line-height: 1;
    font-weight: 500;
}

.principle-yes li span {
    color: var(--zz-green);
}

.principle-no li span {
    color: var(--zz-pink);
}

.landing-scenes {
    padding: 116px 0 128px;
    background: var(--zz-paper);
}

.landing-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: 80px;
}

.landing-section-heading > p {
    margin: 0 0 4px;
    color: var(--zz-muted);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 600;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 72px;
}

.scene-item {
    min-height: 164px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 12px;
}

.scene-item h3 {
    margin: 0;
    color: var(--zz-ink);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
}

.scene-item p {
    margin: 7px 0 0;
    color: #777875;
    font-size: 13px;
    font-weight: 600;
}

.scene-self { background: var(--zz-blue); }
.scene-intimacy { background: var(--zz-mint); }
.scene-parent { background: var(--zz-wheat); }
.scene-order { background: var(--zz-sage); }

.landing-final-cta {
    padding: 120px 24px;
    color: #fff;
    background: var(--zz-black);
}

.landing-final-inner {
    width: min(760px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-mark-light {
    width: 32px;
    height: 32px;
    margin-bottom: 30px;
    color: #fff;
}

.landing-final-cta h2 {
    color: #fff;
}

.landing-primary-cta-light {
    min-width: 210px;
    margin-top: 42px;
}

.landing-footer {
    min-height: 72px;
    padding: 20px max(24px, calc((100% - 1100px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8b8b88;
    background: var(--zz-black);
    border-top: 1px solid #262626;
    font-size: 12px;
    font-weight: 700;
}

/* Authentication follows the same warm-white, black-action language. */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
}

.auth-overlay.hidden {
    display: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 38px 30px 30px;
    color: var(--zz-ink);
    background: var(--zz-paper);
    border: 1px solid #fff;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.auth-card .auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #767773;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    margin-top: 0;
}

.auth-card .auth-close:hover {
    color: var(--zz-ink);
    background: #e8e6e1;
}

.auth-brand {
    margin-bottom: 26px;
    text-align: left;
}

.auth-brand .brand-mark {
    width: 27px;
    height: 27px;
    margin-bottom: 18px;
}

.auth-brand h2 {
    margin: 0;
    color: var(--zz-ink);
    font-size: 31px;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-brand p {
    margin: 8px 0 0;
    color: var(--zz-muted);
    font-size: 13px;
    font-weight: 600;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    background: #e7e5e0;
    border-radius: 10px;
}

.auth-tab {
    flex: 1;
    padding: 9px 0;
    color: #777875;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.auth-tab.active {
    color: var(--zz-ink);
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    font-weight: 800;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #555754;
    font-size: 13px;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    padding: 12px 13px;
    color: var(--zz-ink);
    background: #fff;
    border: 1px solid #d8d6d0;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.auth-field input:focus {
    border-color: var(--zz-ink);
    box-shadow: 0 0 0 3px rgba(32, 35, 34, 0.12);
}

.auth-submit {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    color: #fff;
    background: var(--zz-ink);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition: transform 120ms ease, background-color 120ms ease;
}

.auth-submit:hover {
    background: #000;
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-error {
    min-height: 18px;
    margin-top: 12px;
    color: #d92f5e;
    font-size: 13px;
    text-align: center;
}

.auth-hint {
    margin-top: 12px;
    color: #8b8b88;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

/* Keep the signed-in product visually connected to the mini program. */
body {
    background: var(--zz-black);
}

.app-layout {
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

.sidebar {
    background: #202322;
}

.new-chat-btn,
.send-button {
    color: var(--zz-ink);
    background: var(--zz-paper);
    font-weight: 800;
}

.new-chat-btn:hover,
.send-button:hover {
    background: #fff;
}

.chat-header {
    color: var(--zz-ink);
    background: var(--zz-paper);
    border-bottom: 1px solid #e4e2dc;
}

.chat-main,
.chat-messages {
    background: #f7f6f3;
}

.chat-input-container {
    background: var(--zz-paper);
}

.chat-input:focus {
    border-color: var(--zz-ink);
}

.example-question:hover {
    color: var(--zz-ink);
    border-color: var(--zz-ink);
}

.user-bar .logout-btn:hover {
    color: #fff;
    border-color: var(--zz-green);
}

#shareDownloadBtn {
    color: #fff;
    background: var(--zz-ink);
}

.share-native-btn,
.share-select-all {
    color: var(--zz-ink);
}
