/* CatchCMS official theme: paper-led editorial system, no build step. */
:root {
    --ink: #202021;
    --ink-soft: #55545d;
    --muted: #6b6972;
    --paper: #fff;
    --paper-soft: #f4f5f6;
    --cream: #fbf3f0;
    --lime: #caff45;
    --purple: #7e66d7;
    --pink: #f348a5;
    --mint: #62d6b3;
    --line: #dfdfe3;
    --line-dark: #4b4b4f;
    --dark: #29292a;
    --danger: #a12323;
    --serif: Georgia, "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --container: 1120px;
    --gutter: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 var(--sans);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

body.is-navigating::before {
    content: "";
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    width: 35%;
    height: 3px;
    background: var(--purple);
    animation: navigation-progress 1s ease-in-out infinite alternate;
}

@keyframes navigation-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(285%); }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid #7357dc; outline-offset: 4px; }

.container {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 9px 14px;
    transform: translateY(-180%);
    background: var(--dark);
    color: #fff;
}

.skip-link:focus { transform: translateY(0); }
.muted, .hint { color: var(--muted); }
.mono, .metric { font-family: var(--mono); }
.metric { color: #6b5aad; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* Header and recursive navigation */
.site-header {
    position: relative;
    z-index: 40;
    height: 78px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 94%);
}

.page--home .site-header {
    position: absolute;
    inset: 0 0 auto;
    border-bottom-color: transparent;
    background: transparent;
}

.header-inner { display: flex; align-items: center; gap: 30px; height: 100%; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font: 700 25px/1 var(--serif);
    letter-spacing: -.035em;
}

.brand > span:last-child {
    overflow-wrap: anywhere;
}

.brand-mark {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    transform: rotate(-3deg);
    border: 2px solid currentColor;
    border-radius: 8px 6px 9px;
    background: var(--lime);
    font: 800 15px/1 var(--sans);
}

