/* FutureWork Technologies Ltd - site styles
   One stylesheet, no build step. Tokens first, then layout, components, pages. */

:root {
  --brand: #005bc1;
  --brand-600: #004a9f;
  --brand-700: #003a7d;
  --brand-50: #eef5ff;
  --brand-100: #d9e8ff;
  --accent: #1fb6d5;
  --ink: #0b1526;
  --ink-2: #2d3338;
  --muted: #596065;
  --line: #e4e9ee;
  --line-2: #d3dae2;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-softer: #fafbfd;
  --night: #060c18;
  --night-2: #0c1830;
  --night-line: rgba(255, 255, 255, 0.12);
  --success: #12805c;
  --success-50: #e8f6ef;
  --warn: #9a5b00;
  --warn-50: #fff5e5;
  --danger: #b42318;
  --danger-50: #fdeceb;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.06), 0 1px 3px rgba(11, 21, 38, 0.08);
  --shadow: 0 10px 30px -12px rgba(11, 21, 38, 0.18), 0 2px 6px rgba(11, 21, 38, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(11, 21, 38, 0.35);
  --ring: 0 0 0 3px rgba(0, 91, 193, 0.35);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4.1rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--brand-100); color: var(--ink); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(31, 182, 213, 0.18), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(0, 91, 193, 0.35), transparent 60%), var(--night); color: #c7d0dd; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark a:not(.btn) { color: #8fc3ff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-dark .eyebrow { color: #8fc3ff; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31, 182, 213, 0.18); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-dark .lead { color: #aeb9c9; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }

