/* ==========================================================================
   NEXA DIGITAL  |  nexa.gisellebrands.co.tz
   Layout concept: a quiet, left-aligned editorial grid; the one loud element
   is the hero wordmark, rebuilt from the logo's eleven cut pieces.
   Motif: the chamfered corner taken from the logo's angled cuts.
   ========================================================================== */

:root {
  /* Colour: cool mist paper, graphite ink, Indian Ocean lagoon accent */
  --bg: #F2F3F1;
  --surface: #FAFBFA;
  --surface-2: #E8EBE8;
  --ink: #16191C;
  --muted: #5B6360;
  --line: #D6DAD7;
  --accent: #1F5F74;
  --accent-soft: #D9E6E8;
  --on-accent: #FFFFFF;
  --good: #2F7A55;
  --warn: #9A6A12;
  --bad: #B23A3A;

  /* Contrast band (planner) */
  --band-bg: #16191C;
  --band-surface: #1F2427;
  --band-fg: #EEF0EE;
  --band-muted: #A3ACA8;
  --band-line: #33393C;
  --band-accent: #8FC3CF;

  /* Device mock (same in both themes: it is hardware) */
  --dev-frame: #1B1F22;
  --dev-screen: #F7F8F6;
  --dev-ink: #16191C;
  --dev-muted: #6A726E;
  --dev-line: #E1E4E1;
  --dev-accent: #1F5F74;

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 122%;
  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.6vw, 5.4rem);

  /* Space and shape */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1240px;
  --cut: 12px;
  --radius: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1214; --surface: #151A1C; --surface-2: #1C2224; --ink: #E6E9E6; --muted: #98A19D;
    --line: #262D30; --accent: #8FC3CF; --accent-soft: #17272C; --on-accent: #0F1214;
    --good: #6CC197; --warn: #E0B35C; --bad: #EE8A8A;
    --band-bg: #E6E9E6; --band-surface: #F6F7F5; --band-fg: #16191C; --band-muted: #545C59; --band-line: #CDD2CF; --band-accent: #1F5F74;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1214; --surface: #151A1C; --surface-2: #1C2224; --ink: #E6E9E6; --muted: #98A19D;
  --line: #262D30; --accent: #8FC3CF; --accent-soft: #17272C; --on-accent: #0F1214;
  --good: #6CC197; --warn: #E0B35C; --bad: #EE8A8A;
  --band-bg: #E6E9E6; --band-surface: #F6F7F5; --band-fg: #16191C; --band-muted: #545C59; --band-line: #CDD2CF; --band-accent: #1F5F74;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 640; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 40px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; transition: top .2s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 560; font-size: 0.97rem; letter-spacing: 0.005em; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --b-bg: var(--accent); --b-fg: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; --b-bg: var(--accent); --b-fg: var(--on-accent); text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost { --b-bg: var(--surface-2); --b-fg: var(--ink); }