.brand-logo { width: auto; max-width: min(180px, 32vw); max-height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-item { position: relative; }

.nav-item > a {
    display: block;
    padding: 10px 0;
    color: #424149;
    font-size: 14px;
}

.nav-item > a:hover,
.nav-item.is-active > a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.nav-sub {
    position: absolute;
    top: calc(100% - 2px);
    left: -14px;
    width: max-content;
    min-width: 190px;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgb(33 28 42 / 14%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub { visibility: visible; opacity: 1; transform: none; }
.nav-sub .nav { flex-direction: column; align-items: stretch; gap: 1px; }
.nav-sub .nav-item > a { padding: 8px 10px; border-radius: 5px; white-space: normal; }
.nav-sub .nav-item > a:hover,
.nav-sub .nav-item.is-active > a { background: var(--cream); text-decoration: none; }
.nav-sub .nav-sub { top: 0; left: calc(100% + 8px); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-left: auto;
}

.lang-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 180px;
    font-size: 12px;
}

.lang-switch a { padding: 3px 6px; border-radius: 4px; color: var(--muted); }
.lang-switch a:hover,
.lang-switch a[aria-current] { background: rgb(126 102 215 / 12%); color: #4f3c96; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* Buttons */
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--dark);
    border-radius: 7px;
    background: var(--dark);
    color: var(--lime);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

a.button::after { content: "→"; margin-left: 10px; font-size: 19px; font-weight: 400; }
.button:hover { transform: translateY(-2px); border-color: #111; background: #111; }
.button.is-sm { min-height: 39px; padding-inline: 17px; font-size: 14px; }
.button.is-ghost { border-color: #bdbdc2; background: transparent; color: var(--ink); }
.button.is-ghost:hover { border-color: var(--dark); background: var(--cream); }
.button.is-light { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.button.is-light:hover { border-color: #dcff87; background: #dcff87; }
.button.is-outline-light { border-color: #858589; background: transparent; color: #fff; }
.button.is-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.button.is-block { width: 100%; }
.button:disabled,
.button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
    position: relative;
    display: grid;
    min-height: 650px;
    place-items: center;
    overflow: hidden;
    padding: 118px 0 96px;
    background:
        radial-gradient(circle at 20% 15%, rgb(255 255 255 / 95%), transparent 26%),
        radial-gradient(circle at 82% 58%, rgb(247 219 227 / 52%), transparent 32%),
        var(--cream);
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto 0 3px;
    height: 26px;
    background: radial-gradient(circle, #fff 1.2px, transparent 1.6px) 0 0 / 5px 5px;
    mask-image: linear-gradient(transparent, #000);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 28px;
    background: #fff;
    clip-path: polygon(0 46%, 2% 66%, 4% 42%, 6% 72%, 9% 49%, 11% 61%, 14% 33%, 16% 53%, 19% 38%, 22% 66%, 25% 44%, 28% 58%, 31% 31%, 34% 51%, 38% 67%, 41% 43%, 44% 55%, 47% 36%, 50% 60%, 54% 40%, 57% 68%, 60% 46%, 63% 56%, 67% 29%, 70% 51%, 74% 41%, 77% 61%, 80% 37%, 83% 58%, 87% 44%, 90% 65%, 94% 39%, 97% 53%, 100% 40%, 100% 100%, 0 100%);
}

.hero-inner { position: relative; z-index: 3; max-width: 1060px; }
.eyebrow,
.feature-kicker { color: #6656a6; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { margin-bottom: 15px; color: #656476; }
.hero .eyebrow span { color: #a23578; }

.hero h1 {
    max-width: 1050px;
    margin-inline: auto;
    font: 400 clamp(52px, 6.1vw, 80px)/1.03 var(--serif);
    letter-spacing: -.047em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.hero .lead,
.hero-lede {
    max-width: 830px;
    margin: 34px auto 0;
    color: var(--ink);
    font: 400 clamp(19px, 2vw, 26px)/1.42 var(--serif);
    text-wrap: balance;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 29px; }
.hero-actions .is-outline-light { border-color: #77727a; color: var(--ink); }
.hero-actions .is-outline-light:hover { background: rgb(255 255 255 / 60%); }

/* Alternating product story */
.feature-list { padding: 90px 0 30px; }
.feature-list > .container { display: grid; gap: 72px; }

.feature {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr);
    gap: clamp(58px, 8vw, 110px);
    min-height: 570px;
    align-items: center;
}

.feature.is-reversed { grid-template-columns: minmax(500px, 1.14fr) minmax(0, .86fr); }
.feature.is-reversed .feature-copy { order: 2; }
.feature.is-reversed .product-figure { order: 1; }
.feature:first-child .feature-copy { align-self: start; padding-top: 54px; }
.feature-kicker { margin-bottom: 16px; }

.feature h2,
.developer h2 {
    max-width: 500px;
    margin-bottom: 24px;
    font: 600 clamp(38px, 3.4vw, 49px)/1.03 var(--serif);
    letter-spacing: -.04em;
}

.feature-copy > p:not(.feature-kicker),
.developer-copy > p:not(.feature-kicker) { max-width: 500px; color: var(--ink-soft); font-size: 18px; }
.feature-copy > .button { margin-top: 28px; }
.feature-list-points { margin-top: 26px; list-style: none; }
.feature-list-points li { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.feature-list-points li::before { content: "↳"; margin-right: 10px; color: #6650be; }

.feature-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.feature-compact__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: start;
    padding: 25px 22px 25px 0;
    border-bottom: 1px solid var(--line);
}

.feature-compact__item:nth-child(odd) { margin-right: 30px; }
.feature-compact__item:nth-child(even) { padding-left: 30px; }
.feature-compact__item:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.feature-compact__index { color: #6856ab; font: 12px/1.8 var(--mono); }
.feature-compact__item strong { display: block; font: 600 22px/1.2 var(--serif); }
.feature-compact__item small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature-compact__arrow { padding-top: 1px; color: #6856ab; font-size: 20px; }

.product-figure,
.code-paper { position: relative; min-width: 0; margin: 0; padding: 34px 18px; }

.color-paper,
.code-paper::before {
    position: absolute;
    inset: 9% 0 8% 5%;
    transform: rotate(3deg);
    border-radius: 11px;
    background: var(--purple);
    transition: transform .25s ease;
}

.color-paper { content: ""; }
.product-figure:hover .color-paper { transform: rotate(1deg) translateY(-3px); }
.color-paper.paper-pink { inset: 12% 5% 8% 0; transform: rotate(-3deg); background: var(--pink); }
.color-paper.paper-mint { inset: 7% 0 12% 5%; transform: rotate(2.5deg); background: var(--mint); }

.product-image {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 16 / 10;
    border: 1px solid #d8d9df;
    border-radius: 3px;
    background: #f7f7f8;
    box-shadow: 0 19px 34px rgb(33 28 42 / 15%);
    object-fit: cover;
}

.ui-caption { position: relative; z-index: 3; display: block; margin-top: 14px; color: #74717a; font-size: 11px; text-align: right; }

/* Developer code story */
.developer { padding: 120px 0 125px; }

.developer-shell {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
    gap: clamp(58px, 8vw, 110px);
    align-items: center;
}

.developer-steps { display: grid; gap: 0; margin-top: 30px; list-style: none; }

.developer-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 14px;
}

.developer-steps li:last-child { border-bottom: 1px solid var(--line); }
.developer-steps span { color: #6856ab; font: 12px/1.8 var(--mono); }

.code-paper::before { content: ""; background: var(--pink); }

.code-window {
    position: relative;
    z-index: 2;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #24252a;
    box-shadow: 0 20px 38px rgb(35 30 42 / 20%);
}

.code-head { padding: 12px 18px; border-bottom: 1px solid #3b3c43; color: #bfc1c9; font: 11px var(--mono); }

.code-window pre {
    margin: 0;
    overflow-x: auto;
    padding: 25px 22px 28px;
    color: #e8e9ed;
    font: clamp(10px, .95vw, 12px)/1.75 var(--mono);
    tab-size: 2;
}

.code-tag { color: #c4b3ff; }
.code-attr { color: #ff93c9; }
.code-string { color: #d6ff90; }
.code-comment { color: #9a9da7; }

/* Shared content sections */
.section { padding: 90px 0; }
.section.compact { padding-block: 48px; }
.section.paper, .paper { background: var(--paper-soft); }
.section-spaced { margin-top: 64px; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.section-head > div { max-width: 680px; }
.section-head > p { max-width: 520px; color: var(--ink-soft); }

.section-title {
    margin-top: 12px;
    font: 600 clamp(36px, 4vw, 50px)/1.06 var(--serif);
    letter-spacing: -.035em;
}

.lead,
.page-lead { max-width: 760px; color: var(--ink-soft); font-size: 18px; }
.page-lead { margin-top: 18px; }
.section-more { margin-top: 34px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(42px, 7vw, 88px);
    align-items: center;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }

/* Content cards remain restrained list objects. */
.card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: transform .2s ease, border-color .2s ease;
}

a.card:hover { transform: translateY(-3px); border-color: #8f8e94; }
.card img { width: 100%; aspect-ratio: 16 / 10; border-radius: 3px; object-fit: cover; }
.card h3 { font: 600 23px/1.2 var(--serif); }
.card p { color: var(--muted); font-size: 14px; }
.card-more { margin-top: auto; color: #5945a3; font-size: 14px; font-weight: 700; }

.card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    transform: rotate(-2deg);
    border-radius: 7px;
    background: rgb(126 102 215 / 14%);
    color: #513e99;
}

.card-icon svg { width: 21px; height: 21px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; border-block: 1px solid var(--line); background: var(--line); }
.fact { padding: 25px 22px; background: #fff; }
.fact strong { display: block; font: 600 31px/1 var(--serif); }
.fact span { color: var(--muted); font-size: 14px; }
.stats-section { background: #fff; }
.checklist { display: grid; gap: 13px; margin-top: 26px; list-style: none; }
.checklist li { position: relative; padding-left: 27px; color: var(--ink-soft); }

.checklist li::before {
    content: "✓";
    position: absolute;
    top: 2px;
    left: 0;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }

.plan {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    padding: 29px 25px;
    border: 1px solid #d8d8dc;
    border-radius: 8px;
    background: #fff;
}

.plan.is-featured { border-color: var(--purple); box-shadow: 7px 7px 0 rgb(126 102 215 / 18%); }
.plan-tag { color: #624eae; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { font: 600 22px/1.2 var(--serif); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.plan-amount { font: 600 38px/1 var(--serif); letter-spacing: -.03em; }
.plan-period, .plan-origin, .plan-fit { color: var(--muted); font-size: 14px; }
.plan-origin { text-decoration: line-through; }
.plan ul { display: grid; gap: 9px; margin-bottom: 8px; list-style: none; }
.plan li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }

.plan li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
}

.plan .button { margin-top: auto; }

/* Dark conversion band */
.cta-band { position: relative; padding: 104px 0; background: var(--dark); color: #fff; }

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(circle, #c9c9cd 1px, transparent 1.2px);
    background-size: 9px 9px;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.cta-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-band h2 { max-width: 700px; font: 500 clamp(40px, 5vw, 62px)/1.05 var(--serif); letter-spacing: -.04em; }
.cta-band .eyebrow { margin-bottom: 16px; color: var(--lime); }
.cta-band p { max-width: 650px; margin-top: 18px; color: #d0d0d4; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq-section { position: relative; padding: 100px 0 108px; background: var(--paper-soft); }

.faq-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 58px;
    opacity: .25;
    background-image: radial-gradient(circle, #777 1px, transparent 1.3px);
    background-size: 8px 8px;
    mask-image: linear-gradient(#000, transparent);
}

.faq-section .container { position: relative; max-width: 900px; }
.faq-section .section-head { justify-content: center; text-align: center; }
.faq { display: grid; gap: 9px; max-width: 900px; }
.faq details { background: #e5e7e9; }

.faq summary {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 15px 58px 15px 20px;
    list-style: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 14px; right: 19px; font: 22px var(--serif); }
.faq details[open] summary::after { content: "−"; }
.faq-body { padding: 0 58px 22px 20px; color: #55575f; font-size: 14px; }
.faq-body > * + * { margin-top: .8em; }

/* Inner pages and editorial content */
.page-head {
    padding: 70px 0 54px;
    border-bottom: 1px solid #e5dcda;
    background: radial-gradient(circle at 84% 42%, rgb(247 219 227 / 48%), transparent 30%), var(--cream);
}

.page-head .section-title { max-width: 900px; font-size: clamp(43px, 6vw, 68px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 19px; color: var(--muted); font-size: 13px; }
.breadcrumb > * + *::before { content: "/"; margin-right: 7px; color: #aaa7ad; }
.breadcrumb a:hover { color: #513e99; }

.content-cover { margin-top: 40px; }
.article-cover { width: 100%; max-height: 620px; border-radius: 4px; object-fit: cover; }
.article-date { margin-top: 16px; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(200px, 240px);
    justify-content: space-between;
    gap: clamp(52px, 8vw, 110px);
    align-items: start;
}

.prose { max-width: 720px; min-width: 0; font-size: 17px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2em; font: 600 32px/1.2 var(--serif); }
.prose h3 { margin-top: 1.7em; font: 600 23px/1.25 var(--serif); }
.prose p, .prose li { color: #414047; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose a { color: #513e99; text-decoration: underline; text-underline-offset: 3px; }
.prose code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-soft); font: .9em var(--mono); }
.prose pre { overflow-x: auto; padding: 20px; border-radius: 4px; background: #24252a; color: #eeeef1; }
.prose pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--purple); color: var(--muted); }
.prose img { border-radius: 4px; }
.article-aside { display: grid; gap: 18px; }
.aside-panel { padding: 22px 0; border-block: 1px solid var(--line); }
.aside-panel h3 { margin-bottom: 9px; font: 600 19px var(--serif); }
.aside-panel p { color: var(--muted); font-size: 14px; }
.aside-panel .button { margin-top: 18px; }
.aside-action { margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-list a { padding: 5px 10px; border: 1px solid #c9c8ce; border-radius: 999px; color: #4d4b53; font-size: 13px; }
.tag-list a:hover { border-color: var(--purple); color: #513e99; }
.empty { padding: 42px 24px; border: 1px dashed #bbb9c0; color: var(--muted); text-align: center; }
.empty .hint { margin-top: 8px; font-size: 13px; }
.result-count { margin-bottom: 26px; color: var(--muted); }

/* Search and pagination */
.search-form { display: flex; gap: 10px; max-width: 600px; margin-top: 26px; }
.search-form__input { min-width: 0; flex: 1; padding: 11px 14px; border: 1px solid #bdbbc1; border-radius: 6px; background: #fff; }
.search-form__input:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px rgb(126 102 215 / 17%); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 42px; }
.pager a, .pager span { min-width: 40px; padding: 8px 11px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; }
.pager a:hover, .pager .is-current { border-color: var(--ink); color: #513e99; }
.pager .is-disabled { opacity: .5; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field { display: grid; min-width: 0; gap: 7px; }
.field.is-wide { grid-column: 1 / -1; }
.field > label, .field > .option { font-size: 14px; font-weight: 700; }
.req { color: var(--danger); }

.field input,
.field textarea,
.field select {
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #c9c8ce;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { min-height: 132px; resize: vertical; }
.field select { cursor: pointer; }
.field input[type="file"] { padding: 8px; }

.field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 11px;
    border: 0;
    border-radius: 4px;
    background: var(--dark);
    color: var(--lime);
    font-weight: 700;
    cursor: pointer;
}

.field input[type="checkbox"],
.field input[type="radio"] { width: 18px; height: 18px; padding: 0; accent-color: #6b54c0; }

.field input:focus,
.field textarea:focus,
.field select:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px rgb(126 102 215 / 17%); }
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid { border-color: var(--danger); }
.field .hint { min-height: 1em; font-size: 13px; }
.js-portal-field-error:not(:empty) { color: var(--danger); font-weight: 650; }
.option-list { display: flex; flex-wrap: wrap; gap: 11px 20px; padding-block: 4px; }
.option { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.captcha-refresh { min-width: 122px; padding: 0; overflow: hidden; border: 1px solid #c9c8ce; border-radius: 6px; background: #fff; }
.captcha-refresh img { width: 120px; height: 44px; object-fit: contain; }
.form-note { color: var(--muted); font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 5px; font-size: 14px; }
.alert.is-error { border: 1px solid #efb2b2; background: #fff2f2; color: #871d1d; }

/* Supporting home sections */
section[id] { scroll-margin-top: 70px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line); }
.demo-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 21px 18px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.demo-card:hover { background: #fff; }
.demo-card__name { font-weight: 700; }
.demo-card__go { color: #5945a3; font-size: 13px; white-space: nowrap; }
.log-list { max-width: 900px; border-left: 2px solid var(--line); list-style: none; }
.log-item { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 22px 0 22px 27px; }

.log-item::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -7px;
    width: 12px;
    height: 12px;
    border: 2px solid #aaa8af;
    border-radius: 50%;
    background: #fff;
}

.log-item:first-child::before { border-color: var(--purple); }
.log-item__meta { display: grid; align-content: start; justify-items: start; gap: 8px; }
.log-item__badge { padding: 3px 8px; border-radius: 999px; background: rgb(126 102 215 / 13%); color: #513e99; font: 11px var(--mono); }
.log-item__body h3 { font: 600 19px var(--serif); }
.log-item__body p { margin-top: 7px; color: var(--muted); font-size: 14px; }

/* Home sales contact */
.sales-contact {
    position: fixed;
    z-index: 30;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.sales-contact__desktop,
.sales-contact details {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 36px rgb(33 28 42 / 14%);
}

.sales-contact__desktop { display: none; }

.sales-contact summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 13px;
    list-style: none;
    color: #4f3c96;
    font-size: 13px;
    font-weight: 750;
}

.sales-contact summary::-webkit-details-marker { display: none; }
.sales-contact summary:focus-visible { outline-offset: -3px; }
.sales-contact summary::after { content: "+"; margin-left: 8px; font-size: 18px; line-height: 1; }
.sales-contact details[open] summary::after { content: "−"; }

.sales-contact__body {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 2px 18px 18px;
    text-align: center;
}

.sales-contact__body strong { font: 600 17px/1.25 var(--serif); }
.sales-contact__body img { width: 128px; aspect-ratio: 1; padding: 6px; background: #fff; object-fit: contain; }
.sales-contact__body p { max-width: 148px; color: var(--muted); font-size: 12px; line-height: 1.45; text-wrap: balance; }

@media (min-width: 721px) {
    .sales-contact__desktop { display: block; width: 176px; padding: 18px; }
    .sales-contact details { display: none; }
    .sales-contact__body { padding: 0; }
}

/* Footer */
.site-footer { padding: 68px 0 38px; background: #19191a; color: #b9b9bc; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 1fr)); gap: 38px; }
.site-footer .brand { color: #fff; white-space: normal; }
.site-footer h4 { margin-bottom: 15px; color: #fff; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.footer-desc { max-width: 420px; margin-top: 13px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #38383a; font-size: 12px; }

/* Progressive reveal: readable before JS and after enhancement failure. */
.js .reveal { opacity: 1; transform: none; }
.js .reveal.is-visible { animation: reveal-in .55s ease both; }
.js .hero-inner > * { animation: hero-in .7s cubic-bezier(.2, .75, .25, 1) both; }
.js .hero-inner > *:nth-child(2) { animation-delay: .08s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .14s; }
.js .hero-inner > *:nth-child(4) { animation-delay: .2s; }

@keyframes reveal-in {
    from { opacity: 0; transform: translateY(18px); }
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 960px) {
    .feature,
    .feature.is-reversed,
    .developer-shell,
    .split { grid-template-columns: minmax(0, 1fr); }

    .feature,
    .developer-shell { max-width: 720px; margin-inline: auto; }
    .feature { min-height: 0; gap: 38px; padding-block: 56px; }
    .feature-list > .container { gap: 0; }
    .feature:first-child .feature-copy { align-self: auto; padding-top: 0; }
    .feature.is-reversed .feature-copy { order: 1; }
    .feature.is-reversed .product-figure { order: 2; }
    .developer-shell { gap: 38px; }
    .feature-compact { grid-template-columns: minmax(0, 1fr); }
    .feature-compact__item:nth-child(odd) { margin-right: 0; }
    .feature-compact__item:nth-child(even) { padding-left: 0; }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 50px; }
    .article-aside { max-width: 720px; }

    .js ul.nav[data-nav] {
        position: absolute;
        top: 78px;
        right: var(--gutter);
        left: var(--gutter);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px 18px 18px;
        border: 1px solid #ded4d1;
        border-radius: 7px;
        background: #fffaf8;
        box-shadow: 0 14px 30px rgb(45 35 34 / 12%);
    }

    .js ul.nav[data-nav].is-open { display: flex; }
    ul.nav[data-nav] > .nav-item { width: 100%; }
    ul.nav[data-nav] > .nav-item > a { padding: 10px 0; }

    .nav-sub,
    .nav-sub .nav-sub {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0 0 3px 13px;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-sub .nav { display: flex; }
    .js .nav-toggle { display: grid; }
    .header-actions > .button { display: none; }
    html:not(.js) .site-header { height: auto; }
    html:not(.js) .page--home .site-header { position: relative; background: var(--cream); }
    html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
    html:not(.js) ul.nav[data-nav] { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
    html:not(.js) ul.nav[data-nav] > .nav-item > a { padding: 8px 0; }
    .footer-grid { grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(100px, 1fr)); gap: 28px; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; }
    .site-header { height: 68px; }
    .js ul.nav[data-nav] { top: 68px; }
    .header-inner { gap: 12px; }
    .brand { font-size: 21px; }
    .brand-mark { flex-basis: 25px; width: 25px; height: 25px; font-size: 13px; }
    .lang-switch { max-width: 116px; justify-content: flex-end; font-size: 11px; }
    .hero { min-height: 620px; padding: 104px 0 86px; }
    .hero h1 { font-size: clamp(42px, 12vw, 60px); }
    .hero .lead, .hero-lede { margin-top: 26px; font-size: 19px; }
    .hero-actions { margin-top: 26px; }
    .button { min-height: 50px; padding-inline: 20px; }
    .feature-list { padding-top: 54px; }
    .feature { padding-block: 54px; }
    .feature h2, .developer h2 { font-size: clamp(34px, 10vw, 44px); }
    .feature-copy > p:not(.feature-kicker),
    .developer-copy > p:not(.feature-kicker) { font-size: 16px; }
    .product-figure, .code-paper { padding: 23px 10px; }
    .color-paper,
    .color-paper.paper-pink,
    .color-paper.paper-mint,
    .code-paper::before { inset: 9% 0; }
    .product-image { min-height: 0; }
    .developer { padding: 76px 0 90px; }
    .code-window pre { padding: 20px 16px; font-size: 10px; }
    .section, .faq-section { padding-block: 72px; }
    .section-title { font-size: clamp(34px, 10vw, 44px); }
    .page-head { padding-block: 54px 44px; }
    .page-head .section-title { font-size: clamp(39px, 12vw, 54px); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .field.is-wide { grid-column: auto; }
    .cta-band { padding-block: 80px; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .cta-band h2 { font-size: clamp(38px, 11vw, 50px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .log-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .log-item__meta { grid-auto-flow: column; align-items: center; justify-content: start; }
    .sales-contact { right: max(12px, env(safe-area-inset-right)); }
    .sales-contact details[open] { width: min(180px, calc(100vw - 32px)); }
}

@media (max-width: 390px) {
    .hero h1 { font-size: 42px; }
    .hero .lead, .hero-lede { font-size: 18px; }
    .hero-actions, .cta-actions { width: 100%; flex-direction: column; }
    .hero-actions .button, .cta-actions .button { width: 100%; }
    .captcha-row { grid-template-columns: minmax(0, 1fr); }
    .captcha-refresh { width: max-content; }
    .search-form { align-items: stretch; flex-direction: column; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal,
    .js .reveal.is-visible,
    .js .hero-inner > * { opacity: 1; transform: none; }
}
