/* Star stickers. Paper surfaces for discovery, violet ink for the reading room. */
@font-face {
    font-family: Nunito;
    src: url('/assets/fonts/nunito-latin-wght.woff2') format('woff2');
    font-weight: 400 1000;
    font-display: swap;
}

:root {
    --sticker-ink: #28204a;
    --sticker-muted: #5e5375;
    --sticker-violet: #6641cf;
    --sticker-lilac: #e9dfff;
    --sticker-paper: #fcf9ff;
    --sticker-lemon: #ffe490;
    --sticker-mint: #bcebd9;
    --sticker-peach: #ffbcae;
    --sticker-type: Nunito, ui-rounded, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
    --font-display: var(--sticker-type);
    --surface: #211a38;
    --surface-raised: #30264a;
    --surface-input: #281f40;
    --black-deep: #19142c;
    --line: #574972;
    --accent: #cfb7ff;
    --action: #744bd4;
    --action-hover: #653acb;
    --focus: #dec9ff;
    --shadow: 0 10px 28px rgb(35 22 54 / .20);
    --color-surface: 33 26 56;
    --color-raised: 48 38 74;
    --color-deep: 25 20 44;
    --color-line: 87 73 114;
    --color-accent: 207 183 255;
}

:root:where([data-chart-theme], [data-page-kind="landing"], [data-page-kind="relationship"], :has(.sample-page, .public-page)) {
    color-scheme: light;
    --surface: var(--sticker-paper);
    --surface-raised: #fff;
    --surface-input: #f7f2fd;
    --black-deep: #f0e8ff;
    --text-primary: var(--sticker-ink);
    --text-secondary: var(--sticker-muted);
    --line: #cbbde0;
    --accent: #5631b5;
    --accent-gold: #755027;
    --gold: var(--accent-gold);
    --action: var(--sticker-violet);
    --action-hover: #5630bb;
    --focus: #5e37c2;
    --error: #a52f54;
    --shadow: 0 10px 24px rgb(63 42 112 / .12);
    --color-surface: 252 249 255;
    --color-raised: 255 255 255;
    --color-deep: 240 232 255;
    --color-text: 40 32 74;
    --color-muted: 94 83 117;
    --color-line: 203 189 224;
    --color-accent: 86 49 181;
    --color-gold: 117 80 39;
}

::selection { background: var(--sticker-lemon); color: var(--sticker-ink); }

.public-brand { font-family: var(--font-display); font-weight: 900; letter-spacing: -.025em; }
header a.brand-sticker,
.public-header .public-brand.brand-sticker,
.guide-page .guide-brand.brand-sticker,
#hero header > a.brand-sticker {
    display: inline-flex;
    align-items: center;
    gap: var(--brand-sticker-gap);
    color: var(--sticker-ink);
    font: 900 var(--brand-sticker-type)/1.2 var(--font-display);
    letter-spacing: -.025em;
    text-decoration: none;
    text-transform: uppercase;
}
.brand-sticker {
    --brand-sticker-size: 35px;
    --brand-sticker-radius: 12px;
    --brand-sticker-type: 22px;
    --brand-sticker-gap: 10px;
}
.brand-sticker :is(.brand-name, .chart-header-brand-name) {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}
.brand-sticker:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 2px var(--focus);
}
#hero {
    min-height: auto;
    padding: 119px 32px 68px;
    background: var(--sticker-lilac);
    border-bottom: 1px solid #c6b4e6;
}
#hero header {
    left: 50%;
    width: min(1240px, 100%);
    height: 80px;
    padding-inline: 32px;
    transform: translateX(-50%);
}
.brand-sticker::before, .birth-card-heading::before {
    content: '';
    display: block;
    flex: none;
    width: var(--brand-sticker-size, 35px);
    height: var(--brand-sticker-size, 35px);
    border: 1px solid #a994d2;
    border-radius: var(--brand-sticker-radius, 12px);
    background: var(--sticker-lemon);
    background-image: url('/assets/icons/sparkle.svg');
    background-size: 19px;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-9deg);
}
#hero .lang-switcher, #hero .home-language-picker { background: #fcf9ff; border-color: #c2afdf; }
#hero .lang-switcher { backdrop-filter: none; }
#hero .hero-layout {
    width: min(1152px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: clamp(32px, 6vw, 93px);
}
.hero-copy h1 {
    margin: 0 0 16px;
    font: 900 clamp(37px, 4.25vw, 65px)/1.12 var(--font-display);
    letter-spacing: -.04em;
    text-wrap: balance;
}
#hero:lang(zh-CN) .hero-copy h1 { max-inline-size: 8.4em; text-wrap: wrap; }
.hero-copy > p { max-width: 50ch; margin-bottom: 24px; font-size: 16px; line-height: 1.7; }

