/* ---------- Tokens ---------- */
:root {
  --ink: #060A13;
  --ink-2: #0B1220;
  --ink-3: #121B2E;
  --snow: #F4F6F9;
  --paper: #FFFFFF;
  --text: #0B1220;
  --text-muted: #525E75;
  --on-dark: #EEF2F8;
  --on-dark-muted: #9AA6BD;
  --line: #DFE4EC;
  --line-dark: rgba(255, 255, 255, 0.09);
  --blue: #3B82F6;
  --blue-strong: #2563EB;
  --blue-deep: #1D4ED8;
  --sky: #7DD3FC;
  --aurora: #6EE7C8;

  --font-display: 'Schibsted Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1200px;
  --section: clamp(72px, 10vw, 128px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--text); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-strong);
}
.on-dark .eyebrow { color: var(--aurora); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.975rem; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue-strong); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--on-dark); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E6EDFB; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(6, 10, 19, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 18px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1; }
.brand-name span { color: var(--blue); }
.brand-sub {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-dark);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 0.925rem; font-weight: 500; color: var(--on-dark-muted); transition: color .2s ease; }
.nav-links a:not(.btn):hover { color: #fff; }
/* Language menu: a pill showing the current language; opens a list of every available language. */
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px 0 12px;
  list-style: none; cursor: pointer; user-select: none; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary {
  border-color: rgba(110, 231, 200, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(110, 231, 200, 0.1), 0 0 22px rgba(110, 231, 200, 0.22);
}
.lang-code { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: #fff; }
.lang .flag {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.lang summary .flag { width: 19px; height: 19px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 2px 5px rgba(0, 0, 0, 0.5); }
.lang-caret { width: 10px; height: 10px; color: var(--on-dark-muted); transition: transform .3s var(--ease), color .2s ease; }
.lang summary:hover .lang-caret { color: #fff; }
.lang[open] .lang-caret { transform: rotate(180deg); color: var(--aurora); }
.lang-menu {
  position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; min-width: 190px; padding: 6px;
  display: grid; gap: 2px; border-radius: var(--radius);
  background: var(--ink-3); border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  transform-origin: top right; animation: lang-open .28s var(--ease);
}
@keyframes lang-open { from { opacity: 0; transform: translateY(-8px) scale(0.96); } }
.lang-menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 0.925rem; font-weight: 500; color: var(--on-dark-muted); transition: background .2s ease, color .2s ease;
}
.lang-menu a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.lang-menu a[aria-current="true"] { color: #fff; background: rgba(110, 231, 200, 0.1); }
.lang-check { width: 16px; height: 16px; margin-left: auto; color: var(--aurora); }
@media (max-width: 480px) {
  .lang summary { padding: 0 8px 0 11px; gap: 6px; }
  .lang-caret { display: none; }
  .nav-inner { gap: 12px; }
  .nav-right { gap: 8px; }
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  /* aurora wash behind the surface */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(45% 40% at 60% 85%, rgba(110, 231, 200, 0.10), transparent 70%);
}
#lossCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg::after {
  /* keeps the copy column legible and blends into the next section */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(6, 10, 19, 0.86) 32%, rgba(6, 10, 19, 0.25) 70%, rgba(6, 10, 19, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 10, 19, 0.6) 0%, transparent 22%, transparent 72%, var(--ink) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.25rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.96;
  margin-top: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--sky) 0%, var(--blue) 55%, var(--aurora) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { margin-top: 28px; max-width: 54ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Shift log: a simulated feed of what a Digital Employee does in a day */
.panel {
  background: rgba(11, 18, 32, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-muted);
}
.panel-status { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 0 0 rgba(110, 231, 200, 0.6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(110, 231, 200, 0); } }
.shift-list { height: 236px; padding: 6px 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.shift-row {
  display: grid; grid-template-columns: 44px 62px 1fr; gap: 10px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line-dark);
  animation: row-in .5s var(--ease) both;
}
.shift-row:last-child { border-bottom: 0; }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }
.shift-time { color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.shift-tag { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--sky); }
.shift-tag[data-kind="pay"], .shift-tag[data-kind="crm"] { color: var(--aurora); }
.shift-text { font-family: var(--font-body); font-size: 0.875rem; color: var(--on-dark); line-height: 1.45; }
.panel-foot { padding: 12px 18px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 0.7rem; letter-spacing: 0.04em; }

.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line-dark);
}
.metric { padding: 26px 24px 34px 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.metric-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 0.55em; font-weight: 500; color: var(--on-dark-muted); letter-spacing: 0; margin-left: 2px; }
.metric-label { margin-top: 6px; font-size: 0.875rem; color: var(--on-dark-muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(6, 10, 19, 0.88) 0%, rgba(6, 10, 19, 0.7) 45%, rgba(6, 10, 19, 0.35) 75%, var(--ink) 100%);
  }
}
@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 20px 16px 22px 0; }
  .metric + .metric { padding-left: 16px; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .shift-list { height: 290px; }
  .shift-row { grid-template-columns: 40px 1fr; }
  .shift-tag { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; margin-top: 16px; }
.section-head p { font-size: 1.075rem; color: var(--text-muted); max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Solutions ---------- */
.products { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 34px); overflow: hidden;
  transition: border-color .25s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: #B9C8E6; transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(11, 18, 32, 0.35); }
.card:nth-child(1), .card:nth-child(4) { grid-column: span 7; }
.card:nth-child(2), .card:nth-child(3) { grid-column: span 5; }
.card-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.card h3 { font-size: clamp(1.4rem, 2.1vw, 1.8rem); font-weight: 700; margin-top: 12px; }
.card p { margin-top: 10px; color: var(--text-muted); max-width: 46ch; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 0.925rem; color: var(--blue-strong); }
.card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card-link::after { content: ""; position: absolute; inset: 0; } /* whole card is the click target */

.vignette {
  flex: 1; margin-bottom: 26px; min-height: 132px; padding: 18px;
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  font-size: 0.85rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text);
}
.chip svg { width: 13px; height: 13px; color: var(--blue-strong); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-row > svg { width: 16px; height: 16px; color: var(--text-muted); }

.wave { display: flex; align-items: center; gap: 4px; height: 48px; }
.wave i { flex: 1; max-width: 6px; height: 100%; border-radius: 3px; background: var(--blue-strong); transform: scaleY(var(--h, 0.3)); transform-origin: center; animation: wave 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
@keyframes wave { 50% { transform: scaleY(calc(var(--h, 0.3) * 0.35)); } }

.bubble { max-width: 88%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; }
.bubble-in { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--blue-strong); color: #fff; border-bottom-right-radius: 4px; }
.vignette-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.bubble-out + .vignette-note { align-self: flex-end; }

/* Analytics: the dark, full-width card */
.card-dark {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(28px, 5vw, 72px);
  background: var(--ink); border-color: var(--ink-3); color: var(--on-dark);
  background-image: radial-gradient(70% 120% at 100% 0%, rgba(59, 130, 246, 0.2), transparent 60%);
}
.card-dark:hover { border-color: rgba(125, 211, 252, 0.45); box-shadow: 0 30px 60px -30px rgba(29, 78, 216, 0.6); }
.card-dark > div { flex: 1 1 0; min-width: 0; }
.card-dark .card-tag { color: var(--aurora); display: inline-flex; align-items: center; gap: 9px; }
.card-dark h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.card-dark p { color: var(--on-dark-muted); }
.card-dark .card-link { color: var(--sky); }
.forecast { width: 100%; height: auto; }
.forecast text { font-family: var(--font-mono); font-size: 10px; fill: var(--on-dark-muted); }
.forecast .line { stroke-dasharray: 520; stroke-dashoffset: 520; }
.is-visible .forecast .line { animation: draw 1.8s var(--ease) .2s forwards; }
.forecast .future { opacity: 0; }
.is-visible .forecast .future { animation: fade .8s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.custom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  margin-top: 16px; padding: clamp(22px, 2.6vw, 34px);
  border: 1px dashed #B5BECD; border-radius: var(--radius-lg);
}
.custom h3 { font-size: 1.35rem; font-weight: 700; }
.custom p { margin-top: 8px; color: var(--text-muted); max-width: 68ch; }

@media (max-width: 900px) {
  .products .card { grid-column: 1 / -1; }
  .card-dark { flex-direction: column; align-items: stretch; }
}

/* ---------- ROI band ---------- */
.roi { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.roi::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 50%, #000, transparent 75%);
  mask-image: radial-gradient(80% 120% at 100% 50%, #000, transparent 75%);
}
.roi-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 80px); }
.roi h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
.roi p { margin-top: 12px; max-width: 56ch; color: #D6E4FF; font-size: 1.075rem; }

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--on-dark); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.about h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; margin-top: 16px; }
.about-copy p { margin-top: 22px; color: var(--on-dark-muted); font-size: 1.075rem; max-width: 56ch; }
.founder { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.founder-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-strong), #0E7490);
}
.founder a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(125, 211, 252, 0.4); text-underline-offset: 4px; transition: color .2s ease; }
.founder a:hover { color: var(--sky); }
.founder div span { display: block; font-size: 0.875rem; color: var(--on-dark-muted); }

