/* dataanalysis.lk — design system v3
   Bold, dark, techy/data-driven — referenced against Artefact.com (navy/pink/violet,
   IBM Plex) and Tydo.com (near-black, vivid violet, bright accents). One confident
   accent (violet) drives UI chrome; a second (magenta) and a data-viz set (cyan/amber)
   are reserved for literal data and single standout moments, not spread everywhere. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #0a0a14;
  --surface: #13132a;
  --surface-2: #1b1b38;
  --line: #2a2a4a;
  --line-soft: #1e1e3a;
  --text: #f5f4fa;
  --text-soft: #b7b4c9;
  --text-faint: #8884a3;
  --accent: #8f6bff;
  --accent-fill: #6e4cf2;
  --accent-dim: rgba(143, 107, 255, 0.14);
  --magenta: #ff2d78;
  --cyan: #45c9c1;
  --amber: #ffc24b;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1160px;
  --font-head: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-color: rgba(143, 107, 255, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
nav a, .brand, .footer-nav a, .nav-cta a { text-decoration: none; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--font-mono); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section-alt { background: var(--surface); }

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-head p { font-size: 1.08rem; }

/* ───────────────────────── Buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-fill);
  color: var(--white);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 0 rgba(143, 107, 255, 0.5);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(143, 107, 255, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn-wa {
  background: transparent;
  border-color: #27b865;
  color: #4ee08c;
}
.btn-wa:hover { background: rgba(39, 184, 101, 0.1); }

/* Reserved for the single most important call to action — a breathing ring. */
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 0 var(--accent);
  animation: btnPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 107, 255, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(143, 107, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 107, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-pulse::after { animation: none; } }

/* ───────────────────────── Header / Nav ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--white);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 0 16px -2px rgba(143, 107, 255, 0.5);
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }

.nav-links a { position: relative; color: var(--text-soft); font-weight: 500; font-size: 0.95rem; padding: 6px 1px; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 1px; right: 1px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-mobile-cta { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 18px 24px 26px;
    transform: translateY(-110%);
    transition: transform 0.22s ease;
    border-bottom: 1px solid var(--line);
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  /* The logo + "Book a session" button + hamburger don't fit one row on a phone
     (~440px of content in ~330px of space) — drop the button from the bar and
     surface it as the first, button-styled item inside the menu instead. */
  .nav-cta .btn-ghost,
  .nav-cta .btn-primary { display: none; }
  .nav-links a.nav-mobile-cta {
    display: block;
    background: var(--accent-fill);
    color: var(--white);
    text-align: center;
    padding: 13px 0;
    border-radius: var(--radius-sm);
    border-bottom: none;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .nav-toggle { display: inline-flex; }
}

/* ───────────────────────── Hero ───────────────────────── */

.hero { padding: 60px 0 90px; border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -220px; right: -160px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 107, 255, 0.22), rgba(143, 107, 255, 0) 70%);
  pointer-events: none;
}

/* Ambient constellation/network graphic — the same node-and-line motif as the
   logo's island mark, redrawn as atmospheric texture behind the hero. Nodes
   twinkle continuously (never "finishes"), kept low-opacity so copy stays legible. */
.hero-network { position: absolute; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none; }
.hero-network svg { width: 100%; height: 100%; }
.net-line { stroke: var(--accent); stroke-width: 1; fill: none; opacity: 0.18; }
.net-node { fill: var(--accent); opacity: 0.4; animation: netTwinkle 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.net-node.net-node-alt { fill: var(--magenta); }
@keyframes netTwinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .net-node { animation: none; opacity: 0.5; } }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; position: relative; z-index: 1; }

