/*
 * SiteLedger public homepage V2.
 * Presentation only: language selection, support chat, handoff, storage,
 * sound feedback, payloads and API calls remain owned by index.js.
 */

html.home-v2 {
    --home-bg: #f5f6f8;
    --home-panel: rgba(255, 255, 255, .92);
    --home-panel-solid: #fff;
    --home-line: rgba(15, 23, 42, .09);
    --home-line-strong: rgba(15, 23, 42, .15);
    --home-text: #1d1d1f;
    --home-muted: #6e6e73;
    --home-brand: #168743;
    --home-brand-hover: #107638;
    --home-brand-soft: #eaf7ee;
    --home-blue-soft: #edf5ff;
    --home-shadow: 0 24px 70px rgba(15, 23, 42, .09),
        0 3px 12px rgba(15, 23, 42, .045);
    min-width: 320px;
    color-scheme: light;
    background: var(--home-bg);
}

html.home-v2 *,
html.home-v2 *::before,
html.home-v2 *::after {
    box-sizing: border-box;
}

html.home-v2 body {
    margin: 0;
    overflow-x: hidden;
    color: var(--home-text);
    background:
        radial-gradient(circle at 0 0, rgba(70, 196, 115, .12), transparent 33rem),
        radial-gradient(circle at 100% 18%, rgba(76, 139, 245, .09), transparent 34rem),
        var(--home-bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html.home-v2 a {
    color: inherit;
    text-decoration: none;
}

html.home-v2 .shell {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding-right: 28px;
    padding-left: 28px;
}

html.home-v2 header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--home-line);
    background: rgba(250, 250, 252, .78);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .76);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
}

html.home-v2 .topbar {
    min-height: 74px;
}

html.home-v2 .brand-row {
    gap: 13px;
}

html.home-v2 .brand {
    gap: 10px;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: -.025em;
}

html.home-v2 .brand-logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, .10));
}

html.home-v2 .language-select,
html.home-v2 nav a {
    min-height: 40px;
    border: 1px solid var(--home-line-strong);
    border-radius: 11px;
    color: var(--home-text);
    background: rgba(255, 255, 255, .82);
    font: inherit;
    font-size: 14px;
    font-weight: 620;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease,
        background-color 160ms ease, transform 160ms ease;
}

html.home-v2 .language-select {
    padding: 0 34px 0 12px;
}

html.home-v2 nav a {
    padding: 0 17px;
}

html.home-v2 .language-select:hover,
html.home-v2 nav a:hover {
    border-color: rgba(15, 23, 42, .24);
    background: #fff;
    transform: translateY(-1px);
}

html.home-v2 .language-select:focus-visible,
html.home-v2 nav a:focus-visible,
html.home-v2 .button:focus-visible,
html.home-v2 .support-fab:focus-visible,
html.home-v2 .support-panel button:focus-visible,
html.home-v2 #support-message:focus-visible {
    border-color: var(--home-brand);
    box-shadow: 0 0 0 4px rgba(22, 135, 67, .14);
    outline: none;
}

html.home-v2 nav a.primary {
    border-color: var(--home-brand);
    color: #fff;
    background: var(--home-brand);
    box-shadow: 0 7px 18px rgba(22, 135, 67, .17);
}

html.home-v2 nav a.primary:hover {
    border-color: var(--home-brand-hover);
    background: var(--home-brand-hover);
}

html.home-v2 main {
    padding-top: 0;
    padding-bottom: 96px;
}

html.home-v2 .hero {
    position: relative;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: clamp(44px, 6vw, 82px);
    min-height: min(780px, calc(100vh - 74px));
    padding: 92px 0 86px;
}

html.home-v2 .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--home-brand);
    font-size: 13px;
    font-weight: 720;
    letter-spacing: .02em;
}

html.home-v2 .eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-brand);
    box-shadow: 0 0 0 5px rgba(22, 135, 67, .11);
    content: "";
}

html.home-v2 h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(45px, 4.3vw, 64px);
    font-weight: 740;
    letter-spacing: -.055em;
    line-height: 1.04;
}