.principles h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-block: 26px; border-bottom: 1px solid var(--line-dark); }
.principle:first-of-type { margin-top: 14px; border-top: 1px solid var(--line-dark); }
.principle-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--sky); }
.principle-icon svg { width: 20px; height: 20px; }
.principle h4 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.principle p { margin-top: 6px; color: var(--on-dark-muted); font-size: 0.95rem; }
.principle code { font-family: var(--font-mono); font-size: 0.85em; color: var(--aurora); }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; margin-top: 16px; }
.contact-copy p { margin-top: 20px; font-size: 1.075rem; color: var(--text-muted); max-width: 46ch; }
.contact-mail { display: inline-flex; flex-direction: column; margin-top: 36px; }
.contact-mail span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.contact-mail a { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; color: var(--blue-strong); border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.contact-mail a:hover { border-color: currentColor; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); display: grid; gap: 20px; box-shadow: 0 30px 60px -40px rgba(11, 18, 32, 0.3); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; min-height: 48px;
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #8C96A8; }
.field input:hover, .field textarea:hover { border-color: #B9C2D2; }
.field input:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.form .btn { width: 100%; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding-block: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer a:not(.brand) { transition: color .2s ease; }
.footer a:not(.brand):hover { color: #fff; }
.footer-legal { width: 100%; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .rise { opacity: 1; transform: none; }
  .forecast .line { stroke-dashoffset: 0; }
  .forecast .future { opacity: 1; }
}

/* ==========================================================
   Sub-pages
   ========================================================== */
:root { --warn: #F6AD55; }
.section--paper { background: var(--paper); }
.section--tight { padding-top: 0; }

/* ---------- Page hero ---------- */
.hero--page { padding-bottom: clamp(56px, 8vw, 104px); }
.hero--page h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; line-height: 1.03; }
.hero--page .hero-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero--solo .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero--solo h1 { max-width: 18ch; }
.hero--solo .hero-lede { max-width: 68ch; }

/* ---------- Demo panels (simulated product activity) ---------- */
.js [data-at]:not(.is-on) { display: none !important; }
html:not(.js) [data-off] { display: none; }
.panel-body { padding: 18px; font-family: var(--font-body); font-size: 0.9rem; color: var(--on-dark); }
.panel .wave i { background: var(--sky); }
.panel .chip { background: rgba(110, 231, 200, 0.1); border-color: rgba(110, 231, 200, 0.35); color: var(--aurora); animation: row-in .45s var(--ease) both; }
.panel .chip svg { color: inherit; }

.thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 330px; overflow: hidden; }
.thread .bubble { margin: 0; animation: row-in .45s var(--ease) both; }
.thread .bubble-in { background: rgba(255, 255, 255, 0.07); border-color: var(--line-dark); color: var(--on-dark); }
.bubble small { display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.thread .chip { align-self: center; }
.thread-meta { align-self: flex-end; font-family: var(--font-mono); font-size: 0.7rem; color: var(--on-dark-muted); }
.typing { align-self: flex-end; display: inline-flex; gap: 5px; padding: 13px 14px; border-radius: 14px; border-bottom-right-radius: 4px; background: rgba(37, 99, 235, 0.35); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.call-wave { height: 40px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); box-sizing: content-box; }

.memo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); font-family: var(--font-mono); font-size: 0.75rem; color: var(--on-dark-muted); }
.memo .wave { flex: 1; height: 30px; }
.memo-quote { min-height: 4.4em; margin-top: 12px; color: var(--on-dark-muted); font-size: 0.875rem; font-style: italic; }
.memo-quote span { animation: row-in .45s var(--ease) both; display: block; }
.tasks { display: grid; gap: 8px; align-content: start; min-height: 208px; margin-top: 8px; }
.task { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-dark); border-radius: 10px; animation: row-in .45s var(--ease) both; }
.task b { font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; white-space: nowrap; }
.st-wait { color: var(--on-dark-muted); }
.st-wait::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--sky); animation: spin .8s linear infinite; }
.st-ok { color: var(--aurora); }
.st-ok::before { content: "✓"; }
@keyframes spin { to { transform: rotate(360deg); } }