.hero-masthead {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent-word { color: var(--accent); }
.hero .lede { font-size: 1.15rem; max-width: 48ch; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.hero-tools span.label { font-size: 0.8rem; color: var(--text-faint); margin-right: 2px; }
.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tool-tag:hover { border-color: var(--accent); color: var(--white); background: var(--accent-dim); }

@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* ───────────────────────── Hero carousel: table / chart / photo ───────────────────────── */

.figure-carousel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.figure-carousel.is-counting { border-color: var(--accent); box-shadow: 0 0 40px -12px rgba(143, 107, 255, 0.45); }

.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; animation: slideFade 0.5s ease; }
@keyframes slideFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.carousel-dots { display: flex; gap: 2px; justify-content: center; margin-top: 22px; }
.carousel-dot {
  /* Visual dot stays small; the clickable box is a proper touch target (~32px). */
  width: 32px; height: 32px;
  background: none; border: none; padding: 0; cursor: pointer;
  position: relative;
}
.carousel-dot::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover::before { background: var(--text-faint); }
.carousel-dot.is-active::before { background: var(--accent); transform: translate(-50%, -50%) scale(1.3); }

/* Slide 2: bar chart */
.chart-bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; margin-bottom: 14px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.chart-bar .bar-value { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text); }
.chart-bar .bar-fill { width: 100%; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growBar 0.8s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--bd, 0s); }
.chart-bar .bar-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); text-align: center; }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .chart-bar .bar-fill { animation: none; } }

/* Slide 3: photo */
.photo-slide { position: relative; border-radius: calc(var(--radius) - 3px); overflow: hidden; aspect-ratio: 16 / 10.5; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(1.05) brightness(0.82); }
.photo-slide::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,20,0) 35%, rgba(10,10,20,0.92) 100%),
    linear-gradient(135deg, rgba(110,76,242,0.3), rgba(255,45,120,0.16));
}
.photo-slide .photo-caption { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--font-mono); font-size: 0.78rem; }

