/* KhataRasoi website. White canvas, vivid orange marks; white-on-orange and small orange text use the accessible step. */
:root {
  /* Generated from brand/brand.json (scripts/brand/apply-brand.mjs): white canvas, orange accents. */
  /* brand:light:start */
  --kr-orange: #FF6B00;
  --kr-orange-600: #C44D00;
  --kr-orange-700: #C44D00;
  --kr-orange-800: #A34000;
  --kr-cream: #FAFAFA;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-muted: #FAFAFA;
  --ink: #171717;
  --ink-2: #171717;
  --muted: #4B5563;
  --line: #E5E5E5;
  /* brand:light:end */
  --dark: #171717;
  --dark-2: #262626;
  --good: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(17 24 39 / 0.04), 0 12px 32px -12px rgb(17 24 39 / 0.16);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kr-orange-700); text-underline-offset: 3px; }
a:hover { color: var(--kr-orange-800); }
:focus-visible { outline: 3px solid var(--kr-orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font: 700 1.2rem/1.3 var(--sans); }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
.lead, .card p { text-wrap: pretty; }
::selection { background: rgb(255 107 0 / 0.22); }
p { margin: 0 0 1em; }
code { font: 500 0.9em var(--mono); background: var(--kr-cream); padding: 0.1em 0.35em; border-radius: 5px; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; padding: 0; border: 0; }
#main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 32px)); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 46rem; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--kr-orange-700); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--kr-orange); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(17 24 39 / 0.4); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--sans); letter-spacing: -0.025em; }
.logo:hover { color: var(--ink); }
.logo img { width: 42px; height: 36px; flex-shrink: 0; }
/* Official wordmark colours: "Khata" in ink (white on dark), "Rasoi" in brand orange. Logotypes are exempt from text contrast minimums. */
.wordmark span { color: var(--kr-orange); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 11px; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: var(--kr-cream); }
.main-nav a[aria-current='page'] { color: var(--kr-orange-700); }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-register { font-weight: 600 !important; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform 0.2s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; } .menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded='true'] .bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 0.98rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-primary { background: var(--kr-orange-700); color: #fff; box-shadow: 0 6px 0 -2px var(--kr-orange); }
.btn-primary:hover { background: var(--kr-orange-800); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--kr-orange); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--kr-orange-800); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 0.5); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--surface-muted); }
.section.dark { background: var(--dark); color: #e5e5e5; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #ff8a3d; }
.section.dark .lead { color: #d4d4d4; }
.section-head { max-width: 50rem; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-rev > :first-child { order: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.center-link { text-align: center; margin-top: 32px; font-weight: 600; }
.center-link a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%; border: 70px solid rgb(255 107 0 / 0.08); pointer-events: none; transform: translate3d(0, var(--parallax, 0px), 0); }
.hero::before { content: ''; position: absolute; left: -120px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 107 0 / 0.07), transparent); pointer-events: none; transform: translate3d(0, calc(var(--parallax, 0px) * -0.6), 0); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 em { font-style: italic; color: var(--kr-orange-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 24px; color: var(--ink-2); font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--kr-orange-700); }
.hero-visual { position: relative; }
.hero-badge { position: absolute; left: -24px; bottom: -28px; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.hero-badge .ico { color: var(--good); width: 28px; height: 28px; }
.hero-badge small { display: block; color: var(--muted); }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.88rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: #a3a3a3; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--kr-orange-800); }
.page-hero.compact h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.narrow-center { max-width: 960px; }

/* Product frames (actual screenshots) */
.frame { margin: 0; position: relative; }
.frame picture { display: block; }
.frame img { border-radius: 12px; border: 1px solid #d4d4d4; background: #fff; box-shadow: 18px 18px 0 -2px var(--kr-orange); }
.frame-green img { box-shadow: 18px 18px 0 -2px #16a34a; }
.frame figcaption { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 26px; text-align: right; }
.frame-phone img { border-radius: 26px; border: 8px solid var(--dark); box-shadow: 10px 10px 0 -2px var(--kr-orange); max-width: 260px; }
.phones { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.phones .frame:nth-child(2) { margin-top: 56px; }

/* Grids */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.numbered article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbered article:nth-child(3n) { border-right: 0; }
.numbered article:nth-last-child(-n + 3) { border-bottom: 0; }
.num { font: 500 0.8rem var(--mono); color: var(--kr-orange-700); display: block; margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--kr-orange); } }
.card:has(h3 a) { position: relative; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--kr-orange); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card p { color: var(--muted); margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--kr-cream); color: var(--kr-orange-700); margin-bottom: 18px; }
.card-ico .ico { width: 22px; height: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--kr-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23c2410c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks.cols { grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.flow { counter-reset: f; list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.flow li { counter-increment: f; display: flex; gap: 14px; align-items: baseline; }
.flow li::before { content: counter(f, decimal-leading-zero); font: 500 0.8rem var(--mono); color: var(--kr-orange-700); min-width: 26px; }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps-grid p { color: var(--muted); margin: 0; }
.panel-dark { background: var(--dark-2); border: 1px solid #404040; border-radius: var(--radius); padding: 28px; }
.panel-dark h3 { display: flex; gap: 10px; align-items: center; }
.panel-dark h3 .ico { color: var(--kr-orange); }
.panel-dark ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #d4d4d4; }
.cta-box { background: var(--kr-orange-700); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #fff; }
.cta-box .hero-actions { justify-content: flex-end; margin: 0; }

/* Demo */
.demo { background: var(--surface); border: 1px solid #d4d4d4; border-radius: 16px; box-shadow: 18px 18px 0 -2px var(--kr-orange); overflow: hidden; font-size: 0.92rem; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--dark); color: #fff; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #525252; }
.demo-bar strong { margin-left: 8px; font-size: 0.85rem; }
.demo-tag { margin-left: auto; font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; background: var(--kr-orange); color: var(--dark); padding: 3px 8px; border-radius: 99px; }
.demo-body { display: grid; grid-template-columns: 1.3fr 1fr; }
.demo-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; border-right: 1px solid var(--line); }
.demo-item { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.demo-item:hover { border-color: var(--kr-orange); }
.demo-item strong { display: block; }
.demo-item span { color: var(--muted); }
.demo-cart { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.demo-cart h3, .demo-kds h3 { font-size: 0.95rem; margin: 0; display: flex; gap: 6px; align-items: center; }
.demo-cart ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; min-height: 80px; }
.demo-cart li { display: flex; justify-content: space-between; gap: 8px; }
.demo-total { border-top: 1px dashed var(--line); padding-top: 8px; font-weight: 700; }
.demo-kds { border-top: 1px solid var(--line); padding: 14px; background: #fafafa; }
.demo-tickets { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; }
.ticket { min-width: 160px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--kr-orange); border-radius: 8px; padding: 8px 10px; }
.ticket.ready { border-left-color: var(--good); }
.ticket ul { margin: 4px 0 8px; padding-left: 16px; }
.ticket button { font: 600 0.8rem var(--sans); border: 0; border-radius: 6px; padding: 5px 10px; background: var(--dark); color: #fff; cursor: pointer; }
.demo-bill { border-top: 1px solid var(--line); padding: 14px; background: var(--kr-cream); }
.demo-bill .row { display: flex; justify-content: space-between; }
.demo-bill .wa { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 0.85rem; white-space: pre-line; }

/* Products, pricing */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
@media (hover: hover) { .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); } }
.product-card h2 { font-size: 1.6rem; }
.product-card p { color: var(--muted); flex: 1; }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--kr-orange-700); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan .checks { flex: 1; }
.plan-featured { border: 2px solid var(--kr-orange); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; left: 24px; background: var(--kr-orange); color: var(--dark); font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 99px; }
.plan-price strong { font: 700 1.8rem var(--display); }
.plan-price span { color: var(--muted); }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.5rem/1 var(--sans); color: var(--kr-orange-700); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 16px; color: var(--ink-2); }

/* Downloads */
.recommend { margin-top: 28px; }
.rec-card { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); max-width: 820px; }
.rec-card .meta { color: var(--muted); font-size: 0.9rem; }
.dl-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dl-head h2 { margin: 0; }
.dl-head select, .form input, .form select, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid #d4d4d4; border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.dl-head label { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.dl-head select { width: auto; }
.dl-table table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.95rem; }
.dl-table th, .dl-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dl-table th { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: #fafafa; }
.dl-table code.sha { font-size: 0.72rem; word-break: break-all; }
.badge { display: inline-block; font: 600 0.72rem var(--sans); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--good); border-color: #86efac; background: #f0fdf4; }
.badge.warn { color: #9a3412; border-color: #fdba74; background: #fff; }

/* Docs, forms, legal */
.doc { max-width: 820px; }
.doc h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; scroll-margin-top: 90px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 92px; }
.doc-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.doc-toc a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--kr-orange-700); border-left-color: var(--kr-orange); }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form small { font-weight: 400; color: var(--muted); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form legend { font: 700 1.25rem var(--display); margin-bottom: 8px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 2px; }
.row3 { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 12px; }
.form-status { margin: 0; min-height: 1.4em; }
.form-status.error { color: #b91c1c; }
.form-status.ok { color: var(--good); }
.result-card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid #d97706; border-radius: 14px; padding: 24px; }
.result-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.result-card dt { color: var(--muted); } .result-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.register-side, .contact-side { padding-top: 8px; }
.contact-side h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.2em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact-list .ico { color: var(--kr-orange-700); margin-top: 3px; }
.contact-list strong { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-fallback { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); align-self: start; }
.login-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.login-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); }
.login-card h2 { font-size: 1.4rem; }
.login-card p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: #d4d4d4; padding: 72px 0 28px; }
.site-footer a { color: #e5e5e5; text-decoration: none; }
.site-footer a:hover { color: #ff8a3d; }
.logo-light, .site-footer .logo-light:hover { color: #fff; }
.foot-contact a { font-weight: 600; overflow-wrap: anywhere; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { color: #a3a3a3; max-width: 22rem; margin-top: 14px; }
.foot-title { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: #ff8a3d; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.95rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #404040; margin-top: 48px; padding-top: 22px; font-size: 0.86rem; color: #a3a3a3; }
.foot-bottom a { text-decoration: underline; }
.foot-bottom .to-top { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #404040; border-radius: 50%; color: #e5e5e5; transition: border-color 0.2s, color 0.2s; }
.foot-bottom .to-top:hover { border-color: #ff8a3d; color: #ff8a3d; }
.foot-bottom .to-top .ico { width: 22px; height: 22px; stroke-width: 2.2; }

/* Touch screens: at least 44px tap targets without changing the desktop density. */
@media (pointer: coarse) {
  .logo, .site-footer ul a, .doc-toc a, .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .site-footer ul { gap: 0; }
  .btn-sm, .ticket button, .demo-item { min-height: 44px; }
  .demo-cart .btn, [data-demo-send] { min-height: 48px; }
  .foot-bottom a:not(.to-top) { display: inline-block; padding: 10px 0; }
  .contact-list a, .crumbs a, .foot-contact a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Reveal on scroll: content is always visible; entering elements only get a short rise. */
@keyframes kr-rise { from { opacity: 0.55; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js .reveal.in { animation: kr-rise 0.55s ease both; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow: auto; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav-sep { display: none; }
  .menu-toggle { display: inline-block; }
  .cards, .product-grid, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .two-col, .cta-box, .doc-layout { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: 18px; display: inline-flex; }
  .numbered { grid-template-columns: 1fr 1fr; }
  .numbered article:nth-child(3n) { border-right: 1px solid var(--line); }
  .numbered article:nth-child(2n) { border-right: 0; }
  .numbered article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .numbered article:nth-last-child(-n + 2) { border-bottom: 0; }
  .cta-box .hero-actions { justify-content: flex-start; }
  .doc-toc { position: static; }
  .login-options { grid-template-columns: 1fr; }
  .checks.cols { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-cta .btn { display: none; }
  .cards, .product-grid, .plans, .steps-grid, .numbered { grid-template-columns: 1fr; }
  .numbered article { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .numbered article:last-child { border-bottom: 0 !important; }
  .hero-points { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-menu { border-right: 0; border-bottom: 1px solid var(--line); }
  .frame img { box-shadow: 10px 10px 0 -2px var(--kr-orange); }
  .phones { flex-direction: column; align-items: center; }
  .phones .frame:nth-child(2) { margin-top: 0; }
  .row3 { grid-template-columns: 1fr; }
  .site-footer { padding-top: 56px; }
  .foot-bottom { margin-top: 32px; flex-direction: column; gap: 4px; }
  .foot-bottom p { margin: 0; }
  .section-head { margin-bottom: 32px; }
  .hero::after { width: 380px; height: 380px; border-width: 48px; right: -170px; top: -120px; }
  .dl-table table, .dl-table thead, .dl-table tbody, .dl-table tr, .dl-table td { display: block; }
  .dl-table thead { display: none; }
  .dl-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .dl-table td { border: 0; padding: 4px 16px; }
}
