:root {
    color-scheme: light;
    --ink: #14231c;
    --muted: #607067;
    --line: #dfe8e2;
    --paper: #f6faf7;
    --white: #fff;
    --green: #188b55;
    --green-dark: #0d6d40;
    --green-soft: #e4f5eb;
    --amber: #b56b14;
    --danger: #b42335;
    --shadow: 0 18px 50px rgba(20, 50, 34, .09);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(24, 139, 85, .28); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(223, 232, 226, .9); background: rgba(246, 250, 247, .92); backdrop-filter: blur(16px); }
.nav-shell { display: flex; min-height: 68px; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 18px; font-weight: 820; letter-spacing: -.03em; }
.site-brand:hover { text-decoration: none; }
.site-brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.site-nav { display: flex; gap: 24px; }
.site-nav a, .nav-login { color: #405047; font-size: 14px; font-weight: 650; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.button, button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; cursor: pointer; font-weight: 750; text-decoration: none; }
.button:hover, button:hover { text-decoration: none; }
.button.primary, button.primary { background: var(--green); color: #fff; }
.button.primary:hover, button.primary:hover { background: var(--green-dark); }
.button.ghost, button.ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.button.small { min-height: 36px; padding: 8px 14px; font-size: 13px; }
.button.full { width: 100%; }
.hero { overflow: hidden; padding: 92px 0 72px; background: radial-gradient(circle at 80% 15%, #d9f3e3 0, transparent 38%), linear-gradient(180deg, #f8fcf9, var(--paper)); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; margin-bottom: 18px; border: 1px solid #c7e8d4; border-radius: 999px; padding: 5px 10px; background: #effaf3; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(40px, 6vw, 70px); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.lead { max-width: 690px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 20px; }
.microcopy { color: var(--muted); font-size: 12px; }
.product-window { margin: 0; border: 1px solid #d7e5dc; border-radius: 20px; padding: 13px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.window-bar { display: flex; gap: 6px; padding: 4px 2px 13px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d7e2da; }
.real-screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #f4f7f5; }
.real-screenshot figcaption { padding: 10px 3px 1px; color: var(--muted); font-size: 11px; font-weight: 650; }
.screenshot-slider { position: relative; }
.screenshot-stage { display: grid; min-height: 320px; border: 1px solid var(--line); border-radius: 12px; background: #f4f7f5; }
.screenshot-slide { display: none; min-width: 0; height: 100%; margin: 0; padding: 9px; grid-template-rows: minmax(0, 1fr) auto; }
.screenshot-slide.active { display: grid; animation: screenshot-in .28s ease-out; }
.screenshot-slide img { align-self: center; display: block; width: 100%; max-height: 285px; object-fit: contain; border-radius: 8px; }
.screenshot-slide figcaption { padding: 8px 4px 1px; color: var(--muted); font-size: 11px; font-weight: 700; }
.screenshot-arrow { position: absolute; z-index: 2; top: 47%; display: grid; width: 34px; min-height: 34px; place-items: center; border: 1px solid rgba(20, 35, 28, .12); border-radius: 50%; padding: 0; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 5px 16px rgba(20, 50, 34, .12); font-size: 25px; font-weight: 400; line-height: 1; transform: translateY(-50%); }
.screenshot-arrow:hover { background: #fff; }
.screenshot-arrow.previous { left: 21px; }
.screenshot-arrow.next { right: 21px; }
.screenshot-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 1px; }
.screenshot-dots button { width: 7px; min-height: 7px; border: 0; border-radius: 999px; padding: 0; background: #c8d5cd; }
.screenshot-dots button.active { width: 22px; background: var(--green); }
@keyframes screenshot-in { from { transform: translateX(8px); } to { transform: none; } }
.window-body { display: grid; gap: 10px; border-radius: 13px; padding: 18px; background: #fff; }
.window-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
.window-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); font-weight: 850; }
.window-row strong, .window-row small { display: block; }
.window-row small, .section-copy, .feature-card p, .step p, .legal-copy { color: var(--muted); }
.status { border-radius: 999px; padding: 4px 8px; background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 800; }
.section { padding: 80px 0; }
.section.alt { background: #fff; }
.section-head { max-width: 690px; margin-bottom: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card, .price-card, .content-card, .auth-panel, .account-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(20, 50, 34, .04); }
.feature-card { padding: 24px; }
.feature-num { display: block; margin-bottom: 24px; color: var(--green); font-size: 12px; font-weight: 850; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 50px; counter-increment: step; }
.step::before { position: absolute; left: 0; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; content: counter(step); font-weight: 850; }
.plan-switch { display: flex; width: fit-content; margin: 0 auto 28px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; }
.plan-switch button { min-height: 36px; border: 0; border-radius: 999px; padding: 6px 16px; background: transparent; color: var(--muted); font-size: 14px; }
.plan-switch button.active { background: var(--ink); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px; }
.price-card.featured { border-color: #8acda7; box-shadow: var(--shadow); }
.price-card-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.price-card-head h3 { margin: 0; }
.price-card-head .badge { flex: 0 0 auto; }
.price { margin: 18px 0 4px; font-size: 40px; font-weight: 850; letter-spacing: -.045em; }
.price-lockup.is-sale .price { margin-top: 2px; }
.price-sale { display: flex; align-items: center; gap: 8px; min-height: 26px; margin-top: 16px; }
.price-was { color: #8aa094; font-size: 18px; font-weight: 650; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #d15b5b; }
.price-off { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; background: #e7f8ee; color: #0b7a43; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.price-lockup.compact { display: flex; flex-direction: column; align-items: flex-end; }
.price-lockup.compact .price { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.price-lockup.compact .price-sale { margin: 0 0 2px; justify-content: flex-end; }
.price-lockup.compact .price-was { font-size: 14px; }
.price small { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.price-charge { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.price-card ul { margin: 20px 0 26px; padding: 0; list-style: none; }
.price-card li { margin: 8px 0; color: var(--muted); }
.price-card li::before { margin-right: 8px; color: var(--green); content: "✓"; font-weight: 900; }
.price-card .button, .price-card form { margin-top: auto; }
.plan-offer[hidden] { display: none !important; }
.cta { border-radius: 24px; padding: 44px; background: var(--ink); color: #fff; }
.cta p { color: #b7c6bd; }
.page-hero { padding: 64px 0 34px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding-bottom: 70px; }
.content-card { padding: 25px; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; padding-bottom: 70px; }
.docs-nav { align-self: start; position: sticky; top: 90px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; }
.docs-nav a { border-radius: 8px; padding: 9px 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.docs-nav a.active { background: var(--green-soft); color: var(--green-dark); }
.docs-article { border: 1px solid var(--line); border-radius: 16px; padding: 34px; background: #fff; }
.docs-article ol { padding-left: 22px; }
.guide-screenshot { margin: 26px 0 28px; }
.guide-screenshot a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f4f7f5; box-shadow: 0 10px 30px rgba(20, 50, 34, .08); }
.guide-screenshot a:hover { border-color: #9bcfaf; }
.guide-screenshot img { display: block; width: 100%; height: auto; }
.guide-screenshot figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.note-box { margin-top: 24px; border-left: 3px solid var(--amber); border-radius: 8px; padding: 16px 18px; background: #fff8eb; }
.auth-wrap { display: grid; min-height: 70vh; place-items: center; padding: 54px 0; }
.auth-panel { width: min(100%, 470px); padding: 30px; }
.auth-panel h1 { font-size: 32px; }
label { display: block; margin: 0 0 15px; font-size: 13px; font-weight: 700; }
input, select { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid #cbd8d0; border-radius: 9px; padding: 9px 11px; background: #fff; color: var(--ink); }
input[type="checkbox"] { display: inline; width: 17px; min-height: 17px; margin: 0 7px 0 0; vertical-align: middle; accent-color: var(--green); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; }
.flash { margin-top: 18px; border: 1px solid; border-radius: 10px; padding: 12px 14px; }
.flash.success { border-color: #a8dfbd; background: var(--green-soft); color: var(--green-dark); }
.flash.error { border-color: #efc1c7; background: #fdecf0; color: var(--danger); }
.flash ul { margin: 5px 0 0; }
.account-shell { padding: 44px 0 72px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.account-head h1 { margin: 0; font-size: 38px; }
.referral-banner { display: grid; grid-template-columns: 1fr auto; align-items: stretch; overflow: hidden; margin: 0 0 20px; border: 1px solid #2e7655; border-radius: 14px; background: #123629; color: #fff; box-shadow: 0 14px 34px rgba(13, 59, 40, .16); }
.referral-banner > a { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; color: #fff; }
.referral-banner > a:hover { text-decoration: none; background: rgba(255,255,255,.035); }
.referral-banner strong, .referral-banner small { display: block; }
.referral-banner strong { color: #67e6a4; font-size: 16px; line-height: 1.25; }
.referral-banner small { margin-top: 2px; color: #b8d3c5; }
.referral-gift { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: rgba(103, 230, 164, .11); color: #67e6a4; }
.referral-gift svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.referral-banner form { display: flex; border-left: 1px solid rgba(103, 230, 164, .22); }
.referral-banner form button { min-width: 52px; border: 0; border-radius: 0; background: transparent; color: #67e6a4; font-size: 24px; font-weight: 400; }
.referral-banner form button:hover { background: rgba(255,255,255,.05); }
.account-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.account-card { padding: 22px; }
.account-card.full { grid-column: 1 / -1; }
.metric-list { display: grid; gap: 11px; margin: 20px 0; }
.metric { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.metric span { color: var(--muted); }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #edf2ef; color: var(--muted); font-size: 11px; font-weight: 800; }
.badge.active, .badge.completed { background: var(--green-soft); color: var(--green-dark); }
.badge.past_due, .badge.review { background: #fff1d8; color: #87520d; }
.badge.expired, .badge.revoked { background: #fdecf0; color: var(--danger); }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.key-box { border: 1px dashed #8acda7; border-radius: 12px; padding: 22px; background: var(--green-soft); text-align: center; }
.key-box code { display: block; margin: 14px 0; overflow-wrap: anywhere; color: var(--green-dark); font: 800 20px/1.5 ui-monospace, Consolas, monospace; }
.invite-note { margin-bottom: 16px; border: 1px solid #b9dfc8; border-radius: 10px; padding: 11px 13px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 700; }
.referral-hero { background: radial-gradient(circle at 76% 32%, #d6f1e1, transparent 34%); }
.referral-hero-grid { display: grid; grid-template-columns: 1fr 320px; align-items: center; gap: 70px; }
.referral-reward-card { display: grid; place-items: center; min-height: 280px; border: 1px solid #afd9bf; border-radius: 24px; padding: 34px; background: linear-gradient(145deg, #15392c, #0d6d40); color: #fff; box-shadow: var(--shadow); text-align: center; }
.referral-reward-card span { color: #b9d9c8; font-size: 13px; font-weight: 750; text-transform: uppercase; }
.referral-reward-card strong { color: #69e7a7; font-size: 94px; line-height: 1; letter-spacing: -.07em; }
.referral-reward-card small { font-size: 18px; font-weight: 800; }
.referral-paused { border-left: 3px solid var(--amber); padding-left: 12px; color: var(--muted); }
.referral-rules .content-grid { padding-bottom: 0; }
.referral-home-section { padding-top: 0; }
.referral-home { display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid #b8deca; border-radius: 24px; padding: 38px 42px; background: linear-gradient(135deg, #edf9f2, #fff); }
.referral-home h2 { max-width: 680px; }
.referral-home p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.referral-share-card { display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; gap: 32px; margin-bottom: 16px; border: 1px solid #add8be; border-radius: 20px; padding: 28px; background: linear-gradient(135deg, #123629, #0e5537); color: #fff; box-shadow: var(--shadow); }
.referral-share-card h2 { margin-bottom: 7px; color: #fff; }
.referral-share-card p { margin-bottom: 0; color: #b9d2c5; }
.referral-kicker { display: block; margin-bottom: 8px; color: #67e6a4; font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.referral-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.referral-copy input { margin: 0; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.referral-stats article { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.referral-stats span, .referral-stats small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.referral-stats strong { margin-right: 5px; font-size: 34px; line-height: 1.15; letter-spacing: -.04em; }
.referral-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.referral-history-head h2 { margin-bottom: 4px; }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 20px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 34px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid a { color: var(--muted); font-size: 13px; }
.footer-brand { margin-bottom: 6px; }
.footer-bottom { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 12px; }
@media (max-width: 860px) {
    .site-nav { display: none; }
    .hero { padding-top: 58px; }
    .hero-grid, .account-grid, .referral-hero-grid, .referral-share-card { grid-template-columns: 1fr; }
    .product-window { max-width: 600px; transform: none; }
    .feature-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-nav { position: static; grid-template-columns: repeat(2, 1fr); }
    .account-card.full { grid-column: auto; }
    .referral-stats { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .shell { width: min(100% - 24px, 1160px); }
    .nav-shell { min-height: 60px; gap: 12px; }
    .site-brand { font-size: 16px; }
    .site-brand img { width: 31px; height: 31px; }
    .nav-login { display: none; }
    h1 { font-size: 40px; }
    .hero { padding: 46px 0; }
    .section { padding: 58px 0; }
    .cta { padding: 28px; }
    .page-hero { padding-top: 42px; }
    .docs-nav { grid-template-columns: 1fr; }
    .docs-article { padding: 22px; }
    .account-head { align-items: flex-start; flex-direction: column; }
    .screenshot-stage { min-height: 280px; }
    .screenshot-slide img { max-height: 230px; }
    .screenshot-arrow.previous { left: 17px; }
    .screenshot-arrow.next { right: 17px; }
    .referral-banner > a { padding: 14px; }
    .referral-banner small { display: none; }
    .referral-home { align-items: flex-start; flex-direction: column; padding: 28px; }
    .referral-copy { grid-template-columns: 1fr; }
    .referral-stats { grid-template-columns: 1fr; }
    .referral-reward-card { min-height: 220px; }
    .referral-reward-card strong { font-size: 74px; }
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-social .footer-social-link { display: inline-flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.footer-social a.footer-social-link:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
a.footer-social-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.footer-social-link.is-inactive { color: var(--ink); opacity: .38; cursor: default; }
.discord-icon, .telegram-icon { width: 18px; height: 18px; display: block; flex: none; fill: currentColor; }
a.button.discord { gap: 8px; background: #5865F2; color: #fff; }
a.button.discord:hover { background: #4752C4; color: #fff; }
a.button.discord .discord-icon { width: 18px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .screenshot-slide.active { animation: none; }
}
