/* ==========================================================================
   Bì Cuốn A Xíu – storefront styles (tông màu đồng bộ POS/Admin) (mobile-first, no framework)
   ========================================================================== */

:root {
    /* Đồng bộ với admin/assets/admin.css + màu xanh lá của logo A Xíu */
    --c-bg: #fffaf5;          /* kem nhạt (giống --cream của POS) */
    --c-surface: #ffffff;
    --c-alt: #fff0e7;         /* admin --surface-strong */
    --c-ink: #242b36;         /* admin --text */
    --c-muted: #647084;       /* admin --muted */
    --c-line: #e5e8ed;        /* admin --border */
    --c-primary: #bd471f;     /* admin --primary */
    --c-primary-dark: #963619;/* admin --primary-dark */
    --c-green: #1f5f1f;       /* xanh lá logo A Xíu */
    --c-green-dark: #0b3d0d;  /* viền logo */
    --c-gold: #ed7246;        /* admin --accent */
    --c-dark: #242b36;
    --c-success-bg: #e6f2e6;
    --c-error: #bc3535;       /* admin --danger */
    --c-error-bg: #fbe9e7;

    --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; /* admin --font */
    --font-head: var(--font-body);

    --radius: 16px;           /* admin --radius */
    --radius-sm: 10px;        /* admin --radius-sm */
    --shadow: 0 6px 22px rgb(150 54 25 / 8%), inset 0 1px 0 rgb(255 255 255 / 70%);
    --container: 1120px;
    --gutter: 16px;
    --mobile-cta-h: 64px;
    --shadow-lg: 0 18px 48px rgb(150 54 25 / 18%), inset 0 1px 0 rgb(255 255 255 / 60%);
    --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    padding-bottom: var(--mobile-cta-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--c-ink); text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.06; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--c-primary); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { background: var(--c-alt); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.mt-lg { margin-top: 2.5rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-dark); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }

.eyebrow {
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--c-green); margin-bottom: .6em;
}
.lead { font-size: 1.125rem; color: var(--c-muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    transition: background-color .18s var(--ease-out), color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-ghost { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn-ghost:hover { background: var(--c-ink); color: #fff; }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-bg); color: var(--c-primary-dark); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--c-primary); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.btn-row.center { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 250, 245, .94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand img { border-radius: 50%; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--c-primary); }
.brand-text small { color: var(--c-muted); font-size: .78rem; }

.nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--c-ink); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--c-bg);
    border-bottom: 1px solid var(--c-line); padding: 8px var(--gutter) 20px;
    display: none;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; text-decoration: none; color: var(--c-ink); font-weight: 500; border-bottom: 1px solid var(--c-line); }
.site-nav a[aria-current="page"] { color: var(--c-primary); }
.header-cta { margin-top: 16px; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--c-alt); }
.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head p:last-child { color: var(--c-muted); }
.split { display: grid; gap: 32px; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; background:
    radial-gradient(circle at 85% 20%, rgba(237, 114, 70, .18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(31, 95, 31, .10), transparent 40%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-media img { margin: 0 auto; max-width: 460px; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.trust-row { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-row li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 10px; font-size: .8rem; display: flex; flex-direction: column; }
.trust-row strong { font-size: .9rem; }
.trust-row span { color: var(--c-muted); }
.hero-landing { padding: 56px 0; }

.page-hero { padding: 48px 0 32px; background: linear-gradient(180deg, var(--c-alt), var(--c-bg)); }
.page-hero-compact { padding: 32px 0 8px; }
.page-hero-story { padding: 64px 0 40px; background:
    radial-gradient(circle at 50% 0, rgba(237, 114, 70, .2), transparent 60%), var(--c-bg); }

/* ---------- Values ---------- */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.values li { background: var(--c-surface); border-left: 4px solid var(--c-gold); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.values span { color: var(--c-muted); font-size: .95rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; gap: 20px; }
.product-card { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; scroll-margin-top: 80px; }
.product-media { position: relative; background: var(--c-alt); aspect-ratio: 4 / 3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--c-primary); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: .2em; }
.product-serves { color: var(--c-green); font-weight: 600; font-size: .9rem; margin-bottom: .5em; }
.product-desc { color: var(--c-muted); font-size: .95rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--c-line); }
.price { font-size: 1.3rem; font-weight: 700; color: var(--c-primary); margin: 0; }
.price small { font-size: .8rem; color: var(--c-muted); font-weight: 400; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: .35em; font-size: .95rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15em; height: 1.15em; background: url("../icons/kubai/duotone/circle-check.svg") center / contain no-repeat; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.process-step { background: var(--c-surface); border-radius: var(--radius); padding: 20px; position: relative; box-shadow: var(--shadow); }
.process-num { position: absolute; top: 14px; right: 16px; font-family: var(--font-head); font-size: 2rem; color: var(--c-line); font-weight: 700; }
.process-icon { display: block; margin-bottom: 8px; }
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--c-muted); font-size: .93rem; margin: 0; }

/* ---------- Story timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--c-gold), var(--c-primary)); }
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 48px; display: grid; gap: 16px; }
.timeline-item::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-bg); border: 3px solid var(--c-primary); }
.timeline-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-alt); }
.timeline-label { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 6px; }
.timeline-copy p { color: var(--c-muted); font-size: 1.05rem; }

.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 24px; }
.person { margin: 0; text-align: center; max-width: 220px; }
.person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--c-surface); box-shadow: var(--shadow); }
.person figcaption { display: flex; flex-direction: column; }
.person span { color: var(--c-muted); font-size: .9rem; }

/* ---------- Videos ---------- */
.video-grid { display: grid; gap: 20px; margin-bottom: 24px; }
.video-card { margin: 0; }
.video-card figcaption { font-weight: 600; margin-top: 8px; }
.video-placeholder {
    aspect-ratio: 9 / 16; max-height: 520px; border-radius: var(--radius); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: #fff;
    background: linear-gradient(160deg, var(--c-green-dark), var(--c-primary-dark) 60%, var(--c-primary));
}
.video-placeholder .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 1.5rem; }
.video-placeholder:hover { color: #fff; filter: brightness(1.1); }
.tiktok-player { position: relative; aspect-ratio: 9 / 16; max-height: 620px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow); }
.tiktok-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tiktok-fallback { display: inline-block; margin-top: 6px; color: var(--c-muted); }
.tiktok-facade {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; padding: 20px; text-align: center; text-decoration: none; color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(237, 114, 70, .45), transparent 45%),
        linear-gradient(165deg, var(--c-green-dark), var(--c-primary-dark) 62%, var(--c-primary));
}
.tiktok-facade:hover, .tiktok-facade:focus-visible { color: #fff; }
.tiktok-facade-handle { position: absolute; top: 14px; left: 16px; font-size: .85rem; font-weight: 600; opacity: .9; }
.tiktok-facade-play {
    width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
    background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
    transition: transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.tiktok-facade:hover .tiktok-facade-play { transform: scale(1.06); background: rgba(255, 255, 255, .28); }
.tiktok-facade:active .tiktok-facade-play { transform: scale(.97); }
.tiktok-facade-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; max-width: 22ch; text-wrap: balance; }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.chip { flex: none; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 999px; padding: 8px 14px; font: 500 .9rem var(--font-body); cursor: pointer; color: var(--c-ink); }
.chip.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
[data-category][hidden] { display: none; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 16px; }
.testimonial { margin: 0; background: var(--c-surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.testimonial p { font-family: var(--font-head); font-size: 1.05rem; }
.testimonial footer { font-size: .9rem; }

/* ---------- Steps inline ---------- */
.steps-inline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps-inline li { counter-increment: s; background: var(--c-surface); border-radius: var(--radius-sm); padding: 14px 16px 14px 56px; position: relative; display: flex; flex-direction: column; }
.steps-inline li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps-inline span { color: var(--c-muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--c-surface); border-radius: var(--radius-sm); margin-bottom: 8px; padding: 0 16px; border: 1px solid var(--c-line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: url("../icons/kubai/duotone/circle-plus.svg") center / contain no-repeat; }
.faq details[open] summary::after { background-image: url("../icons/kubai/duotone/circle-minus.svg"); }
.faq details p { color: var(--c-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-primary); color: #fff; padding: 40px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band-inner { display: grid; gap: 8px; }

/* ---------- Forms ---------- */
.card { background: var(--c-surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 0; margin: 0 0 20px; }
fieldset.card { min-width: 0; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: both; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
    width: 100%; font: 400 1rem var(--font-body); color: var(--c-ink);
    padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); outline: 2px solid rgba(189, 71, 31, .2); }
.field-row { display: grid; gap: 0 12px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.error { color: var(--c-error); font-size: .85rem; display: block; margin-top: 4px; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--c-success-bg); color: var(--c-green); }
.alert-error { background: var(--c-error-bg); color: var(--c-error); }

/* ---------- Order ---------- */
.order-layout { display: grid; gap: 0 24px; align-items: start; }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-item { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.order-item:last-child { border-bottom: 0; }
.order-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--c-alt); grid-row: span 2; }
.order-item-info { display: flex; flex-direction: column; line-height: 1.35; }
.order-item-info .muted { font-size: .85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; justify-self: start; }
.qty input { width: 44px; text-align: center; border: 0; font: 600 1rem var(--font-body); -moz-appearance: textfield; background: transparent; color: var(--c-ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; height: 38px; border: 0; background: var(--c-alt); display: grid; place-items: center; cursor: pointer; color: var(--c-ink); }
.qty-btn:hover { background: var(--c-line); }
.order-summary h2 { font-size: 1.3rem; }
.summary { margin: 0 0 12px; }
.summary div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary dt { color: var(--c-muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary-total { border-top: 2px solid var(--c-ink); margin-top: 6px; padding-top: 10px !important; font-size: 1.2rem; }
.summary-total dd, .summary-total td { color: var(--c-primary); font-weight: 700; }
.coupon-box { display: inline-block; background: var(--c-surface); border: 2px dashed var(--c-primary); border-radius: var(--radius); padding: 12px 20px; }
.coupon-box strong { font-size: 1.4rem; letter-spacing: .08em; color: var(--c-primary); }
.coupon-box span { font-size: .9rem; color: var(--c-muted); }

/* ---------- Tables / prose ---------- */
.table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--c-line); }
.table th { font-weight: 600; background: var(--c-alt); }
.table .num { text-align: right; white-space: nowrap; }
.prose h2 { margin-top: 1.5em; }
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--c-line); display: flex; flex-direction: column; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); }
.map iframe { width: 100%; border-radius: var(--radius); }
.map-placeholder { background: var(--c-alt); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--c-muted); }

/* ---------- Footer (same cream background, line and brand colour as .site-header) ---------- */
.site-footer { background: rgba(255, 250, 245, .94); border-top: 1px solid var(--c-line); color: var(--c-muted); padding: 48px 0 16px; margin-top: 0; }
.site-footer a { color: var(--c-ink); }
.site-footer a:hover { color: var(--c-primary); }
.site-footer .btn-outline-light { border-color: var(--c-primary); color: var(--c-primary); }
.site-footer .btn-outline-light:hover { background: var(--c-primary); color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--c-primary); margin-bottom: .5em; display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 50%; background: #fff; }
.footer-title { font-weight: 600; color: var(--c-ink); margin-bottom: .5em; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid var(--c-line); margin-top: 32px; padding-top: 16px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--mobile-cta-h);
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: var(--c-surface);
    border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta-item { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--c-ink); font-weight: 600; }