.btn-ghost:hover { --b-bg: var(--accent-soft); --b-fg: var(--ink); }
.btn-light { --b-bg: var(--band-fg); --b-fg: var(--band-bg); }
.btn-light:hover, .btn-light:focus-visible { --b-bg: var(--band-accent); --b-fg: var(--band-bg); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; --cut: 9px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink);
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kbd-hint, kbd {
  font: 500 0.72rem/1 var(--font); color: var(--muted); padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: calc(var(--max) + 80px); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .header-inner { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 84px; height: auto; fill: currentColor; display: block; align-self: center; }
.brand-sub { font-size: 0.86rem; color: var(--muted); font-weight: 480; letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px; margin-left: 20px; }
.nav a {
  position: relative; padding: 8px 12px; text-decoration: none; font-size: 0.94rem; color: var(--muted);
  transition: color .2s;
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--accent);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-cta { margin-left: 8px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; }
.burger { position: relative; width: 20px; height: 12px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { top: 5px; transform: rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 940px) {
  .nav, .kbd-hint { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .header-inner { gap: 12px; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: navIn .35s var(--ease);
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav a {
  font-size: clamp(1.8rem, 8vw, 2.6rem); font-stretch: var(--wide); font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav-foot { color: var(--muted); font-size: 0.9rem; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px) + env(safe-area-inset-top, 0px)); }
.hero-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 44px); }
.hero-place { font-size: 0.9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-place .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }
.hero-title {
  font-size: var(--step-4); font-stretch: var(--wide); font-weight: 620;
  letter-spacing: -0.04em; line-height: 0.98; max-width: 15.5em;
}
.hero-row {
  display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end;
  gap: 28px 48px; margin-top: clamp(28px, 4vw, 48px);
}
.hero-lede { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-place-end { display: none; }
}

.construct { margin: clamp(48px, 7vw, 96px) 0 0; }
#constructSvg { display: block; width: 100%; height: auto; overflow: visible; color: var(--line); touch-action: pan-y; }
.c-grid { opacity: 0; transition: opacity .6s var(--ease); }
.c-guides line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 8; opacity: 0; transition: opacity .6s var(--ease); vector-effect: non-scaling-stroke; }
.c-pieces polygon {
  fill: var(--ink); stroke: var(--accent); stroke-width: 0; stroke-linejoin: miter;
  transition: fill .5s var(--ease), stroke-width .5s var(--ease);
  vector-effect: non-scaling-stroke;
}
.c-vertices circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s var(--ease); }
.construct.is-wire .c-grid { opacity: .55; }
.construct.is-wire .c-guides line { opacity: .55; }
.construct.is-wire .c-pieces polygon { fill: color-mix(in srgb, var(--accent) 8%, transparent); stroke-width: 1.5; }
.construct.is-wire .c-vertices circle { opacity: 1; }
.construct-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}
.construct-note { min-width: 0; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--surface-2); }
.seg-btn { padding: 7px 14px; border-radius: 6px; font-size: 0.86rem; color: var(--muted); transition: background-color .2s, color .2s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 14%, transparent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 20px 64px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: var(--step-3); font-stretch: var(--wide); letter-spacing: -0.035em; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services ---------- */
.tabs { position: relative; display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 52px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 14px 18px 16px; font-size: var(--step-1); font-weight: 520; color: var(--muted);
  transition: color .2s;
}
.tab:first-of-type { padding-left: 0; }
.tab:hover, .tab.is-on { color: var(--ink); }
.tab-ink { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }

.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.panel:not([hidden]) { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.panel-copy h3 { font-size: var(--step-2); font-stretch: 112%; letter-spacing: -0.025em; margin-bottom: 16px; }
.panel-copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 0; }
.ticks li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg);
}
.demo-hint { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.seg-wide .seg-btn { padding: 8px 16px; }
.demo { min-width: 0; }
.demo-caption { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 960px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* Browser demo */
.browser { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 6px; background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw { min-width: 4.6em; text-align: right; }
.viewport {
  display: flex; align-items: stretch; height: 440px; overflow: hidden;
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--line) 70%, transparent) 9px 10px);
}
.mini {
  container: mini / inline-size;
  flex: none; width: 100%; min-width: 240px; height: 100%; overflow: hidden auto;
  background: var(--dev-screen); color: var(--dev-ink);
  scrollbar-width: thin;
}
.mini.is-animating { transition: width .55s var(--ease); }
.resize-handle {
  flex: none; width: 16px; display: grid; place-items: center; cursor: ew-resize; background: var(--surface); border-left: 1px solid var(--line);
  touch-action: none;
}
.resize-handle span { width: 4px; height: 40px; border-radius: 4px; background: var(--muted); opacity: .6; transition: opacity .2s, background-color .2s; }
.resize-handle:hover span, .resize-handle:focus-visible span, .resize-handle.is-drag span { opacity: 1; background: var(--accent); }