.figure-label { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); margin-bottom: 16px; }
.stat-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stat-table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 0.88rem; }
.stat-table thead th {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}
.stat-table thead th:first-child { text-align: left; }
.stat-table tbody th { text-align: left; font-weight: 400; color: var(--text); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.stat-table tbody td {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  padding: 11px 0 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--accent);
  font-weight: 500;
}
.stat-table tbody tr:last-child th, .stat-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.stat-table .flag { color: var(--magenta); }
.figure-note { margin-top: 16px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.figure-caption { margin-top: 8px; font-size: 0.8rem; font-style: italic; color: var(--text-faint); }

html.js-anim .stat-table tbody tr { opacity: 0; transform: translateX(-6px); transition: opacity 0.5s ease, transform 0.5s ease; }
html.js-anim .stat-table tbody tr.is-visible { opacity: 1; transform: translateX(0); }

@media (max-width: 480px) {
  .figure-carousel { padding: 20px 18px 18px; }
  .chart-bars { gap: 8px; }
  .chart-bar .bar-label { font-size: 0.62rem; }
  .chart-bar .bar-value { font-size: 0.7rem; }
}

/* ───────────────────────── Services: bold card grid ───────────────────────── */

.service-list dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-list .service-row {
  background: var(--surface);
  padding: 32px 28px;
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-list .service-row:hover { border-left-color: var(--accent); background: var(--surface-2); }
.service-list dt {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.service-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; flex-shrink: 0; }
.service-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-list dt .num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; color: var(--accent); margin-bottom: 10px; }
.service-list dd { margin: 0; }
.service-list dd p { font-size: 0.95rem; }
.service-for { display: block; margin-top: 12px; font-size: 0.84rem; color: var(--text-faint); }
.service-for strong { color: var(--text-soft); font-weight: 600; }

@media (max-width: 920px) { .service-list dl { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-list dl { grid-template-columns: 1fr; } }

/* ───────────────────────── Process ───────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--surface); padding: 30px 24px; transition: background 0.2s ease; }
.step:hover { background: var(--surface-2); }
.step .step-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; }

@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ───────────────────────── Qualifications ───────────────────────── */

.quals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quals li { background: var(--surface); padding: 22px 26px; display: grid; grid-template-columns: 150px 1fr; gap: 24px; transition: background 0.2s ease; }
.quals li:hover { background: var(--surface-2); }
.quals .qual-tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.quals h3 { font-size: 1.04rem; margin-bottom: 4px; }
.quals .qual-school { color: var(--text-faint); font-size: 0.9rem; }

@media (max-width: 620px) { .quals li { grid-template-columns: 1fr; gap: 6px; } }

/* ───────────────────────── Tool grid ───────────────────────── */

.tool-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-grid .tool-tag { font-size: 0.84rem; padding: 8px 14px; }

/* ───────────────────────── Work briefs ───────────────────────── */

.brief-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brief { background: var(--surface); padding: 30px 28px; transition: background 0.2s ease; }
.brief:hover { background: var(--surface-2); }
.brief .brief-field { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.brief h3 { margin-top: 10px; margin-bottom: 10px; }
.brief .brief-meta { margin-top: 14px; font-size: 0.84rem; color: var(--text-faint); }

@media (max-width: 700px) { .brief-list { grid-template-columns: 1fr; } }

/* ───────────────────────── FAQ accordion ───────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 820px; }
.faq-item { background: var(--surface); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: '';
  position: absolute;
  background: var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .plus::before { width: 10px; height: 1.5px; }
.faq-item summary .plus::after { width: 1.5px; height: 10px; }
.faq-item[open] summary .plus { transform: rotate(45deg); border-color: var(--accent); }
.faq-item .faq-body { padding: 0 26px 22px; }
.faq-item .faq-body p { font-size: 0.96rem; }

/* ───────────────────────── CTA band (one deliberate gradient moment) ───────────────────────── */

.cta-band {
  border-radius: var(--radius);
  padding: 64px 56px;
  background: linear-gradient(135deg, #2a1a66 0%, #4a1f6e 55%, #6e1f55 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 45, 120, 0.3), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 48ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: #2a1a66; border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--white); box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.4); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-band .btn-wa { color: #4ee08c; border-color: rgba(78, 224, 140, 0.6); }

@media (max-width: 640px) { .cta-band { padding: 40px 26px; } }

/* ───────────────────────── Contact ───────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

.contact-methods { display: flex; flex-direction: column; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); transition: background 0.2s ease; }
.contact-method:hover { background: var(--surface-2); }
.contact-method svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-method .label { font-size: 0.78rem; color: var(--text-faint); display: block; }
.contact-method .value { font-weight: 600; color: var(--white); }

.brief-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.brief-form .field { margin-bottom: 16px; }
.brief-form label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.brief-form input, .brief-form select, .brief-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: below this, iOS Safari zooms in on focus */
  color: var(--text);
  background: var(--bg);
}
.brief-form textarea { min-height: 110px; resize: vertical; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { outline: none; border-color: var(--accent); }
.brief-form .hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 10px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ───────────────────────── Booking widget (OTP flow) ───────────────────────── */

.form-msg { margin-top: 12px; font-size: 0.85rem; min-height: 1.2em; }
.form-msg.error { color: var(--magenta); }
.form-msg.success { color: #4ee08c; }
.booking-row { display: flex; gap: 10px; align-items: stretch; }
.booking-row input { flex: 1; min-width: 0; }
@media (max-width: 420px) {
  .booking-row { flex-direction: column; }
  .booking-row button { width: 100%; justify-content: center; }
}
.otp-input { letter-spacing: 0.35em; font-family: var(--font-mono); font-size: 1.1rem; text-align: center; }
.resend-link { background: none; border: none; color: var(--accent); font-family: var(--font-mono); font-size: 0.82rem; cursor: pointer; padding: 0; margin-top: 10px; }
.resend-link:disabled { color: var(--text-faint); cursor: default; }
.booking-success { text-align: center; padding: 20px 0; }
.booking-success svg { width: 48px; height: 48px; color: #4ee08c; margin: 0 auto 16px; display: block; }

/* ───────────────────────── Footer ───────────────────────── */

.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--white); }
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.1); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--text-soft); font-size: 0.9rem; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; align-items: flex-end; }
.footer-contact a { color: var(--text-soft); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) { .footer-grid { flex-direction: column; } .footer-contact { align-items: flex-start; } }

/* ───────────────────────── Page intro ───────────────────────── */

.page-intro { padding: 56px 0 8px; position: relative; }
.page-intro .kicker { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); display: block; margin-bottom: 14px; }
.page-intro .lede { font-size: 1.1rem; max-width: 58ch; }

/* ───────────────────────── Photo figure (banner on secondary pages) ───────────────────────── */

.photo-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 7;
}
.photo-figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(1.05) brightness(0.8); }
.photo-figure::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,10,20,0.75) 0%, rgba(10,10,20,0.1) 55%),
    linear-gradient(135deg, rgba(110,76,242,0.32), rgba(255,45,120,0.16));
}
.photo-figure .photo-caption {
  position: absolute; left: 24px; bottom: 16px; z-index: 2;
  color: #fff; font-family: var(--font-mono); font-size: 0.8rem;
}
@media (max-width: 640px) { .photo-figure { aspect-ratio: 4 / 3; } }

