:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --ink: #1a2233;
    --muted: #5b6577;
    --line: #e6e9f0;
    --bg: #ffffff;
    --bg-soft: #f4f8fd;
    --success: #12b76a;
    --gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
    --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);
    --radius: 16px;
    --button-border-radius: 999px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', system-ui, -apple-system, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ---------- buttons ---------- */
.btn {
    padding: var(--space-2) var(--space-4);
}
.btn-primary:hover,
.btn-primary {
    background: var(--gradient);
}
/* ---------- nav ---------- */
/* จำกัดเฉพาะแถบเมนูบนสุดของหน้า ไม่ให้ไปโดน <nav> อื่นในเนื้อหา เช่น .doc-toc */
body > nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
body > nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.15rem;
}
.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 6px 14px -4px rgba(37, 99, 235, .5);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    font-size: .95rem;
    color: var(--muted);
}
.nav-links a.link {
    white-space: nowrap;
}
.nav-links a.link:hover {
    color: var(--ink);
}
/* ซ่อน text link ก่อนที่เมนู 6 รายการ + ปุ่มจะเบียดกันในความกว้างกลาง */
@media (max-width: 1040px) {
    .nav-links .link {
        display: none;
    }
}
/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 80% -10%, rgba(14, 165, 233, .10), transparent 60%),
        radial-gradient(800px 400px at 0% 0%, rgba(37, 99, 235, .10), transparent 55%);
    padding: 5rem 0 4rem;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .35;
    mask-image: radial-gradient(700px 400px at 50% 0%, #000, transparent 75%);
    pointer-events: none;
}
.hero .wrap {
    position: relative;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--primary);
    font-size: .85rem;
    font-weight: 500;
    padding: .35rem .9rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .18);
}
h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 1.2rem 0;
}
h1 .hl {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.hero-micro {
    margin-top: 1.4rem;
    font-size: .9rem;
    color: var(--muted);
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.hero-micro span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.check {
    color: var(--success);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9em;
}
/* ---------- hero entrance ---------- */
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-cta,
.hero .hero-micro {
    animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1 {
    animation-delay: .05s;
}
.hero .lead {
    animation-delay: .15s;
}
.hero .hero-cta {
    animation-delay: .25s;
}
.hero .hero-micro {
    animation-delay: .35s;
}
@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
/* ---------- scroll reveal (AnimationManager opt-in via data-animation-auto) ---------- */
[data-enter] {
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    [data-enter] {
        opacity: 1 !important;
    }
    .hero .eyebrow,
    .hero h1,
    .hero .lead,
    .hero .hero-cta,
    .hero .hero-micro {
        animation: none !important;
    }
}
/* ---------- stat strip ---------- */
.stats {
    background: var(--ink);
    color: #fff;
}
.stats .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2.2rem 20px;
}
.stat {
    text-align: center;
}
.stat b {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
}
.stat b,
.stat b .counter-value {
    background: linear-gradient(135deg, #93c5fd, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat > span {
    font-size: .9rem;
    opacity: .75;
}
@media (max-width: 680px) {
    .stats .wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
}
/* ---------- sections ---------- */
section.pad {
    padding: 5rem 0;
}
.section-head {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto 3rem;
}
.section-head .kicker {
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .04em;
}
h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    margin: .5rem 0;
    letter-spacing: -.01em;
}
.section-head p {
    color: var(--muted);
    font-size: 1.1rem;
}
.soft {
    background: var(--bg-soft);
}
/* ---------- pain ---------- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.pain {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pain:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.pain .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: .8rem;
}
.pain h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .3rem;
}
.pain p {
    color: var(--muted);
    font-size: .95rem;
}
/* ---------- steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 1.6rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
}
.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: .8rem 0 .5rem;
}
.step p {
    color: var(--muted);
}
/* ---------- features ---------- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.feat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feat .ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(14, 165, 233, .12));
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover .ic {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 18px -6px rgba(37, 99, 235, .45);
}
.feat h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.feat p {
    color: var(--muted);
    font-size: .95rem;
}
/* ---------- proof / domains ---------- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.domain {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.domain-top {
    padding: 1.3rem 1.4rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: .8rem;
}
.domain-top .ic {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}
.domain {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.domain:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.domain-top h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.domain-top small {
    color: var(--muted);
    font-weight: 400;
}
.domain-body {
    padding: 1.2rem 1.4rem;
}
.domain-metrics {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
}
.domain-metrics div {
    font-size: .85rem;
    color: var(--muted);
}
.domain-metrics b {
    display: block;
    font-size: 1.4rem;
    color: var(--ink);
    font-weight: 700;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.chip {
    font-size: .8rem;
    background: rgba(37, 99, 235, .08);
    color: var(--primary-dark);
    padding: .25rem .7rem;
    border-radius: 999px;
}
/* ---------- demo band ---------- */
.demo-band {
    background: var(--gradient);
    color: #fff;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.demo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 50% -30%, rgba(255, 255, 255, .25), transparent 70%);
    pointer-events: none;
}
.demo-band h2 {
    color: #fff;
    position: relative;
}
.demo-band p {
    opacity: .9;
    max-width: 54ch;
    margin: .8rem auto 1.8rem;
    position: relative;
}
.demo-band .btn {
    position: relative;
}
.btn-white {
    background: #fff;
    color: var(--primary-dark);
}
.btn-white:hover {
    transform: translateY(-2px);
}
/* ---------- pricing ---------- */
.stage-tabs {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
}
.stage-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .8rem 1.4rem;
    min-width: 180px;
}
.stage-badge b {
    font-size: 1.05rem;
}
.stage-badge span {
    font-size: .85rem;
    color: var(--muted);
}
.stage-badge .num {
    color: var(--primary);
    font-weight: 700;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    align-items: stretch;
}
.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.plan.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.plan.featured .tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: .78rem;
    font-weight: 500;
    padding: .3rem 1rem;
    border-radius: 999px;
}
.plan h3 {
    font-size: 1.25rem;
    font-weight: 600;
}
.plan .desc {
    color: var(--muted);
    font-size: .92rem;
}
.plan .price {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
}
.plan .price small {
    font-size: .95rem;
    font-weight: 400;
    color: var(--muted);
}
.plan .price-note {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.3rem;
}
.plan ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding-left: 0;
}
.plan li {
    display: flex;
    gap: .6rem;
    font-size: .95rem;
    color: var(--ink);
}
.plan li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}
.plan li.muted {
    color: var(--muted);
}
.plan li.muted::before {
    content: "–";
    color: var(--muted);
}
.plan .btn {
    margin-top: auto;
    width: 100%;
}
.price-foot {
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
    margin-top: 2rem;
}
/* ---------- trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.trust-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.trust-list li {
    display: flex;
    gap: 1rem;
}
.trust-list .ic {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(18, 183, 106, .12);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}
.trust-list h3 {
    font-size: 1.05rem;
    font-weight: 600;
}
.trust-list p {
    color: var(--muted);
    font-size: .95rem;
}
.trust-card {
    background: var(--ink);
    color: #fff;
    border-radius: 20px;
    padding: 2.2rem;
}
.trust-card .big {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
}
.trust-card p {
    opacity: .8;
    margin-top: .6rem;
}
.trust-card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin: 1.4rem 0;
}
/* ---------- final cta ---------- */
.final {
    text-align: center;
}
.final h2 {
    max-width: 20ch;
    margin: 0 auto 1rem;
}
.final p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.6rem;
    align-items: start;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
}
.contact-card .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-card label {
    display: block;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1rem;
}
.contact-card .form-control {
    display: block;
    margin-top: .35rem;
}
.contact-card input,
.contact-card textarea {
    width: 100%;
    font-family: inherit;
}
.contact-card textarea {
    resize: vertical;
    min-height: 96px;
}
.contact-card .btn {
    width: 100%;
    margin-top: .4rem;
}
.contact-card .comment {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    margin-top: .8rem;
}
.contact-thanks {
    text-align: center;
    padding: 1.5rem .5rem;
}
.contact-thanks-ic {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(18, 183, 106, .12);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 2rem;
}
.contact-thanks h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.contact-thanks p {
    color: var(--muted);
}
.contact-aside {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
}
.contact-aside h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.contact-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.6rem;
}
.contact-benefits li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}
.contact-benefits .ic {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.contact-benefits b {
    display: block;
    font-size: .98rem;
    font-weight: 600;
}
.contact-benefits span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}
.contact-aside .btn {
    width: 100%;
}
/* ---------- use cases ("สร้างระบบอะไรได้บ้าง") ---------- */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.usecase {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.usecase:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: var(--shadow-md);
}
.usecase .ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}
.usecase h3 {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
}
.usecase p {
    color: var(--muted);
    font-size: .94rem;
    margin: 0;
}
.usecase .chips {
    margin-top: auto;
    padding-top: .4rem;
}
.usecase-foot {
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
    margin-top: 2.2rem;
}
.usecase-foot a {
    color: var(--primary);
    font-weight: 500;
}
/* ---------- faq ---------- */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open],
.faq-item:hover {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary h3 {
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.5;
}
.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    transition: transform .18s ease;
}
.faq-item[open] summary::after {
    content: '\2212';
    transform: rotate(180deg);
}
.faq-item .faq-body {
    padding: 0 1.4rem 1.3rem;
    color: var(--muted);
    font-size: .96rem;
}
.faq-item .faq-body p + p,
.faq-item .faq-body ul,
.faq-item .faq-body ul + p {
    margin-top: .7rem;
}
.faq-item .faq-body ul {
    padding-left: 1.2rem;
}
.faq-item .faq-body a {
    color: var(--primary);
    font-weight: 500;
}
.faq-item .faq-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .08em .4em;
    white-space: nowrap;
}
/* ---------- document pages (about / privacy / terms) ---------- */
.doc-hero {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 3.4rem 0 3rem;
    text-align: center;
}
.doc-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    margin: .5rem 0;
}
.doc-hero p {
    color: var(--muted);
    max-width: 62ch;
    margin: 0 auto;
}
.doc-meta {
    display: block;
    margin-top: 1rem;
    font-size: .88rem;
    color: var(--muted);
}
.doc {
    max-width: 800px;
    margin: 0 auto;
}
.doc section + section {
    margin-top: 2.6rem;
}
.doc h2 {
    font-size: 1.45rem;
    margin-bottom: .8rem;
}
.doc h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 1.4rem 0 .5rem;
}
.doc p {
    color: var(--muted);
    margin-bottom: .8rem;
}
.doc ul,
.doc ol {
    color: var(--muted);
    padding-left: 1.3rem;
    margin-bottom: .8rem;
}
.doc li {
    margin-bottom: .45rem;
}
.doc strong {
    color: var(--ink);
    font-weight: 500;
}
.doc a {
    color: var(--primary);
    font-weight: 500;
}
.doc-note {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: 1.4rem 0;
}
.doc-note p:last-child {
    margin-bottom: 0;
}
.doc-toc {
    position: static;
    z-index: auto;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    margin-bottom: 2.6rem;
}
.doc-toc b {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: .6rem;
}
.doc-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}
.doc-toc a {
    color: var(--muted);
    font-weight: 400;
}
.doc-toc a:hover {
    color: var(--primary);
}
/* ---------- footer ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
    color: var(--muted);
    font-size: .9rem;
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
footer .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}
footer a:hover {
    color: var(--ink);
}
footer .copy-right {
    min-width: 100%;
}
/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .pain-grid,
    .steps,
    .feat-grid,
    .domain-grid,
    .usecase-grid,
    .price-grid {
        grid-template-columns: 1fr 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    footer .copy-right {
        text-align: center;
    }
}
@media (max-width: 620px) {
    .pain-grid,
    .steps,
    .feat-grid,
    .domain-grid,
    .usecase-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }
    .doc-hero {
        padding: 2.6rem 0 2.4rem;
    }
    section.pad {
        padding: 3.4rem 0;
    }
    .demo-band {
        padding: 2rem 1.4rem;
    }
}
/* ---------- contact responsive ---------- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .contact-card .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-card {
        padding: 1.5rem 1.2rem;
    }
    .nav-links {
        gap: .6rem;
    }
    .nav-auth {
        padding: .55rem 1rem;
        font-size: .9rem;
    }
}