html.home-v2 .lead {
    max-width: 730px;
    margin-top: 24px;
    color: var(--home-muted);
    font-size: 18px;
    line-height: 1.72;
}

html.home-v2 .actions {
    gap: 11px;
    margin-top: 32px;
}

html.home-v2 .button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--home-line-strong);
    border-radius: 12px;
    color: var(--home-text);
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 2px 5px rgba(15, 23, 42, .03);
    font-size: 14px;
    font-weight: 660;
    transition: border-color 160ms ease, box-shadow 160ms ease,
        background-color 160ms ease, transform 160ms ease;
}

html.home-v2 .button:hover {
    border-color: rgba(15, 23, 42, .24);
    background: #fff;
    transform: translateY(-2px);
}

html.home-v2 .button.primary {
    border-color: var(--home-brand);
    color: #fff;
    background: var(--home-brand);
    box-shadow: 0 10px 24px rgba(22, 135, 67, .19);
}

html.home-v2 .button.primary:hover {
    border-color: var(--home-brand-hover);
    background: var(--home-brand-hover);
}

html.home-v2 .product-visual {
    position: relative;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 28px;
    background: var(--home-panel);
    box-shadow: var(--home-shadow);
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
}

html.home-v2 .product-visual::after {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(70, 196, 115, .10);
    content: "";
    pointer-events: none;
}

html.home-v2 .visual-head {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--home-line);
}

html.home-v2 .visual-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.018em;
}

html.home-v2 .pill {
    padding: 5px 10px;
    border: 1px solid rgba(22, 135, 67, .10);
    border-radius: 999px;
    color: #0d7137;
    background: var(--home-brand-soft);
    font-size: 11px;
    font-weight: 690;
}

html.home-v2 .metric-grid {
    gap: 10px;
}

html.home-v2 .metric {
    min-height: 94px;
    padding: 15px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #fafafa;
}

html.home-v2 .metric span {
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 560;
}

html.home-v2 .metric strong {
    margin-top: 7px;
    font-size: 27px;
    font-weight: 720;
    letter-spacing: -.035em;
}

html.home-v2 .workflow {
    gap: 8px;
    margin-top: 13px;
}

html.home-v2 .step {
    position: relative;
    min-height: 45px;
    padding: 0 13px 0 34px;
    border: 1px solid var(--home-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
}

html.home-v2 .step::before {
    position: absolute;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-brand);
    content: "";
}

html.home-v2 .step span {
    font-size: 13px;
    font-weight: 650;
}

html.home-v2 .step small {
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 560;
}

html.home-v2 main > section {
    margin-top: 0;
    padding-top: 94px;
}

html.home-v2 main > .hero + section {
    padding-top: 80px;
    border-top: 1px solid var(--home-line);
}

html.home-v2 h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(31px, 3vw, 44px);
    font-weight: 720;
    letter-spacing: -.045em;
    line-height: 1.12;
}

html.home-v2 .section-lead {
    max-width: 760px;
    margin-top: 16px;
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.68;
}

html.home-v2 .loop {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-top: 30px;
    padding: 15px;
    border: 1px solid rgba(22, 135, 67, .08);
    border-radius: 22px;
    background: rgba(234, 247, 238, .72);
}

html.home-v2 .loop span {
    position: relative;
    min-height: 68px;
    padding: 0 11px;
    border: 1px solid rgba(22, 135, 67, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 650;
}

html.home-v2 .loop span:not(:last-child)::after {
    position: absolute;
    right: -8px;
    z-index: 2;
    color: var(--home-brand);
    content: "›";
    font-size: 20px;
    font-weight: 500;
}

html.home-v2 .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

html.home-v2 .item {
    position: relative;
    min-height: 184px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 20px;
    background: var(--home-panel);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
    transition: border-color 170ms ease, box-shadow 170ms ease,
        transform 170ms ease;
}

html.home-v2 .item::before {
    display: block;
    width: 32px;
    height: 4px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--home-brand);
    content: "";
}

html.home-v2 .item:nth-child(2n)::before {
    background: #4486df;
}

