/* ==========================================================================
   Paicker — website
   Palette (theme C, final 2026-11-23): Navy ink / Ice bone / Electric-blue signal / Teal mint
   Type: Bricolage Grotesque (display) · Geist (text) · Geist Mono (data)
   ========================================================================== */

:root {
  --ink: #0a2540;
  --ink-2: #123358;
  --ink-3: #1b406b;
  --bone: #eef3f8;
  --bone-2: #e1e9f2;
  --paper: #ffffff;
  --line: rgb(var(--ink-rgb) / 0.12);
  --line-strong: rgb(var(--ink-rgb) / 0.22);
  --muted: #5a6b85;
  --muted-2: #8a9ab2;

  --signal: #2f6bff;
  --signal-deep: #1f55e0;
  --signal-soft: #dce6ff;
  --pine: #123358;
  --pine-2: #0a2540;
  --mint: #2bc4a9;
  --mint-deep: #14866f;
  --amber: #ffb627;

  --on-dark: #eef3f8;
  --on-dark-muted: rgb(var(--bone-rgb) / 0.62);
  --line-dark: rgb(var(--bone-rgb) / 0.14);

  /* channels of the brand colours, for translucent tints: rgb(var(--ink-rgb) / .12) */
  --ink-rgb: 10 37 64;
  --bone-rgb: 238 243 248;
  --signal-rgb: 47 107 255;
  --mint-rgb: 43 196 169;
  --on-signal: #ffffff;        /* text on --signal (primary buttons) */
  --signal-light: #8fb0ff;     /* signal used as text on dark */
  --chart-glow: #123a63;       /* corner glow behind the forecast charts */

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.06), 0 12px 32px -12px rgb(var(--ink-rgb) / 0.18);
  --shadow-lg: 0 2px 4px rgb(var(--ink-rgb) / 0.06), 0 30px 80px -24px rgb(var(--ink-rgb) / 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--bone);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-body); letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: -8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { --bg: var(--signal); --fg: var(--on-signal); box-shadow: 0 10px 30px -10px rgb(var(--signal-rgb) / 0.7); }
.btn-primary:hover { --bg: var(--signal-deep); }
.btn-ink { --bg: var(--ink); --fg: var(--bone); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { --bg: var(--bone); --fg: var(--ink); }
.btn-outline-light { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .idx { color: var(--signal); }
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 650;
  font-variation-settings: "opsz" 72;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.h2 .soft { color: var(--muted-2); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 560px; margin: 22px 0 0; text-wrap: pretty; }
.section-head { max-width: 820px; }
.section-head .lead { max-width: 640px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgb(var(--bone-rgb) / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 24px/1 var(--f-display); letter-spacing: -0.04em; }
.wordmark { display: block; height: 17px; width: auto; color: var(--ink); overflow: visible; }
.brand:hover .wordmark { color: #000; }
.footer .wordmark { height: 22px; color: var(--on-dark); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgb(var(--ink-rgb) / 0.05); }

/* Solutions dropdown */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--ink); background: rgb(var(--ink-rgb) / 0.05); }
.nav-dd-btn .chev { transition: transform 0.3s var(--ease); }
.nav-dd.open .nav-dd-btn .chev { transform: rotate(180deg); }
.nav-dd-panel { position: absolute; left: -8px; top: calc(100% + 10px); width: 380px; display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s; }
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-dd-panel a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--ink); }
.nav-dd-panel a:hover, .nav-dd-panel a:focus-visible { background: var(--bone); }
.nav-dd-panel .tn { flex: none; margin-top: 3px; font: 500 11px/1 var(--f-mono); color: var(--signal); }
.nav-dd-panel .dd-txt { flex: 1; min-width: 0; }
.nav-dd-panel b { display: block; font: 600 15px/1.25 var(--f-display); letter-spacing: -0.01em; }
.nav-dd-panel small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.nav-dd-panel .ic { margin-top: 2px; color: var(--muted-2); }
.nav-dd-panel a:hover .ic { color: var(--signal); }

/* Solutions accordion (mobile menu) */
.m-acc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: none; font-weight: 550; font-size: 17px; text-align: left; }
.m-acc-btn:hover { background: var(--bone); }
.m-acc-btn .pm { position: relative; width: 14px; height: 14px; }
.m-acc-btn .pm::before, .m-acc-btn .pm::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.3s var(--ease); }
.m-acc-btn .pm::after { transform: rotate(90deg); }
.m-acc.open .m-acc-btn .pm::after { transform: rotate(0); }
.m-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.m-acc.open .m-acc-panel { grid-template-rows: 1fr; }
.m-acc-in { min-height: 0; overflow: hidden; display: grid; gap: 2px; visibility: hidden; transition: visibility 0s linear 0.35s; }
.m-acc.open .m-acc-in { visibility: visible; transition-delay: 0s; }
.mobile-menu .m-acc-in a { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 22px; font-size: 16px; }
.m-acc-in .tn { font: 500 11px/1 var(--f-mono); color: var(--signal); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-demo .lbl-short { display: none; }

.lang { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.06); }
.lang button { position: relative; z-index: 1; width: 40px; height: 32px; border: 0; background: none; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--muted); transition: color 0.25s; }
.lang button[aria-pressed="true"] { color: var(--bone); }
.lang-pill { position: absolute; top: 3px; left: 3px; width: 40px; height: 32px; border-radius: 999px; background: var(--ink); transition: transform 0.35s var(--ease); }
.lang[data-active="en"] .lang-pill { transform: translateX(40px); }


.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(var(--ink-rgb) / 0.06); }
.menu-btn span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 140px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .display { font-size: clamp(46px, 6.6vw, 96px); margin-top: 26px; }
.hero .display .line2 { display: block; }
.hero .lead { margin-top: 18px; }
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--signal); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

/* Highlighted word inside a detection box */
.hl { position: relative; display: inline-block; padding: 0 0.1em; margin: 0 -0.05em 30px; color: var(--ink); }
.hl::before {
  content: ""; position: absolute; inset: 0.04em -0.02em -0.04em; pointer-events: none;
  --c: var(--signal); --l: 0.28em; --t: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat,
    rgb(var(--signal-rgb) / 0.07);
  border: 1px solid rgb(var(--signal-rgb) / 0.32);
  border-radius: 4px;
  animation: hlIn 0.9s var(--ease) 0.4s both;
}
.hl::after {
  content: attr(data-tag);
  position: absolute; left: -0.02em; top: calc(100% + 0.04em);
  padding: 5px 8px 4px; border-radius: 0 4px 4px 4px;
  background: var(--signal); color: #fff;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.02em; white-space: nowrap;
  animation: tagIn 0.5s var(--ease) 1.1s both;
}
@keyframes hlIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-note .flag { display: inline-flex; gap: 4px; }
.hero-note .flag i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-deep); }

