/* ==========================================================================
   AVC SMS · public website
   Editorial display type, warm paper, ink sections, saffron signal. All visuals
   are CSS/SVG product illustrations — no stock photography.
   ========================================================================== */
body.site { background: var(--bg-elev); font-size: var(--t-md); line-height: 1.6; }
.mk-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mk-wrap.narrow { max-width: 880px; }
@media (max-width: 640px) { .mk-wrap { padding: 0 16px; } }
.sc { font-family: var(--font-sans); }

/* ---------- header ---------- */
.mk-header { position: sticky; top: 0; z-index: 900; transition: background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2); border-bottom: 1px solid transparent; }
.mk-header.is-scrolled, .mk-header.is-open { background: color-mix(in srgb, var(--bg-elev) 80%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--line); }
.mk-header-in { display: flex; align-items: center; gap: var(--s6); height: 68px; }
.mk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.035em; text-decoration: none !important; flex: none; }
.mk-nav { display: flex; gap: 2px; }
.mk-nav a { position: relative; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-size: var(--t-base); font-weight: 550; text-decoration: none; transition: color var(--dur-1), background var(--dur-1); }
.mk-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.mk-nav a.is-active { color: var(--text); }
.mk-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.mk-cta { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.mk-burger { display: none; }
.mk-sheet { border-top: 1px solid var(--line); padding: var(--s4) 16px calc(var(--s6) + env(safe-area-inset-bottom)); max-height: calc(100dvh - 68px); overflow: auto; }
.mk-sheet nav { display: flex; flex-direction: column; }
.mk-sheet nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--text); border-bottom: 1px solid var(--line); text-decoration: none; }
.mk-sheet nav a .i { color: var(--faint); }
.mk-sheet-cta { display: grid; gap: var(--s2); margin-top: var(--s5); }
@media (max-width: 1020px) {
  .mk-nav, .mk-signin { display: none; }
  .mk-burger { display: inline-flex; }
  .mk-cta > .btn-primary { display: none; }
}
@media (min-width: 1021px) { .mk-sheet { display: none !important; } }
/* between the menu-button width and a wide desktop the hotline is the round call button only, so five menu items fit */
@media (min-width: 1021px) and (max-width: 1180px) { .mk-header .hotline:not(.is-wide) { padding: 0; width: 40px; justify-content: center; border-color: var(--accent-line); background: var(--accent-soft); } .mk-header .hotline:not(.is-wide) .hl-tx { display: none; } }

/* ---------- type ---------- */
.mk-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: var(--t-sm); font-weight: 550; color: var(--text-2); }
.mk-eyebrow .pip { display: inline-grid; place-items: center; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.mk-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s4); }
.mk-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.mk-h1 { font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 76px); font-weight: 650; letter-spacing: -.05em; line-height: .98; color: var(--text); text-wrap: balance; }
.mk-h1 .accent { color: var(--accent); }
.mk-h1 .soft { color: var(--faint); }
.mk-h2 { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 54px); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.mk-h2 .soft { color: var(--faint); }
.mk-h3 { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.mk-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.55; max-width: 640px; text-wrap: pretty; }
.mk-sub { color: var(--muted); font-size: var(--t-md); line-height: 1.6; }
.mk-section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.mk-section.tight { padding: clamp(56px, 7vw, 88px) 0; }
.mk-section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.mk-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.mk-section-head .mk-lead { margin-top: var(--s4); }
.mk-section-head.center .mk-lead { margin-left: auto; margin-right: auto; }
.mk-split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s8); flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.mk-split-head .mk-lead { max-width: 440px; }

/* ---------- hero ---------- */
.mk-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); margin-top: -68px; padding-top: calc(68px + clamp(48px, 7vw, 88px)); isolation: isolate; }
.mk-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 88% -8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
  radial-gradient(700px 480px at -10% 90%, color-mix(in srgb, var(--series-2) 14%, transparent), transparent 60%); }