html.home-v2 .item:hover {
    border-color: rgba(22, 135, 67, .14);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
    transform: translateY(-3px);
}

html.home-v2 .item h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.025em;
}

html.home-v2 .item p {
    margin-top: 10px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
}

html.home-v2 .notice {
    margin-top: 24px;
    padding: 24px 26px;
    border: 1px solid rgba(22, 135, 67, .09);
    border-radius: 20px;
    color: #315f43;
    background: var(--home-brand-soft);
    font-size: 15px;
    line-height: 1.72;
}

html.home-v2 .pricing-panel {
    gap: 38px;
    padding: 42px;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(70, 196, 115, .25), transparent 22rem),
        #17191c;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .16);
}

html.home-v2 .pricing-panel h2,
html.home-v2 .pricing-panel p {
    color: #fff;
}

html.home-v2 .pricing-panel p {
    max-width: 720px;
    margin-top: 15px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.7;
}

html.home-v2 .pricing-panel .button:not(.primary) {
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

html.home-v2 .pricing-panel .button:not(.primary):hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .14);
}

html.home-v2 .support-fab {
    right: 24px;
    bottom: 24px;
    min-width: 60px;
    height: 60px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: var(--home-brand);
    box-shadow: 0 16px 34px rgba(22, 135, 67, .28);
    transition: box-shadow 160ms ease, background-color 160ms ease,
        transform 160ms ease;
}

html.home-v2 .support-fab:hover {
    background: var(--home-brand-hover);
    box-shadow: 0 20px 42px rgba(22, 135, 67, .34);
    transform: translateY(-3px);
}

