/* Kinstap website -- ONE design system for every public page (docs/architecture/public-legal-pages.md): the home page (marketing,
   KinBackendWeb.PublicWeb.home/1) and the Admin-managed documents (Privacy, Terms, Security, Support, Plans & Pricing, Account
   deletion; KinBackendWeb.PublicWeb.render_published/3). Owner direction 2026-10-17: the website is the app's marketing page AND
   displays the Admin pages, in one look.

   The app's own dark system (mobile/app/src/main/java/com/kin/app/ui/theme/Color.kt): background, surfaces, mint primary, warm
   accent, text colours; Inter for text (self-hosted woff2, SIL OFL) and the real Kinstap mark + Poppins SemiBold wordmark for the logo,
   exactly as the app's KinLogo builds it. Nothing is loaded from a third party.

   The Admin Dashboard preview uses this file byte for byte (admin/priv/static/legal-doc.css); a test keeps the two identical: edit
   this file, then copy it to the Admin. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); }

:root {
  --bg: #06131f;          /* KinDeepMidnight */
  --bg-2: #0b1820;        /* KinNavyDeep */
  --surface: #13232c;     /* KinDeepSlate */
  --elevated: #1a2d36;    /* KinSoftSlate */
  --teal: #36e2c2;        /* KinBrandTeal */
  --teal-pressed: #20b394;
  --teal-deep: #0b393a;   /* KinSelectedTeal */
  --peach: #f2b497;       /* KinBrandPeach */
  --violet: #7b5cf0;      /* KinPlusViolet */
  --text: #f7faf9;
  --text-2: #b4c3cf;      /* KinCanvasTextSecondary, one step lighter for long reading on the web */
  --muted: #8a9aa6;
  --line: rgba(255, 255, 255, .1);
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
main:focus, .ks-main:focus { outline: none; }
.ks-skip { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--teal); color: var(--bg); font-weight: 600; text-decoration: none; }
.ks-skip:focus { top: 12px; }
.ks-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.h-svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ks-preview-banner { position: sticky; top: 0; z-index: 70; padding: 10px 16px; text-align: center; background: #e7b76a; color: #1a1205; font-weight: 600; font-size: 14px; }
.ks-preview-banner a { color: inherit; }

/* == shared: logo, buttons, header, footer ============================================================================== */
.ks-logo { --t: 22px; display: inline-flex; align-items: center; gap: calc(var(--t) * .3); text-decoration: none; color: var(--text); flex: none; }
.ks-logo img { height: calc(var(--t) * 1.5); width: auto; }
.ks-logo span { font: 600 var(--t)/1 "Poppins", var(--font); letter-spacing: -.01em; }

.ks-btn, .h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.h-btn .h-svg { width: 18px; height: 18px; }
.ks-btn-primary, .h-btn-primary { background: var(--teal); color: #04201c; }
.ks-btn-primary:hover, .h-btn-primary:hover { background: #5ce8cf; }
.ks-btn-primary:active, .h-btn-primary:active { background: var(--teal-pressed); }
.h-btn-ghost { border-color: rgba(255, 255, 255, .18); color: var(--text); background: rgba(255, 255, 255, .02); }
.h-btn-ghost:hover { border-color: rgba(54, 226, 194, .6); background: rgba(54, 226, 194, .06); }
.h-btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.h-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; text-decoration: none; margin-top: 28px; }
.h-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.h-link .h-svg { width: 18px; height: 18px; }

.ks-header { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.ks-header.is-scrolled, .ks-doc .ks-header { background: rgba(6, 19, 31, .88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.ks-header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.ks-nav { display: flex; gap: 26px; margin-left: 12px; }
.ks-nav a { position: relative; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.ks-nav a:hover, .ks-nav a.is-current { color: var(--text); }
.ks-nav a[aria-current="page"] { color: var(--text); }
.ks-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--teal); }
.ks-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ks-header-actions .ks-btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.ks-menu { display: none; position: relative; }
.ks-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); }
.ks-menu summary::-webkit-details-marker { display: none; }
.ks-menu-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); display: flex; flex-direction: column; padding: 8px;
  background: var(--elevated); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.ks-menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.ks-menu-panel a:hover { background: rgba(255, 255, 255, .05); }
.ks-menu-panel a[aria-current="page"] { color: var(--teal); }

.ks-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg); }
.ks-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ks-footer-brand p { color: var(--text-2); margin-top: 14px; max-width: 260px; }
.ks-footer h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ks-footer ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ks-footer ul a { color: var(--text-2); text-decoration: none; }
.ks-footer ul a:hover { color: var(--text); }
.ks-footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.ks-footer-legal a { color: var(--text-2); }

