/* Kainchi landing pages. Layout: centred 1080px column, generous vertical rhythm, hairline section dividers. Tokens in tokens.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.k-site { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
body.k-site::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.k-site h1, .k-site h2, .k-site h3, .k-site p { margin: 0; }
.k-site h1, .k-site h2, .k-site h3 { text-wrap: balance; font-weight: 500; }
.k-site a { color: inherit; }
.k-site :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.k-wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.k-muted { color: var(--muted); }
.k-small { font-size: 13px; }
.k-sel { color: var(--ink); user-select: all; }
.k-accent { color: var(--accent) !important; }
.k-label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.k-display { font-size: clamp(40px, 8vw, 76px); font-weight: 300; letter-spacing: -0.045em; line-height: 1.02; max-width: 14ch; }
.k-h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.k-big { font-size: clamp(20px, 3vw, 26px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.25; margin-top: 8px !important; }
.k-lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 46ch; }
.k-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }

/* nav */
.k-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .k-nav { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .k-nav { top: env(safe-area-inset-top, 0px); } }
.k-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.k-brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; transform: translateY(4px); }
.k-links { display: flex; gap: 24px; font-size: 14px; }
.k-links a { color: var(--muted); text-decoration: none; }
.k-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .k-links { display: none; } }

/* buttons */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) !important; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s; }
.k-btn:hover { background: var(--surface-2); }
.k-btn:active { transform: scale(.98); }
.k-btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary) !important; }
.k-btn-primary:hover { background: var(--primary); opacity: .9; }
.k-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.k-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.k-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.k-hero { padding-block: clamp(56px, 12vw, 120px) clamp(48px, 9vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.k-hero-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.k-hero-split > div:first-child { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 860px) { .k-hero-split { grid-template-columns: 1fr; } }
.k-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.k-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.k-status.open i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }

/* phone mockup (product page) */
.k-phone { justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18; border-radius: 44px; padding: 10px; background: var(--ink); }
.k-screen { height: 100%; border-radius: 36px; background: var(--bg); padding: 40px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; }
.k-token { font-size: 104px; font-weight: 300; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; margin: 6px 0 4px !important; }
.k-mini { margin-top: auto; width: 100%; background: var(--surface); border-radius: 16px; padding: 4px 14px; text-align: left; }
.k-mini span { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.k-mini span:first-child { border-top: 0; }
.k-mini span.me { font-weight: 600; }
.k-mini b { font-weight: 600; font-variant-numeric: tabular-nums; }
.k-mini em { font-style: normal; color: var(--muted); }
.k-mini em.k-live { color: var(--accent); }

/* sections */
.k-sec { padding-block: clamp(40px, 7vw, 72px); border-top: 1px solid var(--line); }
.k-sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.k-prices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.k-prices li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.k-p-name { flex: 1; min-width: 0; }
.k-p-min { color: var(--faint); font-size: 14px; white-space: nowrap; }
.k-prices strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 76px; text-align: right; }
@media (max-width: 720px) { .k-prices { grid-template-columns: 1fr; } }
.k-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.k-team li { display: flex; gap: 16px; align-items: center; }
.k-team div { display: flex; flex-direction: column; min-width: 0; }
.k-team strong { font-weight: 500; }
.k-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); font-size: 15px; font-weight: 500; flex: none; }
.k-team li:first-child .k-av { background: var(--ink); color: var(--bg); }
.k-loyal, .k-app { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: clamp(24px, 5vw, 48px); border-radius: 24px; background: var(--surface); }
.k-loyal > div:first-child, .k-app > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.k-holes { display: grid; grid-template-columns: repeat(5, 28px); gap: 10px; }
.k-holes span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.k-holes span.on { background: var(--ink); border-color: var(--ink); }
.k-holes span.last { border: 1px dashed var(--accent); background: var(--accent-soft); }
.k-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.k-visit > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 720px) { .k-visit { grid-template-columns: 1fr; gap: 28px; } }
.k-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.k-hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); width: 40%; vertical-align: top; }
.k-hours td { padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.k-hours tr.now th, .k-hours tr.now td { color: var(--ink); font-weight: 500; }

/* product page */
.k-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.k-proof div { display: flex; flex-direction: column; gap: 4px; }
.k-proof strong { font-size: clamp(32px, 5vw, 48px); font-weight: 300; letter-spacing: -0.045em; line-height: 1; }
.k-proof span { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .k-proof { grid-template-columns: 1fr; } }
.k-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .k-cols { grid-template-columns: 1fr; } }
.k-col { background: var(--surface); border-radius: 20px; padding: 28px 24px; }
.k-col h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 14px; }
.k-col ul, .k-local ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.k-col li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.k-col li:first-child { border-top: 0; }
.k-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.k-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--ink); }
.k-steps li::before { content: counter(s); font-size: 13px; font-weight: 500; color: var(--accent); }
.k-steps strong { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.k-steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .k-steps { grid-template-columns: 1fr; } }
.k-local { display: flex; flex-direction: column; gap: 16px; }
.k-local ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.k-local li { padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .k-local ul { grid-template-columns: 1fr; } }
.k-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(28px, 6vw, 64px); border-radius: 28px; background: var(--ink); color: var(--bg); }
.k-contact .k-lead, .k-contact .k-muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.k-contact .k-sel { color: var(--bg); }
.k-contact .k-btn { background: transparent; border-color: color-mix(in srgb, var(--bg) 30%, transparent); color: var(--bg) !important; }
.k-contact .k-btn-primary { background: var(--bg); border-color: var(--bg); color: var(--ink) !important; }

/* generic pages */
.k-page { padding-block: 56px; display: flex; flex-direction: column; gap: 48px; }
.k-article { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; }
.k-prose { color: var(--ink); }
.k-prose img { max-width: 100%; height: auto; }

/* footer */
.k-foot { border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.k-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .k-btn { transition: none; } }

/* "Get the app" bar for phone visitors */
.k-getapp { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 8px; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px -10px rgb(17 16 21 / .35), 0 0 0 1px var(--line); animation: k-rise .35s cubic-bezier(.2, .9, .25, 1.1); max-width: 520px; margin: 0 auto; }
.k-getapp > div { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.k-getapp strong { font-weight: 500; font-size: 15px; }
.k-getapp span { font-size: 13px; color: var(--muted); }
.k-getapp-x { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes k-rise { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .k-getapp { animation: none; } }