.hero-chart-preview {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    width: 100%;
    max-width: 548px;
    overflow: hidden;
    border: 1px solid #af99d4;
    border-radius: 19px;
    background: #d9c7ff;
    box-shadow: 0 5px 0 #bdaaeb;
    transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.hero-chart-preview:is(:hover, :focus-visible) { background: #d2baff; border-color: #765bac; }
.hero-chart-preview:active { transform: translateY(3px); box-shadow: 0 2px 0 #bdaaeb; }
.hero-sticker-scene {
    container-type: inline-size;
    position: relative;
    display: block;
    min-height: 188px;
    aspect-ratio: 2.35;
    overflow: hidden;
    background-image: radial-gradient(#7f60ad55 1px, transparent 1px);
    background-size: 16px 16px;
}
.sticker-trail {
    position: absolute;
    inset: 29% 12%;
    border: 1px dashed #9272c4;
    border-radius: 50%;
    transform: rotate(-13deg);
}
.sticker-planet {
    position: absolute;
    inset: 47% auto auto 49%;
    width: clamp(94px, 30cqw, 166px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(-13deg);
    transition: transform .36s cubic-bezier(.2,.8,.3,1.45);
}
.hero-chart-preview:is(:hover, :focus-visible) .sticker-planet,
#hero:has(.birth-card :focus) .sticker-planet { transform: translate(-50%, -56%) rotate(-5deg); }
.sticker-planet-disc {
    position: absolute;
    inset: 0;
    border: 2px solid var(--sticker-ink);
    border-radius: 50%;
    background: var(--sticker-lemon);
    box-shadow: inset -9px -10px #f6c86a, 0 0 0 5px #fff8f5, 0 7px 12px #57358b44;
}
.sticker-planet::after {
    content: '';
    position: absolute;
    inset: 28% -32%;
    border: clamp(9px, 3cqw, 16px) solid var(--sticker-mint);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--sticker-ink), 0 0 0 2px var(--sticker-ink);
    clip-path: polygon(-10% -20%, 20% -20%, 20% 53%, 80% 53%, 80% -20%, 110% -20%, 110% 120%, -10% 120%);
}
.sticker-planet-face { position: absolute; z-index: 1; inset: 27% 25% 36%; }
.sticker-planet-face::before, .sticker-planet-face::after {
    content: '';
    position: absolute;
    top: 12%;
    width: 12%;
    height: 25%;
    border-radius: 50%;
    background: var(--sticker-ink);
}
.sticker-planet-face::before { left: 18%; }
.sticker-planet-face::after { right: 18%; }
.sticker-planet-face i {
    position: absolute;
    inset: 24% 40% auto;
    height: 31%;
    border-bottom: 2px solid var(--sticker-ink);
    border-radius: 0 0 50% 50%;
}
.sticker-planet-face i::before, .sticker-planet-face i::after {
    content: '';
    position: absolute;
    top: 43%;
    width: 110%;
    height: 52%;
    border-radius: 50%;
    background: #f3a38b;
}
.sticker-planet-face i::before { right: 196%; }
.sticker-planet-face i::after { left: 196%; }
.sticker-moon {
    position: absolute;
    top: 61%;
    left: 73%;
    width: clamp(22px, 8cqw, 45px);
    aspect-ratio: 1;
    border: 1.5px solid var(--sticker-ink);
    border-radius: 50%;
    background: var(--sticker-peach);
    box-shadow: inset -4px -4px #ed9e9c, 0 0 0 3px #fff8f5;
}
.sticker-moon::after {
    content: '';
    position: absolute;
    inset: 19% 60% 57% 21%;
    border-radius: 50%;
    background: #d77b87;
}
.sticker-spark, .hero-sample-icon {
    display: block;
    width: var(--spark-size, 16px);
    aspect-ratio: 1;
    background: var(--spark-color, currentColor);
    clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 63%, 50% 100%, 36% 63%, 0 50%, 36% 36%);
}
.sticker-spark { position: absolute; }
.sticker-spark-one { top: 17%; left: 20%; --spark-size: 26px; --spark-color: #fffaf0; }
.sticker-spark-two { top: 21%; right: 15%; --spark-size: 32px; --spark-color: #fff1b9; }
.sticker-spark-three { bottom: 18%; left: 10%; --spark-size: 15px; --spark-color: #6947ad; }
.hero-sample-action {
    min-height: 50px;
    padding: 0 17px;
    border-top: 1px solid #af99d4;
    background: #f6eeff;
    color: var(--sticker-ink);
    font-size: 14px;
    font-weight: 800;
}
.hero-sample-icon, .hero-sample-arrow { color: var(--accent); }
.hero-sample-arrow { width: 17px; height: 12px; position: relative; transition: transform .22s ease; }
.hero-sample-arrow::before { content: ''; position: absolute; inset: 5px 1px auto 0; border-top: 2px solid; }
.hero-sample-arrow::after { content: ''; position: absolute; right: 1px; top: 2px; width: 8px; height: 8px; transform: rotate(45deg); border-top: 2px solid; border-right: 2px solid; }
.hero-chart-preview:is(:hover, :focus-visible) .hero-sample-arrow { transform: translateX(3px); }

#hero .birth-card {
    padding: 26px 30px 21px;
    border: 1px solid #b5a1d7;
    border-radius: 24px;
    box-shadow: 0 7px 0 #cab7ed;
}
.birth-card-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; margin-bottom: 17px; padding-bottom: 16px; border-bottom-style: dashed; }
.birth-card-heading::before { grid-row: span 2; align-self: center; background-color: var(--sticker-mint); transform: rotate(8deg); }
.birth-card-heading h2 { font: 900 25px/1.2 var(--font-display); margin-bottom: 3px; }
.birth-card-heading p { grid-column: 2; font-size: 13px; }
#hero #birth-form > :not([hidden]) ~ :not([hidden]) { margin-top: 13px; }
#birth-form label, #birth-form legend { font-weight: 650; }
#birth-form .form-input { min-height: 44px; font-variant-numeric: tabular-nums; }
#birth-form :is(input[type="date"], input[type="time"]) { color-scheme: light; }
#birth-form :is(input[type="date"], input[type="time"])::-webkit-calendar-picker-indicator { filter: none; opacity: .85; }
#birth-form .form-input::placeholder { color: var(--sticker-muted); opacity: 1; }
#birth-form .form-input[aria-invalid="true"] { border-color: var(--error); }
#birth-form .name-input-shell:focus-within { box-shadow: none; }
#birth-form .name-input-mark {
    border: 0;
    background: currentColor;
    color: var(--accent);
    -webkit-mask: url('/assets/icons/fingerprint.svg') center / 20px 20px no-repeat;
    mask: url('/assets/icons/fingerprint.svg') center / 20px 20px no-repeat;
}
#birth-form .field-help { margin-top: 4px; }
#birth-form .gender-field { min-inline-size: 0; }
#birth-form .gender-field legend { margin-inline-end: 14px; }
#birth-form .gender-toggle { border: 1px solid var(--line); background: var(--surface-input); }
#birth-form .gender-label { min-height: 36px; padding: 5px 17px; font-weight: 650; }
#birth-form .gender-option input:checked ~ .gender-label { color: var(--accent); background: #e8dcff; }
#hero #cta-button {
    min-height: 51px;
    padding: 9px 14px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 1px solid #4c2d9e;
    border-radius: 12px;
    box-shadow: 0 4px 0 #4c2d9e;
    font-weight: 800;
    background: var(--action);
    transition: background .16s, box-shadow .16s, transform .16s;
}
#hero #cta-button:hover { background: var(--action-hover); }
#hero #cta-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #4c2d9e; }
#hero #cta-button[aria-busy="true"] { box-shadow: none; }
#hero #cta-button[aria-busy="true"]::before {
    content: '';
    width: 14px;
    height: 14px;
    margin-inline-end: 8px;
    border: 2px solid #ffffff70;
    border-top-color: #fff;
    border-radius: 50%;
    animation: sticker-spin .7s linear infinite;
}
@keyframes sticker-spin { to { transform: rotate(1turn); } }
#hero #relationship-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: calc(100% - 24px);
    min-height: 44px;
    margin: 14px auto 0;
    padding: 6px 14px;
    border: 1px solid #edc9c4;
    border-radius: 12px;
    background: #fff3ef;
    color: var(--sticker-ink);
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}
#hero #relationship-home-link:not([aria-disabled="true"]):hover { background: #ffe9e1; border-color: #d4a4a0; }
#hero #relationship-home-link:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
@media (forced-colors: active) {
    #hero #relationship-home-link:focus-visible { outline: 2px solid Highlight !important; outline-offset: 2px; }
}
#hero .relationship-home-icon {
    flex: none;
    width: 17px;
    height: 17px;
    background: #93495f;
    -webkit-mask: url('/assets/icons/heart.svg') center / contain no-repeat;
    mask: url('/assets/icons/heart.svg') center / contain no-repeat;
}
#hero #relationship-home-link[aria-disabled="true"] { opacity: .7; }

