:root {
    color-scheme: light;
    --paper: #f7f2e8;
    --paper-deep: #ede4d2;
    --surface: #fffaf0;
    --surface-soft: #f1eadc;
    --ink: #2b261b;
    --ink-soft: #4f4939;
    --muted: #746f5c;
    --accent: #6d7c5b;
    --accent-deep: #485637;
    --accent-soft: #e2e7d4;
    --clay: #9f6f58;
    --plum: #5b4a4f;
    --line: #d4c9b4;
    --white: #fffdf8;
    --shadow: 0 18px 46px rgba(43, 38, 27, 0.12);
    --header-height: 74px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(247, 242, 232, 0) 360px),
        var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

main {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-height);
    padding-block: 16px;
    padding-inline: max(36px, env(safe-area-inset-left)) max(36px, env(safe-area-inset-right));
    background: rgba(43, 38, 27, 0.68);
    border-bottom: 1px solid rgba(255, 253, 248, 0.22);
    color: var(--white);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 760;
    min-width: max-content;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 253, 248, 0.36);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.14);
    color: var(--white);
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 253, 248, 0.88);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--white);
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 253, 248, 0.34);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.16);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
    background: rgba(255, 253, 248, 0.26);
    border-color: rgba(255, 253, 248, 0.58);
    transform: translateY(-1px);
}

.lang-zh {
    display: none !important;
}

html[data-language="zh"] .lang-en {
    display: none !important;
}

html[data-language="zh"] .lang-zh {
    display: initial !important;
}

html[data-language="zh"] .language-panel.lang-zh {
    display: block !important;
}

html[data-language="zh"] .process-list.lang-zh,
html[data-language="zh"] .link-grid.lang-zh,
html[data-language="zh"] .check-list.lang-zh,
html[data-language="zh"] .plain-list.lang-zh {
    display: grid !important;
}

html[data-language="zh"] .actions.lang-zh {
    display: flex !important;
}

.hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--ink);
    background-image:
        linear-gradient(90deg, rgba(31, 26, 18, 0.84), rgba(31, 26, 18, 0.48), rgba(31, 26, 18, 0.10)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 42%;
    content: "";
    background: linear-gradient(180deg, rgba(31, 26, 18, 0), rgba(31, 26, 18, 0.54));
}

.hero-content {
    width: min(760px, 100%);
    padding: 140px 40px 76px;
    color: var(--surface);
    animation: hero-enter 620ms ease-out both;
}

.eyebrow,
.section-kicker,
.meta {
    margin: 0 0 14px;
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 250, 240, 0.78);
}

.hero h1,
.page-title h1 {
    margin: 0;
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 72px;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-statement {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--surface);
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 32px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.hero-copy {
    max-width: 590px;
    margin: 20px 0 0;
    color: rgba(255, 250, 240, 0.86);
    font-size: 18px;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 760;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
    background: var(--accent);
    color: var(--surface);
}

.button.secondary {
    background: rgba(255, 253, 248, 0.14);
    border-color: rgba(255, 253, 248, 0.44);
    color: var(--surface);
}

.page-title .button.secondary,
.not-found .button.secondary {
    background: var(--white);
    border-color: var(--line);
    color: var(--accent-deep);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.section {
    padding: 86px 40px;
    scroll-margin-top: var(--header-height);
}

.section-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.intro-band {
    background: var(--paper);
}

.two-column,
.split,
.three-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: start;
}

.three-column {
    grid-template-columns: 0.9fr 1.1fr 1fr;
    align-items: center;
}

.section h2,
.legal-page h2 {
    margin: 0;
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.section-lede,
.page-title p,
.split p,
.three-column p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.68;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 54px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-list li {
    min-height: 250px;
    padding: 28px 22px;
    border-right: 1px solid var(--line);
}

.process-list li:last-child {
    border-right: 0;
}

.process-list span {
    display: block;
    color: var(--clay);
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 28px;
    line-height: 1;
}

.process-list strong {
    display: block;
    margin-top: 26px;
    color: var(--ink);
    font-size: 18px;
}

.process-list p,
.plain-list li,
.check-list span,
.legal-page p,
.legal-page li {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.68;
}

.before-after-section {
    overflow: hidden;
    background: var(--surface);
    border-block: 1px solid rgba(212, 201, 180, 0.82);
}

.before-after-layout {
    display: grid;
    grid-template-columns: 0.84fr 1.16fr;
    gap: 58px;
    align-items: center;
}

.reset-copy {
    align-self: center;
}

.reset-media {
    position: relative;
    min-height: 640px;
}

.reset-frame {
    position: absolute;
    overflow: hidden;
    aspect-ratio: 9 / 10;
    border: 1px solid rgba(255, 253, 248, 0.74);
    border-radius: 22px;
    background: var(--paper-deep);
    box-shadow: var(--shadow);
}

.reset-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.reset-frame:hover img {
    transform: scale(1.025);
}

.reset-frame figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 9px 12px;
    border: 1px solid rgba(255, 253, 248, 0.36);
    border-radius: 999px;
    background: rgba(43, 38, 27, 0.62);
    color: var(--white);
    font-size: 13px;
    font-weight: 760;
    backdrop-filter: blur(16px);
}

.reset-frame.is-before {
    top: 0;
    left: 0;
    width: 57%;
    opacity: 0.88;
}

.reset-frame.is-after {
    right: 0;
    bottom: 0;
    width: 74%;
}

.task-preview {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 32px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.preview-label {
    display: block;
    margin-bottom: 10px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.task-preview strong {
    display: block;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.25;
}

.task-preview p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.minute-pill {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 800;
}

.plain-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    padding-left: 18px;
    border-left: 2px solid var(--accent);
}

.deep-band {
    background: var(--ink);
    color: var(--surface);
}

.deep-band .section-kicker {
    color: rgba(255, 250, 240, 0.7);
}

.deep-band h2,
.deep-band p {
    color: var(--surface);
}

.deep-band p {
    color: rgba(255, 250, 240, 0.76);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-row div {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 250, 240, 0.26);
    border-bottom: 1px solid rgba(255, 250, 240, 0.18);
}

.metric-row strong {
    display: block;
    font-family: ui-serif, "New York", Georgia, serif;
    font-size: 30px;
    line-height: 1;
}

.metric-row span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 250, 240, 0.68);
    font-size: 14px;
}