/* Buttons */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 8px 20px -8px rgba(0, 91, 193, 0.6); }
.btn-primary:hover { --btn-bg: var(--brand-600); }
.btn-dark { --btn-bg: var(--ink); }
.btn-dark:hover { --btn-bg: #1b2a44; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: #eef2f7; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn-outline:hover { --btn-bd: var(--ink); }
.btn-glass { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.btn-glass:hover { --btn-bg: rgba(255, 255, 255, 0.16); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bg: var(--bg-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.92); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-text span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.primary-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hide-md { display: none !important; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 24px 24px; display: none; margin: 0;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .brand-text span { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #8fc3ff, #5fe0f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b9c4d4; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: #aeb9c9; font-size: 0.92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: #5fe0f5; flex: none; }
.hero-visual { position: relative; }
.hero-visual .device-shot { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--night-line); }
.float-card {
  position: absolute; background: rgba(255, 255, 255, 0.96); color: var(--ink-2); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; width: min(300px, 78%); border: 1px solid rgba(255, 255, 255, 0.6);
}
.float-card.status { left: -28px; bottom: 28px; }
.float-card.chat { right: -18px; top: 26px; width: min(250px, 70%); }
.float-card .fc-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.float-card .fc-title { font-weight: 650; color: var(--ink); font-size: 0.98rem; margin-bottom: 10px; }
.mini-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 8px; }
.mini-steps span { height: 6px; border-radius: 6px; background: var(--line); }
.mini-steps span.done { background: var(--success); }
.mini-steps span.now { background: linear-gradient(90deg, var(--brand), var(--accent)); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.chip.success { background: var(--success-50); color: var(--success); }
.chip.warn { background: var(--warn-50); color: var(--warn); }
.chip.muted { background: var(--bg-soft); color: var(--muted); }
.chip.danger { background: var(--danger-50); color: var(--danger); }
.bubble { font-size: 0.86rem; background: var(--bg-soft); border-radius: 14px 14px 14px 4px; padding: 10px 12px; margin-bottom: 6px; }
.bubble.me { background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; margin-left: 24px; }

.quick-track { margin-top: 8px; display: flex; gap: 8px; max-width: 520px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--night-line); padding: 6px; border-radius: 999px; }
.quick-track input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0 16px; font: inherit; }
.quick-track input::placeholder { color: #8d99ab; }
.quick-track input:focus { outline: none; }
.quick-track:focus-within { border-color: rgba(143, 195, 255, 0.7); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 12px auto 0; }
  .float-card.status { left: 8px; }
  .float-card.chat { right: 8px; }
}
@media (max-width: 480px) {
  .float-card.chat { display: none; }
  .quick-track { flex-direction: column; border-radius: 18px; }
  .quick-track input { min-height: 44px; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: #8d99ab; margin-bottom: 18px; list-style: none; padding: 0; }
.breadcrumb a { color: #aeb9c9; text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5d6b80; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.trust-item strong { display: block; color: var(--ink); font-size: 0.98rem; }
.trust-item span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust-item { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: inherit; }
.card-link .more { margin-top: auto; padding-top: 16px; color: var(--brand); font-weight: 600; font-size: 0.95rem; display: inline-flex; gap: 6px; align-items: center; }
.card-link .more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card-link:hover .more svg { transform: translateX(3px); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.icon-tile svg { width: 24px; height: 24px; }
.section-dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--night-line); box-shadow: none; color: #b9c4d4; }
.section-dark .icon-tile { background: rgba(143, 195, 255, 0.12); color: #8fc3ff; }

/* Device cards */
.device-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); padding: 26px 26px 0; display: flex; flex-direction: column; min-height: 320px; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.device-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.device-card h3 { margin-bottom: 4px; }
.device-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 14px; }
.device-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.device-card .tags span { font-size: 0.76rem; background: #fff; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.device-card img { margin: auto auto 0; max-height: 170px; width: auto; object-fit: contain; border-radius: 14px 14px 0 0; }
.device-card.dark { background: #0d1424; border-color: #0d1424; }
.device-card.dark h3 { color: #fff; }
.device-card.dark p { color: #aeb9c9; }
.device-card.dark .tags span { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #d5dce6; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--brand); letter-spacing: 0.06em; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.94rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img.rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section-dark .check-list li::before { background-color: rgba(95, 224, 245, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fe0f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* Callout */
.callout { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid #f3d9a8; background: var(--warn-50); color: #5c3a00; }
.callout svg { width: 24px; height: 24px; flex: none; color: var(--warn); margin-top: 2px; }
.callout strong { color: #3d2600; }
.callout.info { border-color: var(--brand-100); background: var(--brand-50); color: #12345e; }
.callout.info svg { color: var(--brand); }
.callout p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; background: radial-gradient(600px 300px at 100% 0%, rgba(31, 182, 213, 0.35), transparent 60%), linear-gradient(135deg, var(--brand-700), var(--brand)); color: #d9e8ff; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Services page */
.service-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.service-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 0.92rem; border: 1px solid var(--line); background: #fff; }
.service-nav a:hover, .service-nav a.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.service { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 56px); }
.service:nth-of-type(even) { background: var(--bg-softer); }
.service-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-num { font-family: var(--font-display); font-weight: 700; color: var(--brand); letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.service h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.service-body p { color: var(--ink-2); }
.service-aside { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 16px; }
.service-aside .card { padding: 24px; }
.service-aside h3 { font-size: 1.05rem; }
.contact-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-all; }
.contact-line svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.contact-line:hover { background: var(--brand-50); color: var(--brand); }
.contact-line small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; word-break: normal; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.pill-list li { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; }
.service-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.service-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.repair-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.repair-cats .card { padding: 20px; }
.repair-cats h4 { margin-bottom: 4px; }
.repair-cats p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } .service-aside { position: static; } }
@media (max-width: 560px) { .repair-cats { grid-template-columns: 1fr; } }

.enterprise-process { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 0; border-left: 2px solid var(--brand-100); }
.enterprise-process li { position: relative; padding: 0 0 22px 26px; }
.enterprise-process li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.enterprise-process strong { display: block; color: var(--ink); }
.enterprise-process span { color: var(--muted); font-size: 0.94rem; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  font: inherit; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-status { font-size: 0.92rem; padding: 12px 14px; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--success-50); color: var(--success); }
.form-status.err { background: var(--danger-50); color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tracker */
.tracker-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); }
.tracker-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .tracker-form { grid-template-columns: 1fr; } }
.tracker-result { margin-top: 28px; display: none; }
.tracker-result.show { display: block; }
.tracker-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tracker-summary h3 { margin: 0 0 4px; font-size: 1.35rem; }
.tracker-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); }
.tracker-progress { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin-bottom: 30px; }
.tracker-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 8px; transition: width 0.8s cubic-bezier(.2, .8, .2, 1); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .node { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--muted); font-size: 0.8rem; font-weight: 700; z-index: 1; }
.timeline .node svg { width: 18px; height: 18px; }
.timeline li.done .node { background: var(--success); border-color: var(--success); color: #fff; }
.timeline li.done::after { background: var(--success); }
.timeline li.current .node { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(0, 91, 193, 0.15); }
.timeline li.issue .node { background: var(--warn); border-color: var(--warn); color: #fff; }
.timeline h4 { margin: 6px 0 2px; font-size: 1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.timeline li.pending h4 { color: var(--muted); font-weight: 550; }
.stage-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage-legend .card { padding: 18px; }
.stage-legend h4 { font-size: 0.98rem; margin-bottom: 4px; }
.stage-legend p { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 1000px) { .stage-legend { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stage-legend { grid-template-columns: 1fr; } }

/* Widget frames */
.widget-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(8px, 2vw, 16px); }
.widget-shell iframe { width: 100%; border: 0; min-height: 640px; border-radius: 14px; background: #fff; }
.widget-fallback { padding: 28px; text-align: center; color: var(--muted); }
.widget-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: box-shadow 0.2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font-weight: 620; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Assistant teaser */
.assistant-demo { background: #0f1a2f; border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.assistant-demo .bubble { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.assistant-demo .bubble.me { background: var(--brand); color: #fff; }
.channel-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; list-style: none; padding: 0; }
.channel-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); }
.channel-list svg { width: 22px; height: 22px; color: #5fe0f5; flex: none; margin-top: 2px; }
.channel-list strong { display: block; color: #fff; font-size: 0.95rem; }
.channel-list span { font-size: 0.86rem; color: #aeb9c9; }
@media (max-width: 560px) { .channel-list { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: #9aa7b8; padding: 72px 0 32px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 16px; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c7d0dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #5fe0f5; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.82rem; color: #7f8ca0; }
.footer-bottom p { margin: 0; max-width: 80ch; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Prose (policy pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--bg-soft); }

/* Reveal on scroll (progressive: content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- AI assistant widget ---------- */
.fw-assistant-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(6, 12, 24, 0.55);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.fw-assistant-launcher:hover { transform: translateY(-2px); }
.fw-assistant-launcher .orb { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 200deg, var(--brand), var(--accent), #8fc3ff, var(--brand)); display: grid; place-items: center; }
.fw-assistant-launcher .orb svg { width: 20px; height: 20px; color: #fff; }
.fw-assistant-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(0.9); }
@media (max-width: 480px) { .fw-assistant-launcher .label { display: none; } .fw-assistant-launcher { padding: 0 8px; } }

.fw-assistant {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(410px, calc(100vw - 24px)); height: min(680px, calc(100vh - 40px));
  display: none; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(6, 12, 24, 0.45), 0 0 0 1px rgba(11, 21, 38, 0.06);
}
.fw-assistant.is-open { display: flex; animation: fwPop 0.22s cubic-bezier(.2, .8, .2, 1); }
@keyframes fwPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (max-width: 520px) { .fw-assistant { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
.fwa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--night); color: #fff; }
.fwa-head .orb { width: 38px; height: 38px; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, var(--brand), var(--accent), #8fc3ff, var(--brand)); display: grid; place-items: center; }
.fwa-head .orb svg { width: 19px; height: 19px; }
.fwa-title { flex: 1; min-width: 0; }
.fwa-title strong { display: block; font-size: 0.98rem; }
.fwa-title span { font-size: 0.78rem; color: #9fb0c6; display: inline-flex; align-items: center; gap: 6px; }
.fwa-title span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.fwa-title span.offline::before { background: #f5b14c; }
.fwa-icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.fwa-icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.fwa-icon-btn[aria-pressed="true"] { background: var(--brand); }
.fwa-icon-btn svg { width: 18px; height: 18px; }
.fwa-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-softer); overscroll-behavior: contain; }
.fwa-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.fwa-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink-2); }
.fwa-msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.fwa-msg.system { align-self: center; background: transparent; color: var(--muted); font-size: 0.8rem; text-align: center; padding: 4px; }
.fwa-msg a { color: inherit; font-weight: 600; }
.fwa-actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 95%; }
.fwa-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand); font: inherit; font-size: 0.86rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.fwa-action:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.fwa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.fwa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa7b8; animation: fwBounce 1.2s infinite ease-in-out; }
.fwa-typing span:nth-child(2) { animation-delay: 0.15s; }
.fwa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fwBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-5px); opacity: 1; } }
.fwa-chips { display: flex; gap: 6px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; background: #fff; }
.fwa-chips::-webkit-scrollbar { display: none; }
.fwa-chip { white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 0.84rem; cursor: pointer; }
.fwa-chip:hover { border-color: var(--brand); color: var(--brand); }
.fwa-foot { padding: 10px 12px 12px; background: #fff; border-top: 1px solid var(--line); }
.fwa-input-row { display: flex; gap: 8px; align-items: flex-end; }
.fwa-input { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-2); font: inherit; font-size: 0.95rem; color: var(--ink); }
.fwa-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.fwa-send, .fwa-mic { width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; flex: none; }
.fwa-send { background: var(--brand); color: #fff; }
.fwa-send:hover { background: var(--brand-600); }
.fwa-mic { background: var(--bg-soft); color: var(--ink); }
.fwa-mic[aria-pressed="true"] { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }
.fwa-send svg, .fwa-mic svg { width: 20px; height: 20px; }
.fwa-note { font-size: 0.72rem; color: var(--muted); margin: 8px 2px 0; }
.fwa-note a { color: var(--muted); }
.fwa-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; align-self: stretch; }
.fwa-panel h4 { margin: 0; font-size: 0.95rem; }
.fwa-panel .input { min-height: 42px; padding: 9px 12px; font-size: 0.92rem; }
.fwa-panel .btn { min-height: 42px; }

/* ---------- Staff console ---------- */
.staff-shell { min-height: 100vh; background: var(--bg-soft); }
.staff-top { background: var(--night); color: #fff; padding: 14px 0; }
.staff-top .container { display: flex; align-items: center; gap: 16px; }
.staff-top strong { font-size: 1rem; }
.staff-tabs { display: flex; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.staff-tabs button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.staff-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.staff-panel[hidden] { display: none; }
.esc-list { display: grid; gap: 12px; }
.esc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; }
.esc-item header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.esc-item .meta { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.esc-item p { margin: 0; white-space: pre-wrap; }
.staff-chat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-rows: 1fr auto; height: 600px; overflow: hidden; }
.staff-chat .fwa-body { background: var(--bg-softer); }
.pending-card { border: 1px solid #f3d9a8; background: var(--warn-50); border-radius: 14px; padding: 14px; display: grid; gap: 8px; align-self: stretch; }
.pending-card pre { white-space: pre-wrap; margin: 0; font: inherit; font-size: 0.9rem; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; }
.flex { display: flex; } .gap-2 { gap: 16px; } .items-center { align-items: center; } .wrap { flex-wrap: wrap; }
[hidden] { display: none !important; }

/* Icon sprite default size (contexts above override) */
svg.i { width: 1.25em; height: 1.25em; flex: none; }
.fieldset-reset { border: 0; padding: 0; margin: 0; min-width: 0; }
.h3 { font-size: 1.25rem; }
.staff-top .container > :last-child { margin-left: auto; }