/* Mini site inside the browser: it reflows by its own width */
.m-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 5cqi; border-bottom: 1px solid var(--dev-line); font-size: 0.86rem; }
.m-nav b { font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
.m-links { display: flex; gap: 18px; color: var(--dev-muted); }
.m-links i { font-style: normal; }
.m-burger { display: none; width: 18px; gap: 3px; flex-direction: column; }
.m-burger i { display: block; height: 2px; background: var(--dev-ink); }
.m-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqi; padding: 6cqi 5cqi 4cqi; align-items: center; }
.m-h { font-size: clamp(1.05rem, 4.2cqi, 2.2rem); font-weight: 650; font-stretch: 112%; line-height: 1.05; letter-spacing: -0.03em; }
.m-p { font-size: 0.82rem; color: var(--dev-muted); margin: 12px 0 16px; line-height: 1.5; }
.m-btn { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 9px 14px; background: var(--dev-ink); color: var(--dev-screen); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.m-hero-img {
  aspect-ratio: 4 / 3.4; max-width: 100%; border-radius: 4px;
  background:
    radial-gradient(circle at 70% 30%, #E8D9C4 0 14%, transparent 15%),
    linear-gradient(160deg, #6E4B35 0%, #3E2A1F 55%, #2A1D16 100%);
}
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqi; padding: 0 5cqi 6cqi; }
.m-card { display: grid; gap: 4px; font-size: 0.8rem; }
.m-card small { color: var(--dev-muted); font-size: 0.74rem; }
.m-img { display: block; aspect-ratio: 1; border-radius: 4px; margin-bottom: 6px; }
.m-img.a { background: linear-gradient(150deg, #C9A27E, #7A5236); }
.m-img.b { background: linear-gradient(150deg, #9DB3A5, #4D6B5A); }
.m-img.c { background: linear-gradient(150deg, #3A3431, #1E1A18); }
@container mini (max-width: 560px) {
  .m-hero { grid-template-columns: minmax(0, 1fr); }
  .m-hero-img { aspect-ratio: 16 / 9; order: -1; }
  .m-h { font-size: clamp(1.1rem, 7cqi, 1.8rem); }
}
@container mini (max-width: 400px) {
  .m-links { display: none; }
  .m-burger { display: flex; }
  .m-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .m-grid .m-card:last-child { display: none; }
}

/* Phone demo */
.demo-app { display: grid; justify-items: center; }
.phone {
  position: relative; width: 290px; max-width: 100%; height: 580px;
  border: 10px solid var(--dev-frame); border-radius: 42px; background: var(--dev-screen); color: var(--dev-ink);
  overflow: hidden; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 45%, transparent);
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: var(--dev-frame); z-index: 2; }
.phone-screen { display: flex; flex-direction: column; height: 100%; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 44px 18px 12px; }
.app-head b { font-size: 1.3rem; font-stretch: 112%; letter-spacing: -0.02em; font-weight: 650; }
.app-badge { font-size: 0.7rem; font-weight: 600; color: var(--dev-accent); padding: 3px 8px; border: 1px solid currentColor; border-radius: 99px; }
.app-body { position: relative; flex: 1; overflow: hidden; }
.screen { position: absolute; inset: 0; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.screen.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ev {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  padding: 12px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--dev-line); transition: border-color .2s, transform .2s;
}
.ev:hover { border-color: var(--dev-accent); }
.ev:active { transform: scale(.985); }
.ev-date { display: grid; place-items: center; height: 46px; border-radius: 10px; background: #E7EFF0; color: var(--dev-accent); font-size: 0.7rem; line-height: 1.1; }
.ev-date b { font-size: 1.05rem; }
.ev b { font-size: 0.9rem; font-weight: 600; display: block; }
.ev small { font-size: 0.74rem; color: var(--dev-muted); }
.ev-price { font-size: 0.78rem; font-weight: 600; }
.pay-ev { font-size: 0.85rem; color: var(--dev-muted); margin-top: 6px; }
.pay-amt { font-size: 1.9rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.03em; margin-top: -6px; }
.pay-label { font-size: 0.74rem; color: var(--dev-muted); margin-top: 4px; }
.pay-opts { display: grid; gap: 6px; }
.pay-opt { text-align: left; padding: 11px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--dev-line); font-size: 0.86rem; position: relative; }
.pay-opt::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 1.5px solid var(--dev-line); }
.pay-opt.is-on { border-color: var(--dev-accent); }
.pay-opt.is-on::after { border: 4.5px solid var(--dev-accent); }
.pay-phone { padding: 10px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--dev-line); font-size: 0.9rem; }
.pay-go { margin-top: 4px; padding: 13px; border-radius: 12px; background: var(--dev-ink); color: var(--dev-screen); font-weight: 600; font-size: 0.92rem; }
.pay-go:disabled { opacity: .6; cursor: progress; }
.pay-status { font-size: 0.8rem; color: var(--dev-muted); min-height: 1.2em; text-align: center; }
.ticket { margin-top: 6px; padding: 18px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--dev-line); display: grid; justify-items: center; gap: 6px; text-align: center; }
.t-name { font-weight: 650; font-size: 1.02rem; }
.t-meta { font-size: 0.78rem; color: var(--dev-muted); }
#qr { width: 132px; height: 132px; margin-top: 8px; image-rendering: pixelated; }
.t-code { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--dev-muted); }
.app-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--dev-line); background: #FFFFFF; padding-bottom: 6px; }
.app-tab { padding: 12px 0 10px; font-size: 0.78rem; color: var(--dev-muted); position: relative; }
.app-tab.is-on { color: var(--dev-ink); font-weight: 600; }
.app-tab.is-on::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--dev-accent); }
.app-tab .pip { display: inline-block; margin-left: 6px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--dev-accent); color: #FFFFFF; font-size: 0.66rem; line-height: 16px; }