html.home-v2 .support-overlay {
    padding: 24px;
    background: rgba(15, 18, 23, .42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.home-v2 .support-panel {
    width: min(560px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 32px 90px rgba(15, 23, 42, .24);
    backdrop-filter: saturate(150%) blur(22px);
    -webkit-backdrop-filter: saturate(150%) blur(22px);
}

html.home-v2 .support-head {
    padding: 22px 24px;
    border-bottom: 1px solid var(--home-line);
    background: rgba(250, 250, 252, .78);
}

html.home-v2 .support-head h2 {
    font-size: 22px;
    letter-spacing: -.03em;
}

html.home-v2 .support-head p {
    margin-top: 6px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.55;
}

html.home-v2 .support-close,
html.home-v2 .support-minimize {
    border: 1px solid var(--home-line);
    border-radius: 10px;
    color: var(--home-muted);
    background: #f4f4f6;
}

html.home-v2 .support-body {
    padding: 0;
}

html.home-v2 .support-log {
    min-height: 280px;
    max-height: min(390px, calc(100vh - 350px));
    padding: 22px 24px;
    background: #f7f7f8;
}

html.home-v2 .support-bubble {
    max-width: 84%;
    padding: 11px 14px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
    line-height: 1.55;
}

html.home-v2 .support-bubble.assistant {
    border-bottom-left-radius: 5px;
}

html.home-v2 .support-bubble.visitor {
    margin-left: auto;
    border-color: rgba(22, 135, 67, .12);
    border-bottom-right-radius: 5px;
    color: #164d2a;
    background: var(--home-brand-soft);
}

html.home-v2 .support-input-row {
    gap: 10px;
    padding: 18px 20px 10px;
    background: #fff;
}

html.home-v2 .support-input-row textarea {
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--home-line-strong);
    border-radius: 14px;
    color: var(--home-text);
    background: #fafafa;
    font: inherit;
    line-height: 1.45;
}

html.home-v2 .support-status {
    min-height: 24px;
    padding: 0 20px;
    color: var(--home-muted);
    background: #fff;
    font-size: 12px;
}

html.home-v2 .support-actions {
    padding: 0 20px 18px;
    background: #fff;
}

html.home-v2 footer {
    border-top: 1px solid var(--home-line);
    color: var(--home-muted);
    background: rgba(255, 255, 255, .58);
    font-size: 12px;
    line-height: 1.65;
}

html.home-v2 footer .shell {
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (max-width: 980px) {
    html.home-v2 .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 74px;
    }

    html.home-v2 .product-visual {
        width: min(620px, 100%);
        transform: none;
    }

    html.home-v2 .loop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html.home-v2 .loop span:nth-child(3)::after {
        display: none;
    }

    html.home-v2 .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.home-v2 .pricing-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    html.home-v2 .shell {
        padding-right: 16px;
        padding-left: 16px;
    }

    html.home-v2 .topbar {
        align-items: stretch;
        min-height: 0;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    html.home-v2 .brand-row {
        justify-content: space-between;
        width: 100%;
    }

    html.home-v2 nav {
        width: 100%;
    }

    html.home-v2 nav a {
        width: 100%;
    }

    html.home-v2 .hero {
        gap: 42px;
        padding-top: 58px;
        padding-bottom: 62px;
    }

    html.home-v2 h1 {
        font-size: 39px;
    }

    html.home-v2 .lead {
        font-size: 16px;
    }

    html.home-v2 .actions {
        display: grid;
    }

    html.home-v2 .button {
        width: 100%;
    }

    html.home-v2 .product-visual {
        padding: 16px;
        border-radius: 22px;
    }

    html.home-v2 .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.home-v2 .metric {
        min-height: 86px;
    }

    html.home-v2 main > section {
        padding-top: 72px;
    }

    html.home-v2 .loop {
        grid-template-columns: 1fr;
    }

    html.home-v2 .loop span:not(:last-child)::after {
        right: auto;
        bottom: -13px;
        left: 50%;
        content: "⌄";
        transform: translateX(-50%);
    }

    html.home-v2 .loop span:nth-child(3)::after {
        display: block;
    }

    html.home-v2 .grid {
        grid-template-columns: 1fr;
    }

    html.home-v2 .item {
        min-height: 0;
    }

    html.home-v2 .pricing-panel {
        padding: 28px 24px;
        border-radius: 22px;
    }

    html.home-v2 .pricing-actions {
        width: 100%;
    }

    html.home-v2 .support-overlay {
        align-items: flex-end;
        padding: 0;
    }

    html.home-v2 .support-panel {
        width: 100%;
        max-height: min(88vh, 760px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    html.home-v2 .support-log {
        max-height: calc(88vh - 330px);
    }

    html.home-v2 .support-input-row {
        grid-template-columns: 1fr;
    }

    html.home-v2 .support-fab {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    html.home-v2 header,
    html.home-v2 .product-visual,
    html.home-v2 .item,
    html.home-v2 .support-panel {
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    html.home-v2 .support-overlay {
        background: rgba(0, 0, 0, .65);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    html.home-v2 {
        --home-line: rgba(0, 0, 0, .22);
        --home-line-strong: rgba(0, 0, 0, .42);
        --home-muted: #4f4f54;
    }

    html.home-v2 .product-visual,
    html.home-v2 .item,
    html.home-v2 .loop,
    html.home-v2 .notice,
    html.home-v2 .support-panel {
        border-color: currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.home-v2 *,
    html.home-v2 *::before,
    html.home-v2 *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html.home-v2 .product-visual,
    html.home-v2 .button:hover,
    html.home-v2 .item:hover,
    html.home-v2 .support-fab:hover,
    html.home-v2 nav a:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    html.home-v2 header,
    html.home-v2 .language-select,
    html.home-v2 nav a,
    html.home-v2 .button,
    html.home-v2 .product-visual,
    html.home-v2 .metric,
    html.home-v2 .step,
    html.home-v2 .loop,
    html.home-v2 .loop span,
    html.home-v2 .item,
    html.home-v2 .notice,
    html.home-v2 .pricing-panel,
    html.home-v2 .support-fab,
    html.home-v2 .support-panel,
    html.home-v2 .support-bubble,
    html.home-v2 #support-message {
        border: 1px solid CanvasText;
        color: CanvasText;
        background: Canvas;
        box-shadow: none;
        forced-color-adjust: auto;
    }

    html.home-v2 nav a.primary,
    html.home-v2 .button.primary,
    html.home-v2 .support-fab,
    html.home-v2 .support-bubble.visitor {
        color: HighlightText;
        background: Highlight;
    }
}