.mk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 1.2px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .55; }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mk-hero-copy .mk-h1 { margin: var(--s5) 0 var(--s5); }
.mk-hero-ctas { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s8); }
.mk-facts { display: grid; grid-template-columns: repeat(4, auto); gap: var(--s6); margin-top: var(--s10); padding-top: var(--s6); border-top: 1px solid var(--line); justify-content: start; }
.mk-facts div { display: flex; flex-direction: column; gap: 2px; }
.mk-facts b { font-size: var(--t-xl); font-weight: 650; letter-spacing: -.02em; color: var(--text); }
.mk-facts span { font-size: var(--t-xs); color: var(--muted); }
.script-cycle { display: inline-grid; vertical-align: bottom; }
.script-cycle > span { white-space: nowrap; grid-area: 1 / 1; opacity: 0; transform: translateY(.3em); animation: cycle 9s infinite; }
.script-cycle > span:nth-child(2) { animation-delay: 3s; } .script-cycle > span:nth-child(3) { animation-delay: 6s; }
@keyframes cycle { 0% { opacity: 0; transform: translateY(.3em); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-.3em); } }
@media (max-width: 1020px) { .mk-hero-grid { grid-template-columns: minmax(0, 1fr); } .mk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero visual: console window + phone */
.mk-stage { position: relative; min-height: 540px; }
.mk-window { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 100px -40px rgba(27,26,23,.35), 0 18px 40px -20px rgba(27,26,23,.2); overflow: hidden; margin-right: 92px; }
:root[data-theme="dark"] .mk-window { box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.mk-win-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mk-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mk-win-bar .url { margin: 0 auto; font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 12px; display: inline-flex; align-items: center; gap: 6px; }
.mk-win-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 440px; }
.mk-win-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: var(--bg); }
.mk-win-side span { white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.mk-win-side span .i { width: 14px; height: 14px; }
.mk-win-side span.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.mk-win-side span.on .i { color: var(--accent); }
.mk-win-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-win-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-win-h b { font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }
.mk-mini-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 8px; }
.mk-mini-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.mk-mini-kpis small { display: block; font-size: 10.5px; color: var(--muted); }
.mk-mini-kpis b { white-space: nowrap; font-size: 15px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-mini-kpis .up { color: var(--ok); font-size: 10.5px; font-weight: 600; }
.mk-mini-chart { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 8px; display: flex; align-items: flex-end; gap: 6px; height: 120px; background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.mk-mini-chart span { flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.mk-mini-chart i { flex: 1; border-radius: 3px 3px 0 0; background: var(--series-1); height: var(--h); transform-origin: bottom; animation: bar-grow 1s var(--ease-out) both; animation-delay: calc(var(--k) * 60ms + .3s); }
.mk-mini-chart i + i { background: var(--series-2); }
@keyframes bar-grow { from { transform: scaleY(0); } }
.mk-camp { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mk-camp-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 72px; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 11.5px; }
.mk-camp-row:first-child { border-top: 0; background: var(--surface-2); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.mk-camp-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-camp-row .progress { height: 5px; }
.mk-camp-row .badge { height: 20px; font-size: 10.5px; padding: 0 7px; justify-self: end; }
.mk-phone { position: absolute; right: -16px; bottom: -36px; width: 212px; padding: 8px; border-radius: 38px; background: linear-gradient(160deg, #2c2b31, #111014); box-shadow: 0 40px 80px -24px rgba(0,0,0,.55), inset 0 0 0 1.5px #3d3c43; animation: floaty 9s ease-in-out infinite; }
.mk-phone-screen { border-radius: 31px; background: #f3f3f7; color: #111; height: 420px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
:root[data-theme="dark"] .mk-phone-screen { background: #0b0b0d; color: #f2f2f2; }
.mk-phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 14px; background: #0b0b0d; }
.mk-phone-top { padding: 40px 14px 10px; font-size: 13px; font-weight: 700; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; justify-content: space-between; align-items: baseline; }
:root[data-theme="dark"] .mk-phone-top { border-color: rgba(255,255,255,.08); }
.mk-phone-top small { font-weight: 500; color: #8a8a93; font-size: 10.5px; }
.mk-thread { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mk-msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); opacity: 0; transform: translateY(10px) scale(.98); animation: msg-in .6s var(--ease-out) forwards; animation-delay: var(--d); }
:root[data-theme="dark"] .mk-msg { background: #1c1b20; }
.mk-msg .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.mk-msg .nm { font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; }
.mk-msg .nm small { font-weight: 500; color: #8a8a93; }
.mk-msg p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.38; color: #333; }
:root[data-theme="dark"] .mk-msg p { color: #d6d6da; }
.mk-msg p b { font-family: var(--font-mono); letter-spacing: .12em; color: #c2410c; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mk-float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 12px; font-weight: 600; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.mk-float-chip .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.mk-float-chip small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.mk-chip-1 { left: -18px; bottom: 64px; animation-delay: -2s; }
.mk-illus-note { position: absolute; left: 0; bottom: -28px; font-size: 11px; color: var(--faint); }
@media (max-width: 1020px) { .mk-stage { max-width: 640px; margin: 0 auto; width: 100%; } }
@media (max-width: 640px) {
  .mk-stage { min-height: 0; }
  .mk-window { margin-right: 0; }
  .mk-win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mk-win-side { display: none; }
  .mk-phone { position: relative; right: auto; bottom: auto; margin: -60px 0 0 auto; width: 200px; }
  .mk-phone-screen { height: 360px; }
  .mk-chip-1 { left: 0; bottom: 120px; }
}

/* networks strip */
.mk-nets { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 52px); flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-nets .lbl { font-size: var(--t-xs); color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mk-nets b { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 650; letter-spacing: -.03em; color: var(--text-2); opacity: .75; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s4); padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); min-height: 300px; transition: border-color var(--dur-2), box-shadow var(--dur-3), transform var(--dur-3) var(--ease); }
.tile:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.tile .t-head { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.tile .t-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); margin-bottom: 6px; }
.tile .t-ico .i { width: 17px; height: 17px; }
.tile h3 { font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -.03em; }
.tile p { color: var(--muted); font-size: var(--t-base); margin: 0; }
.tile .t-vis { margin-top: auto; }
.t-span-6 { grid-column: 1 / -1; } .t-span-4 { grid-column: span 4; } .t-span-3 { grid-column: span 3; } .t-span-2 { grid-column: span 2; }
.tile.ink { background: #141317; border-color: #27262c; color: #f2f0ec; }
.tile.ink h3 { color: #fff; } .tile.ink p { color: rgba(242,240,236,.62); }
.tile.ink .t-ico { background: rgba(255,122,46,.14); border-color: rgba(255,122,46,.3); color: #ff9a5f; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-span-4, .t-span-3, .t-span-2 { grid-column: span 1; } .t-span-4, .t-span-6 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .t-span-4, .t-span-6 { grid-column: auto; } .tile { min-height: 0; padding: 22px; } }

/* tile visuals */
.v-compose { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.v-box { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 12px; font-size: 12px; }
.v-box .lb { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; margin-bottom: 8px; display: block; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chips span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 11.5px; }
.v-chips span small { color: var(--muted); font-weight: 500; }
.v-chips span.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.v-chips span.on small { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.v-msg { font-size: 12.5px; line-height: 1.45; color: var(--text); }
.v-msg em { font-style: normal; background: var(--accent-soft); color: var(--accent-text); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.v-cost { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 11.5px; color: var(--muted); }
.v-cost b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.v-otp { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.v-otp .digits { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: .14em; color: #fff; }
.v-otp .ring { width: 44px; height: 44px; flex: none; }
.v-otp .ring circle { fill: none; stroke-width: 4; }
.v-otp .ring .bg { stroke: rgba(255,255,255,.12); }
.v-otp .ring .fg { stroke: #ff7a2e; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; animation: otp-ring 10s linear infinite; }
@keyframes otp-ring { to { stroke-dashoffset: 113; } }
.v-otp small { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.v-term { border-radius: 14px; background: #0d0d10; border: 1px solid #26252b; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75; padding: 14px 16px; color: #d9d6cf; overflow: hidden; white-space: pre; }
.v-term .c { color: #959189; } .v-term .k { color: #ff9b5e; } .v-term .s { color: #9fd9a3; } .v-term .p { color: #8ec2ff; } .v-term .ok { color: #5fd38e; }
.v-term .cursor { display: inline-block; width: 7px; height: 14px; background: #ff9b5e; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.v-sender { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v-sender .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, #f58a3d, #d9480f); color: #fff; font-weight: 700; }
.v-sender .nm { font-weight: 700; font-size: 13px; letter-spacing: .04em; display: flex; align-items: center; gap: 4px; }
.v-sender .nm .i { width: 14px; height: 14px; color: var(--ok); }
.v-sender .st { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.v-groups { display: flex; flex-direction: column; gap: 8px; }
.v-group { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.v-group .dot { width: 8px; height: 8px; border-radius: 3px; }
.v-group .n { margin-left: auto; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.v-sched { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.v-sched span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.v-sched span.h { font-size: 9.5px; background: none; border: 0; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); aspect-ratio: auto; padding-bottom: 2px; }
.v-sched span.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.v-sched-time { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 600; }
.v-sched-time .chip { height: 26px; font-size: 12px; }
.v-pipe { display: flex; align-items: center; gap: 0; }
.v-pipe .st { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); flex: none; width: 64px; }
.v-pipe .st i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--muted); }
.v-pipe .st i .i { width: 14px; height: 14px; }
.v-pipe .st.done i { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.v-pipe .ln { flex: 1; height: 2px; background: var(--line-2); position: relative; overflow: hidden; margin-bottom: 20px; border-radius: 2px; min-width: 16px; }
.v-pipe .ln::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--ok-dot), transparent); animation: travel 2.2s linear infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.v-langs { display: flex; flex-direction: column; gap: 8px; }
.v-lang { display: flex; align-items: center; gap: 10px; }
.v-lang .bub { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); font-size: 13px; line-height: 1.4; }
.v-lang .meta { font-size: 10.5px; color: var(--muted); text-align: right; flex: none; width: 70px; line-height: 1.3; }
.v-lang .meta b { display: block; color: var(--text); font-size: 12px; }

@media (max-width: 640px) { .v-compose { grid-template-columns: minmax(0, 1fr); } }

/* ---------- steps ---------- */
.mk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; position: relative; }
.mk-step { position: relative; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.mk-step::before { counter-increment: st; content: "0" counter(st); display: block; font-family: var(--font-display); font-size: 44px; font-weight: 650; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--line-strong); margin-bottom: 18px; }
.mk-step h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.025em; margin-bottom: 6px; }
.mk-step p { color: var(--muted); font-size: var(--t-base); margin: 0; }
.mk-step .i { position: absolute; top: 24px; right: 24px; color: var(--accent); width: 20px; height: 20px; }
@media (max-width: 980px) { .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mk-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); }
.calc-in { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: var(--s6); min-width: 0; }
.calc-out { padding: clamp(22px, 3vw, 36px); background: #141317; color: #f2f0ec; display: flex; flex-direction: column; gap: var(--s5); position: relative; overflow: hidden; isolation: isolate; }
.calc-out::before { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(242,107,29,.45), transparent); }
.calc-q { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.calc-q label { font-weight: 650; font-size: var(--t-md); }
.calc-vol { display: flex; align-items: baseline; gap: 6px; }
.calc-vol input { width: 150px; border: 0; border-bottom: 2px solid var(--line-2); background: transparent; font-family: var(--font-display); font-size: 34px; font-weight: 650; letter-spacing: -.04em; text-align: right; padding: 0 2px; color: var(--text); font-variant-numeric: tabular-nums; border-radius: 0; }
.calc-vol input:focus { outline: none; border-bottom-color: var(--accent); }
.calc-vol span { color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.range { width: 100%; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--surface-3) var(--p, 50%)); }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-3); }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); margin-top: -9px; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform var(--dur-1); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: none; } .range:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.range-scale { position: relative; height: 16px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; margin-top: 2px; }
.range-scale span { position: absolute; transform: translateX(-50%); }
.range-scale span:first-child { transform: none; } .range-scale span:last-child { transform: translateX(-100%); }
.calc-msg .textarea { min-height: 84px; font-size: var(--t-base); }
.calc-msg-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: var(--t-xs); color: var(--muted); margin-top: 8px; }
.calc-tiers { display: flex; flex-direction: column; gap: 6px; }
.calc-tier { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: var(--t-sm); transition: border-color var(--dur-2), background var(--dur-2), box-shadow var(--dur-2); }
.calc-tier .ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.calc-tier .ck .i { width: 11px; height: 11px; opacity: 0; color: #fff; stroke-width: 3; }
.calc-tier b { font-variant-numeric: tabular-nums; font-weight: 650; }
.calc-tier .rng { color: var(--text-2); }
.calc-tier.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.calc-tier.is-on .ck { background: var(--accent); border-color: var(--accent); }
.calc-tier.is-on .ck .i { opacity: 1; }
.calc-out .co-lbl { font-size: var(--t-xs); color: rgba(242,240,236,.6); font-weight: 600; letter-spacing: .02em; }
.calc-out .co-total { font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 650; letter-spacing: -.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.calc-out .co-total small { font-size: 18px; color: rgba(242,240,236,.55); letter-spacing: -.01em; }
.calc-break { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.1); }
.calc-break div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: var(--t-sm); color: rgba(242,240,236,.7); }
.calc-break div b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-save { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: rgba(95, 211, 142, .12); color: #7fe0a6; font-size: var(--t-xs); font-weight: 650; border: 1px solid rgba(95,211,142,.25); }
.calc-save.neutral { background: rgba(255,255,255,.06); color: rgba(242,240,236,.75); border-color: rgba(255,255,255,.12); }
.calc-out .btn-accent { margin-top: auto; }
.calc-note { font-size: 11.5px; color: rgba(242,240,236,.5); line-height: 1.5; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* tier cards (pricing page) */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tier { position: relative; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 6px; }
.tier .rng { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.tier .px { font-family: var(--font-display); font-size: 42px; font-weight: 650; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tier .px small { font-size: 15px; color: var(--muted); letter-spacing: 0; font-family: var(--font-sans); font-weight: 550; }
.tier .sv { font-size: var(--t-xs); color: var(--ok); font-weight: 650; min-height: 18px; }
.tier.featured { background: #141317; border-color: #141317; color: #f2f0ec; }
.tier.featured .rng, .tier.featured .px small { color: rgba(242,240,236,.6); }
.tier.featured .sv { color: #7fe0a6; }
.tier .flag { position: absolute; top: 18px; right: 18px; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.incl li { display: flex; align-items: center; gap: 10px; font-size: var(--t-base); }
.incl li .i { color: var(--ok); width: 18px; height: 18px; flex: none; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pack { position: relative; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh-1); }
.pack .amt { font-family: var(--font-display); font-size: 30px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pack .bonus { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: var(--t-xs); font-weight: 650; background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); margin: 4px 0 8px; }
.pack .bonus.none { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.pack dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: var(--t-sm); }
.pack dt { color: var(--muted); } .pack dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pack.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--sh-2); }
.pack.best .flag { position: absolute; top: -11px; left: 20px; }

/* ---------- developer section ---------- */
.mk-dark { background: #0f0f12; color: #f2f0ec; position: relative; overflow: hidden; isolation: isolate; }
.mk-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 500px at 100% 0%, rgba(242,107,29,.18), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(57,135,229,.12), transparent 60%); }
.mk-dark .mk-h2 { color: #fff; } .mk-dark .mk-h2 .soft { color: rgba(255,255,255,.4); }
.mk-dark .mk-lead { color: rgba(242,240,236,.7); }
.mk-dark .mk-kicker { color: #ff9a5f; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
@media (max-width: 980px) { .dev-grid { grid-template-columns: minmax(0, 1fr); } }
.codewin { border-radius: 20px; background: #16161a; border: 1px solid #2a2a30; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow: hidden; }
.codewin-bar { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 12px; border-bottom: 1px solid #2a2a30; overflow-x: auto; scrollbar-width: none; }
.codewin-tabs { display: flex; gap: 4px; }
.codewin-bar .codewin-tabs button { position: relative; height: 38px; padding: 0 14px; border: 0; background: none; color: rgba(242,240,236,.55); font-size: 13px; font-weight: 600; border-radius: 8px 8px 0 0; white-space: nowrap; }
.codewin-bar .codewin-tabs button:hover { color: #fff; }
.codewin-bar .codewin-tabs button[aria-selected="true"] { color: #fff; background: #1d1d22; }
.codewin-bar .codewin-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: #ff7a2e; border-radius: 2px; }
.codewin-bar .copy-btn { margin-left: auto; flex: none; }
.codewin pre { margin: 0; padding: 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: #e6e3dc; overflow-x: auto; background: #1d1d22; min-height: 220px; tab-size: 2; }
.codewin pre .c { color: #959189; font-style: italic; } .codewin pre .k { color: #ff9b5e; } .codewin pre .s { color: #9fd9a3; } .codewin pre .p { color: #8ec2ff; } .codewin pre .n { color: #f7c86b; } .codewin pre .f { color: #e7b6ff; }
.codewin-reply { border-top: 1px solid #2a2a30; padding: 14px 22px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: #b9b6ae; background: #16161a; white-space: pre; overflow-x: auto; }
.codewin-reply .ok { color: #5fd38e; font-weight: 700; } .codewin-reply .p { color: #8ec2ff; } .codewin-reply .s { color: #9fd9a3; } .codewin-reply .n { color: #f7c86b; }
.endpoints { display: flex; flex-direction: column; gap: 2px; border-radius: 18px; border: 1px solid #2a2a30; background: #16161a; padding: 8px; }
.endpoints a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; border-radius: 12px; color: #f2f0ec; text-decoration: none; transition: background var(--dur-1); }
.endpoints a:hover { background: #1f1f25; text-decoration: none; }
.endpoints .method { justify-self: start; background: rgba(57,135,229,.16); color: #8db8ff; }
.endpoints .method.post { background: rgba(255,122,46,.16); color: #ffa36d; }
.endpoints code { background: none; border: 0; padding: 0; color: #fff; font-size: 13px; }
.endpoints small { grid-column: 2; color: rgba(242,240,236,.55); font-size: 12px; }
.dev-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.dev-points li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-base); color: rgba(242,240,236,.78); }
.dev-points .i { color: #ff9a5f; margin-top: 3px; flex: none; }
.mk-dark .btn:not(.btn-accent) { --b-bg: rgba(255,255,255,.06); --b-fg: #fff; --b-bd: rgba(255,255,255,.14); --b-bg-h: rgba(255,255,255,.12); --b-bd-h: rgba(255,255,255,.24); box-shadow: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; cursor: pointer; list-style: none; font-size: var(--t-lg); font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; transition: transform var(--dur-3) var(--ease-out), background var(--dur-2); position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; width: 11px; height: 1.6px; background: currentColor; border-radius: 1px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform var(--dur-3) var(--ease-out); }
.faq details[open] summary .pm { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq summary:hover { color: var(--accent-text); }
.faq .ans { padding: 0 48px 22px 2px; color: var(--muted); font-size: var(--t-md); line-height: 1.65; animation: fade-up var(--dur-3) var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: #141317; color: #f2f0ec; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 100% 100%, rgba(242,107,29,.5), transparent 60%), radial-gradient(500px 300px at 0% 0%, rgba(57,135,229,.18), transparent 60%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band .mk-h2 { color: #fff; max-width: 680px; }
.cta-band p { color: rgba(242,240,236,.7); font-size: var(--t-lg); margin: 14px 0 0; max-width: 560px; }
.cta-band .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn:not(.btn-accent) { --b-bg: rgba(255,255,255,.08); --b-fg: #fff; --b-bd: rgba(255,255,255,.16); --b-bg-h: rgba(255,255,255,.14); --b-bd-h: rgba(255,255,255,.28); box-shadow: none; }
@media (max-width: 780px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page hero (inner pages) ---------- */
.mk-page-hero { position: relative; overflow: hidden; margin-top: -68px; padding: calc(68px + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); isolation: isolate; }
.mk-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 90% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%); }
.mk-page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--text) 12%, transparent) 1px, transparent 1.2px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 60% 70% at 70% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 0%, #000 10%, transparent 70%); opacity: .5; }
.mk-page-hero .mk-h1 { font-size: clamp(40px, 5.4vw, 70px); margin: 14px 0 18px; max-width: 900px; }

/* features page */
.feat-sec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.feat-sec:nth-of-type(even) .feat-vis { order: -1; }
@media (max-width: 900px) { .feat-sec { grid-template-columns: minmax(0, 1fr); } .feat-sec:nth-of-type(even) .feat-vis { order: 0; } }
.feat-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.feat-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.feat-list .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); box-shadow: var(--sh-1); }
.feat-list .fi .i { width: 16px; height: 16px; }
.feat-list b { display: block; font-size: var(--t-md); font-weight: 650; margin-bottom: 2px; letter-spacing: -.01em; }
.feat-list span { color: var(--muted); font-size: var(--t-base); }
.feat-vis { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); padding: clamp(20px, 3vw, 32px); min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.feat-vis.ink { background: #141317; border-color: #26252b; color: #f2f0ec; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); padding: clamp(22px, 3.5vw, 40px); }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.channel { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--sh-1); transition: border-color var(--dur-1), transform var(--dur-2) var(--ease); }
a.channel:hover { border-color: var(--line-strong); transform: translateY(-1px); text-decoration: none; }
.channel .ci { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); flex: none; }
.channel b { display: block; font-size: var(--t-base); }
.channel span { font-size: var(--t-sm); color: var(--muted); word-break: break-word; }
.next-steps { border-radius: 18px; background: #141317; color: #f2f0ec; padding: 22px; }
.next-steps h3 { font-size: var(--t-md); color: #fff; margin-bottom: 12px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ns; display: grid; gap: 12px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: var(--t-sm); color: rgba(242,240,236,.75); }
.next-steps li::before { content: counter(ns); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; font-size: 12px; color: #ff9a5f; }
.sent-ok { text-align: center; padding: 32px 8px; }
.sent-ok .ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); animation: pop .5s var(--ease-out); }
.sent-ok .ring .i { width: 32px; height: 32px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- footer ---------- */
.mk-footer { padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line); background: var(--bg); margin-top: clamp(56px, 8vw, 96px); }
.mk-foot-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 48px; }
.mk-foot-brand p { color: var(--muted); max-width: 360px; margin: 16px 0 20px; }
.mk-foot-contact { display: flex; flex-direction: column; gap: 10px; font-size: var(--t-sm); }
.mk-foot-contact a, .mk-foot-contact span { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.mk-foot-contact .i { color: var(--muted); }
.mk-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mk-foot-cols h2 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; margin-bottom: 14px; }
.mk-foot-cols a { display: block; color: var(--text-2); font-size: var(--t-base); padding: 5px 0; }
.mk-foot-cols a:hover { color: var(--text); }
.mk-foot-nets { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 28px; }
.mk-foot-nets span { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: var(--t-sm); font-weight: 600; color: var(--text-2); }
.mk-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); flex-wrap: wrap; }
.mk-theme { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--text-2); }
@media (max-width: 1100px) { .mk-foot-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .mk-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* docs on the public layout */
.docs-public { padding: calc(clamp(24px, 4vw, 48px)) 0 0; }

/* ---------- keyword landing pages (views/site/landing.php, config/landings.php) ---------- */
.lp-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-sm); font-weight: 550; color: var(--muted); }
.lp-crumbs a { color: var(--muted); }
.lp-crumbs a:hover { color: var(--text); }
.lp-crumbs .i { width: 14px; height: 14px; opacity: .6; }
.lp-crumbs [aria-current] { color: var(--accent-text); font-weight: 650; }
.lp-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s6); }
.mk-page-hero .mk-facts { margin-top: var(--s8); }
.lp-h2 { font-size: clamp(28px, 3.4vw, 44px); }
.lp-band { background: var(--bg); }
.feat-sec.flip .feat-vis { order: -1; }
.feat-vis .v-term { overflow-x: auto; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.lp-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); margin-bottom: 16px; }
.lp-card .ic .i { width: 18px; height: 18px; }
.lp-card h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.025em; margin-bottom: 6px; }
.lp-card p { color: var(--muted); font-size: var(--t-base); margin: 0; }
.lp-prose { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lp-prose-body { font-size: var(--t-md); line-height: 1.7; color: var(--text-2); }
.lp-prose-body p { margin: 0 0 1em; text-wrap: pretty; }
.lp-list { list-style: none; counter-reset: lp; padding: 0; margin: 0; display: grid; gap: 18px; }
.lp-list li { counter-increment: lp; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.lp-list li::before { content: counter(lp); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 650; }
.lp-list b { color: var(--text); font-weight: 650; }
.lp-table-wrap { margin-top: var(--s5); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow-x: auto; box-shadow: var(--sh-1); }
.lp-table { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.lp-table th, .lp-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lp-table thead th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.lp-table tbody th { font-weight: 650; color: var(--text); }
.lp-table tbody tr:last-child th, .lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-more { margin-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(40px, 6vw, 72px); }
.lp-more .mk-h3 { margin-bottom: var(--s5); }
.lp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile .t-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--t-sm); font-weight: 650; color: var(--accent-text); }
.tile.ink .t-more { color: #ff9a5f; }
@media (max-width: 900px) {
  .feat-sec.flip .feat-vis { order: 0; }
  .lp-cards, .lp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-prose { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .lp-cards, .lp-related { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-ctas .btn { flex: 1 1 100%; }
  .lp-table th, .lp-table td { white-space: normal; padding: 11px 12px; }
  .codewin-bar { padding-left: 8px; }
  .codewin-bar .codewin-tabs { gap: 0; }
  .codewin-bar .codewin-tabs button { padding: 0 9px; font-size: 12.5px; }
}

/* Hero content does not wait for ui.js: it is in place at the first paint and only eases in. The headline and the
   lead (the largest text on the page, what "largest contentful paint" measures) never start invisible. */
.mk-hero .reveal, .mk-page-hero .reveal { opacity: 1; transform: none; transition: none; animation: hero-fade .7s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
.mk-hero .mk-h1.reveal, .mk-hero .mk-lead.reveal, .mk-page-hero .mk-h1.reveal, .mk-page-hero .mk-lead.reveal { animation-name: hero-rise; }
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-rise { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .mk-hero .reveal, .mk-page-hero .reveal { animation: none; } }

/* ---------- guides (views/site/guide.php, guides.php; config/guides.php) ---------- */
.g-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.g-h1 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 54px); font-weight: 650; letter-spacing: -.045em; line-height: 1.04; color: var(--text); text-wrap: balance; max-width: 900px; margin: 14px 0 18px; }
.g-intro { max-width: 760px; }
.g-intro a, .g-body a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.g-intro a:hover, .g-body a:hover { text-decoration-color: currentColor; }
.g-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: var(--s5) 0 0; font-size: var(--t-sm); color: var(--muted); font-weight: 550; }
.g-meta .i { color: var(--accent-text); }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.g-body { max-width: 760px; min-width: 0; font-size: var(--t-md); line-height: 1.75; color: var(--text-2); }
.g-body > :first-child { margin-top: 0; }
.g-body h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; color: var(--text); margin: 2em 0 .6em; scroll-margin-top: 92px; text-wrap: balance; }
.g-body p { margin: 0 0 1.1em; text-wrap: pretty; }
.g-body ul, .g-body ol { margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: .55em; }
.g-body li::marker { color: var(--accent-text); font-weight: 650; }
.g-body strong { color: var(--text); font-weight: 650; }
.g-note { margin: 0 0 1.3em; font-size: var(--t-base); }
.g-code { margin: 0 0 1.4em; }
.g-code .code { padding-top: 34px; max-height: 620px; font-variant-ligatures: none; }
.g-lang { position: absolute; top: 9px; left: 16px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #959189; }
.g-table { margin: 0 0 1.4em; }
.g-table .lp-table th, .g-table .lp-table td { white-space: normal; vertical-align: top; }
.g-templates { display: grid; gap: 12px; margin: 0 0 1.4em; }
.g-tpl { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.g-tpl figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-sm); }
.g-tpl figcaption b { color: var(--text); font-weight: 650; }
.g-tpl figcaption span { color: var(--muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.g-tpl blockquote { margin: 0; padding: 14px 16px; font-size: var(--t-base); line-height: 1.55; color: var(--text); }
.g-aside { position: sticky; top: 92px; display: grid; gap: 20px; }
.g-toc { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.g-toc-t { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.g-toc a { color: var(--muted); font-size: var(--t-sm); padding: 4px 0; line-height: 1.35; }
.g-toc a:hover { color: var(--text); }
.g-cta { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.g-cta b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.025em; }
.g-cta p { margin: 0 0 4px; color: var(--muted); font-size: var(--t-sm); }
.g-more { margin-top: clamp(40px, 6vw, 72px); }
.g-index { display: grid; gap: clamp(40px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 48px); }
.g-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: var(--s5); }
.g-group-head .mk-sub { margin: 0; }
.g-card { position: relative; display: flex; flex-direction: column; transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2); }
.g-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.g-card h3 a { color: var(--text); text-decoration: none; }
.g-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.g-card h3 a:focus-visible { outline: none; }
.g-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.g-card p { flex: 1; }
.g-card-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--t-sm); font-weight: 650; color: var(--accent-text); }
@media (max-width: 980px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); }
  .g-aside { position: static; }
  .g-toc { display: none; }
}
