/* Kivá landing page. System fonts only, no external requests. Dark by default, light when the visitor's system is light. */
:root {
  --bg: #0b1020; --bg2: #121936; --panel: #161e3d; --line: #2a3563;
  --ink: #eef1fb; --dim: #a3aed0; --a: #5eead4; --b: #a78bfa; --on-accent: #06231f;
  --err: #ff9aa8; --ok: #6ee7b7; --radius: 16px; --max: 1120px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fd; --bg2: #e9eefb; --panel: #ffffff; --line: #d3dbf0;
    --ink: #151b38; --dim: #525c80; --a: #0d9488; --b: #7c3aed; --on-accent: #ffffff;
    --err: #b42340; --ok: #0f7a55;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--a); text-underline-offset: 3px; }
a:hover { color: var(--b); }
:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.fine { font-size: .88rem; color: var(--dim); }
.opt { font-weight: 400; color: var(--dim); font-size: .85em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--a); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
}
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--dim); text-decoration: none; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.6rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.mark { width: 38px; height: 38px; display: inline-block; border-radius: 8px; border: 1px solid var(--line); }   /* the outline keeps it visible even when the page background is the same navy as the tile in dark mode; shape and gradient are in favicon.svg itself */

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: linear-gradient(135deg, var(--a), var(--b)); color: var(--on-accent);
  font: 700 1rem/1 "Segoe UI", system-ui, sans-serif; padding: 15px 26px; border-radius: 999px;
  min-height: 48px; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.08); transform: translateY(-1px); }