/* Dashboard demo */
.dash { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 18px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-top b { font-size: 1.05rem; font-weight: 620; }
.sel select {
  appearance: none; -webkit-appearance: none; padding: 8px 34px 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23889290' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 0.88rem;
}
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); display: grid; gap: 2px; min-width: 0; }
.kpi small { font-size: 0.76rem; color: var(--muted); }
.kpi b { font-size: clamp(1rem, 0.8rem + 0.9vw, 1.35rem); font-weight: 620; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#kLate { color: var(--bad); }
.chart { position: relative; height: 150px; }
#chartSvg { width: 100%; height: 100%; display: block; overflow: visible; }
#chartSvg .gridl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
#chartSvg .bar { fill: var(--accent); opacity: .85; transition: opacity .2s; }
#chartSvg .bar.is-hot { opacity: 1; fill: var(--ink); }
#chartSvg .hit { fill: transparent; cursor: crosshair; }
.chart-tip {
  position: absolute; top: 0; transform: translate(-50%, -110%); padding: 6px 10px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-size: 0.78rem; white-space: nowrap; pointer-events: none;
}
.days { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 0.74rem; color: var(--muted); text-align: center; margin-top: -10px; }
.jobs { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.jobs th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.76rem; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
.jobs td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); }
.jobs tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.s-done { color: var(--good); }
.status.s-prog { color: var(--accent); }
.status.s-late { color: var(--bad); }
.status.s-new { color: var(--warn); }
@media (max-width: 480px) { .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kpis .kpi:first-child { grid-column: 1 / -1; } }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px;
  border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); transition: all .2s;
}
.chip span { font-size: 0.78rem; opacity: .8; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }
.job-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.7fr) 28px;
  gap: 16px; align-items: center; text-align: left; padding: 24px 0;
}
.job-name { font-size: var(--step-2); font-stretch: 112%; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; transition: transform .45s var(--ease), color .3s; }
.job-client, .job-type { color: var(--muted); font-size: 0.94rem; }
.job-plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.job-plus::before, .job-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7.25px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.job-plus::after { transform: rotate(90deg); }
.job-row:hover .job-name { transform: translateX(10px); color: var(--accent); }
.job-row[aria-expanded="true"] .job-plus::after { transform: rotate(0); }
.job-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.job-more > div { overflow: hidden; padding-left: 0; }
.job.is-open .job-more { grid-template-rows: 1fr; }
.job-more p { max-width: 42rem; color: var(--muted); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.job-tags span { font-size: 0.8rem; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink); }
.job-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 26px; font-size: 0.92rem; font-weight: 560;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.job-more > div > p:last-child, .job-more > div > .job-tags:last-child { margin-bottom: 26px; }
.job-link::after {
  content: ""; width: 10px; height: 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(to top right, transparent calc(50% - 0.8px), currentColor calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px));
}
@media (max-width: 720px) {
  .job-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; padding: 20px 0; }
  .job-name { grid-column: 1; }
  .job-client { grid-column: 1; grid-row: 2; font-size: 0.88rem; }
  .job-type { display: none; }
  .job-plus { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.step { width: 100%; display: grid; gap: 4px; text-align: left; padding: 0 0 20px; color: var(--muted); transition: color .25s; }
.step:hover, .step.is-on { color: var(--ink); }
.step-n { font-size: 0.86rem; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 10px; transition: all .3s var(--ease); }
.step.is-on .step-n, .step.is-done .step-n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.step-t { font-size: var(--step-1); font-weight: 600; font-stretch: 112%; letter-spacing: -0.015em; }
.step-d { font-size: 0.84rem; }
.step-rail { height: 2px; background: var(--line); position: relative; }
.step-rail span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--accent); transition: width .6s var(--ease); }
.step-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; padding-top: 36px; min-height: 13rem; }
.step-detail h3 { font-size: var(--step-2); font-stretch: 112%; letter-spacing: -0.025em; margin-bottom: 12px; }
.step-detail > div > p { color: var(--muted); max-width: 36rem; }
.step-detail .deliv-h { font-size: 0.86rem; color: var(--muted); margin-bottom: 10px; }
.step-detail ul { list-style: none; margin: 0; padding: 0; }
.step-detail li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.step-detail.is-swap > div { animation: panelIn .45s var(--ease); }
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
  .step-n { margin: 0; }
  .step-rail { display: none; }
  .step-detail { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
}

