/* TW Form Guard — guard.storefixkit.com
   Tokens, type scale, header/footer, buttons and cards mirror
   https://www.storefixkit.com/assets/storefixkit-site.css (v=20260717-3)
   so the page reads as the same product family. */
:root {
    color-scheme: light;
    --ink: #14201c;
    --muted: #65736f;
    --line: #d9e1dd;
    --paper: #f7f8f3;
    --panel: #ffffff;
    --accent: #1f8a70;
    --accent-dark: #12624f;
    --amber: #c58a2c;
    --danger: #a33a2f;
    --dark-panel: #101a17;
    --dark-line: #24362f;
    --dark-muted: #adc4ba;
    --tint: #edf5f1;
    --tint-soft: #eef7f3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

:target { scroll-margin-top: 24px; }

a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(31, 138, 112, 0.34);
    outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-weight: 720;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 243, 0.92);
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0;
}

.brand-product {
    padding-left: 10px;
    border-left: 1px solid var(--line);
    color: var(--accent-dark);
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.nav a { text-decoration: none; }

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.lang-toggle {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.lang-toggle:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 56px;
    align-items: center;
    min-height: calc(88svh - 72px);
    padding: 48px 32px 42px;
}

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

.hero-copy { max-width: 600px; }

.product-hero { grid-template-columns: minmax(0, 0.98fr) minmax(400px, 1.02fr); }

.product-hero h1 {
    max-width: 720px;
    font-size: 64px;
    line-height: 1.02;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: 22px;
    font-size: 84px;
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: 52px;
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.2;
}

.lead {
    max-width: 560px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 19px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 720;
    text-decoration: none;
    touch-action: manipulation;
}

.button.secondary {
    background: transparent;
    color: var(--ink);
}

.button:hover { transform: translateY(-1px); }

.button[disabled],
.button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 740;
    text-underline-offset: 4px;
}

.product-status {
    max-width: 590px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.product-status b { color: var(--accent-dark); }

.bench-line {
    max-width: 590px;
    margin: 0 0 26px;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    background: var(--tint-soft);
    color: var(--ink);
    font-size: 15px;
}

.bench-line a { color: var(--accent-dark); font-weight: 740; }

/* dark metrics panel (storefixkit .product-visual pattern) */
.product-visual {
    width: min(680px, 100%);
    margin: 0 auto;
    border: 1px solid #22332d;
    border-radius: 8px;
    background: var(--dark-panel);
    color: #edf7f1;
    box-shadow: 0 24px 70px rgba(15, 24, 21, 0.22);
    overflow: hidden;
}

.visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--dark-muted);
    font-size: 13px;
}

