/* Kcalma site. System fonts only, no external requests.
   Palette (brand tokens): navy #14213D, white, amber #FCA311. Amber is an accent (buttons on navy, marks, current-page underline); it is never text on a light background.
   Spacing scale: 4 8 12 16 24 32 48 72 (--s1..--s8). Type scale: 0.875 / 1 / 1.125 / 1.25 / 1.6 / 2.1 / 3.4 rem. */
:root {
  color-scheme: light dark;
  --navy: #14213d;
  --amber: #fca311;
  --bg: #f2f5fa;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-2: #3a4560;
  --line: #ccd4e4;
  --link: #1a3a8a;
  --btn-bg: #14213d;
  --btn-fg: #ffffff;
  --band: #e6ebf4;
  --focus: #14213d;
  --focus-halo: #ffffff;
  --badge-edge: transparent;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 68rem;
  --measure: 44rem;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1226;
    --surface: #111b33;
    --ink: #f1f3f8;
    --ink-2: #c3cbdd;
    --line: #2a3859;
    --link: #ffd28a;
    --btn-bg: #fca311;
    --btn-fg: #14213d;
    --band: #0f1a31;
    --focus: #ffffff;
    --focus-halo: #14213d;
    --badge-edge: rgba(255, 255, 255, 0.45);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@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: 1rem/1.6 var(--font); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); border-radius: 4px; }
.skip { position: absolute; left: var(--s2); top: -4rem; background: var(--btn-bg); color: var(--btn-fg); padding: var(--s3) var(--s4); border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { top: var(--s2); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* header: navy on every page */
.site-header { background: var(--navy); color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s4); padding-top: var(--s2); padding-bottom: var(--s2); }
.site-header :focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 6px var(--navy); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: #ffffff; text-decoration: none; }
.brand-mark { width: 1.75rem; height: 1.75rem; color: var(--amber); display: grid; place-items: center; }
.brand-mark svg { width: 1.6rem; height: 1.6rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: #ffffff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.nav .lang { border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 0 var(--s4); margin-left: var(--s1); }
.nav .lang:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
@media (max-width: 40rem) {
  .site-header .wrap { padding-top: 0; }
  .nav { width: 100%; margin: 0 calc(var(--s3) * -1); }
  .nav a { padding: 0 var(--s2); font-size: 0.9rem; }
  .nav .lang { margin-left: auto; }
}

/* type */
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 var(--s4); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 var(--s3); text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 var(--s2); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36rem; margin: 0 0 var(--s5); }
p { margin: 0 0 var(--s4); max-width: var(--measure); }
.note-small { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0 0 var(--s4); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; text-decoration: none; border: 2px solid var(--btn-bg); font-family: inherit; font-size: 1rem; line-height: 1.2; cursor: pointer; box-shadow: 0 1px 0 rgba(20, 33, 61, 0.25); }
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }

/* the badge, as text on pages */
.badge { display: inline-flex; align-items: center; gap: 0.35em; height: 1.565em; padding: 0 0.61em 0 0.52em; border-radius: 999px; background: #14213d; color: #ffffff; font: 600 0.9em/1 var(--font); font-variant-numeric: tabular-nums; border: 1px solid var(--badge-edge); white-space: nowrap; vertical-align: -0.2em; }
.badge svg { width: 0.87em; height: 0.87em; color: #fca311; flex: none; }

/* hero (home): navy band, real product picture */
.hero { background: var(--navy); color: #ffffff; padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; gap: var(--s5); grid-template-areas: "copy" "shot" "actions"; }
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "copy shot" "actions shot"; grid-template-rows: auto 1fr; column-gap: var(--s7); row-gap: var(--s4); align-items: start; }
  .hero-copy { align-self: end; }
}
.hero-copy { grid-area: copy; }
.hero-actions { grid-area: actions; }
.hero-shot { grid-area: shot; margin: 0; align-self: center; }
.hero h1 { color: #ffffff; max-width: 14ch; }
.hero .lead { color: #d6dcec; margin-bottom: 0; }
.hero .badge { font-size: 0.95em; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.hero .btn { background: var(--amber); color: var(--navy); border-color: var(--amber); box-shadow: none; }
.hero .btn:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 6px var(--navy); }
.hero .note-small { color: #c9d1e6; }
.hero .btns .btn { flex: 1 1 11rem; }
@media (min-width: 56rem) { .hero .btns { flex-wrap: nowrap; } .hero .btns .btn { flex: 1 1 0; padding: 0 var(--s3); font-size: 0.95rem; white-space: nowrap; } }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hero-shot figcaption { font-size: 0.85rem; color: #c9d1e6; margin-top: var(--s2); }

/* strip under the hero: supported sites */
.sites-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.sites-strip p { margin: 0; max-width: none; font-size: 0.95rem; color: var(--ink-2); }
.sites-strip strong { color: var(--ink); }

/* sections */
.section { padding: clamp(2.25rem, 6vw, var(--s8)) 0; }
.section.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: var(--s4); }
.grid3 { display: grid; gap: var(--s4); margin-top: var(--s5); }
.grid2 { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 48rem) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-bottom: var(--s2); }
.card h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

/* three steps with real picture crops */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.steps .shot { background: #ffffff; border-bottom: 1px solid var(--line); margin: 0; }
.steps .shot img { display: block; width: 100%; height: auto; }
.steps .shot figcaption { font-size: 0.8rem; line-height: 1.4; color: #3a4560; padding: var(--s2) var(--s4); background: #ffffff; }
.steps .txt { padding: var(--s4) var(--s5) var(--s5); }
.steps .txt p { margin: 0; }
.steps h3 { display: flex; align-items: center; gap: var(--s3); }
.steps h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; font-size: 1rem; border: 1px solid var(--badge-edge); }

/* control section: text + picture */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--s7); } }
.split figure { margin: 0; }
.split img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.split figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: var(--s2); }