@keyframes blink { 50% { opacity: 0.2; } }

/* Scan line (photo upload preview) */
.scanline {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px;
  background: var(--signal);
  box-shadow: 0 0 12px 2px rgb(var(--signal-rgb) / 0.55);
  animation: scan 4.4s linear infinite;
}
.scanline::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 70px;
  background: linear-gradient(to bottom, transparent, rgb(var(--signal-rgb) / 0.16));
}
@keyframes scan { 0% { top: -2%; } 100% { top: 102%; } }

/* ==========================================================================
   LOGOS
   ========================================================================== */
.logos { padding: 56px 0 24px; }
.logos-title { text-align: center; }
.marquee { position: relative; overflow: hidden; margin-top: 26px; padding: 6px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 14%; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bone), rgb(var(--bone-rgb) / 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bone), rgb(var(--bone-rgb) / 0)); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 0;
  padding: 0 clamp(28px, 4vw, 56px);
  font: 700 clamp(26px, 3vw, 38px)/1 var(--f-display);
  letter-spacing: -0.04em;
  color: rgb(var(--ink-rgb) / 0.38);
  transition: color 0.3s;
  white-space: nowrap;
}
.marquee-track span:hover { color: var(--ink); }
.marquee-track span::after { content: "✦"; margin-left: clamp(28px, 4vw, 56px); font-size: 14px; color: var(--signal); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark .eyebrow { color: var(--on-dark-muted); }
.section.dark .lead { color: var(--on-dark-muted); }
.section.paper { background: var(--paper); }

/* ---------- Solutions (tabs) ---------- */
/* full width of the block below it, one equal column per tab; labels wrap instead of scrolling */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; width: 100%; padding: 5px; margin-top: 44px; border-radius: 999px; background: var(--bone-2); }
.tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 550; font-size: 15px; line-height: 1.15; text-align: center; color: var(--muted); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.tab .tn { font: 500 11px/1 var(--f-mono); color: var(--muted-2); }
.tab:hover, .tab:focus-visible { color: var(--ink); }
.tab.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.tab.on .tn { color: var(--signal); }
.tabs + .vstage { margin-top: 28px; }

/* Vision stage: video synced to HUD */
.vstage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: var(--r-xl); background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* slider: the active clip slides in, the previous one slides out (JS sets the side) */
.screen video, .screen .slide-chart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); pointer-events: none; }
.screen video.on, .screen .slide-chart.on { opacity: 1; }
/* Custom AI slide: forecast chart framed between the feed tag (top) and the step bar (bottom) */
.screen .slide-chart { padding: 46px 16px 54px; background: radial-gradient(120% 90% at 80% 0%, var(--chart-glow) 0%, var(--ink) 62%); }
.slide-chart .fc-plot { height: 100%; aspect-ratio: auto; }
.feed { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 12px 7px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; color: var(--bone); max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 1.2s steps(2) infinite; }
.vsteps { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.vstep { position: relative; flex: 1; min-width: 0; overflow: hidden; padding: 10px 12px 9px; border-radius: 10px; background: rgb(var(--ink-rgb) / 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--bone-rgb) / 0.5); white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.vstep .n { margin-right: 6px; color: rgb(var(--bone-rgb) / 0.35); }
.vstep.on { color: var(--bone); }
.vstep.on .n { color: var(--signal); }
.vstep::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--signal); opacity: 0; }
.vstep.on::after { opacity: 1; }

