/* instram.hu
 *
 * The palette is the one INSTRAM and BTD share (BTD repo, docs/instram/VIZUALIS.md):
 * a dark "chrome" for the program's own surfaces and a light "data" surface for what is
 * being examined. On the data surface red is a debit and green a credit; on the chrome
 * green means "in place" and gold "a model suggested this". The site keeps those meanings.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* data surface (light) */
  --bg: #ffffff;
  --bg-tint: #f5f6f8;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;

  /* chrome (dark) */
  --chrome-deep: #0f1623;
  --chrome-bg: #111827;
  --chrome: #1f2937;
  --chrome-raise: #374151;
  --chrome-raise-2: #4b5563;
  --c-ink: #ffffff;
  --c-ink-2: #d1d5db;
  --c-ink-3: #9ca3af;
  --c-ink-4: #6b7280;

  /* accent */
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-ink: #1e40af;
  --accent-chip: #1e3a8a;
  --accent-chip-ink: #bfdbfe;

  /* meanings */
  --debit: #dc2626;
  --credit: #047857;
  --ok: #10b981;
  --warn: #f59e0b;
  --map: #fef9c3;
  --map-ink: #854d0e;
  --model: #713f12;
  --model-ink: #fde68a;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --gutter: 24px;
  --shadow-app: 0 30px 60px -20px rgba(2, 6, 23, .45), 0 12px 24px -12px rgba(2, 6, 23, .35);
  --topbar-h: 64px;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.028em; }