/* ───────────────────────── Floating WhatsApp button ───────────────────────── */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.08) inset; }
.wa-float:active { transform: translateY(-1px) scale(0.98); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ───────────────────────── Motion: entrances, reveals, status ───────────────────────── */

.kicker::after {
  content: '_';
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 0 8px 1px rgba(143, 107, 255, 0.7);
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.6;
  animation: statusPulse 1.8s ease-out infinite;
}
@keyframes statusPulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }

.load-in { opacity: 0; transform: translateY(16px); animation: loadIn 0.6s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0s); }
@keyframes loadIn { to { opacity: 1; transform: translateY(0); } }

html.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js-anim .reveal.is-visible,
html.js-anim .reveal-group.is-visible > .reveal { opacity: 1; transform: translateY(0); }

/* ───────────────────────── Pricing cards (plagiarism check) ───────────────────────── */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-card { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; transition: background 0.2s ease; }
.price-card:hover { background: var(--surface-2); }
.price-card.is-popular { background: var(--surface-2); position: relative; }
.price-card .price-tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 10px; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price-card .price-amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.price-card .price-amount small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--text-faint); }
.price-card ul { list-style: none; margin: 16px 0 24px; padding: 0; flex-grow: 1; }
.price-card li { font-size: 0.9rem; color: var(--text-soft); padding: 7px 0; padding-left: 22px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

@media (max-width: 920px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ───────────────────────── "New" badge ───────────────────────── */

.badge-new {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-fill), var(--magenta));
  padding: 4px 10px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ───────────────────────── Account area (register / login / dashboard) ───────────────────────── */

.auth-form-wrap { max-width: 440px; margin: 0 auto; }
.file-field {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.file-field:hover { border-color: var(--accent); }
.file-field input[type="file"] { width: 100%; font-size: 0.88rem; color: var(--text-soft); }
.check-type-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.check-type-options label {
  flex: 1;
  min-width: 120px;
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.check-type-options input { position: absolute; opacity: 0; pointer-events: none; }
.check-type-options input:checked + span { color: var(--white); }
.check-type-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--white); }

.req-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 10px; }
.req-row { background: var(--surface); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.req-row .req-main { display: flex; flex-direction: column; gap: 4px; }
.req-row .req-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.req-row .req-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.req-row .req-results { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.req-result { text-align: center; }
.req-result .req-result-pct { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--accent); display: block; }
.req-result .req-result-label { font-size: 0.72rem; color: var(--text-faint); }
.req-result a { font-size: 0.78rem; }
.req-empty { padding: 30px 20px; text-align: center; color: var(--text-faint); font-size: 0.9rem; background: var(--surface); }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status-badge.status-pending { background: rgba(143, 107, 255, 0.14); color: var(--accent); }
.status-badge.status-processing { background: rgba(255, 194, 75, 0.14); color: var(--amber); }
.status-badge.status-completed { background: rgba(78, 224, 140, 0.14); color: #4ee08c; }
.status-badge.status-failed { background: rgba(255, 45, 120, 0.14); color: var(--magenta); }

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-user { font-size: 0.9rem; color: var(--text-faint); }
.dash-user strong { color: var(--text); }
.link-btn { background: none; border: none; color: var(--accent); font-family: var(--font-mono); font-size: 0.82rem; cursor: pointer; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load-in { animation: none; opacity: 1; transform: none; }
  html.js-anim .reveal,
  html.js-anim .reveal.is-visible,
  html.js-anim .reveal-group.is-visible > .reveal { opacity: 1; transform: none; transition: none; }
  html.js-anim .stat-table tbody tr,
  html.js-anim .stat-table tbody tr.is-visible { opacity: 1; transform: none; transition: none; }
  .kicker::after { animation: none; }
  .status-dot::before { animation: none; opacity: 0.6; }
}