.hud { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px; min-width: 0; padding: 24px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.vbadge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgb(var(--signal-rgb) / 0.16); color: var(--signal-light); font: 600 10.5px/1 var(--f-mono); letter-spacing: 0.08em; }
.hud h3 { margin: 14px 0 0; font: 650 25px/1.1 var(--f-display); letter-spacing: -0.025em; }
.hud p { margin: 8px 0 0; color: var(--on-dark-muted); font-size: 14.5px; line-height: 1.5; }
.hud-label { margin-bottom: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.legend { display: grid; gap: 4px; }
.lg { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1px solid transparent; font-size: 13.5px; transition: background 0.25s, border-color 0.25s; }
.lg .sw { flex: none; width: 16px; height: 12px; border-radius: 3px; border: 2px solid var(--c); }
.lg .sw.dash { border-style: dashed; }
.lg .sw.fill { background: color-mix(in srgb, var(--c) 45%, transparent); }
.lg .n { margin-left: auto; font: 500 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.lg.hit { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.hkpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hk { min-width: 0; padding: 12px; border-radius: 12px; background: rgb(var(--bone-rgb) / 0.05); border: 1px solid var(--line-dark); }
.hk .k { font: 500 11px/1.25 var(--f-mono); color: var(--on-dark-muted); }
.hk .v { margin-top: 8px; font: 650 22px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-head { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hud-foot { margin-top: auto; padding-top: 20px; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--on-dark-muted); }

/* ---------- Proof (retail video + points) ---------- */
.proof-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 56px; }
.proof-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line-dark); }
.proof-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof-video .compare-label { z-index: 2; }
/* Proof tabs: one panel per solution (video or forecast chart + points) */
.section.dark .tabs { background: rgb(var(--bone-rgb) / 0.07); }
.section.dark .tab { color: var(--on-dark-muted); }
.section.dark .tab:hover, .section.dark .tab:focus-visible { color: var(--bone); }
.section.dark .tab .tn { color: rgb(var(--bone-rgb) / 0.4); }
.section.dark .tab.on { background: var(--bone); color: var(--ink); }
.section.dark .tab.on .tn { color: var(--signal); }
/* top-aligned so the clip sits the same distance below the tabs on every tab, whatever the text length */
.pf-panel { margin-top: 32px; align-items: start; }
.pf-panel.pf-in { animation: pfIn 0.5s var(--ease); }
@keyframes pfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pf-copy h3 { margin: 0 0 18px; font: 650 clamp(22px, 2.2vw, 28px)/1.15 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; }
.pf-copy h3 .soft { color: var(--on-dark-muted); }
.pf-copy .btn { margin-top: 24px; gap: 8px; }
.pf-chart { background: radial-gradient(120% 90% at 80% 0%, var(--chart-glow) 0%, var(--ink) 62%); }
.pf-chart .fc-plot { position: absolute; inset: 48px 16px 16px; aspect-ratio: auto; }
.compare-label { position: absolute; top: 14px; z-index: 3; padding: 6px 10px 5px; border-radius: 999px; font: 600 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.compare-label.after { right: 14px; background: var(--signal); color: #fff; }

.points { list-style: none; margin: 0; padding: 0; counter-reset: pt; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.points li:last-child { border-bottom: 1px solid var(--line-dark); }
.points li::before { content: counter(pt, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.6 var(--f-mono); color: var(--signal); }
.points b { font: 600 18px/1.3 var(--f-display); letter-spacing: -0.01em; }
.points span { color: var(--on-dark-muted); font-size: 15px; }

/* "Solutions at work" fits one screen: tighter section padding, header in two columns,
   clip and copy side by side at equal width, compact points */
#proof.section { padding: clamp(56px, 6.5vw, 92px) 0; }
#proof .section-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 10px 56px; align-items: end; }
#proof .section-head .eyebrow { grid-column: 1 / -1; }
#proof .section-head .h2 { margin: 0; font-size: clamp(32px, 3.6vw, 50px); }
#proof .section-head .lead { margin: 0; max-width: none; font-size: 16px; }
#proof .tabs { margin-top: 26px; }
#proof .pf-panel { margin-top: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); }
#proof .pf-copy h3 { margin-bottom: 8px; font-size: clamp(20px, 1.8vw, 24px); }
#proof .pf-copy .btn { margin-top: 14px; }
#proof .points li { gap: 2px 12px; padding: 10px 0; grid-template-columns: 32px 1fr; }
#proof .points b { font-size: 16px; }
#proof .points span { font-size: 14px; line-height: 1.45; }
@media (max-width: 1080px) {
  #proof .section-head { display: block; }
  #proof .section-head .lead { margin-top: 12px; }
  #proof .pf-panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.step-card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; min-height: 330px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: 0.06em; }
.step-card h3 { margin: auto 0 0; padding-top: 28px; font: 650 34px/1 var(--f-display); letter-spacing: -0.03em; }
.step-card p { margin: 12px 0 0; color: var(--muted); }
.step-art { position: relative; height: 140px; margin-top: 22px; border-radius: 14px; background: var(--bone); overflow: hidden; }
.step-card:nth-child(2) .step-art { background: var(--ink); }
.step-card:nth-child(3) .step-art { background: var(--pine); }
.art-phone { position: absolute; left: 50%; top: 18px; width: 86px; height: 150px; margin-left: -43px; border-radius: 16px; background: var(--ink); padding: 6px; }
.art-phone::before { content: ""; display: block; height: 100%; border-radius: 11px; background: linear-gradient(180deg, #e7dfcf, #d8ccb4); }
.art-phone::after { content: ""; position: absolute; left: 14px; right: 14px; top: 26px; height: 54px; border: 1.5px solid var(--signal); border-radius: 4px; animation: snap 2.6s var(--ease) infinite; }
@keyframes snap { 0%, 60% { opacity: 0; transform: scale(1.2); } 70%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.art-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: camflash 2.6s infinite; }
@keyframes camflash { 0%, 64% { opacity: 0; } 66% { opacity: 0.65; } 74%, 100% { opacity: 0; } }
.art-grid { position: absolute; inset: 16px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.art-grid i { border-radius: 3px; background: rgb(var(--bone-rgb) / 0.08); animation: cell 2.8s var(--ease) infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes cell { 0%, 100% { background: rgb(var(--bone-rgb) / 0.08); } 30% { background: var(--mint); } 55% { background: rgb(var(--mint-rgb) / 0.25); } }
.art-grid i.x { animation-name: cellx; }
@keyframes cellx { 0%, 100% { background: rgb(var(--bone-rgb) / 0.08); } 30% { background: var(--signal); } 55% { background: rgb(var(--signal-rgb) / 0.3); } }
.art-chart { position: absolute; left: 18px; right: 18px; bottom: 18px; top: 22px; display: flex; align-items: flex-end; gap: 8px; }
.art-chart i { flex: 1; border-radius: 4px 4px 0 0; background: rgb(var(--mint-rgb) / 0.3); height: var(--h); transform-origin: bottom; animation: grow 2.8s var(--ease) infinite; animation-delay: calc(var(--i) * 90ms); }
.art-chart i:last-child { background: var(--mint); }
@keyframes grow { 0% { transform: scaleY(0.2); } 40%, 100% { transform: scaleY(1); } }

/* ---------- Partners ---------- */

/* ---------- About us ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-stats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.about-stats li { display: flex; align-items: baseline; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.about-stats b { min-width: 2.6em; font: 650 clamp(40px, 4.4vw, 60px)/1 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.about-stats span { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.about-offices { margin: 18px 0 0; color: var(--muted); }
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; cursor: pointer; font: 600 clamp(18px, 1.8vw, 22px)/1.3 var(--f-display); letter-spacing: -0.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--bone-2); transition: background 0.3s, transform 0.4s var(--ease); }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--ink); transition: transform 0.4s var(--ease); }
.faq-item summary .pm::after { transform: rotate(90deg); }
.faq-item.is-open summary .pm { background: var(--signal); transform: rotate(180deg); }
.faq-item.is-open summary .pm::before, .faq-item.is-open summary .pm::after { background: #fff; }
.faq-item.is-open summary .pm::after { transform: rotate(0); }
.faq-item .ans { padding: 0 60px 26px 0; color: var(--muted); font-size: 16.5px; max-width: 640px; overflow: hidden; }
.faq-item summary span:first-child { transition: color 0.25s; }
.faq-item summary:hover span:first-child { color: var(--signal-deep); }
.faq-item summary:hover .pm { transform: scale(1.06); }
.faq-item.is-open summary:hover .pm { transform: rotate(180deg) scale(1.06); }

/* ---------- Final CTA ---------- */
.final { padding: clamp(24px, 4vw, 40px) 0 clamp(80px, 9vw, 120px); }
.final-card {
  position: relative; overflow: hidden;
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--signal);
  color: #fff;
  padding: clamp(36px, 6vw, 88px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 4vw, 64px); align-items: end;
}
.final-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%);
}
.final-card h2 { position: relative; margin: 0; font: 700 clamp(36px, 5.2vw, 76px)/0.98 var(--f-display); letter-spacing: -0.04em; text-wrap: balance; }
.final-card .lead { position: relative; color: rgba(255, 255, 255, 0.86); }
.final-actions { position: relative; display: grid; gap: 10px; }
.final-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border: 0; border-radius: 18px; text-align: left;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.final-option:hover { background: rgba(255, 255, 255, 0.22); transform: translateX(4px); }
.final-option.primary { background: var(--ink); }
.final-option.primary:hover { background: #000; }
.final-option .fi { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.final-option b { display: block; font-size: 16px; font-weight: 600; }
.final-option small { display: block; margin-top: 3px; font-size: 13px; opacity: 0.75; }
.final-option .go { margin-left: auto; opacity: 0.7; transition: transform 0.3s var(--ease); }
.final-option:hover .go { transform: translateX(3px); opacity: 1; }
.final-meta { position: relative; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font: 500 12px/1 var(--f-mono); color: rgba(255, 255, 255, 0.85); letter-spacing: 0.04em; }
.final-meta span::before { content: "✓ "; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .brand { color: var(--on-dark); }
.footer .tagline { margin: 16px 0 0; color: var(--on-dark-muted); max-width: 280px; }
.footer h5 { margin: 0 0 16px; font: 600 11px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--on-dark-muted); text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a, .footer ul button { background: none; border: 0; padding: 0; color: var(--on-dark); opacity: 0.85; font-size: 15px; text-align: left; }
.footer ul a:hover, .footer ul button:hover { opacity: 1; color: var(--mint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); font: 500 12px/1 var(--f-mono); color: var(--on-dark-muted); }

/* Mobile sticky CTA */

/* ==========================================================================
   BOOKING MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s linear 0.32s; }
.modal.open { visibility: visible; transition-delay: 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(var(--ink-rgb) / 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.28s ease; }
.modal.open .modal-backdrop { opacity: 1; transition: opacity 0.45s var(--ease); }
.modal-panel {
  position: relative; width: 100%; max-width: 620px; max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
  border-radius: 28px; background: var(--paper);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(18px) scale(0.96);
  transform-origin: 50% 65%;
  /* closing: quick and plain */
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 1, 1);
  overflow: hidden;
}
/* opening: soft spring */
.modal.open .modal-panel { opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.65s cubic-bezier(0.34, 1.42, 0.64, 1); }

/* staggered content on open (class "intro" is set for ~1s by JS) */
@keyframes introUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal.intro .modal-head,
.modal.intro .step.active > h3,
.modal.intro .step.active > .sub,
.modal.intro .step.active .type-opt,
.modal.intro .step.active > .field-label,
.modal.intro .step.active > .chips,
.modal.intro .modal-actions { animation: introUp 0.5s var(--ease) both; }
.modal.intro .modal-head { animation-delay: 0.06s; }
.modal.intro .step.active > h3 { animation-delay: 0.1s; }
.modal.intro .step.active > .sub { animation-delay: 0.15s; }
.modal.intro .step.active .type-opt:nth-child(1) { animation-delay: 0.2s; }
.modal.intro .step.active .type-opt:nth-child(2) { animation-delay: 0.25s; }
.modal.intro .step.active .type-opt:nth-child(3) { animation-delay: 0.3s; }
.modal.intro .step.active > .field-label { animation-delay: 0.34s; }
.modal.intro .step.active > .chips { animation-delay: 0.38s; }
.modal.intro .modal-actions { animation-delay: 0.3s; }

/* scroll lock without layout shift: keep the scrollbar's width as padding */
html.modal-lock body { overflow: hidden; padding-right: var(--sbw, 0px); }
html.modal-lock .nav { padding-right: var(--sbw, 0px); }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 0; }
.progress { flex: 1; height: 4px; border-radius: 999px; background: var(--bone-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: var(--signal); transition: width 0.5s var(--ease); }
.step-label { color: var(--muted); white-space: nowrap; }
.x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bone); display: grid; place-items: center; transition: background 0.2s, transform 0.3s var(--ease); }
.x:hover { background: var(--bone-2); transform: rotate(90deg); }
.modal-body { overflow-y: auto; padding: 18px 26px 6px; }
.step { display: none; }
.step.active { display: block; }
.step.active.enter { animation: stepIn 0.45s var(--ease); }
.step.active.enter.back-anim { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.step h3 { margin: 4px 0 4px; font: 650 30px/1.08 var(--f-display); letter-spacing: -0.03em; }
.step .sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

.type-grid { display: grid; gap: 10px; }
.type-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--bone); border: 1.5px solid transparent; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease); }
.type-opt:hover { background: var(--bone-2); }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt .ti { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background 0.2s, color 0.2s; }
.type-opt b { display: block; font-size: 16px; font-weight: 600; }
.type-opt small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.type-opt .radio { margin-left: auto; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color 0.2s, background 0.2s; }
.type-opt .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.25s var(--ease); }
.type-opt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.type-opt:has(input:checked) .ti { background: var(--signal); color: #fff; }
.type-opt:has(input:checked) .radio { background: var(--ink); border-color: var(--ink); }
.type-opt:has(input:checked) .radio::after { transform: scale(1); }
.type-opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }

.field-label { display: block; margin: 22px 0 10px; font: 600 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.chip-check span::before { content: "+"; font-family: var(--f-mono); color: var(--muted); }
.chip-check input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip-check input:checked + span::before { content: "✓"; color: var(--mint); }
.chip-check input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; height: 56px; padding: 22px 14px 6px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: #fff; outline: none;
  font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { height: 92px; resize: vertical; padding-top: 26px; line-height: 1.4; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235d625d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field label { position: absolute; left: 15px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all 0.2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(var(--ink-rgb) / 0.06); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label { top: 9px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
/* phone: country code picker sits inside the field, left of the number */
.field.phone input { padding-left: 104px; }
.field.phone label { left: 105px; }
.cc { position: absolute; z-index: 2; left: 6px; top: 6px; height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 9px; border: 0; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; background: none; color: var(--ink); font: 550 14.5px/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.cc:hover, .cc[aria-expanded="true"] { background: rgb(var(--ink-rgb) / 0.05); }
.cc:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.cc-flag { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.12); }
.cc-dial { min-width: 34px; }
.cc-car { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.cc[aria-expanded="true"] .cc-car { transform: rotate(180deg); }
/* in normal flow (not a floating menu): the modal body scrolls, so a floating list would be clipped */
.cc-pop { margin-top: 6px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgb(var(--ink-rgb) / 0.35); }
.field .cc-pop .cc-q { height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; }
.cc-list { position: relative; list-style: none; margin: 6px 0 0; padding: 0; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.cc-list li.on { background: rgb(var(--ink-rgb) / 0.06); }
.cc-list li[aria-selected="true"] { font-weight: 600; }
.cc-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-d { color: var(--muted); font: 500 12.5px/1 var(--f-mono); }
.cc-list .cc-none { justify-content: center; color: var(--muted); cursor: default; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--signal); box-shadow: 0 0 0 4px rgb(var(--signal-rgb) / 0.1); }
.field .err { display: none; margin-top: 6px; font-size: 12.5px; color: var(--signal-deep); }
.field.invalid .err { display: block; }
.field .hint { display: none; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field.hinted .hint { display: block; }
.field.invalid .hint { display: none; }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; transition: all 0.2s; }
.consent .box svg { opacity: 0; transform: scale(0.5); transition: all 0.25s var(--ease); }
.consent input:checked + .box { background: var(--ink); border-color: var(--ink); }
.consent input:checked + .box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .box { outline: 2px solid var(--signal); outline-offset: 2px; }
.consent.invalid .box { border-color: var(--signal); box-shadow: 0 0 0 4px rgb(var(--signal-rgb) / 0.1); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.day { flex: 0 0 auto; width: 74px; padding: 12px 0 11px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; text-align: center; transition: all 0.2s; scroll-snap-align: start; }
.day small { display: block; font: 500 11px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.day b { display: block; margin-top: 6px; font: 650 24px/1 var(--f-display); letter-spacing: -0.02em; }
.day em { display: block; margin-top: 4px; font: 500 11px/1 var(--f-mono); font-style: normal; color: var(--muted); }
.day:hover { border-color: var(--ink); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: var(--on-dark-muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; font: 500 14px/1 var(--f-mono); transition: all 0.2s; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #fff; }
.slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.tz { margin-top: 12px; font: 500 12px/1.4 var(--f-mono); color: var(--muted); }
.slot-err { display: none; margin-top: 10px; font-size: 13px; color: var(--signal-deep); }
.slot-err.show { display: block; }

.drop { position: relative; display: grid; place-items: center; gap: 8px; min-height: 210px; padding: 24px; border-radius: 18px; border: 1.5px dashed var(--line-strong); background: var(--bone); text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; overflow: hidden; }
.drop:hover, .drop.drag { border-color: var(--signal); background: var(--signal-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .di { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--paper); box-shadow: var(--shadow); }
.drop b { font-size: 15.5px; }
.drop small { color: var(--muted); font-size: 13px; }
.drop-preview { position: absolute; inset: 0; display: none; background: var(--ink); }
.drop-preview img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.drop-preview .scanline { animation-duration: 2.2s; }
.drop-preview .fname { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px 5px; border-radius: 8px; background: rgb(var(--ink-rgb) / 0.8); color: var(--bone); font: 500 11.5px/1 var(--f-mono); }
.drop.has-file .drop-preview { display: block; }

.modal-actions { display: flex; align-items: center; gap: 10px; padding: 18px 26px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.modal-actions .spacer { flex: 1; }
.modal-actions .trust { font: 500 11.5px/1.3 var(--f-mono); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.btn.loading { pointer-events: none; }
.btn.loading .lbl, .btn.loading .arr { opacity: 0; }
.btn .spin { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; opacity: 0; animation: spin 0.8s linear infinite; }
.btn.loading .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.success { display: none; padding: 34px 28px 28px; text-align: center; }
.modal.done .success { display: block; animation: stepIn 0.5s var(--ease); }
.modal.done #bookForm, .modal.done .modal-head .progress, .modal.done .step-label { display: none; }
.check-wrap { position: relative; width: 132px; height: 132px; margin: 6px auto 0; }
.check { width: 132px; height: 132px; overflow: visible; }
.check .c-fill { fill: var(--mint-deep); transform-origin: 66px 66px; transform: scale(0); }
.check .c-ring { fill: none; stroke: var(--mint-deep); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 358; stroke-dashoffset: 358; transform: rotate(-90deg); transform-origin: 66px 66px; }
.check .c-tick { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.modal.done .check .c-ring { animation: ring 0.65s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards; }
.modal.done .check .c-fill { animation: fillPop 0.5s var(--ease) 0.62s forwards; }
.modal.done .check .c-tick { animation: tick 0.42s cubic-bezier(0.65, 0, 0.45, 1) 0.9s forwards; }
.modal.done .check-wrap { animation: bump 0.5s var(--ease) 0.62s; }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes fillPop { 0% { transform: scale(0); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes bump { 50% { transform: scale(1.06); } }
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint-deep); opacity: 0; }
.modal.done .ripple { animation: ripple 1.2s var(--ease) 0.75s; }
.modal.done .ripple.r2 { animation-delay: 0.95s; }
@keyframes ripple { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0; }
.modal.done .burst i { animation: burst 0.9s var(--ease) 0.8s forwards; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--dist) * -1)) rotate(140deg) scale(0.4); } }
.success h3 { margin: 22px 0 0; font: 700 34px/1.05 var(--f-display); letter-spacing: -0.035em; }
.success .sub { margin: 10px auto 0; color: var(--muted); max-width: 420px; }
.receipt { margin: 24px auto 0; max-width: 440px; border-radius: 18px; background: var(--bone); text-align: left; overflow: hidden; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px dashed var(--line-strong); font-size: 14.5px; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row span { color: var(--muted); font: 500 12px/1.6 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.receipt-row b { font-weight: 600; text-align: right; }
.receipt-row.ref b { font-family: var(--f-mono); letter-spacing: 0.04em; color: var(--signal-deep); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.success .note { margin-top: 18px; font: 500 12px/1.4 var(--f-mono); color: var(--muted); }

/* Toast (language switch) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bone); font: 500 13px/1 var(--f-mono); opacity: 0; pointer-events: none; transition: all 0.35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Hero: copy left, compact vision stage (solutions) right */
.hero-sol { position: relative; min-width: 0; scroll-margin-top: 90px; }
@media (min-width: 1081px) {
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .hero .display { font-size: clamp(44px, 5.4vw, 84px); }
  .hero-sol .tabs { margin-top: 0; padding: 4px; gap: 2px; }
  .hero-sol .tab { min-height: 36px; padding: 4px 8px; gap: 6px; font-size: 13px; }
  .hero-sol .tab .tn { font-size: 10px; }
  .hero-sol .vstage { padding: 8px; gap: 8px; border-radius: 26px; }
  .hero-sol .tabs + .vstage { margin-top: 14px; }
  .hero-sol .screen .slide-chart { padding: 34px 10px 40px; }
  .hero-sol .screen { border-radius: 18px; }
  .hero-sol .feed { top: 10px; left: 10px; padding: 6px 9px 5px; font-size: 9.5px; }
  .hero-sol .vsteps { left: 10px; right: 10px; bottom: 10px; gap: 4px; }
  .hero-sol .vstep { padding: 6px 8px 5px; border-radius: 7px; font-size: 9px; }
  .hero-sol .hud { grid-template-columns: 0.9fr 1.15fr 1fr; gap: 14px; padding: 16px; border-radius: 18px; }
  .hero-sol .vbadge { height: 20px; padding: 0 7px; font-size: 9px; }
  .hero-sol .hud h3 { margin-top: 10px; font-size: 17px; }
  .hero-sol .hud p { margin-top: 6px; font-size: 11.5px; line-height: 1.45; }
  .hero-sol .hud-foot { padding-top: 12px; gap: 8px; flex-wrap: wrap; }
  /* narrow first HUD column: let the CTA wrap inside it instead of running into the legend */
  .hero-sol .hud-foot .btn-sm { height: auto; min-height: 32px; min-width: 0; padding: 7px 10px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
  .hero-sol .hud-label { margin-bottom: 8px; font-size: 9.5px; }
  .hero-sol .legend { gap: 3px; }
  .hero-sol .lg { gap: 7px; padding: 6px 8px; border-radius: 8px; font-size: 11px; }
  .hero-sol .lg span:nth-child(2) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-sol .lg .sw { width: 13px; height: 10px; }
  .hero-sol .lg .n { font-size: 11.5px; }
  .hero-sol .hkpis { gap: 6px; }
  .hero-sol .hk { padding: 8px; border-radius: 10px; }
  .hero-sol .hk .k { font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
  .hero-sol .hk .v { margin-top: 5px; font-size: 15px; text-overflow: clip; }
}
@media (min-width: 1081px) and (max-width: 1300px) {
  .hero-sol .hud p { display: none; }
  .hero-sol .lg span:nth-child(2) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1080px) {
  .hero-sol { margin-top: 12px; }
  .hero-sol .tabs { margin-top: 0; }
}

/* Screen: "illustrative data" tag + HUD detail link */
.screen .sample { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 7px 10px 6px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: rgb(var(--bone-rgb) / 0.72); font-size: 10px; letter-spacing: 0.04em; white-space: nowrap; }
.feed { max-width: calc(100% - 150px); }
/* Icons (sprite symbols #i-arrow / #i-ext) */
.ic { flex: none; width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
a:hover > .ic, button:hover > .ic, a:hover .go .ic { transform: translateX(3px); }
.ft-social { display: inline-flex; align-items: center; gap: 9px; }
.ft-social .ic-li { width: 18px; height: 18px; flex: none; }
.final-option .go.ic { width: 20px; height: 20px; }
.more-card .go { display: inline-flex; align-items: center; gap: 8px; }
.hud-more { gap: 8px; }
.hud-more:hover { --fg: var(--mint); }
@media (min-width: 1081px) {
  .hero-sol .screen .sample { top: 10px; right: 10px; padding: 6px 8px 5px; font-size: 9px; }
  .hero-sol .feed { max-width: calc(100% - 120px); }
  .hero-sol .hud-foot { flex-direction: column; align-items: stretch; }
  .hero-sol .tab { padding: 4px 6px; font-size: 12.5px; }
}
@media (max-width: 760px) {
  .screen .sample { display: none; }
  .feed { max-width: calc(100% - 16px); }
}

/* ===== Solution detail pages ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.45; }
.crumbs .here { color: var(--ink); }
.sp-hero .display { margin-top: 22px; font-size: clamp(40px, 4.4vw, 68px); }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.cap { display: flex; flex-direction: column; min-height: 230px; padding: 24px; border-radius: var(--r-lg); background: var(--bone); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cap .n { font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--signal); }
.cap h3 { margin: auto 0 0; padding-top: 36px; font: 650 22px/1.15 var(--f-display); letter-spacing: -0.02em; }
.cap p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.sp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.sp-step { padding: 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.sp-step .num { font: 700 56px/1 var(--f-display); letter-spacing: -0.04em; color: var(--signal); }
.sp-step h3 { margin: 28px 0 0; font: 650 26px/1.1 var(--f-display); letter-spacing: -0.02em; }
.sp-step p { margin: 10px 0 0; color: var(--muted); }

.sp-for { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sp-for .btn { margin-top: 30px; }
.sp-uses { list-style: none; margin: 0; padding: 0; }
.sp-uses li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line-dark); font-size: 17px; }
.sp-uses li:last-child { border-bottom: 1px solid var(--line-dark); }
.sp-uses li::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230f3b30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 48px; }
.more-card { display: flex; flex-direction: column; min-height: 200px; padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.more-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.more-card .nm { font: 650 24px/1.1 var(--f-display); letter-spacing: -0.02em; }
.more-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.more-card .go { margin-top: auto; padding-top: 24px; font: 600 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal-deep); }

@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .sp-for { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cap-grid, .sp-steps, .more-grid { grid-template-columns: 1fr; }
  .cap { min-height: 0; }
  .cap h3 { padding-top: 20px; }
  .more-card { min-height: 0; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { position: absolute; left: 12px; right: 12px; top: 72px; display: grid; gap: 2px; padding: 10px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all 0.3s var(--ease); }
  .mobile-menu a { padding: 14px 14px; border-radius: 12px; font-weight: 550; font-size: 17px; }
  .mobile-menu a:hover { background: var(--bone); }
  .nav.open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .hud { grid-template-columns: 1fr 1fr; }
  .hud-head { grid-column: 1 / -1; }
  .faq-grid { grid-template-columns: 1fr; }
  .final-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav-in { height: 64px; gap: 10px; }
  /* phones: the demo CTA stays in the nav (short label, orange); free analysis lives in the menu */
  .nav-right { gap: 8px; }
  .nav-demo { --bg: var(--signal); --fg: var(--on-signal); height: 36px; padding: 0 14px; font-size: 13.5px; box-shadow: 0 6px 18px -8px rgb(var(--signal-rgb) / 0.7); }
  .nav-demo { order: -1; }  /* between the logo and the language toggle */
  .nav-demo .lbl-long { display: none; }
  .nav-demo .lbl-short { display: inline; }
  .mobile-menu { top: 62px; }
  .hero { padding-top: 104px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .faq-item .ans { padding-right: 0; }
  .vstage { padding: 8px; border-radius: 24px; gap: 8px; }
  .screen { border-radius: 16px; }
  .feed { top: 8px; left: 8px; padding: 6px 9px 5px; font-size: 9px; }
  .vsteps { left: 8px; right: 8px; bottom: 8px; gap: 4px; }
  .tabs { border-radius: 20px; gap: 2px; padding: 4px; }
  .tab { flex-direction: column; gap: 3px; min-height: 52px; padding: 6px 4px; border-radius: 16px; font-size: 12.5px; }
  .screen .slide-chart { padding: 30px 8px 34px; }
  .pf-chart .fc-plot { inset: 34px 8px 8px; }
  .vstep { padding: 6px 7px 5px; font-size: 8.5px; letter-spacing: 0.03em; }
  .vstep .n { display: none; }
  .hud { grid-template-columns: 1fr; gap: 22px; padding: 18px 16px 16px; border-radius: 16px; }
  /* phones: video → detections → output → description + CTAs (desktop order unchanged) */
  .hud-head { order: 3; padding-top: 20px; border-top: 1px solid var(--line-dark); }
  .hud-foot { flex-wrap: wrap; justify-content: flex-start; }
  .hud-foot .btn { flex: 1 1 auto; }
  .wordmark { height: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .modal { padding: 0; place-items: end center; }
  .modal-panel { max-width: none; max-height: 94dvh; border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .modal.open .modal-panel { transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
  .modal-panel { transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 1, 1); }
  .modal-body { padding: 16px 18px 6px; }
  .modal-actions { padding: 14px 18px 18px; }
  .modal-actions .trust { display: none; }
  .fields { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .step h3 { font-size: 26px; }
  .final-option { padding: 14px; }
}
@media (max-width: 420px) {
  .lang button { width: 36px; }
  .lang-pill { width: 36px; }
  .lang[data-active="en"] .lang-pill { transform: translateX(36px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Custom AI page: demand forecast card (hero of solutions/custom-ai.html) ===== */
.fc-card { margin: 0; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgb(var(--ink-rgb) / 0.55); min-width: 0; }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-feed { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 11px; letter-spacing: 0.08em; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-feed i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: blink 1.2s steps(2) infinite; }
.fc-card .sample { flex: none; padding: 6px 9px 5px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 10px; letter-spacing: 0.04em; }

.mp-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 18px 0 10px; }
.mp-row-b { margin-top: 20px; }
.mp-title { font: 600 15px/1.2 var(--f-display); letter-spacing: -0.01em; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; color: var(--on-dark-muted); }
.fl { display: inline-flex; align-items: center; gap: 7px; }
.fl::before { content: ""; width: 16px; height: 0; border-top: 2px solid var(--bone); }
.fl.fc::before { border-top: 2px dashed var(--mint); }
.fl.bd::before { width: 12px; height: 10px; border: 0; border-radius: 2px; background: rgb(var(--mint-rgb) / 0.28); }
.fl.base::before, .fl.ours::before { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--mint); }
.fl.ours::before { background: rgb(var(--bone-rgb) / 0.7); }

.fc-plot { position: relative; aspect-ratio: 600 / 220; border-radius: 14px; overflow: hidden; background: rgb(var(--bone-rgb) / 0.03); border: 1px solid var(--line-dark); }
.fc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.4s; }
.fc-svg path, .fc-svg line { vector-effect: non-scaling-stroke; }
.fc-svg.fade, .fc-dot.fade { opacity: 0; }
.fc-grid line { stroke: rgb(var(--bone-rgb) / 0.07); stroke-width: 1; }
.fc-future { fill: rgb(var(--mint-rgb) / 0.035); }
.fc-now { stroke: rgb(var(--bone-rgb) / 0.28); stroke-width: 1; stroke-dasharray: 3 4; }
.fc-band { fill: rgb(var(--mint-rgb) / 0.16); transition: opacity 0.4s; }
.fc-fc { fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linejoin: round; stroke-linecap: round; }
.fc-act { fill: none; stroke: var(--bone); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fc-now-lbl { position: absolute; top: 8px; margin-left: 6px; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--bone-rgb) / 0.5); pointer-events: none; white-space: nowrap; }
.mp-y { position: absolute; left: 8px; top: 0; bottom: 0; font-size: 9.5px; color: rgb(var(--bone-rgb) / 0.4); pointer-events: none; }
.mp-y span { position: absolute; left: 0; transform: translateY(-50%); }
.mp-y span:first-child { transform: none; margin-top: 3px; }
.mp-y span:last-child { transform: translateY(-100%); margin-top: -3px; }
.fc-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(var(--mint-rgb) / 0.22); transition: opacity 0.4s; }
.fc-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--mint); animation: fcPulse 1.8s var(--ease) infinite; }
@keyframes fcPulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.mp-read { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px 5px; border-radius: 8px; background: rgb(var(--ink-rgb) / 0.82); border: 1px solid var(--line-dark); font-size: 10.5px; color: var(--on-dark-muted); white-space: nowrap; }
.mp-read b { color: var(--bone); font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-read b.f { color: var(--mint); }
.fc-dot { background: var(--bone); box-shadow: 0 0 0 4px rgb(var(--bone-rgb) / 0.18); }
.fc-dot::after { border-color: var(--bone); }
.fc-dot.is-fc { background: var(--mint); box-shadow: 0 0 0 4px rgb(var(--mint-rgb) / 0.22); }
.fc-dot.is-fc::after { border-color: var(--mint); }

.mp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mp-bars li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 52px; align-items: center; gap: 12px; }
.mp-bars .nm { font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-bars .tr { position: relative; height: 18px; border-radius: 6px; background: rgb(var(--bone-rgb) / 0.05); overflow: hidden; }
.mp-bars .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; transition: width 1.4s var(--ease); }
/* thin bar = forecast (mint, as in the chart), thick bar = actual (bone) */
.mp-bars .base { z-index: 1; height: 30%; top: 35% !important; background: var(--mint); }
.mp-bars .ours { background: linear-gradient(90deg, rgb(var(--bone-rgb) / 0.12), rgb(var(--bone-rgb) / 0.45)); }
.fc-card.go .mp-bars .base { width: calc(var(--b) * 1%); }
.fc-card.go .mp-bars .ours { width: calc(var(--o) * 1%); transition-delay: 0.35s; }
.fc-card.go .mp-bars li:nth-child(2) i { transition-delay: 0.12s; }
.fc-card.go .mp-bars li:nth-child(2) .ours { transition-delay: 0.47s; }
.fc-card.go .mp-bars li:nth-child(3) i { transition-delay: 0.24s; }
.fc-card.go .mp-bars li:nth-child(3) .ours { transition-delay: 0.59s; }
.fc-card.go .mp-bars li:nth-child(4) i { transition-delay: 0.36s; }
.fc-card.go .mp-bars li:nth-child(4) .ours { transition-delay: 0.71s; }
.mp-bars .pv { font: 650 15px/1 var(--f-display); color: var(--mint); text-align: right; font-variant-numeric: tabular-nums; }
.fc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.fc-kpis .hk:first-child .v { color: var(--mint); }

@media (max-width: 760px) {
  .fc-card { padding: 14px; margin: 0 -4px; }
  .fc-card .sample { display: none; }
  .fc-plot { aspect-ratio: 600 / 300; }
  .mp-bars li { grid-template-columns: 1fr 48px; gap: 6px 10px; }
  .mp-bars .nm { grid-column: 1 / -1; }
  .mp-bars .tr { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-dot::after, .fc-feed i { animation: none; }
  .mp-bars .tr i { transition: none; }
}

/* booking form honeypot (spam guard) — kept off-screen, not display:none, so naive bots still see it */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages (legal/*.html) + footer links ---------- */
html[lang="tr"] [data-lang-block="en"], html[lang="en"] [data-lang-block="tr"] { display: none !important; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-legal a { color: var(--on-dark-muted); transition: color 0.2s; }
.ft-legal a:hover { color: var(--on-dark); }
.legal-hero { padding: clamp(120px, 14vw, 168px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.legal-hero .display { margin: 18px 0 0; font-size: clamp(38px, 5vw, 64px); }
.legal-updated { margin: 16px 0 0; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.legal-body { padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 9vw, 120px); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal { max-width: 760px; font-size: 16px; line-height: 1.7; }
.legal .legal-lead { margin: 0 0 8px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.legal h2 { margin: 44px 0 12px; font: 650 24px/1.25 var(--f-display); letter-spacing: -0.015em; }
.legal h3 { margin: 26px 0 8px; font: 600 17px/1.3 var(--f-display); }
.legal p { margin: 0 0 14px; color: var(--ink-3); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-3); }
.legal li { margin: 6px 0; }
.legal a { color: var(--signal-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--bone-2); font: 500 13px var(--f-mono); }
.legal mark.todo { padding: 1px 6px; border-radius: 5px; background: #fff1b8; color: #5c4600; font-weight: 600; }
.legal-table { width: 100%; margin: 8px 0 20px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th { text-align: left; padding: 10px 12px; background: var(--bone-2); font: 600 12px/1.3 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.legal-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-3); }
.legal-side { position: sticky; top: 100px; display: grid; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.legal-side .mono { margin-bottom: 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal-side a { font-weight: 550; color: var(--ink); }
.legal-side a:hover { color: var(--signal-deep); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; }
  .legal-table { display: block; overflow-x: auto; }
}

/* ---------- Cookie consent banner ---------- */
/* Reject and Accept look the same on purpose: refusing must be as easy as accepting (GDPR / ePrivacy). */
.ft-ck { padding: 0; border: 0; background: none; font: inherit; color: var(--on-dark-muted); cursor: pointer; transition: color 0.2s; }
.ft-ck:hover { color: var(--on-dark); }
.ck { position: fixed; z-index: 140; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 20px 20px 16px; border-radius: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.ck.show { opacity: 1; transform: none; }
.ck-title { margin: 0 0 6px; font: 650 17px/1.25 var(--f-display); letter-spacing: -0.01em; }
.ck-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ck-text a { color: var(--signal-deep); text-decoration: underline; text-underline-offset: 3px; }
.ck-prefs { display: grid; gap: 2px; margin-top: 12px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ck-row:first-child { cursor: default; }
.ck-lbl { display: grid; gap: 2px; min-width: 0; }
.ck-lbl b { font: 600 14px/1.3 var(--f-body); }
.ck-lbl small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ck-always { flex: none; font-size: 11px; letter-spacing: 0.04em; color: var(--mint-deep); }
.ck-switch { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--bone-2); border: 1px solid var(--line-strong); cursor: pointer; transition: background 0.2s; }
.ck-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(var(--ink-rgb) / 0.3); transition: transform 0.2s var(--ease); }
.ck-switch:checked { background: var(--signal); border-color: var(--signal); }
.ck-switch:checked::after { transform: translateX(16px); }
.ck-switch:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ck-gap { flex: 1; }
.ck-link { padding: 6px 2px; border: 0; background: none; font: 600 13px/1 var(--f-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-btn { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bone); font: 600 13.5px/1 var(--f-body); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.ck-btn:hover { background: var(--ink-2); }
.ck-btn:active { transform: scale(0.97); }
.ck-btn:focus-visible, .ck-link:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (max-width: 560px) {
  .ck { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px 16px 14px; }
  .ck-gap { display: none; }
  .ck-btn { flex: 1 1 40%; }
  .ck-link { order: 3; flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }

/* 3D confirmation tick (assets/tick3d.js) replaces the SVG tick when WebGL is available */
.check-wrap .tick3d { position: absolute; inset: -26px; display: none; pointer-events: none; }
.check-wrap.is-3d .tick3d { display: block; }
.check-wrap.is-3d .check, .check-wrap.is-3d .ripple { display: none; }