@media (max-width: 900px) {
    #hero { padding-inline: 24px; }
    #hero header { padding-inline: 24px; }
    #hero .hero-layout { gap: 26px; }
    #hero .birth-card { padding-inline: 22px; }
}
@media (max-width: 767px) {
    #hero { padding: 92px 18px 40px; }
    #hero header { padding: 12px 18px; }
    .brand-sticker {
        --brand-sticker-size: 28px;
        --brand-sticker-radius: 9px;
        --brand-sticker-type: 16px;
        --brand-sticker-gap: 7px;
    }
    #hero .hero-layout { max-width: 535px; gap: 26px; }
    #hero .hero-copy h1 { max-width: 20ch; font-size: clamp(31px, 7.6vw, 45px); margin-bottom: 10px; }
    .hero-copy > p { margin-bottom: 0; font-size: 14px; }
    .hero-chart-preview { margin-top: 16px; }
    .hero-sticker-scene { min-height: 112px; max-height: 162px; aspect-ratio: 2.65; }
    .hero-sample-action { min-height: 45px; }
    #hero .birth-card { padding: 21px 17px 16px; }
    #birth-form input[type="date"], #birth-form input[type="time"] { font-family: var(--font-ui); font-size: 16px; }
}
@media (max-width: 419px) {
    #birth-form .gender-field legend { float: none; margin: 0 0 6px; }
    #birth-form .gender-label { padding-inline: 15px; }
}
@media (max-width: 360px) {
    #hero { padding-inline: 12px; }
    #hero header { padding-inline: 12px; gap: 6px; }
    .brand-sticker { --brand-sticker-size: 24px; --brand-sticker-gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-chart-preview, .hero-sample-arrow, .sticker-planet { transition: none; }
    .hero-chart-preview:is(:hover, :focus-visible, :active), .hero-chart-preview:is(:hover, :focus-visible) .hero-sample-arrow { transform: none; }
    .hero-chart-preview:is(:hover, :focus-visible) .sticker-planet,
    #hero:has(.birth-card :focus) .sticker-planet { transform: translate(-50%, -50%) rotate(-13deg); }
    #hero #cta-button[aria-busy="true"]::before { animation: none; }
}

/* Keep the same color and type vocabulary beyond the landing page. */
.seo-explainer { background: var(--sticker-paper); }
.seo-explainer-card::after, .faq-item-number, .faq-heading .seo-eyebrow { display: none; }
.seo-guide-item { background: var(--sticker-lilac); border-color: var(--line); border-radius: 15px; }
.seo-guide-item:nth-child(2) { background: #fff2c9; }
.seo-guide-item:nth-child(3) { background: #ddf5ea; }
.seo-guide-item h3 { font-family: var(--font-display); font-weight: 850; }
#why, #reports, .faq-section { background: #f1eaff; }
#reverse-trace { background: var(--sticker-paper); }
.faq-heading h2 { color: var(--text-primary); }
.faq-item:is(:hover, [open]) { background: #f9f4ff; border-color: #a991d0; box-shadow: none; }
.faq-item summary { grid-template-columns: minmax(0, 1fr) auto; }
.faq-item summary:focus-visible { outline-color: var(--focus); }
.faq-item-indicator { background: var(--sticker-lilac); border-color: var(--line); }
.faq-item-answer p { padding-inline-start: .95rem; }
.free-experience h2, .public-membership-section .public-teaser h2 { font-family: var(--font-display); font-weight: 900; }
.free-experience h3 { font-weight: 750; }
.free-experience-number {
    display: grid;
    place-items: center;
    flex-basis: 32px;
    aspect-ratio: 1;
    align-self: start;
    padding: 0;
    border-radius: 10px;
    color: var(--sticker-ink);
    background: var(--sticker-mint);
}
.free-experience-list li:nth-child(2n) .free-experience-number { background: var(--sticker-lemon); }

.public-membership-section .public-teaser {
    background: #fff0bd;
    border-color: #d6b66e;
    box-shadow: 0 5px 0 #efe0ac;
}
.public-membership-section .public-teaser::before,
.public-membership-section .public-teaser::after,
.public-membership-section .public-plan-label::before { display: none; }
.public-membership-section .public-teaser h2,
.public-membership-section .public-teaser-action strong,
.public-membership-section .public-member-icon { color: var(--sticker-ink); }
.public-membership-section .public-plan-label {
    background: #fff9e6;
    color: var(--sticker-ink);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0;
}
.public-membership-section .public-teaser-action { border-color: #d6b66e; }
.public-membership-section .public-member-features li,
.public-membership-section .public-teaser-action small,
.public-membership-section .public-payment-note { color: #654f3b; }
.public-membership-section .public-button,
.free-experience-action .public-button {
    color: #fff !important;
    background: var(--sticker-violet);
    border: 1px solid #4c2d9e;
    box-shadow: 0 3px 0 #4c2d9e;
    border-radius: 11px;
}
.public-membership-section .public-button:hover,
.free-experience-action .public-button:hover { background: #5630bb; box-shadow: 0 3px 0 #4c2d9e; }
.public-footer, .public-footer small, .public-footer .public-brand, .public-footer a { color: var(--text-secondary); }
.public-footer, .public-header, .public-layout, .public-section { border-color: var(--line); }
.public-footer .footer-discover > span { color: var(--text-secondary); }
.public-footer .footer-discover > a, .public-footer .footer-discover > a:hover { color: var(--accent); text-decoration-color: currentColor; }
.public-page, .public-page .public-brand, .public-section strong { color: var(--text-primary); }
.public-hero h1, .guide-page h1 { font-family: var(--font-display); font-weight: 900; letter-spacing: -.025em; }
.public-hero > p, .public-section p, .public-section li, .public-currency-label { color: var(--text-secondary); }
.public-hero > .public-eyebrow { display: none; }
.public-section-number, .public-layout aside > a, .public-section a { color: var(--accent); }
#public-currency { color: var(--text-primary); border-color: var(--line); background-color: var(--surface-raised); }
.guide-page {
    --guide-ink: var(--text-primary);
    --guide-copy: var(--text-secondary);
    --guide-muted: var(--text-secondary);
    --guide-accent: var(--accent);
    --guide-line: var(--line);
}
.guide-page .chart-cta { background: var(--sticker-lilac); border-color: var(--line); }
.guide-page .chart-cta strong { font-family: var(--font-display); font-weight: 800; }
.guide-page .chart-cta-action { background: var(--sticker-violet); color: #fff; }
.guide-page :is(.public-section-number, .guide-toc a > span) { color: var(--accent); }
.guide-page .palace-map span { background: var(--surface-raised); }
.guide-page .palace-map .map-center { background: var(--sticker-lilac); }
.guide-page .palace-map .map-focus { background: var(--sticker-lemon); }

.sample-intro h1, .sample-dialog h2 { font-family: var(--font-display); font-weight: 900; }
.sample-board { padding: 7px; gap: 5px; border-radius: 18px; background: var(--sticker-lilac); }
.sample-palace { border-radius: 9px; }
.sample-palace:hover { background: #f6edff; }
.sample-palace:active { transform: scale(.97); }
.sample-palace[aria-pressed="true"] { color: var(--sticker-ink); background: var(--sticker-lemon); border-color: #a77d30; }
.sample-create { border-radius: 12px; }
.sample-dialog::backdrop { background: rgb(43 26 72 / .55); }

:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) .membership-plan {
    background: var(--surface-raised);
    color: var(--text-primary);
    border-color: var(--line);
}
:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) .membership-plan.is-selected {
    background: var(--sticker-lilac);
    border-color: var(--focus);
    box-shadow: 0 0 0 1px var(--focus);
}
:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) .membership-plan small { color: var(--text-secondary); }
:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) :is(.plan-badge, .membership-renew > summary, .membership-avatar) { color: var(--accent); }
:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) :is(.membership-badge.is-active, .membership-order-status[data-status="paid"]) { color: #236352; }
:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) .membership-note[role="alert"] { color: var(--error); }

.membership-benefit-list li { background: var(--surface-raised); border-color: var(--line); }
.membership-benefit-list strong { color: var(--text-primary); }
.membership-benefit-list span { color: var(--text-secondary); }
:root:where([data-page-kind="landing"], [data-page-kind="relationship"], :has(.public-page)) .membership-benefit-list img { filter: none; }

@media (prefers-reduced-motion: reduce) {
    .sample-palace:active { transform: none; }
}

/* The homepage picker uses real language links inside a keyboard-accessible disclosure. */
#hero { overflow: visible; }
#hero .home-header-actions { position: relative; }
.home-language-menu summary { list-style: none; cursor: pointer; font-weight: 750; }
.home-language-menu summary::-webkit-details-marker { display: none; }
.home-language-menu summary::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.home-language-menu[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
#hero .home-language-menu[open] summary { border-color: var(--focus); }
.home-language-short { display: none; }
.home-language-options {
    position: absolute;
    z-index: 2;
    top: calc(100% + 9px);
    right: 0;
    width: min(238px, calc(100vw - 36px));
    max-height: calc(100dvh - 106px);
    overflow: auto;
    padding: 7px;
    background: var(--sticker-paper);
    border: 1px solid #ab94d0;
    border-radius: 16px;
    box-shadow: 0 5px 0 #cab7ed, 0 12px 24px #30204d26;
}
.home-language-options .home-language-option {
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr);
    justify-content: start;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 5px 8px;
    border-radius: 9px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 650;
}
.home-language-option .language-short {
    display: grid;
    min-height: 28px;
    place-items: center;
    background: var(--sticker-lilac);
    border-radius: 8px;
    color: var(--accent);
    font: 850 12px/1 var(--font-display);
}
.home-language-options .home-language-option:is(:hover, :focus-visible, [aria-current="page"]) {
    background: #eee4ff;
    color: var(--accent);
}
.home-language-option[aria-current="page"] .language-short { background: var(--sticker-lemon); color: var(--sticker-ink); }
.home-language-option:focus-visible,
.home-language-menu summary:focus-visible,
.trace-options button:focus-visible,
#reports .insight-tab:focus-visible,
#reports .insight-terminal:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }

#birth-form #timezone-status {
    margin-top: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.55;
}

/* The illustrated chart, trace and example use the same sticker palette as the form. */
.home-explore-section { padding: clamp(48px, 7vw, 100px) 0; }
.home-section-shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.home-section-title {
    margin: 0;
    color: var(--text-primary);
    font: 900 clamp(29px, 4.1vw, 53px)/1.15 var(--font-display);
    letter-spacing: -.035em;
    text-wrap: balance;
}
.home-section-title > span { display: block; }
.home-section-title > span:last-child { color: var(--accent); }
.home-section-intro {
    max-width: 55ch;
    margin: 15px 0 0;
    color: var(--text-secondary);
    font-size: clamp(14px, 1.45vw, 17px);
    line-height: 1.75;
    text-wrap: pretty;
}
.hero-mark {
  position: relative;
  isolation: isolate;
  width: min(100%, 238px);
  aspect-ratio: 1.75;
}
.hero-mark::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 22% 0 12%;
  border: 1px dashed #a085c6;
  border-radius: 50%;
  transform: rotate(-13deg);
}
.hero-person {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid var(--sticker-ink);
  border-radius: 34%;
  color: var(--sticker-ink);
  box-shadow: 0 0 0 3px #fff8f5;
}
.hero-person-a { top: 23%; left: 10%; background: var(--sticker-mint); transform: rotate(-12deg); }
.hero-person-b { top: 13%; right: 9%; background: var(--sticker-peach); transform: rotate(12deg); }
.hero-person > span { position: relative; width: 38%; height: 29%; }
.hero-person > span::before, .hero-person > span::after { content: ''; position: absolute; }
.hero-person > span::before {
  inset: 0 0 auto;
  height: 35%;
  border-radius: 100%;
  background: radial-gradient(circle at 15% 50%, currentColor 0 19%, transparent 22%),
              radial-gradient(circle at 85% 50%, currentColor 0 19%, transparent 22%);
}
.hero-person > span::after { inset: 43% 22% 0; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 50% 50%; }
.hero-heart {
  position: absolute;
  top: 0; left: 44%;
  width: 16%; aspect-ratio: 1;
  background: var(--accent);
  mask: url('/assets/icons/heart.svg') center / contain no-repeat;
  transform: rotate(-9deg);
}

#relationship-intro {
    background: #fff3ef;
    border-block: 1px solid #e8ccce;
}
.relationship-intro-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
    align-items: center;
    gap: 14px 28px;
}
.relationship-intro-heading .hero-mark { grid-area: 1 / 2; }
.relationship-intro-heading .hero-heart { background: #bb4971; }
#relationship-intro .home-section-intro { max-width: 64ch; }
.relationship-intro-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.relationship-intro-topics li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 8px 12px;
    padding: 18px;
    border: 1px solid #cbb8de;
    border-radius: 16px;
    background: var(--topic-paper);
    box-shadow: 0 3px 0 #e7d6ec;
}
.relationship-intro-topics li::before {
    content: '';
    width: 38px;
    height: 38px;
    border: 1px solid #cbb8de;
    border-radius: 10px;
    background: var(--topic-icon) center / 21px no-repeat, var(--topic-sticker);
    transform: rotate(-7deg);
}
.relationship-intro-topics li:nth-child(1) { --topic-icon: url('/assets/icons/heart.svg'); --topic-paper: #fff9fa; --topic-sticker: #ffd9e4; }
.relationship-intro-topics li:nth-child(2) { --topic-icon: url('/assets/icons/wallet.svg'); --topic-paper: #fffaf0; --topic-sticker: var(--sticker-lemon); }
.relationship-intro-topics li:nth-child(3) { --topic-icon: url('/assets/icons/calendar.svg'); --topic-paper: #f7f2ff; --topic-sticker: var(--sticker-lilac); }
.relationship-intro-topics h3 { margin: 0; color: var(--sticker-ink); font-size: 17px; font-weight: 800; }
.relationship-intro-topics p { grid-column: 1 / -1; margin: 0; color: var(--sticker-muted); font-size: 14px; line-height: 1.7; }
.relationship-intro-footer {
    display: flex;
    justify-content: flex-end;
}
#relationship-intro-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #bd8295;
    border-radius: 12px;
    background: #ffdce5;
    box-shadow: 0 3px 0 #dca7b7;
    color: #762f49;
    font-weight: 750;
}
#relationship-intro-link:hover { background: #ffc9d9; }
#relationship-intro-link:active { box-shadow: 0 1px 0 #dca7b7; }
#relationship-intro-link:focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 4px; }
@media (max-width: 767px) {
    .relationship-intro-heading { grid-template-columns: minmax(0, 1fr); }
    .relationship-intro-heading .hero-mark { grid-area: auto; width: 140px; }
    .relationship-intro-topics { grid-template-columns: minmax(0, 1fr); }
    .relationship-intro-topics p { grid-column: 2; }
    .relationship-intro-footer { justify-content: flex-start; }
}
.chart-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(25px, 7vw, 96px);
}
.chart-story-steps { display: grid; gap: 13px; margin: 24px 0 0; }
.chart-story-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    gap: 11px;
}
.story-step-mark {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    transform: rotate(-8deg);
    border: 1px solid #b199c9;
    border-radius: 10px;
    background: var(--sticker-lemon);
    font: 900 16px/1 var(--font-display);
}
.chart-story-steps li:nth-child(2) .story-step-mark { background: var(--sticker-mint); transform: rotate(7deg); }
.chart-story-steps h3 { margin: 0; color: var(--text-primary); font-size: 15px; font-weight: 800; }
.chart-story-steps p { margin: 3px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.chart-story-board {
    justify-self: center;
    width: min(100%, 398px);
    padding: clamp(12px, 2vw, 22px);
    border: 1px solid #a991d3;
    border-radius: 24px;
    background: radial-gradient(#9a7fbe66 1px, transparent 1px) 0 0 / 14px 14px, #dfceff;
    box-shadow: 0 6px 0 #c8b3ee;
}
.chart-story-grid {
    display: grid;
    grid-template: repeat(4, 1fr) / repeat(4, 1fr);
    gap: clamp(6px, 1.4vw, 11px);
    aspect-ratio: 1.24;
}
.palace-sticker, .chart-story-center {
    display: grid;
    place-items: center;
    min-width: 0;
    border: 1px solid #b59ed2;
    border-radius: 10px;
    background: #f9f1ff;
    color: var(--sticker-ink);
}
.palace-sticker:not(:has(.ui-icon))::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #ad92d0; }
.palace-sticker:has(.ui-icon) { background: var(--sticker-lemon); transform: rotate(-5deg); }
.palace-sticker:has(.icon-heart) { background: var(--sticker-peach); transform: rotate(6deg); }
.palace-sticker:has(.icon-briefcase) { background: var(--sticker-mint); transform: rotate(5deg); }
.palace-sticker .ui-icon { width: 24px; height: 24px; }
.chart-story-center {
    grid-area: 2 / 2 / 4 / 4;
    align-content: center;
    gap: 8px;
    background: #fff9e8;
    font: 850 clamp(12px, 1.6vw, 17px)/1.2 var(--font-display);
}
.story-orbit {
    position: relative;
    width: clamp(32px, 5vw, 48px);
    aspect-ratio: 1;
    border: 1.5px solid var(--sticker-ink);
    border-radius: 50%;
    background: var(--sticker-lemon);
}
.story-orbit::after {
    content: '';
    position: absolute;
    inset: 34% -37%;
    border: 1.5px solid var(--sticker-ink);
    border-radius: 50%;
    background: var(--sticker-mint);
    transform: rotate(-23deg);
}

#reverse-trace .home-section-shell { max-width: 790px; }
.trace-sticker-board {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #bbabd9;
    border-radius: 21px;
    background: #eee4ff;
    box-shadow: 0 5px 0 #e0d0f7;
}
.trace-map {
    --trace-gap: clamp(22px, 7vw, 64px);
    display: grid;
    grid-template-columns: minmax(70px, .48fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--trace-gap);
    padding: clamp(15px, 3.2vw, 30px);
    background-image: radial-gradient(#ad91ce55 1px, transparent 1px);
    background-size: 14px 14px;
}
.trace-hub {
    position: relative;
    display: grid;
    justify-self: end;
    place-items: center;
    gap: 8px;
    width: min(100%, 146px);
    padding: 14px 5px;
    border: 1px solid #a78445;
    border-radius: 16px;
    background: var(--sticker-lemon);
    color: var(--sticker-ink);
    text-align: center;
    font: 850 clamp(12px, 2vw, 17px)/1.3 var(--font-display);
    overflow-wrap: anywhere;
}
.trace-hub::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: calc(var(--trace-gap) - 12px);
    border-top: 1px dashed #9b80c0;
}
.trace-hub .ui-icon { width: 25px; height: 25px; }
.trace-options { position: relative; display: grid; gap: 8px; }
.trace-options::before {
    content: '';
    position: absolute;
    top: 16%;
    bottom: 16%;
    left: -13px;
    border-left: 1px dashed #9b80c0;
}
.trace-options button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid #c3b2db;
    border-radius: 11px;
    background: #fcf9ff;
    color: var(--text-primary);
    text-align: left;
    font-weight: 700;
    font-size: clamp(13px, 1.8vw, 16px);
    cursor: pointer;
}
.trace-options button::before {
    content: '';
    position: absolute;
    right: 100%;
    width: 13px;
    border-top: 1px dashed #9b80c0;
}
.trace-options button::after {
    content: '';
    order: -1;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--trace-dot);
}
.trace-options button:nth-child(1) { --trace-dot: #388369; --trace-fill: #d9f5e7; }
.trace-options button:nth-child(2) { --trace-dot: #7955bf; --trace-fill: #e8daff; }
.trace-options button:nth-child(3) { --trace-dot: #b1545e; --trace-fill: #ffe2da; }
.trace-options button:is([aria-pressed="true"], :hover) { background: var(--trace-fill); border-color: var(--trace-dot); }
.trace-options button[aria-pressed="true"]::before { border-top: 2px solid var(--trace-dot); }
.trace-reading {
    min-height: 78px;
    padding: 15px clamp(15px, 3.2vw, 30px);
    border-top: 1px solid #bbabd9;
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}
.trace-reading p { margin: 0; }
.trace-sticker-board[data-active="a"] .trace-hub { box-shadow: 3px 3px 0 #b6dfcb; }
.trace-sticker-board[data-active="b"] .trace-hub { box-shadow: 3px 3px 0 #c6afea; }
.trace-sticker-board[data-active="c"] .trace-hub { box-shadow: 3px 3px 0 #e8b5b1; }

.report-story { max-width: 850px; }
.report-story-board {
    --report-tint: #fff0bc;
    --report-edge: #d2b76d;
    margin-top: 24px;
}
.report-story-board[data-topic="career"] { --report-tint: #d8f3e6; --report-edge: #80b79d; }
.report-story-board[data-topic="love"] { --report-tint: #ffe1da; --report-edge: #cc9296; }
.report-story-board[data-topic="health"] { --report-tint: #ebdfff; --report-edge: #ad91d6; }
#reports .report-story-board .insight-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(5px, 1.3vw, 12px);
    margin-bottom: 13px;
}
#reports .report-story-board .insight-tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 75px;
    padding: 7px 4px;
    border: 1px solid #c3b2db;
    border-radius: 13px;
    background: #f9f4ff;
    color: var(--text-primary);
    text-align: center;
    overflow-wrap: anywhere;
    font-size: clamp(12px, 1.5vw, 15px);
    font-weight: 800;
    transition: transform .15s ease, background .15s ease;
}
#reports .report-story-board .insight-tab.active {
    background: var(--report-tint);
    border-color: var(--report-edge);
    box-shadow: 0 3px 0 var(--report-edge);
}
#reports .report-story-board .insight-tab:not(.active):hover { background: #eadeff; }
#reports .report-story-board .insight-tab:active { transform: translateY(2px); }
.insight-tab-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #e9ddff;
    color: var(--accent);
}
.insight-tab-icon .ui-icon { width: 17px; height: 17px; }
.insight-tab.active .insight-tab-icon { background: #ffffffa0; color: var(--sticker-ink); }
#reports .report-story-board .insight-terminal {
    min-height: 0;
    overflow: hidden;
    background: var(--surface-raised);
    border: 1px solid var(--report-edge);
    border-radius: 16px;
    box-shadow: 0 5px 0 color-mix(in srgb, var(--report-edge) 65%, transparent);
}
#reports .report-story-board .example-report-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px clamp(15px, 3vw, 28px);
    border-bottom: 1px solid var(--report-edge);
    background: var(--report-tint);
    color: var(--sticker-ink);
    font-size: 12px;
    font-weight: 800;
}
.report-page-icon {
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: url('/assets/icons/book-open-text.svg') center / contain no-repeat;
    mask: url('/assets/icons/book-open-text.svg') center / contain no-repeat;
}
#reports .report-story-board .terminal-body { padding: clamp(15px, 3vw, 28px); }
#reports .report-story-board #terminal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#reports .report-story-board .example-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--report-tint);
    color: var(--sticker-ink);
    font-size: 12px;
}
#reports .report-story-board #terminal-text { margin: 0; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
#reports .report-story-board .suggestion-box {
    margin-top: 14px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #f5efff;
}
#reports .report-story-board .suggestion-box p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}
#reports .report-story-board .suggestion-box strong { flex-shrink: 0; color: var(--accent); }

@media (max-width: 767px) {
    .home-language-full { display: none; }
    .home-language-short { display: inline; }
    .home-section-shell { width: calc(100% - 36px); }
    .chart-story { grid-template-columns: minmax(0, 1fr); }
    .chart-story-board { width: min(100%, 310px); }
    .trace-reading { min-height: 94px; }
}

/* Homepage reading sections */
.home-info-section {
    padding: clamp(42px, 7vw, 84px) 16px;
    background: var(--sticker-paper);
    color: var(--sticker-ink);
}
.home-info-shell { width: min(100%, 1024px); margin-inline: auto; }
.home-info-heading { min-width: 0; margin-bottom: 22px; }
.home-info-heading h2 {
    margin: 0;
    font: 900 clamp(24px, 4.2vw, 38px)/1.23 var(--sticker-type);
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.home-info-heading > .home-info-mark { margin: 0 0 12px 2px; }
.home-info-heading p {
    margin: 14px 0 0;
    color: var(--sticker-muted);
    font-size: clamp(14px, 1.7vw, 16px);
    line-height: 1.72;
    overflow-wrap: anywhere;
}
.home-info-heading p + p { margin-top: 10px; font-size: .875rem; }
.home-info-items { display: grid; gap: 10px; }
.home-info-item {
    --home-card-tint: #f2eaff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 0 #e6daf1;
    overflow-wrap: anywhere;
}
.home-info-item:nth-child(2) { --home-card-tint: #fff1be; }
.home-info-item:nth-child(3) { --home-card-tint: #d8f3e8; }
.home-info-item h3 { margin: 0; font: 850 16px/1.4 var(--sticker-type); }
.home-info-item p { margin: 4px 0 0; color: var(--sticker-muted); font-size: 14px; line-height: 1.62; }

.home-info-mark {
    --mark-size: 37px;
    display: inline-grid;
    width: var(--mark-size);
    height: var(--mark-size);
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--sticker-ink) 21%, var(--home-card-tint, #fff1be));
    border-radius: 11px;
    background: var(--home-card-tint, #fff1be);
    color: var(--sticker-ink);
    transform: rotate(-6deg);
}
.home-info-mark::before {
    width: 56%;
    height: 56%;
    background: currentColor;
    mask: var(--home-info-glyph) center / contain no-repeat;
    content: '';
    transform: rotate(6deg);
}
.home-info-mark[data-icon="book"] { --home-info-glyph: url('/assets/icons/book-open-text.svg'); }
.home-info-mark[data-icon="calendar"] { --home-info-glyph: url('/assets/icons/calendar.svg'); }
.home-info-mark[data-icon="chat"] { --home-info-glyph: url('/assets/icons/chat-circle-text.svg'); }
.home-info-mark[data-icon="fingerprint"] { --home-info-glyph: url('/assets/icons/fingerprint.svg'); }
.home-info-mark[data-icon="shield"] { --home-info-glyph: url('/assets/icons/shield-check.svg'); }
.home-info-mark[data-icon="sparkle"] { --home-info-glyph: url('/assets/icons/sparkle.svg'); }

.seo-explainer.home-info-section { background: #f8f3ff; }
.home-trust .seo-eyebrow {
    display: block;
    width: fit-content;
    margin-bottom: 9px;
    padding: 3px 9px;
    border-radius: 8px;
    background: #eee4fc;
    color: #563580;
    font: 750 12px/1.45 var(--sticker-type);
    letter-spacing: 0;
}
.home-trust .home-info-item { background: color-mix(in srgb, var(--home-card-tint) 27%, white); }

.faq-section.home-info-section { background: #f1eaff; }
.home-faq-layout .home-info-mark { --home-card-tint: #eadcff; }
.home-faq-layout .faq-list { gap: 8px; min-width: 0; }
.home-faq-layout .faq-item { border-color: var(--line); background: #fff; box-shadow: 0 2px 0 #e1d4f0; }
.home-faq-layout .faq-item summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 54px;
    padding: 10px 12px;
}
.home-faq-layout .faq-item-question { font-weight: 750; overflow-wrap: anywhere; }
.home-faq-layout .faq-item-indicator {
    position: relative;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 8px;
    color: var(--accent);
    background: #f4edff;
}
.home-faq-layout .faq-item-indicator::before,
.home-faq-layout .faq-item-indicator::after {
    position: absolute;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: '';
}
.home-faq-layout .faq-item-indicator::after { rotate: 90deg; }
.home-faq-layout .faq-item[open] .faq-item-indicator { transform: none; }
.home-faq-layout .faq-item[open] .faq-item-indicator::after { content: none; }
.home-faq-layout .faq-item:is(:hover, [open]) { border-color: #b8a2d6; }
.home-faq-layout .faq-item[open] { background: #fbf7ff; }
.home-faq-layout .faq-item[open] .faq-item-answer {
    margin: 0 12px 12px;
    border-radius: 10px;
    background: #f1e8fc;
}
.home-faq-layout .faq-item-answer p { padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }

@media (min-width: 768px) {
    .home-info-section { padding-inline: 28px; }
    .home-guide-layout, .home-faq-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
        gap: clamp(26px, 5vw, 54px);
        align-items: start;
    }
    .home-faq-layout { grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); }
    .home-guide-layout .home-info-heading, .home-faq-layout .home-info-heading { margin-bottom: 0; }
    .home-trust .home-info-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-trust .home-info-item { grid-template-columns: minmax(0, 1fr); padding: 19px; }
}

.report-basis {
    margin-block: 1em 0;
    border: 1px solid #cbb8de;
    border-radius: 12px;
    background: #f7f2ff;
    color: var(--sticker-ink);
}
.report-basis > summary {
    min-height: 44px;
    padding: 10px 14px;
    color: #5936a5;
    font-weight: 750;
    cursor: pointer;
}
.report-basis > summary:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); border-radius: 11px; }
.report-basis > div { padding: 0 14px 12px; }
.report-basis > div > :last-child { margin-bottom: 0; }