/* == home page ========================================================================================================= */
.h-section { padding: 104px 0; }
.h-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-eyebrow { color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.h-section h2 { font-size: clamp(30px, 3.4vw, 44px); }
.h-sub { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 620px; }
.h-section-head { max-width: 720px; margin-bottom: 52px; }
.h-center { text-align: center; }

.h-hero { position: relative; padding: 136px 0 24px; margin-top: -72px; overflow: hidden; }
.h-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(54, 226, 194, .14), rgba(54, 226, 194, 0)); pointer-events: none; }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.h-hero h1 { font-size: clamp(42px, 5.4vw, 70px); letter-spacing: -.035em; line-height: 1.03; }
.h-accent { color: var(--teal); }
.h-lead { color: var(--text-2); font-size: 19px; line-height: 1.6; margin-top: 24px; max-width: 540px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.h-actions-center { justify-content: center; }
.h-checks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--text-2); font-size: 15px; }
.h-checks li { display: inline-flex; align-items: center; gap: 8px; }
.h-checks .h-svg, .h-points .h-svg, .h-plan-list .h-svg { color: var(--teal); width: 18px; height: 18px; }

.h-phone { margin: 0; padding: 9px; border-radius: 40px; background: #0a1117; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4) inset; }
.h-phone img { border-radius: 31px; width: 100%; }
.h-hero-visual { position: relative; min-height: 610px; }
.h-phone-front { position: absolute; width: 292px; left: 8%; top: 0; z-index: 2; }
.h-phone-back { position: absolute; width: 262px; right: 2%; top: 64px; transform: rotate(5deg); opacity: .96; }
.h-phone-solo { width: min(320px, 78vw); margin: 0 auto; }

.h-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h-feature { padding: 28px 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.h-feature:hover { border-color: rgba(54, 226, 194, .35); }
.h-feature h3 { font-size: 19px; margin-top: 20px; }
.h-feature p { color: var(--text-2); margin-top: 8px; font-size: 15.5px; }
.h-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--teal-deep); color: var(--teal); flex: none; }
.h-ico .h-svg { width: 22px; height: 22px; }
.h-ico-warm { background: rgba(242, 180, 151, .12); color: var(--peach); }

.h-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.h-split-rev .h-split-media { order: 2; }
.h-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.h-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.h-points .h-svg { margin-top: 3px; }
.h-points strong { color: var(--text); font-weight: 600; }

.h-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.h-plan { padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.h-plan-plus { background: linear-gradient(180deg, rgba(123, 92, 240, .12), rgba(123, 92, 240, 0) 46%), var(--surface); border-color: rgba(123, 92, 240, .45); }
.h-plan h3 { font-size: 20px; }
.h-price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-top: 14px; }
.h-price-soon { font-size: 26px; color: var(--text-2); }
.h-price span { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.h-plan-note { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.h-plan-local { list-style: none; padding: 0; margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; }
.h-plan-local strong { color: var(--text); }
.kd-plans { max-width: 58rem; margin-bottom: 44px; }
.h-plan-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.h-plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.h-plans + .h-center .h-link { margin-top: 36px; }

.h-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.h-links a { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s; }
.h-links a:hover { border-color: rgba(54, 226, 194, .4); }
.h-links a > span:nth-child(2) { flex: 1; min-width: 0; }
.h-links strong { display: block; font-weight: 600; }
.h-links small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.h-links a > .h-svg { color: var(--muted); }

.h-closing { text-align: center; }
.h-closing-inner { display: flex; flex-direction: column; align-items: center; }
.h-closing h2 { margin-top: 24px; max-width: 760px; }
.h-closing .h-sub { margin-left: auto; margin-right: auto; }

/* hero composition: the real chat screen with two Moments (original artwork) floating beside it */
.h-hero-visual .h-phone-front { left: 50%; transform: translateX(-50%); }
.h-snap { position: absolute; margin: 0; width: 170px; border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); z-index: 3; }
.h-snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.h-snap figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.h-snap figcaption .h-svg { width: 15px; height: 15px; color: var(--teal); }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--peach); flex: none; }
.h-snap-a { left: -4%; bottom: 28px; transform: rotate(-6deg); }
.h-snap-b { right: -4%; top: 70px; width: 150px; transform: rotate(5deg); }