.privacy-strip {
    background: var(--paper-deep);
}

.check-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(43, 38, 27, 0.2);
}

.check-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(43, 38, 27, 0.2);
}

.check-list strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 17px;
}

.docs-section {
    background: var(--paper);
}

.docs-section h2 {
    max-width: 840px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

.link-tile {
    display: block;
    min-height: 180px;
    padding: 20px;
    border: 1px solid rgba(212, 201, 180, 0.88);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.76);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-tile:hover,
.link-tile:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--white);
}

.link-tile strong {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

.link-tile span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.page-title {
    padding: 148px 40px 56px;
    background:
        linear-gradient(120deg, rgba(109, 124, 91, 0.16), rgba(159, 111, 88, 0.08)),
        var(--surface);
    border-bottom: 1px solid var(--line);
}

.page-title-inner,
.legal-content {
    width: min(900px, 100%);
    margin: 0 auto;
}

.page-title h1 {
    color: var(--ink);
    font-size: 60px;
    line-height: 1;
}

.page-title p {
    max-width: 760px;
    margin-top: 18px;
}

.page-title a {
    color: var(--accent-deep);
    font-weight: 760;
    text-underline-offset: 3px;
}

.legal-page {
    padding: 62px 40px 96px;
}

.legal-section {
    padding: 0;
}

.legal-section + .legal-section {
    margin-top: 24px;
}

.legal-section h2 {
    margin-bottom: 24px;
    color: var(--ink);
    font-size: 38px;
}

.legal-section h3 {
    margin: 34px 0 10px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.24;
}

.legal-section ul,
.legal-section ol {
    padding-left: 22px;
}

.notice,
.legal-note {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.legal-page p,
.legal-page li {
    font-size: 17px;
    line-height: 1.76;
}

.legal-page a {
    color: var(--accent-deep);
    font-weight: 760;
    text-underline-offset: 3px;
}

.legal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 38px;
    padding: 0;
    list-style: none;
}

.legal-summary li {
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(212, 201, 180, 0.86);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.78);
}

.legal-summary strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 16px;
}

.not-found {
    min-height: 100svh;
    display: grid;
    align-items: center;
}

.site-footer {
    padding: 38px 40px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--ink);
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes section-reveal {
    from {
        opacity: 0.72;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .section-inner,
    .legal-content {
        animation: section-reveal 560ms ease both;
        animation-timeline: view();
        animation-range: entry 0% cover 26%;
    }
}

@media (max-width: 1080px) {
    .site-header {
        padding-inline: 24px;
    }

    .site-nav {
        gap: 14px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .section h2 {
        font-size: 38px;
    }

    .process-list,
    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-list li {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        min-height: 210px;
    }

    .three-column {
        grid-template-columns: 1fr 1fr;
    }

    .before-after-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .reset-media {
        min-height: 560px;
    }

    .three-column > p {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 106px;
    }

    .site-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        min-height: var(--header-height);
        padding-block: 14px;
        padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        display: contents;
        width: 100%;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 2px;
        gap: 12px;
        font-size: 13px;
    }

    .language-toggle {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .hero {
        min-height: 90svh;
        background-image:
            linear-gradient(180deg, rgba(31, 26, 18, 0.12), rgba(31, 26, 18, 0.82)),
            var(--hero-image);
    }

    .hero-content {
        padding: 138px 20px 56px;
    }

    .hero h1,
    .page-title h1 {
        font-size: 42px;
        overflow-wrap: anywhere;
    }

    .hero-statement {
        font-size: 24px;
    }

    .hero-copy,
    .section-lede,
    .page-title p,
    .split p,
    .three-column p {
        font-size: 16px;
    }

    .section {
        padding: 60px 20px;
    }

    .section h2 {
        font-size: 33px;
    }

    .two-column,
    .split,
    .three-column,
    .before-after-layout,
    .metric-row,
    .legal-summary {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .process-list,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .process-list li {
        min-height: auto;
        padding-inline: 0;
    }

    .reset-media {
        display: grid;
        gap: 16px;
        min-height: auto;
    }

    .reset-frame {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
    }

    .reset-frame.is-before,
    .reset-frame.is-after {
        width: 100%;
        opacity: 1;
    }

    .three-column > p {
        grid-column: auto;
    }

    .task-preview {
        flex-direction: column;
    }

    .link-tile {
        min-height: auto;
    }

    .page-title {
        padding: 154px 20px 44px;
    }

    .legal-page {
        padding: 46px 20px 74px;
    }

    .legal-section h2 {
        font-size: 32px;
    }

    .legal-page p,
    .legal-page li {
        font-size: 16px;
        line-height: 1.72;
    }

    .site-footer {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