.visual-top b { color: #f1c676; }

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.visual-cell {
    min-height: 154px;
    padding: 20px;
    background: var(--dark-panel);
}

.visual-cell strong {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    color: #fff;
}

.metric {
    font-size: 42px;
    line-height: 1;
    font-weight: 780;
}

.metric small {
    display: block;
    margin-top: 8px;
    color: var(--dark-muted);
    font-size: 13px;
    font-weight: 500;
}

.visual-list {
    display: grid;
    gap: 10px;
    color: #dcebe4;
    font-size: 14px;
}

.visual-list span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-list i {
    font-style: normal;
    color: #f1c676;
    font-weight: 700;
}

.visual-list i.pass { color: #7fd3b5; }

.product-visual > p {
    margin: 0;
    padding: 15px 20px 17px;
    color: var(--dark-muted);
    font-size: 13px;
}

/* ---------- truth strip ---------- */
.truth-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 max(32px, calc((100% - 1160px) / 2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.truth-strip div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-height: 104px;
    padding: 25px 24px;
    border-right: 1px solid var(--line);
}

.truth-strip div:first-child { border-left: 1px solid var(--line); }

.truth-strip strong {
    color: var(--accent-dark);
    font-size: 36px;
    line-height: 1;
    white-space: nowrap;
}

.truth-strip span {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- sections ---------- */
.section {
    padding: 72px 32px;
    border-top: 1px solid var(--line);
}

.section .lead { max-width: 640px; }

.section-band {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: 72px;
    align-items: start;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.step {
    padding-top: 18px;
    border-top: 2px solid var(--ink);
}

.step span {
    display: block;
    margin-bottom: 18px;
    color: var(--amber);
    font-weight: 760;
}

.step p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.notice-band {
    margin-top: 34px;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: var(--tint-soft);
}

.notice-band p { margin: 0; color: var(--ink); }

.notice-band p + p { margin-top: 10px; }

.notice-band.warn {
    border-left-color: var(--amber);
    background: #fbf4e6;
}

.notice-band.danger {
    border-left-color: var(--danger);
    background: #f9ecea;
}

/* ---------- pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.price-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: inset 0 4px 0 var(--accent);
}

.price-card .eyebrow { margin-bottom: 10px; }

.price {
    margin: 18px 0;
    font-size: 42px;
    font-weight: 780;
    line-height: 1;
}

.price span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 560;
}

.price-alt {
    margin: -8px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.features {
    display: grid;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    color: var(--muted);
    list-style: none;
}

.features li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 1px;
}

.price-card .actions { margin-top: auto; }

.price-card .button { flex: 1 1 auto; }

.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.pay-methods li {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pay-methods li b { color: var(--ink); }

.checkout-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.checkout-status.error { color: var(--danger); }

.quota-note {
    margin: 24px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: 15px;
}

.quota-note b { color: var(--ink); }

/* ---------- compare table / data table ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.data-table th,
.data-table td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--ink);
    font-size: 14px;
}

.data-table td { color: var(--muted); }

.data-table td b,
.data-table td code { color: var(--ink); }

.data-table .yes { color: var(--accent-dark); font-weight: 740; }

.data-table .no { color: var(--muted); }

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #e9efeb;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

pre {
    max-width: 100%;
    margin: 18px 0 28px;
    padding: 16px;
    overflow-x: auto;
    border-radius: 6px;
    background: var(--dark-panel);
    color: #e6f0eb;
    font-size: 13px;
    line-height: 1.55;
}

pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: pre;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 2px solid var(--ink); margin-top: 34px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    position: relative;
    padding: 18px 42px 18px 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 17px;
    font-weight: 720;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 14px;
    right: 4px;
    font-size: 24px;
    font-weight: 520;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
    max-width: 720px;
    padding: 0 38px 18px 0;
    color: var(--muted);
}

/* ---------- closing band ---------- */
.closing-band { background: var(--tint); }

.closing-band-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 44px;
}

.closing-band h2 {
    max-width: 760px;
    margin-bottom: 0;
}

/* ---------- footer ---------- */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 0 max(32px, calc((100% - 1160px) / 2));
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: #e6f0eb;
}

.site-footer > span { font-weight: 760; }

.site-footer > span small {
    margin-left: 10px;
    color: var(--dark-muted);
    font-weight: 500;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer a {
    color: #bdd0c7;
    text-decoration: none;
}

.site-footer a:hover { color: #fff; }

/* ---------- content pages (docs / legal) ---------- */
.page-shell { padding: 54px 32px 88px; }

.page-head,
.content-grid,
.content-body {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.page-head { padding: 36px 0 28px; }

.page-head h1 {
    max-width: 860px;
    font-size: 58px;
    line-height: 1.02;
}

.page-head .lead { max-width: 720px; margin-bottom: 0; }

.page-meta {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 44px;
    align-items: start;
}

.content-body {
    max-width: 820px;
    min-width: 0;
}

.content-body section { margin-bottom: 40px; }

.content-body h2,
.content-body h3 { scroll-margin-top: 24px; }

.content-body h2 { font-size: 34px; margin-bottom: 14px; }

.content-body h3 { margin-top: 26px; }

.content-body p,
.content-body li {
    color: var(--muted);
    font-size: 17px;
}

.content-body strong,
.content-body h2,
.content-body h3 { color: var(--ink); }

.content-body a {
    color: var(--accent-dark);
    font-weight: 700;
}

.content-body ul,
.content-body ol { padding-left: 22px; }

.content-body li + li { margin-top: 6px; }

.toc {
    position: sticky;
    top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.toc strong {
    display: block;
    margin-bottom: 12px;
}

.toc a {
    display: block;
    padding: 7px 0;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.toc a:hover { color: var(--ink); }

.step-list,
.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.step-list li,
.check-list li {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.step-list li + li,
.check-list li + li { margin-top: 0; }

.step-list b,
.check-list b {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
}

.zh-block {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 2px solid var(--ink);
}

/* ---------- thanks / status / 404 ---------- */
.success-shell {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 72px - 82px);
    padding: 48px 24px;
}

.success-panel {
    width: min(720px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.success-panel h1 { font-size: 58px; line-height: 1.02; }

.success-panel p,
.success-panel li { color: var(--muted); }

.success-panel ol { padding-left: 22px; }

.success-panel li + li { margin-top: 6px; }

.success-panel h3 { margin-top: 26px; }

.success-panel .actions { margin-top: 24px; }

.success-panel a:not(.button) {
    color: var(--accent-dark);
    font-weight: 700;
}

.license-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f3f6f1;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-weight: 720;
}

.status-note { color: var(--muted); }

.status-note.error { color: var(--danger); }

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9efeb;
    color: var(--ink);
    font-size: 14px;
    font-weight: 740;
}

.status-chip::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
}

.status-chip.ok { background: #e3f3ec; color: var(--accent-dark); }
.status-chip.ok::before { background: var(--accent); }
.status-chip.warn { background: #fbf1dd; color: #7a5313; }
.status-chip.warn::before { background: var(--amber); }
.status-chip.down { background: #f9e4e1; color: var(--danger); }
.status-chip.down::before { background: var(--danger); }

.status-list {
    display: grid;
    gap: 0;
    margin: 22px 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.status-list li {
    display: grid;
    grid-template-columns: minmax(160px, 0.5fr) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.status-list li span { color: var(--muted); }

.status-list li code { font-size: 13px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
    .button:hover { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy,
    .product-visual,
    .price-card,
    .step,
    .success-panel {
        animation: rise 520ms ease both;
    }
    .product-visual { animation-delay: 90ms; }
    .price-card:nth-child(2) { animation-delay: 70ms; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
    .site-header {
        flex-wrap: wrap;
        gap: 10px;
        min-height: auto;
        padding: 12px 20px 10px;
    }
    .nav {
        display: flex;
        order: 2;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 0 2px;
        border-top: 1px solid var(--line);
        font-size: 13px;
        scrollbar-width: none;
    }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { white-space: nowrap; }
    .lang-toggle { margin-left: auto; }
    .brand-product { display: none; }
    .hero,
    .product-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 52px 20px 42px;
    }
    h1 { font-size: 50px; }
    .product-hero h1 { font-size: 40px; }
    h2 { font-size: 38px; }
    .page-head h1,
    .success-panel h1 { font-size: 40px; }
    .truth-strip,
    .section-band,
    .workflow,
    .pricing-grid,
    .content-grid,
    .visual-grid { grid-template-columns: 1fr; }
    .truth-strip { padding: 0 20px; }
    .truth-strip div,
    .truth-strip div:first-child {
        min-height: 78px;
        padding: 18px 0;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }
    .truth-strip div:last-child { border-bottom: 0; }
    .section-band { gap: 38px; }
    .closing-band-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }
    .section { padding: 54px 20px; }
    .price-card { min-height: auto; }
    .license-box {
        align-items: stretch;
        flex-direction: column;
    }
    .page-shell { padding: 38px 20px 64px; }
    .toc {
        position: static;
        order: -1;
    }
    .data-table {
        display: block;
        overflow-x: auto;
    }
    .status-list li { grid-template-columns: 1fr; gap: 4px; }
}