/* trust strip: facts only */
.h-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.h-facts-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.h-facts-list li { padding: 30px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.h-facts-list li:first-child { border-left: 0; padding-left: 0; }
.h-facts-list strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.h-facts-list span { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }

/* Moments: a gallery around the real Moment screen */
.h-section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.h-section-head-center .h-sub { margin-left: auto; margin-right: auto; }
.h-moments { position: relative; overflow: hidden; }
.h-moments::before { content: ""; position: absolute; left: 50%; top: 52%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(242, 180, 151, .10), rgba(242, 180, 151, 0)); pointer-events: none; }
.h-gallery { position: relative; display: flex; justify-content: center; align-items: center; gap: 28px; }
.h-gallery-card { margin: 0; width: 250px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.h-gallery-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.h-gallery-1 { transform: rotate(-4deg) translateY(24px); }
.h-gallery-2 { transform: rotate(4deg) translateY(24px); }
.h-gallery-phone { width: 290px; position: relative; z-index: 2; }
.h-chips { list-style: none; padding: 0; margin: 48px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.h-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.h-chips li strong { color: var(--text); font-weight: 600; }
.h-chips .h-svg { width: 17px; height: 17px; color: var(--teal); }

/* privacy panel: what stays on the phone / what the servers handle */
.h-privacy-panel { display: grid; gap: 16px; }
.h-privacy-col { padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.h-privacy-col.is-device { background: linear-gradient(160deg, rgba(54, 226, 194, .10), rgba(54, 226, 194, 0) 60%), var(--surface); border-color: rgba(54, 226, 194, .35); }
.h-privacy-head { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; color: var(--text); }
.h-privacy-col:not(.is-device) .h-ico { background: rgba(255, 255, 255, .06); color: var(--text-2); }
.h-privacy-col ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.h-privacy-col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text-2); font-size: 15.5px; }
.h-privacy-col li .h-svg { width: 17px; height: 17px; margin-top: 3px; color: var(--teal); }
.h-privacy-col:not(.is-device) li .h-svg { color: var(--muted); }

.h-closing { background: radial-gradient(ellipse at 50% 0%, rgba(54, 226, 194, .10), rgba(54, 226, 194, 0) 60%); border-top: 1px solid var(--line); }

/* == document pages (Admin content) ===================================================================================== */
.kd-hero { position: relative; overflow: hidden; padding: 64px 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.kd-hero::before { content: ""; position: absolute; right: -180px; top: -260px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(54, 226, 194, .12), rgba(54, 226, 194, 0)); pointer-events: none; }
.kd-hero-copy { position: relative; max-width: 780px; }
.kd-eyebrow { color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.kd-hero h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1.06; }
.kd-lead { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 680px; }
.kd-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }

.ks-page { flex: 1; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.ks-page.no-toc { grid-template-columns: minmax(0, 1fr); max-width: calc(880px + 2 * var(--gutter)); }
.ks-main { min-width: 0; padding: 40px 0 80px; }

.kd-side { padding: 40px 0; }
.kd-side-inner { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; display: grid; gap: 28px; scrollbar-width: thin; }
.kd-side-title { margin: 0 0 10px 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kd-pages ul { list-style: none; margin: 0; padding: 0; }
.kd-pages a { position: relative; display: block; padding: 7px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.kd-pages a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.kd-pages a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.kd-pages a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--teal); }
.kd-pages + .kd-toc { padding-top: 22px; border-top: 1px solid var(--line); }
.kd-toc ol, .kd-toc-m ol { list-style: none; margin: 0; padding: 0; }
.kd-toc a, .kd-toc-m a { display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.kd-toc a:hover, .kd-toc-m a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.kd-toc a.is-active { background: var(--teal-deep); color: var(--text); }
.kd-num { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .06); margin-top: 1px; }
.kd-toc a.is-active .kd-num { background: var(--teal); color: #04201c; }

.kd-cards { list-style: none; padding: 0; margin: 0 0 24px; max-width: 58rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kd-card { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kd-card p { color: var(--text-2); font-size: 15px; }
.kd-card p.kd-card-title { color: var(--text); font-size: 16.5px; font-weight: 600; margin: 14px 0 6px; line-height: 1.3; }
.kd-card a { color: var(--teal); }

.kd-tile { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--teal-deep); color: var(--teal); }
.kd-tile svg { width: 22px; height: 22px; fill: currentColor; }
.kd-tile.t-green { background: rgba(101, 214, 165, .12); color: #65d6a5; }
.kd-tile.t-blue { background: rgba(110, 168, 255, .12); color: #8bb8ff; }
.kd-tile.t-purple { background: rgba(123, 92, 240, .16); color: #a995ff; }
.kd-tile.t-orange { background: rgba(242, 180, 151, .12); color: var(--peach); }
.kd-tile.t-navy { background: rgba(255, 255, 255, .05); color: var(--teal); }

.kd-info { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 18px 20px; border-radius: 16px; background: rgba(54, 226, 194, .06); border: 1px solid rgba(54, 226, 194, .25); }
.kd-info-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--teal); color: #04201c; display: grid; place-items: center; }
.kd-info-icon svg { width: 18px; height: 18px; fill: currentColor; }
.kd-info-copy { flex: 1; min-width: 0; color: var(--text-2); font-size: 15px; }
.kd-info-copy strong:first-child { display: block; color: var(--text); }
.kd-info-copy a { color: var(--teal); }
.kd-learn { flex: none; align-self: center; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(54, 226, 194, .5); color: var(--teal); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.kd-learn:hover { background: rgba(54, 226, 194, .08); }

.kd-toc-m { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kd-toc-m summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
.kd-toc-m summary::-webkit-details-marker { display: none; }
.kd-toc-m summary::after { content: "+"; float: right; color: var(--muted); }
.kd-toc-m[open] summary::after { content: "–"; }
.kd-toc-m ol { padding: 0 8px 10px; }

/* Admin document typography: comfortable reading on the dark surface */
/* Admin document typography -- built for long reading: a 68-character measure, a clear heading rhythm, no decorative clutter */
.kdoc { color: var(--text-2); font-size: 17px; line-height: 1.75; max-width: 58rem; }
.kdoc p, .kdoc ul, .kdoc ol, .kdoc h2, .kdoc h3, .kdoc h4, .kdoc blockquote, .kdoc hr { max-width: 46rem; }
.kd-intro { margin-bottom: 8px; }
.kd-section { display: block; padding: 44px 0 8px; border-top: 1px solid var(--line); }
.kd-section > .kd-tile { display: none; }
.kd-intro + .kd-section, .kdoc > .kd-section:first-child { border-top: 0; padding-top: 4px; }
.kd-section-body { min-width: 0; }
.kdoc h2 { color: var(--text); font-size: 26px; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 18px; scroll-margin-top: 96px; }
.kdoc h3 { color: var(--text); font-size: 18.5px; letter-spacing: -.01em; line-height: 1.35; margin: 34px 0 10px; }
.kdoc h4 { color: var(--text); font-size: 16.5px; margin: 26px 0 8px; }
.kdoc h2 + h3 { margin-top: 8px; }
.kdoc p { margin: 0 0 18px; }
.kdoc ul, .kdoc ol { margin: 0 0 22px; padding-left: 1.25em; }
.kdoc li { margin: 10px 0; padding-left: 4px; }
.kdoc li::marker { color: var(--teal); }
.kdoc li > ul, .kdoc li > ol { margin: 8px 0 0; }
.kdoc strong { color: var(--text); font-weight: 600; }
.kdoc a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(54, 226, 194, .4); text-underline-offset: 3px; }
.kdoc a:hover { text-decoration-color: var(--teal); }
.kdoc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.kdoc blockquote { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--teal); background: rgba(255, 255, 255, .03); border-radius: 0 12px 12px 0; }
.kdoc blockquote p:last-child { margin-bottom: 0; }
.kdoc p.meta { color: var(--muted); font-size: 14.5px; }
.kdoc p.note { padding: 18px 20px; border-radius: 14px; background: rgba(54, 226, 194, .06); border: 1px solid rgba(54, 226, 194, .22); color: var(--text-2); font-size: 16px; }
.kdoc p.note > strong:first-child { display: block; color: var(--text); margin-bottom: 4px; }
.kdoc code { font-size: .9em; background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.kdoc .price { color: var(--text); font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 10px; }
/* tables may use the full content width (they carry three columns of facts) */
.kdoc table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0;
  margin: 10px 0 28px; font-size: 15px; line-height: 1.55; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.kdoc th, .kdoc td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 9rem; max-width: 22rem; }
.kdoc th { position: sticky; top: 0; background: var(--elevated); color: var(--text); font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
.kdoc td:first-child { color: var(--text); font-weight: 500; }
.kdoc tbody tr:nth-child(even) td, .kdoc table > tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.kdoc tr:last-child td { border-bottom: 0; }
.ks-updated { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.ks-error { padding: 96px 0 120px; text-align: center; }
.ks-error h1 { font-size: clamp(32px, 4vw, 48px); }
.ks-error p { color: var(--text-2); margin: 14px auto 28px; max-width: 520px; }
.ks-button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--teal); color: #04201c; font-weight: 600; text-decoration: none; }

/* == reveal (home; added by kinstap-web.js only when motion is welcome; the page is complete without it) ================= */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .h-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js-reveal .h-reveal.is-in { opacity: 1; transform: none; }
}

/* == responsive ======================================================================================================= */
@media (max-width: 1080px) {
  .ks-nav { display: none; }
  .ks-menu { display: block; }
  .h-hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .h-phone-front { width: 250px; left: 0; }
  .h-phone-back { width: 224px; }
  .h-hero-visual { min-height: 520px; }
  .h-features { grid-template-columns: repeat(2, 1fr); }
  .h-split { gap: 48px; }
  .ks-page { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
  .h-snap { width: 160px; }
  .h-snap-b { width: 140px; }
  .h-facts-list { grid-template-columns: repeat(2, 1fr); }
  .h-facts-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .h-facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-gallery-card { width: 190px; }
  .h-gallery-phone { width: 250px; }
}

@media (max-width: 900px) {
  .ks-page { grid-template-columns: minmax(0, 1fr); }
  .kd-side { display: none; }
  .kd-toc-m { display: block; }
  .ks-main { padding-top: 28px; }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .h-section { padding: 72px 0; }
  .h-hero { padding: 104px 0 56px; }
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-hero-visual { min-height: 0; height: 480px; max-width: 420px; width: 100%; margin: 8px auto 0; }
  .h-phone-front { width: 228px; left: 2%; }
  .h-phone-back { width: 200px; right: 2%; top: 46px; }
  .h-lead { font-size: 17px; }
  .h-sub, .kd-lead { font-size: 16.5px; }
  .h-split, .h-plans, .h-links, .kd-cards { grid-template-columns: 1fr; }
  .h-split-rev .h-split-media { order: 0; }
  .h-split-media { order: 2; }
  .h-section-head { margin-bottom: 36px; }
  .ks-footer-grid { grid-template-columns: 1fr 1fr; }
  .ks-footer-brand { grid-column: 1 / -1; }
  .kd-hero { padding: 44px 0 28px; }
  .kd-section { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 0; }
  .kd-info { flex-direction: column; }
  .kd-learn { align-self: flex-start; }
  .h-gallery { gap: 0; }
  .h-gallery-card { width: 38%; position: absolute; }
  .h-gallery-1 { left: 0; transform: rotate(-5deg); }
  .h-gallery-2 { right: 0; transform: rotate(5deg); }
  .h-gallery-phone { width: 230px; }
  .h-facts-list li { padding: 22px 16px 22px 0; }
  .h-facts-list li:nth-child(2n) { padding-left: 16px; }
  .h-facts-list strong { font-size: 26px; }
}

@media (max-width: 520px) {
  .ks-hide-sm { display: none; }
  .ks-header-inner { gap: 12px; height: 64px; }
  .ks-logo { --t: 20px; }
  .ks-header-actions .ks-btn-primary { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .h-features { grid-template-columns: 1fr; }
  .h-hero-visual { height: 420px; }
  .h-phone-front { width: 196px; left: 0; }
  .h-phone-back { width: 172px; right: 0; top: 40px; }
  .h-phone { padding: 7px; border-radius: 32px; }
  .h-phone img { border-radius: 26px; }
  .h-actions .h-btn-lg { width: 100%; }
  .h-plan { padding: 26px 22px; }
  .h-snap { width: 128px; border-radius: 16px; }
  .h-snap-b { width: 112px; top: 30px; }
  .h-snap figcaption { font-size: 11px; padding: 7px 9px; }
  .h-gallery-phone { width: 200px; }
}

/* == About page (/about, KinBackendWeb.PublicWeb.about/1) ============================================================== */
.a-hero { position: relative; padding: 128px 0 40px; margin-top: -72px; overflow: hidden; text-align: center; }
.a-hero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 700px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(54, 226, 194, .13), rgba(54, 226, 194, 0)); pointer-events: none; }
.a-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.a-hero h1 { font-size: clamp(38px, 5.2vw, 66px); letter-spacing: -.035em; line-height: 1.05; max-width: 900px; }
.a-lead { margin-top: 24px; max-width: 720px; display: grid; gap: 14px; color: var(--text-2); font-size: 19px; line-height: 1.65; }
.a-lead p:first-child { color: var(--text); font-weight: 500; }
.a-banner { margin: 24px 0 0; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); aspect-ratio: 2017 / 780; }
.a-banner img { width: 100%; height: 100%; object-fit: cover; }
.a-story { padding-top: 88px; }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.a-card { padding: 32px 30px 34px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.a-card:hover { border-color: rgba(54, 226, 194, .35); }
.a-card h2 { font-size: clamp(22px, 2.2vw, 27px); margin-top: 22px; }
.a-card p { color: var(--text-2); margin-top: 12px; font-size: 16.5px; line-height: 1.7; }
.a-card-privacy { background: linear-gradient(160deg, rgba(54, 226, 194, .10), rgba(54, 226, 194, 0) 55%), var(--surface); border-color: rgba(54, 226, 194, .3); }
.a-card-links .h-link { margin-top: 6px; }
.a-tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.a-tags li { padding: 6px 14px; border-radius: 999px; background: rgba(242, 180, 151, .10); border: 1px solid rgba(242, 180, 151, .28); color: var(--peach); font-size: 14px; font-weight: 500; }

/* == Download Kinstap (home + About; only while the Google Play listing is public) ===================================== */
.h-download { background: radial-gradient(ellipse at 80% 50%, rgba(54, 226, 194, .10), rgba(54, 226, 194, 0) 60%), var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-download-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.h-download-copy .h-sub { margin-bottom: 30px; }
.h-play-badge { display: inline-block; border-radius: 10px; }
.h-play-badge img { width: 216px; height: auto; }
.h-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.h-qr-frame { padding: 14px; border-radius: 24px; background: #ffffff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .2); }
.h-qr-code { display: block; width: 216px; height: 216px; }
.h-qr figcaption { color: var(--text-2); font-size: 14.5px; }

@media (max-width: 820px) {
  .a-hero { padding: 100px 0 28px; }
  .a-lead { font-size: 17px; }
  .a-banner { border-radius: 18px; aspect-ratio: auto; }
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .a-card { padding: 26px 22px 28px; }
  .a-story { padding-top: 64px; }
  .h-download-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
  .h-download-copy .h-sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .h-qr-code { width: 184px; height: 184px; }
}