.sent h3 { margin-bottom: var(--s3); }
ul.tidy { padding-left: 1.25rem; margin: 0 0 var(--s4); max-width: var(--measure); }
ul.tidy li, ol.tidy li { margin-bottom: var(--s2); }
ol.tidy { padding-left: 1.4rem; margin: 0 0 var(--s4); max-width: var(--measure); }
.status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; border: 1.5px solid var(--ink); }
.status.live { background: var(--ink); color: var(--bg); }
.table-wrap { overflow-x: auto; margin: var(--s4) 0; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; background: var(--surface); }
caption { text-align: left; font-weight: 700; padding: var(--s3) var(--s3) var(--s2); }
th, td { text-align: left; vertical-align: top; padding: var(--s3); border: 1px solid var(--line); font-size: 0.95rem; line-height: 1.5; }
th { background: var(--band); }
.table-wrap table { border: 0; }

/* form */
form.notify { display: grid; gap: var(--s4); max-width: 30rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
label, legend { font-weight: 700; display: block; margin-bottom: var(--s1); }
input[type="email"], select { width: 100%; min-height: 48px; padding: 0 var(--s3); border: 2px solid var(--ink-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; font-weight: 400; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--btn-bg); }
.form-msg { font-weight: 600; margin: 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--ink); border-left: 4px solid #b3261e; padding-left: var(--s3); }
.form-msg.ok { border-left: 4px solid var(--ink); padding-left: var(--s3); }
input[aria-invalid="true"] { border-color: #b3261e; }
.section.prominent { border-top: 4px solid var(--amber); }
.section.prominent form.notify { max-width: 36rem; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s2); max-width: 46rem; }
summary { cursor: pointer; padding: var(--s3) var(--s4); font-weight: 700; min-height: 48px; display: flex; align-items: center; }
details[open] summary { border-bottom: 1px solid var(--line); }
details > div { padding: var(--s4) var(--s4) var(--s1); }

/* prose pages */
.prose { padding: clamp(1.5rem, 4vw, var(--s7)) 0 var(--s7); }
.prose > .wrap { max-width: 50rem; }
.prose.wide > .wrap { max-width: var(--wrap); }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.prose h2 { margin-top: var(--s7); font-size: clamp(1.3rem, 3vw, 1.6rem); }
.prose h3 { margin-top: var(--s5); }
.prose h1 + p, .prose h2 + p { margin-top: 0; }
.prose .meta { color: var(--ink-2); font-size: 0.95rem; }
.prose .lead { max-width: var(--measure); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); max-width: var(--measure); margin: 0 0 var(--s5); }
.toc ol { margin: var(--s2) 0 0; padding-left: 1.4rem; columns: 1; }
.toc a { display: inline-block; padding: var(--s1) 0; }
.callout { border-left: 5px solid var(--ink); background: var(--surface); padding: var(--s4) var(--s5); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); margin: var(--s5) 0; }
.callout > :last-child { margin-bottom: 0; }
.prose .callout .btn { margin-top: var(--s1); }

/* footer */
.site-footer { background: var(--navy); color: #d6dcec; padding: var(--s6) 0 var(--s7); font-size: 0.92rem; }
.site-footer a { color: #ffffff; }
.site-footer :focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 6px var(--navy); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.site-footer p { max-width: 50rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* tooltip header (kept for older markup) and disclosure line */
.tip-head { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; margin: 0 0 0.5rem; }
.disclose { font-size: 0.95rem; color: var(--ink); border-left: 4px solid var(--ink); padding-left: var(--s3); margin: 0 0 var(--s4); }

/* root language chooser */
.hero .btn.alt { background: transparent; color: #ffffff; border-color: #ffffff; }
body[data-root] .hero { min-height: 100vh; display: grid; align-content: center; }
body[data-root] .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "actions"; }
body[data-root] .hero h1 { max-width: none; }
body[data-root] .hero .btn { flex: 0 0 auto; }

/* store button that is not live yet: a label, not a link */
.btn.soon { background: transparent; color: var(--ink); border-style: dashed; box-shadow: none; cursor: default; font-weight: 600; text-align: center; }
.btn.soon:hover { text-decoration: none; }
.hero .btn.soon { background: transparent; color: #ffffff; border-color: #c9d1e6; white-space: normal; }