.mobile-cta-primary { background: var(--c-primary); color: #fff; }
.mobile-cta-primary:hover { color: #fff; background: var(--c-primary-dark); }
.page-order .mobile-cta, .page-thank-you .mobile-cta { display: none; }
.page-order, .page-thank-you { padding-bottom: 0; }

/* ==========================================================================
   Tablet & desktop
   ========================================================================== */
@media (min-width: 640px) {
    .product-grid, .testimonials, .video-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .order-item { grid-template-columns: 72px 1fr auto; }
    .order-item img { width: 72px; height: 72px; grid-row: auto; }
    .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; }
    .steps-inline { grid-template-columns: repeat(3, 1fr); }
    .cta-band-inner { grid-template-columns: 1fr auto; align-items: center; }
    .cta-band .btn-row { margin: 0; }
}

@media (min-width: 960px) {
    body { padding-bottom: 0; }
    .mobile-cta { display: none; }
    .nav-toggle { display: none; }
    .site-nav { position: static; display: flex !important; align-items: center; gap: 20px; padding: 0; border: 0; background: transparent; }
    .site-nav ul { display: flex; gap: 4px; }
    .site-nav li a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
    .site-nav li a:hover { background: var(--c-alt); }
    .header-cta { margin: 0; width: auto; }

    .section { padding: 88px 0; }
    .hero { padding: 72px 0 88px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
    .split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials { grid-template-columns: repeat(3, 1fr); }

    .timeline::before { left: 50%; transform: translateX(-1px); }
    .timeline-item { padding-left: 0; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
    .timeline-item::before { left: 50%; transform: translateX(-50%); top: 50%; }
    .timeline-item.is-reverse .timeline-media { order: 2; }

    .order-layout { grid-template-columns: 1fr 360px; }
    .order-summary { position: sticky; top: 88px; }
}

/* ==========================================================================
   Scroll-craft motion: fade-in on entry (14px rise, 620ms, stagger 70ms, once)
   + one clip-path reveal on the hero image. Only transform/opacity/clip-path.
   Elements stay visible when JS is off (.js-motion is set by main.js).
   ========================================================================== */
.js-motion [data-in] {
    opacity: 0; transform: translateY(14px);
    transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
    transition-delay: calc(var(--in-i, 0) * 70ms);
}
.js-motion [data-in].is-in { opacity: 1; transform: none; }
.js-motion .hero-media img {
    clip-path: inset(0 0 100% 0 round 28px);
    transition: clip-path 1s var(--ease-out) .15s;
}
.js-motion .hero-media.is-in img { clip-path: inset(0 0 0 0 round 28px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* Fewer and gentler, not zero: keep the opacity cue, drop movement. */
    .js-motion [data-in] { transform: none; transition: opacity .3s linear; transition-delay: 0s; }
    .js-motion .hero-media img { clip-path: none; transition: none; }
    .btn { transition: none; }
}

/* ==========================================================================
   Kubai Icons (two-tone UI + layered illustrations), logo green baked into the SVGs.
   Icons on a dark/colored surface become a white silhouette (.kubai-icon--on-dark).
   ========================================================================== */
.kubai-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -0.25em; }
.kubai-icon--on-dark { filter: brightness(0) invert(1); }
.kubai-illustration { display: block; }
.mobile-cta-item .kubai-icon { width: 22px; height: 22px; }
.qty-btn .kubai-icon { width: 22px; height: 22px; }
.tiktok-facade-play { background: #fff; box-shadow: 0 6px 20px rgb(11 61 13 / 35%); padding-left: 0; }
.tiktok-facade-play .kubai-icon { width: 30px; height: 30px; margin-left: 3px; }
.video-placeholder .play .kubai-icon { width: 30px; height: 30px; }
.video-placeholder .play { background: #fff; }
/* ==========================================================================
   Shared interaction rules, same values as admin/assets/admin.css
   (ui-ux-pro-max: touch targets, tap feedback, numbers; Web Interface Guidelines).
   ========================================================================== */
button, a, input, select, textarea, label, summary { -webkit-tap-highlight-color: transparent; }
button, a, label, summary, [role="button"] { touch-action: manipulation; }
.btn { min-height: 44px; }
.qty-btn { width: 44px; height: 44px; }
.price, .summary dd, .table .num { font-variant-numeric: tabular-nums; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    border-color: var(--c-primary);
    outline: 3px solid var(--c-primary);
    outline-offset: 1px;
}