h3 { font-size: 1.08rem; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.band { padding: 104px 0; }
.band-tint { background: var(--bg-tint); }
.band-dark { background: var(--chrome-bg); color: var(--c-ink); }
.band-dark .lead, .band-dark p { color: var(--c-ink-2); }
.band-dark strong { color: var(--c-ink); }

.kicker {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.band-dark .kicker, .hero .eyebrow { color: #93c5fd; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--c-ink); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(17, 24, 39, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--c-ink);
}
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); text-decoration: none; }
.brand:hover { color: var(--c-ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { font-weight: 750; letter-spacing: .06em; font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--c-ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lang { color: var(--c-ink-2); text-decoration: none; font-size: .86rem; font-weight: 650; letter-spacing: .06em; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; }
.lang:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s, background-color .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--topbar-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px var(--gutter) 24px;
    background: var(--chrome-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .lang { align-self: flex-start; }
  .nav .btn { width: 100%; padding: 13px 22px; font-size: 1rem; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  color: var(--c-ink);
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(59, 130, 246, .28), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(59, 130, 246, .10), transparent 70%),
    linear-gradient(180deg, var(--chrome-bg) 0%, var(--chrome-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-text { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 22px; font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { color: var(--c-ink-2); max-width: 680px; margin: 0 auto 34px; }
.hero .lead strong { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 34px; color: var(--c-ink-3); font-size: .93rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ic-check { color: var(--ok); }

/* the flow figure: statements -> INSTRAM -> signed CSV -> BTD */

.flow {
  margin: 76px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 56px minmax(0, 1fr) 56px minmax(0, 1.1fr) 56px minmax(0, 1fr);
  align-items: center;
}
.flow-docs { position: relative; height: 210px; }
.doc {
  position: absolute; width: 78%; left: 11%;
  background: #fff; color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .55);
  overflow: hidden;
  font-size: .72rem;
}
.doc:nth-child(1) { top: 0; transform: rotate(-5deg) translateX(-8%); }
.doc:nth-child(2) { top: 48px; transform: rotate(2deg) translateX(6%); }
.doc:nth-child(3) { top: 100px; transform: rotate(-1.5deg); }
.doc-head { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--line); font-weight: 650; }
.doc-kind { font-size: .64rem; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px; background: var(--bg-tint); color: var(--ink-2); }
.doc-pdf .doc-kind { background: #fee2e2; color: #991b1b; }
.doc-xlsx .doc-kind { background: #d1fae5; color: #065f46; }
.doc-txt .doc-kind { background: var(--accent-soft); color: var(--accent-ink); }
.doc-body { padding: 9px 10px 11px; }
.doc-body .l { display: block; height: 5px; border-radius: 3px; background: var(--line); margin: 5px 0; }
.l.w50 { width: 50%; } .l.w60 { width: 60%; } .l.w70 { width: 70%; } .l.w80 { width: 80%; } .l.w90 { width: 90%; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.doc-grid i { height: 9px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 2px; }
.doc-grid i:nth-child(-n+4) { background: var(--map); border-color: #fde68a; }
.doc-mono { font-family: var(--mono); font-size: .62rem; line-height: 1.55; color: var(--ink-2); white-space: nowrap; overflow: hidden; }

.flow-link { position: relative; height: 2px; margin: 0 6px; background: rgba(147, 197, 253, .25); border-radius: 2px; }
.flow-link::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid rgba(147, 197, 253, .55); border-right: 0; }
.flow-link span {
  position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #93c5fd; box-shadow: 0 0 10px 2px rgba(59, 130, 246, .7);
  animation: travel 2.4s cubic-bezier(.5, 0, .5, 1) infinite;
}
.flow-link:nth-of-type(4) span { animation-delay: .8s; }
.flow-link:nth-of-type(6) span { animation-delay: 1.6s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

.flow-node, .flow-csv {
  background: linear-gradient(180deg, rgba(55, 65, 81, .72), rgba(31, 41, 55, .9));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.node-title { display: flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: .05em; font-size: .95rem; }
.node-title .brand-mark { width: 24px; height: 24px; }
.btd-mark { display: inline-grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 6px; background: #fff; color: var(--chrome); font-size: .78rem; letter-spacing: .04em; }
.node-cap { margin: 4px 0 12px; font-size: .78rem; color: var(--c-ink-3); }
.node-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-top: 5px; border-radius: 7px; background: rgba(255, 255, 255, .05); font-size: .8rem; color: var(--c-ink-2); }
.node-steps li span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-chip); color: var(--accent-chip-ink); font-size: .68rem; font-weight: 700; }
.csv-title { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: 8px; }
.csv-lines { font-family: var(--mono); font-size: .66rem; line-height: 1.7; color: var(--c-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csv-sig { display: block; color: var(--accent-chip-ink); }
.csv-ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(16, 185, 129, .14); color: #6ee7b7; font-size: .76rem; font-weight: 600; }
.mini-graph { width: 100%; height: auto; }
.mini-graph .e { stroke: var(--chrome-raise-2); stroke-width: 2; fill: none; }
.mini-graph .e-hot { stroke: var(--accent); stroke-width: 2.6; fill: none; stroke-dasharray: 6 4; animation: dash 1.6s linear infinite; }
.mini-graph .n { fill: var(--chrome-raise-2); }
.mini-graph .n-hot { fill: var(--accent); stroke: #bfdbfe; stroke-width: 2; }
.mini-graph text { fill: var(--c-ink-3); font-size: 10px; font-family: var(--font); }
@keyframes dash { to { stroke-dashoffset: -20; } }

@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; max-width: 380px; margin: 60px auto 0; }
  .flow-docs { height: 190px; }
  .flow-link { width: 2px; height: 40px; margin: 6px auto; }
  .flow-link::after { right: auto; left: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid rgba(147, 197, 253, .55); border-bottom: 0; }
  .flow-link span { left: -2px; animation-name: travel-down; }
  @keyframes travel-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
}

/* --------------------------------------------------------------- problem */

.band-problem { text-align: center; padding: 96px 0 40px; }
.band-problem .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.band-problem strong { color: var(--ink); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 750;
}
.step-product { margin: 0 0 4px; font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.step h3 { font-size: 1.25rem; }
.step p:last-child { margin: 0; color: var(--ink-2); }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 47px; right: -24px; width: 24px; height: 2px; background: var(--line-2);
}

/* --------------------------------------------------------------- product */

.product-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-bottom: 72px; }
.product-intro-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product-intro-flip > :first-child { order: 2; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.band-tint .feature { border-color: transparent; box-shadow: 0 1px 2px rgba(17, 24, 39, .05); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.feature strong { color: var(--ink); }
.badge-new { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: .7rem; font-weight: 650; letter-spacing: .04em; }

/* the screenshots */

.shot { margin: 0; }
.shot-frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--chrome);
  box-shadow: var(--shadow-app);
  outline: 1px solid rgba(17, 24, 39, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot-frame:hover { transform: translateY(-2px); box-shadow: 0 36px 70px -24px rgba(2, 6, 23, .5), 0 14px 28px -14px rgba(2, 6, 23, .35); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.band-dark .shot figcaption { color: var(--c-ink-3); }
.band-dark .shot-frame { outline-color: rgba(255, 255, 255, .08); }
.shot-panel { max-width: 384px; justify-self: center; width: 100%; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 72px; }
.shots-note { margin: 32px 0 0; font-size: .88rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ Robi */

.robi { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: center; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 26px; }
.mode { padding: 20px; border-radius: 12px; background: var(--chrome); border: 1px solid var(--chrome-raise); }
.mode h3 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.02rem; }
.mode p { margin: 0; font-size: .95rem; }
.mode-light { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mode-teach .mode-light { background: var(--warn); box-shadow: 0 0 10px rgba(245, 158, 11, .8); }
.mode-investigate .mode-light { background: var(--accent); box-shadow: 0 0 10px rgba(59, 130, 246, .9); }
.guard { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); font-size: .95rem; }
.guard .ic { flex: none; color: #6ee7b7; margin-top: 1px; }

/* --------------------------------------------------------------- audience */

.audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.audience-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 1.08rem; font-weight: 550; }
.audience-list .ic { color: var(--accent-strong); flex: none; }
.cases-title { margin: 30px 0 12px; font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cases { display: flex; flex-wrap: wrap; gap: 8px; }
.cases li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 550; font-size: .93rem; }

/* ---------------------------------------------------------------- contact */

.contact { background:
    radial-gradient(700px 380px at 0% 0%, rgba(59, 130, 246, .18), transparent 70%),
    var(--chrome-bg); }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-direct { margin-top: 28px; }
.contact-direct a { color: #93c5fd; font-weight: 600; font-size: 1.1rem; }
.contact-direct a:hover { color: #bfdbfe; }

.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-app); }
.form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.field input[aria-invalid="true"] { border-color: var(--debit); }
.interests { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.interests legend { width: 100%; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; color: var(--ink-2); }
.interests .check { padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 9px; }
.interests .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-strong); flex: none; }
.consent { display: flex; margin: 4px 0 20px; font-size: .9rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-required { font-size: .84rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; border: 1px solid; }
.form-notice.is-ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.form-notice.is-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.form-notice a { color: inherit; font-weight: 600; }

/* ----------------------------------------------------------------- footer */

.footer { background: var(--chrome-deep); color: var(--c-ink-3); font-size: .93rem; padding: 64px 0 28px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { margin: 16px 0 0; max-width: 380px; }
.footer-quiet { font-size: .84rem; color: var(--c-ink-4); }
.footer-h { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); margin-bottom: 14px; font-weight: 650; }
.footer-list li { margin: 0 0 8px; }
.footer a { color: var(--c-ink-2); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* -------------------------------------------------------------- text page */

.text-page { padding: 88px 0 104px; }
.text-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.text-page h2 { font-size: 1.35rem; margin-top: 2.2em; }
.text-page p { color: var(--ink-2); }
.text-updated { color: var(--ink-3); font-size: .92rem; }
.notfound { text-align: center; }
.notfound-other { margin-top: 18px; font-size: .95rem; }

/* placeholders left in site.json are shown so they cannot be missed */
.todo { background: #fef3c7; color: #92400e; padding: 0 4px; border-radius: 4px; outline: 1px dashed #f59e0b; }

/* ----------------------------------------------------------------- reveal */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .topbar, .nav-toggle, .form { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .product-intro, .robi, .audience, .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .product-intro-flip { grid-template-columns: 1fr; }
  .product-intro-flip > :first-child { order: 0; }
  .features, .features-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .band { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .band-problem { padding: 72px 0 24px; }
  .section-head { margin-bottom: 36px; }
  .product-intro { margin-bottom: 44px; }
  .steps, .features, .features-3, .modes, .gallery { grid-template-columns: 1fr; }
  .gallery { margin-top: 48px; }
  .steps .step:not(:last-child)::after { display: none; }
  .form { padding: 22px 18px; }
  .form .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; align-items: flex-start; width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .hero-facts li { align-items: flex-start; }
  .hero-facts .ic-check { margin-top: 4px; flex: none; }
}