.btn.small { padding: 11px 18px; min-height: 40px; font-size: .92rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link { color: var(--ink); text-decoration: none; font-weight: 600; }
.link:hover { color: var(--a); }

/* hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 72px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.eyebrow { color: var(--a); font-weight: 700; font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; }
.lead { font-size: 1.22rem; color: var(--dim); max-width: 34em; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 28px 0 18px; }
.say-name { color: var(--dim); font-size: 1.2rem; margin: 0; }
.say-name strong { color: var(--ink); }
.hero-visual { background: radial-gradient(120% 100% at 50% 0%, var(--bg2), var(--bg)); border: 1px solid var(--line); border-radius: 24px; padding: 28px 18px; }
#analyzer { width: 100%; max-width: 100%; height: auto; display: block; }
/* a grid item may not be wider than its column just because its content is (the canvas is 1200px wide inside) */
.hero > *, .demo > *, .research > *, .signup > *, .steps > *, .grid > *, .checks > * { min-width: 0; }
img, svg, canvas { max-width: 100%; }

/* sections */
.band { padding: 72px 24px; max-width: var(--max); margin: 0 auto; }
/* full-bleed tinted bands whose content still lines up with the centred column (side padding grows with the window) */
.band.alt { max-width: none; background: var(--bg2); padding-left: max(24px, calc((100% - var(--max)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--max)) / 2 + 24px)); }
.section-lead { color: var(--dim); font-size: 1.1rem; margin-bottom: 32px; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps p { color: var(--dim); margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }

/* demo: a copy of the app's own screen (see web/index.html), sized in proportion to it, beside the text */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.demo > * { margin: 0; }
.demo-copy p { color: var(--dim); }
.process { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.process li { color: var(--dim); font-size: .98rem; line-height: 1.55; padding-left: 16px; border-left: 3px solid var(--line); }
.process strong { color: var(--ink); }
.demo-stage { min-width: 0; width: 100%; position: sticky; top: 24px; }
html:not(.js) .demo-stage { display: none; }
.screen {
  --stage-top: #141a33; --stage-bottom: #0b1020; --ink: #e9ecf5; --dim: #8f98b5; --a: #5eead4; --b: #a78bfa;
  container-type: size; position: relative; overflow: hidden; aspect-ratio: 4 / 3; color: var(--ink);
  background: radial-gradient(120% 100% at 50% 0%, var(--stage-top), var(--stage-bottom)); border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.4cqh; padding: 0 2cqw 6cqh;
}
@media (prefers-color-scheme: light) { .screen { --stage-top: #dfe5f6; --stage-bottom: #eef1fa; --ink: #1b2140; --dim: #6b7391; --a: #0d9488; --b: #7c3aed; } }
.screen > * { margin: 0; }
.screen .env { position: absolute; top: 2.2cqh; left: 1.8cqw; display: flex; align-items: center; gap: 8px; font: 600 max(9px, 1.5cqw) ui-monospace, Consolas, monospace; letter-spacing: .14em; color: var(--dim); }
.screen .env i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 8px var(--a); }
#demo-bars { width: 80cqw; height: auto; display: block; }
.screen .said { width: 80cqw; min-height: 4.5em; text-align: center; font-size: max(14px, 2.6cqw); font-weight: 300; letter-spacing: .01em; line-height: 1.5; }
.screen .you { min-height: 1.5em; color: var(--dim); font-size: max(12px, 1.9cqw); text-align: center; opacity: 0; transition: opacity .6s ease; }
.screen .you.show { opacity: 1; }
.screen .ear { position: absolute; left: 50%; bottom: 3.4cqh; width: max(22px, 4.6cqw); height: max(22px, 4.6cqw); transform: translateX(-50%); fill: currentColor; color: var(--a); opacity: 0; }
.screen .ear.on { animation: ear 2.6s ease-in-out infinite; }
.screen .ear.standby { opacity: .28; }
@keyframes ear { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.screen .start {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; cursor: pointer;
  background: color-mix(in srgb, var(--stage-top) 78%, transparent); backdrop-filter: blur(6px); transition: opacity .6s;
}
.screen .start.gone { opacity: 0; pointer-events: none; }
.screen .start p { font-size: max(16px, 2.8cqw); font-weight: 300; letter-spacing: .04em; }
.screen .start small { color: var(--dim); font-size: max(12px, 1.9cqw); }
[hidden] { display: none !important; }

/* the listing: a preview of what was published in the sandbox (white, like the report the app opens over its screen), with the same close button */
.screen .preview {
  position: absolute; inset: 4cqh 4cqw; z-index: 2; overflow: hidden; background: #fff; color: #1d2433; border-radius: 12px; text-align: left;
  padding: 3.4cqh 3.4cqw; font-size: max(10.5px, 2.4cqw); line-height: 1.4;
  box-shadow: 0 0 0 1600px rgba(5, 8, 18, .72), 0 20px 60px rgba(0, 0, 0, .45);      /* the dimmed backdrop the app puts behind its report */
  display: flex; flex-direction: column; gap: 2.4cqh; animation: preview-in .5s ease both;
}
@keyframes preview-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.preview-close { position: absolute; top: 1.6cqh; right: 1.6cqw; width: max(22px, 3.6cqw); height: max(22px, 3.6cqw); border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: #fff; color: #333; cursor: pointer; font: inherit; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.preview-close:hover { background: #f2f2f2; }
.screen .preview p, .screen .preview h3, .screen .preview dl { margin: 0; }
.preview-bar { display: flex; align-items: center; gap: .8em; padding-right: 3em; color: #667085; font-size: .92em; font-weight: 650; }
.preview-status { background: #dff5ea; color: #0f5b3a; border-radius: 999px; padding: .15em .8em; }
.listing { display: grid; grid-template-columns: 40% 1fr; gap: 3cqw; align-items: start; }
.photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #e6eaf2; }
.screen .preview h3 { font-size: 1.3em; line-height: 1.25; letter-spacing: 0; color: #111827; }
.price { font-size: 1.8em; font-weight: 750; margin-top: .3em !important; }
.terms { color: #667085; font-size: .95em; }
.specifics { display: grid; grid-template-columns: 1fr 1fr; gap: .5em 1em; margin-top: .9em !important; }
.specifics dt { color: #667085; font-size: .84em; }
.specifics dd { margin: 0; font-weight: 650; }

@media (max-width: 560px) {
  .screen { aspect-ratio: 3 / 4; gap: 5cqh; }
  #demo-bars, .screen .said { width: 92cqw; }
  .screen .preview { inset: 3cqh 3cqw; font-size: max(10.5px, 3.2cqw); }
  .listing { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 3 / 1; }
}

/* features */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--dim); margin: 0; font-size: .97rem; }
.ico { width: 30px; height: 30px; margin-bottom: 12px; fill: none; stroke: var(--a); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* the sales chart */
.research { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.research > * { margin: 0; }
.research p { color: var(--dim); }
.sales { display: flex; align-items: flex-end; gap: 5px; height: 230px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.sales .col { flex: 1; display: flex; flex-direction: column-reverse; gap: 4px; }
.sales .sq { aspect-ratio: 1; border-radius: 4px; background: var(--dim); opacity: .55; }
.sales .n { text-align: center; line-height: 1; padding-bottom: 2px; font: 700 .72rem/1 ui-monospace, Consolas, monospace; color: var(--dim); }
.sales .col.price .sq { background: linear-gradient(135deg, var(--a), var(--b)); opacity: 1; }

/* safety */
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 44px; }
.checks li { padding-left: 34px; position: relative; color: var(--dim); }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
.checks li::after { content: ""; position: absolute; left: 6px; top: .5em; width: 8px; height: 4px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.checks strong { color: var(--ink); }

/* signup */
.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.signup > * { margin-top: 0; margin-bottom: 0; }
.signup-copy p { color: var(--dim); }
.next { list-style: none; counter-reset: next; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.next li { counter-increment: next; position: relative; padding-left: 40px; color: var(--dim); }
.next li::before { content: counter(next); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: linear-gradient(135deg, var(--a), var(--b)); color: var(--on-accent); }
.next strong { color: var(--ink); }
.next + .fine { margin-top: 24px; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 650; font-size: .95rem; padding: 0; }
.form input[type=email], .form input[type=text], .form select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 13px 14px; min-height: 48px;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 28%, transparent); }
.field[aria-invalid] input, input[aria-invalid=true] { border-color: var(--err); }
fieldset.field { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
fieldset.field legend { width: 100%; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; font-size: .96rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--a); flex: none; }
.consent { color: var(--dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 46em; margin-top: 24px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style-position: inside; }
details p { color: var(--dim); padding-bottom: 6px; }

.foot { border-top: 1px solid var(--line); padding: 34px 24px 48px; text-align: center; color: var(--dim); }
.foot p { margin: 0 0 8px; }

/* text pages (privacy) */
.doc .prose { max-width: 42em; margin: 0 auto; padding: 24px 24px 64px; }
.doc .prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc .prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc .prose ul { padding-left: 1.2em; }
.doc .prose li { margin-bottom: .5em; }

@media (max-width: 900px) {
  .checks { grid-template-columns: 1fr; }
  .hero, .demo, .research, .signup { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .demo-stage { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .top nav a:not(.btn) { display: none; }
  .band { padding: 52px 20px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen .you { transition: none; }
  .btn { transition: none; }
}
