/* KBY Flow site. Black and ember: white pages, black text, ember buttons, a yellow band, a black stage. */
:root {
  --bg: #ffffff; --soft: #ededed; --line: #cfcfcf;
  --fg: #111111; --muted: #4a4a4a;
  --ember: #ff4f1f; --ember-text: #c2360b; --spike: #f2ff3d; --stage: #0a0a0a;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: #fff; padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 6px solid var(--spike); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.brand svg { flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a.btn:hover { text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .brand { font-size: 19px; letter-spacing: .24em; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--ember); color: var(--fg); font: 700 17px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #ff6a40; }
.btn.big { min-height: 60px; padding: 0 34px; font-size: 20px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--fg); }
.btn.ghost:hover { background: var(--soft); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .98; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(52px, 9vw, 104px); }
h2 { font-size: clamp(38px, 6vw, 64px); }
h3 { font-size: 30px; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }
.tag { display: inline-block; background: var(--spike); color: var(--fg); font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }

section { padding: 84px 0; }
section.soft { background: var(--soft); }
section.dark { background: var(--stage); color: #fff; }
section.dark .lead, section.dark .muted { color: #c9c9c9; }
.head { display: grid; gap: 16px; margin-bottom: 44px; }
@media (max-width: 760px) { section { padding: 60px 0; } .head { margin-bottom: 32px; } }

/* hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero .copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 em { font-style: normal; color: var(--ember-text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.phone { justify-self: center; width: min(100%, 340px); aspect-ratio: 340 / 640; background: var(--stage); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; }
.phone iframe { position: absolute; left: 0; top: 0; width: 390px; height: 760px; border: 0; transform-origin: 0 0; pointer-events: none; }
.phone-note { text-align: center; margin-top: 14px; }
@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .phone { width: min(100%, 300px); }
}

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 16px; padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: 0 0 0 1px var(--line); }
section.dark .card { background: #171717; box-shadow: 0 0 0 1px #333; }
.card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--stage); color: #fff; display: grid; place-items: center; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.num { font: 700 64px/1 var(--display); color: var(--ember-text); }
section.dark .num { color: var(--spike); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 4px solid var(--fg); }
.steps li::before { content: counter(s); font: 700 56px/1 var(--display); color: var(--ember-text); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* levels strip */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 600 15px/1 var(--body); padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; }

/* price */
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } }
.price .card.now { box-shadow: 0 0 0 3px var(--fg); }
.amount { font: 700 68px/1 var(--display); }
.amount small { font: 600 18px/1 var(--body); color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 28px/1 var(--display); color: var(--ember-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* closing */
.close { text-align: center; }
.close .wrap { display: grid; gap: 24px; justify-items: center; }

/* footer */
footer { border-top: 6px solid var(--spike); padding: 36px 0 48px; font-size: 15px; }
footer .wrap { display: grid; gap: 18px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
@media (max-width: 760px) { footer nav { margin-left: 0; } }

/* plain pages (privacy, support) */
.doc { padding: 56px 0 84px; }
.doc .wrap { max-width: 760px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); }
.doc h2 { font-size: 32px; margin-top: 18px; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

section[id] { scroll-margin-top: 70px; }

section.dark a:focus-visible { outline-color: #fff; }
.nav a { white-space: nowrap; }
@media (max-width: 900px) { .grid2.nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