.crm-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.crm-count { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.crm-count small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; letter-spacing: 0; color: var(--on-dark-muted); }
.progress { height: 6px; margin: 16px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--aurora)); }
.is-playing .progress i { animation: fill 7s linear forwards; }
.is-done .progress i { width: 100%; }
@keyframes fill { to { width: 100%; } }
.crm-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.crm-table th { padding: 10px 0 8px; text-align: left; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); border-bottom: 1px solid var(--line-dark); }
.crm-table td { padding: 11px 0; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
.crm-table tr:last-child td { border-bottom: 0; }
.crm-table td small { display: block; color: var(--on-dark-muted); font-size: 0.8rem; }
.crm-table td:nth-child(2) { color: var(--on-dark-muted); }
.crm-table th:last-child, .crm-table td:last-child { text-align: right; }
.crm-table td:last-child .st { justify-content: flex-end; }
@media (max-width: 480px) { .crm-table th:nth-child(2), .crm-table td:nth-child(2) { display: none; } }

.risks { display: grid; gap: 12px; align-content: start; min-height: 318px; }
.risk { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius); animation: row-in .5s var(--ease) both; }
.risk-head { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font-family: var(--font-mono); font-size: 0.75rem; }
.risk-head p { font-weight: 600; }
.risk-head p span { display: block; font-size: 0.8rem; font-weight: 400; color: var(--on-dark-muted); }
.risk-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--warn); }
.risk-label--good { color: var(--aurora); }
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter i { display: block; width: var(--v); height: 100%; border-radius: 3px; background: var(--warn); animation: grow 1.2s var(--ease) .2s both; }
@keyframes grow { from { width: 0; } }
.risk .chip { justify-self: start; }
.seg { display: block; width: 100%; height: 340px; }
.hero-forecast { padding: 22px 18px 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 30px 30px 6px 0; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--blue-strong); }
.step h3 { margin-top: 16px; font-size: 1.45rem; font-weight: 700; }
.step p { margin-top: 10px; color: var(--text-muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 26px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* ---------- Problem / solution split ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split-card { padding: clamp(24px, 3.4vw, 46px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.split-card h2 { margin-top: 14px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; }
.split-card p:not(.eyebrow) { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }
.split-card--dark { background: var(--ink); border-color: var(--ink-3); color: var(--on-dark); background-image: radial-gradient(80% 120% at 100% 0%, rgba(59, 130, 246, 0.22), transparent 60%); }
.split-card--dark p:not(.eyebrow) { color: var(--on-dark-muted); }
.split-card--dark .eyebrow { color: var(--aurora); }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { padding: clamp(22px, 2.4vw, 30px); background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case h3 { font-size: 1.25rem; font-weight: 700; }
.case blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--blue); color: var(--text-muted); }
@media (max-width: 900px) { .cases { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Feature rows (analytics) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; }
.feature > p:not(.eyebrow) { margin-top: 18px; color: var(--text-muted); font-size: 1.05rem; }
.ticks { display: grid; gap: 14px; margin-top: 24px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--blue-strong); }
.ticks small { display: block; font-size: 0.875rem; color: var(--text-muted); }
@media (min-width: 901px) { .feature-grid--flip > .feature { order: 2; } }
@media (max-width: 900px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.benefit { padding: 22px 0 30px; border-top: 1px solid var(--line); }
.benefit h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.benefit p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.8vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan h3 { font-size: 1.5rem; font-weight: 700; }
.plan-price { margin-top: 18px; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.plan-setup { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }
.plan-desc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-muted); }
.plan .ticks { flex: 1; align-content: start; margin-top: 20px; }
.plan-offer { margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: var(--snow); font-size: 0.875rem; }
.plan-offer b { display: block; }
.plan .btn { width: 100%; margin-top: 18px; white-space: normal; text-align: center; }
.plan-badge { position: absolute; top: -13px; left: clamp(24px, 2.8vw, 36px); padding: 5px 12px; border-radius: 999px; background: var(--blue-strong); color: #fff; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.plan--featured { background: var(--ink); border-color: var(--blue); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(29, 78, 216, 0.65); background-image: radial-gradient(90% 60% at 100% 0%, rgba(59, 130, 246, 0.22), transparent 70%); }
.plan--featured .plan-price small, .plan--featured .plan-setup, .plan--featured .plan-desc, .plan--featured .ticks small { color: var(--on-dark-muted); }
.plan--featured .plan-desc { border-color: var(--line-dark); }
.plan--featured .ticks svg { color: var(--aurora); }
.plan--featured .plan-offer { background: rgba(255, 255, 255, 0.07); }
.fineprint { margin-top: 28px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
@media (max-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Calculator ---------- */
.calc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.calc-tab { min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.calc-tab:hover { color: var(--text); }
.calc-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.calc-pane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.calc-pane[hidden] { display: none; }
.calc-inputs { display: flex; flex-direction: column; gap: 30px; padding: clamp(22px, 3vw, 42px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.calc-inputs h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.calc-inputs > p { margin-top: -16px; color: var(--text-muted); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.slider-head label { font-weight: 600; }
.slider-head output { font-family: var(--font-mono); font-weight: 500; color: var(--blue-strong); white-space: nowrap; }
.slider input[type="range"] { display: block; width: 100%; height: 32px; margin: 0; accent-color: var(--blue-strong); cursor: pointer; }
.calc-result { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 42px); background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); background-image: radial-gradient(90% 70% at 100% 0%, rgba(246, 173, 85, 0.16), transparent 70%); }
.calc-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn); }
.calc-number { margin-top: 14px; font-family: var(--font-display); font-size: clamp(2.5rem, 5.2vw, 4.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-number small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--on-dark-muted); white-space: nowrap; }
.calc-note { margin-top: 12px; font-size: 0.9rem; color: var(--on-dark-muted); }
.calc-note strong { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.compare { display: grid; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.compare-row > span { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-muted); }
.bar { height: 10px; margin-top: 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; transition: width .5s var(--ease); }
.bar--loss i { width: 100%; background: var(--warn); }
.bar--nf i { width: 10%; background: var(--aurora); }
.calc-pitch { margin-top: 24px; }
.calc-result .btn { align-self: flex-start; margin-top: 20px; }
@media (max-width: 900px) { .calc-pane { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .calc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Footer navigation ---------- */
.footer-inner { align-items: flex-start; }
.footer-col { display: grid; gap: 10px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px clamp(40px, 7vw, 96px); }

/* Panels placed on light sections need an opaque surface */
.section:not(.on-dark) .panel { background: var(--ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.memo > svg { flex: none; width: 16px; height: 16px; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 480px) { .hero--page h1 { font-size: 2.1rem; } }
@media (max-width: 720px) { .thread { height: 420px; } }

/* ---------- Consulting ---------- */
.case > p { margin-top: 12px; color: var(--text-muted); }
.cases--paper .case { background: var(--paper); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 16px; }
.facts > div { padding: 20px 0 26px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { margin-top: 6px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1040px) and (min-width: 881px) { .nav-links { gap: 20px; } .brand-sub { display: none; } }

/* ---------- Onboarding form ---------- */
.onb-inner { max-width: 820px; display: grid; gap: 28px; }
.onb-message { font-size: 1.075rem; color: var(--text-muted); }
.onb-message a { color: var(--blue-strong); font-weight: 600; }
.onb-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; box-shadow: 0 30px 60px -40px rgba(11, 18, 32, 0.3); }
.onb-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.onb-intro { color: var(--text-muted); margin-top: -10px; }
.onb-done { border-color: var(--aurora); background: #F0FDF9; }
.onb-submit .btn { justify-self: start; }
.onb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding-top: 6px; }
.onb-status { font-size: 0.875rem; color: var(--text-muted); }
.onb-status.is-ok { color: #0F766E; }
.onb-status.is-error { color: #B42318; font-weight: 600; }
.btn:disabled { opacity: 0.6; cursor: default; }

.field-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field-label { font-size: 0.875rem; font-weight: 600; }
.field-label span { font-weight: 400; color: var(--text-muted); }
.field select {
  width: 100%; padding: 13px 14px; min-height: 48px; font: inherit; color: inherit;
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field select:hover { border-color: #B9C2D2; }
.field select:focus { outline: none; background: var(--paper); border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.field :disabled { opacity: 1; color: var(--text); background: var(--snow); cursor: default; }
.field.has-error input:not([type="checkbox"]), .field.has-error textarea, .field.has-error select { border-color: #B42318; }
.field-error { font-size: 0.85rem; font-weight: 600; color: #B42318; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.field .check { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.field .check input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--blue-strong); }
.field-head .check { font-weight: 600; font-size: 0.875rem; }

.hint { position: relative; flex: none; }
.hint-btn {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--snow); color: var(--text-muted); font-size: 0.78rem; font-weight: 700; line-height: 1; cursor: help;
  transition: border-color .2s ease, color .2s ease;
}
.hint-btn:hover, .hint-btn:focus-visible, .hint.is-open .hint-btn { border-color: var(--blue-strong); color: var(--blue-strong); }
.hint-text {
  display: none; position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: min(320px, 78vw);
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ink-2); color: var(--on-dark);
  font-size: 0.85rem; font-weight: 400; line-height: 1.5; box-shadow: 0 18px 40px -18px rgba(11, 18, 32, 0.6);
}
.hint:hover .hint-text, .hint:focus-within .hint-text, .hint.is-open .hint-text { display: block; }