/* ---------- Planner (contrast band) ---------- */
.section-ink { background: var(--band-bg); color: var(--band-fg); }
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); grid-template-areas: "intro intro" "form est"; gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.planner-intro { grid-area: intro; max-width: 44rem; }
.planner-intro h2 { font-size: var(--step-3); font-stretch: var(--wide); letter-spacing: -0.035em; margin-bottom: 16px; }
.planner-intro p { color: var(--band-muted); font-size: 1.06rem; }
.planner-form { grid-area: form; display: grid; gap: 34px; }
.planner-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.planner-form legend { font-size: var(--step-1); font-weight: 560; padding: 0; margin-bottom: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--band-line); border-radius: 99px;
  font-size: 0.93rem; color: var(--band-muted); transition: all .2s var(--ease); user-select: none;
}
.opts-multi .opt span::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; transition: all .2s; }
.opt:hover span { color: var(--band-fg); border-color: var(--band-muted); }
.opt input:checked + span { background: var(--band-fg); border-color: var(--band-fg); color: var(--band-bg); }
.opts-multi .opt input:checked + span::before { background: var(--band-accent); border-color: var(--band-accent); box-shadow: inset 0 0 0 2px var(--band-fg); }
.opt input:focus-visible + span { outline: 2px solid var(--band-accent); outline-offset: 2px; }
.estimate {
  grid-area: est; position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px));
  background: var(--band-surface); padding: 28px; display: grid; gap: 14px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.est-label { font-size: 0.88rem; color: var(--band-muted); }
.est-weeks { font-size: 1.1rem; color: var(--band-muted); }
.est-weeks span { display: block; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-stretch: var(--wide); font-weight: 640; letter-spacing: -0.045em; line-height: 1; color: var(--band-fg); margin-bottom: 4px; }
.est-bar { height: 4px; border-radius: 2px; background: var(--band-line); overflow: hidden; }
.est-bar span { display: block; height: 100%; width: 20%; background: var(--band-accent); transition: width .6s var(--ease); }
.est-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.9rem; }
.est-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--band-line); }
.est-list li span:last-child { color: var(--band-muted); white-space: nowrap; }
.est-note { font-size: 0.82rem; color: var(--band-muted); }
.est-note.is-warn { color: var(--band-fg); }
.estimate .btn { width: 100%; margin-top: 4px; }
@media (max-width: 900px) {
  .planner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "est"; }
  .estimate { position: static; }
}

/* ---------- Studio ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.fact { padding-top: 24px; border-top: 1px solid var(--ink); }
.fact svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.fact h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.fact p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.selfcheck {
  margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px 56px; align-items: center;
  padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.selfcheck h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.selfcheck p { color: var(--muted); font-size: 0.95rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.metrics div { min-width: 0; }
.metrics dt { font-size: 0.8rem; color: var(--muted); }
.metrics dd { margin: 4px 0 0; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-stretch: var(--wide); font-weight: 620; letter-spacing: -0.03em; white-space: nowrap; }
.metrics dd small { font-size: 0.55em; color: var(--muted); font-stretch: 100%; letter-spacing: 0; margin-left: 2px; }
@media (max-width: 860px) { .selfcheck { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 6vw, 96px); }
.contact-intro h2 { font-size: var(--step-3); font-stretch: var(--wide); letter-spacing: -0.035em; margin-bottom: 16px; }
.contact-intro > p { color: var(--muted); font-size: 1.06rem; max-width: 28rem; }
.contact-lines { margin-top: 40px; display: grid; }
.cline { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.97rem; align-items: center; }
.cline-k { color: var(--muted); font-size: 0.88rem; }
.cline-v { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.cline-v a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cline-v a:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); flex: none; }
.copy-btn:hover { background: var(--surface-2); color: var(--ink); }
.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 520; }
.opt-l { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23889290' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-err input, .field.has-err textarea { border-color: var(--bad); }
.err { font-size: 0.82rem; color: var(--bad); min-height: 0; }
.err:empty { display: none; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 0.92rem; color: var(--muted); }
.form-status.is-ok { color: var(--good); }
.form-status.is-bad { color: var(--bad); }
.field.flash textarea { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 40% { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(64px, 9vw, 120px) calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-mark { display: block; width: 100%; height: auto; fill: var(--surface-2); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.footer-row > p:first-child { max-width: 30rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: max(12vh, 60px) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.palette-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 35%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.palette-box {
  position: relative; width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--ink) 50%, transparent); animation: palIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes palIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex: none; }
.palette-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.05rem; outline: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.palette-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 0.97rem; }
.palette-list li small { color: var(--muted); font-size: 0.8rem; }
.palette-list li[aria-selected="true"] { background: var(--surface-2); }
.palette-list li[aria-selected="true"] span:first-child { color: var(--accent); }
.palette-empty { color: var(--muted); padding: 16px 12px; font-size: 0.94rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95;
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 0.92rem;
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--ink) 60%, transparent); animation: toastIn .3s var(--ease);
  max-width: calc(100% - 32px);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
