/*
Theme Name: CERITAGE Jewellery ERP
Theme URI: https://ceritage.vivcos.com/
Author: Vivansh Vasishta Group of Companies
Author URI: https://vivcos.com/
Description: Official one-page WordPress theme for CERITAGE Jewellery ERP — a jewellery-focused ERP platform for Indian jewellery retailers, wholesalers, manufacturers and multi-branch businesses.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary — All Rights Reserved
Text Domain: ceritage
*/

/* =========================================================
   CERITAGE Jewellery ERP — Stylesheet
   Design tokens derived from the CERITAGE brand mark
   ========================================================= */

:root {
  /* Colour tokens */
  --ink: #0E1B3A;            /* primary heading / text colour */
  --ink-soft: #29365A;       /* secondary heading tone */
  --slate: #55607A;          /* body copy */
  --slate-light: #808AA3;    /* tertiary / meta copy */
  --paper: #FFFFFF;          /* base background */
  --mist: #F5F7FC;           /* alternating section background */
  --mist-strong: #EEF1FA;    /* card fill on mist background */
  --line: #E3E7F3;           /* hairline borders */
  --line-strong: #D3D9EC;

  --brand-blue: #0B57BE;
  --brand-violet: #8E2A8D;
  --brand-magenta: #C9275C;
  --brand-gradient: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-violet) 52%, var(--brand-magenta) 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(11,87,190,0.08) 0%, rgba(142,42,141,0.08) 52%, rgba(201,39,92,0.08) 100%);
  --gold: #B9862E;           /* rare, deliberate accent only */

  --focus-ring: #0B57BE;

  /* Type */
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(14,27,58,0.04), 0 8px 24px rgba(14,27,58,0.06);
  --shadow-pop: 0 12px 32px rgba(14,27,58,0.14);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { max-width: 62ch; }

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

section { padding: 96px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.section--alt { background: var(--mist); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Section heading system ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

.section-head h2 {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.section-head--center h2::after { left: 50%; transform: translateX(-50%); }

.section-head .lede {
  color: var(--slate);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-blue); transform: translateY(-1px); box-shadow: var(--shadow-pop); }

.btn--gradient {
  background: var(--brand-gradient);
  color: #fff;
}
.btn--gradient:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Icon ---------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14,27,58,0.05);
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--brand-blue); }
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn { display: inline-flex; }

/* The CTA duplicated inside the nav list is for the mobile menu only;
   the desktop header already shows CTAs via .header-actions. */
.main-nav > ul > li > a.btn { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--mist); }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 28px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav > ul > li > a.btn { display: inline-flex; margin-top: 18px; width: 100%; border-bottom: none; }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 76px 0 100px;
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: var(--brand-gradient-soft);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--slate-light); }
.hero-trust .icon { width: 18px; height: 18px; color: var(--brand-blue); }

/* Hero dashboard mock */
.hero-visual { position: relative; }
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.dash-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.dash-card__bar .dots { display: flex; gap: 6px; }
.dash-card__bar .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dash-card__title { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.dash-tile {
  background: #fff;
  padding: 18px 20px;
}
.dash-tile__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.dash-tile__label .icon { width: 15px; height: 15px; color: var(--brand-blue); }
.dash-tile__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
}
.dash-tile__meta { font-size: 0.76rem; color: var(--slate-light); margin-top: 4px; }
.dash-tile__meta.up { color: #157A4D; }

.dash-foot {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 18px 20px 20px;
  height: 84px;
}
.dash-foot span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--brand-gradient);
  opacity: 0.85;
}

.hero-badge {
  position: absolute;
  top: -34px;
  right: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .icon { width: 20px; height: 20px; color: var(--brand-violet); }
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.92rem; }
.hero-badge span { font-size: 0.78rem; color: var(--slate-light); }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .hero-badge { display: none; }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
}
.trust .eyebrow { color: #9FC1F0; }
.trust .eyebrow::before { background: var(--brand-gradient); }
.trust h2 { color: #fff; }
.trust h2::after { background: var(--brand-gradient); }
.trust p { color: #C4CBE0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px;
}
.trust-point {
  border-top: 2px solid;
  border-image: var(--brand-gradient) 1;
  padding-top: 16px;
}
.trust-point strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 6px;
}
.trust-point span { color: #B7BFDA; font-size: 0.92rem; }

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

/* =========================================================
   PROBLEM
   ========================================================= */
.problem .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.problem-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 24px; }
.problem-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.problem-list .icon { width: 16px; height: 16px; color: var(--brand-magenta); flex-shrink: 0; }
.problem-copy p + p { margin-top: 16px; }
.problem-copy .btn { margin-top: 28px; }

@media (max-width: 860px) {
  .problem .container { grid-template-columns: 1fr; gap: 32px; }
  .problem-list { grid-template-columns: 1fr; }
}

/* =========================================================
   SOLUTIONS — feature cards
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  border-top: 3px solid var(--tile-color, var(--brand-blue));
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-card .icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tile-color, var(--brand-blue)) 12%, white);
  color: var(--tile-color, var(--brand-blue));
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.section-cta { text-align: center; margin-top: 44px; }

/* =========================================================
   MODULES — tabbed interface
   ========================================================= */
.tabs { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.tab-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 8px 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--slate);
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tab-btn:hover { color: var(--ink); background: var(--mist); }
.tab-btn.is-active {
  color: var(--ink);
  background: var(--mist);
  border-left-color: var(--brand-blue);
}
.tab-btn .tab-num { font-size: 0.76rem; color: var(--slate-light); font-weight: 600; }
.tab-btn.is-active .tab-num { color: var(--brand-blue); }

.tab-panels { min-height: 320px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.tab-panel h3 { margin-bottom: 4px; }
.tab-panel .tab-desc { color: var(--slate-light); font-size: 0.9rem; margin-bottom: 22px; }
.tab-chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tab-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.tab-chip .icon { width: 15px; height: 15px; color: var(--brand-violet); flex-shrink: 0; }

@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
  .tab-btn { border-left: none; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; white-space: nowrap; }
  .tab-btn.is-active { border-left-color: transparent; border-bottom-color: var(--brand-blue); }
  .tab-chip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tab-chip-grid { grid-template-columns: 1fr; }
}

.tab-note {
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--slate-light);
  background: var(--mist);
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
}

/* =========================================================
   PROCESS — how it works / implementation
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process-grid.process-grid--4 { grid-template-columns: repeat(4, 1fr); }
.process-step {
  position: relative;
  padding: 0 20px 0 0;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 0;
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}
.process-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 18px;
  background: #fff;
}
.process-step h3 { margin-bottom: 8px; font-size: 1.02rem; }
.process-step p { font-size: 0.88rem; }

@media (max-width: 980px) {
  .process-grid, .process-grid.process-grid--4 { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .process-step::after { display: none; }
}
@media (max-width: 560px) {
  .process-grid, .process-grid.process-grid--4 { grid-template-columns: 1fr; }
}

/* =========================================================
   WHY CERITAGE
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.why-point { background: #fff; padding: 30px 26px; }
.why-point .icon-tile {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient-soft);
  color: var(--brand-violet);
  margin-bottom: 16px;
}
.why-point h3 { margin-bottom: 8px; font-size: 1.05rem; }
.why-point p { font-size: 0.9rem; }

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

/* =========================================================
   TRACKING (barcode / HUID / RFID)
   ========================================================= */
.tracking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.tracking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  background: #fff;
}
.tracking-card .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  background: var(--brand-gradient-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.tracking-card h3 { margin-bottom: 8px; }
.tracking-card p { font-size: 0.9rem; }
.tracking-arch {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.tracking-arch .arch-item { display: flex; flex-direction: column; font-size: 0.86rem; }
.tracking-arch .arch-item b { color: var(--ink); font-family: var(--font-head); }
.tracking-arch .arch-sep { color: var(--slate-light); }

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

/* =========================================================
   GST SECTION
   ========================================================= */
.gst .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gst-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 22px; }
.gst-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 500;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.gst-list .icon { width: 15px; height: 15px; color: var(--brand-blue); flex-shrink: 0; }
.gst-notice {
  margin-top: 26px;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.gst .btn { margin-top: 24px; }

@media (max-width: 860px) {
  .gst .container { grid-template-columns: 1fr; gap: 28px; }
  .gst-list { grid-template-columns: 1fr; }
}

/* =========================================================
   DASHBOARD PREVIEW (full)
   ========================================================= */
.dashboard-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.dashboard-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; border-bottom: 1px solid var(--line); background: var(--mist);
}
.dashboard-panel__head span { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.dashboard-panel__head small { color: var(--slate-light); font-size: 0.78rem; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.metric-tile {
  background: #fff;
  padding: 20px 22px;
  text-align: left;
  transition: background .15s ease;
  border: none;
  width: 100%;
}
.metric-tile:hover, .metric-tile:focus-visible { background: var(--mist); }
.metric-tile__label { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--slate-light); font-weight: 600; margin-bottom: 10px; }
.metric-tile__label .icon { width: 15px; height: 15px; color: var(--brand-violet); }
.metric-tile__value { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.metric-tile__meta { font-size: 0.76rem; color: var(--slate-light); margin-top: 5px; }
.metric-tile__link { margin-top: 10px; display: flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 700; color: var(--brand-blue); }
.metric-tile__link .icon { width: 12px; height: 12px; }

.dashboard-panel__foot {
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
}
.trace-note { font-size: 0.82rem; color: var(--slate-light); text-align: center; margin-top: 18px; }

@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr; } }

/* =========================================================
   BUSINESS TYPES (ledger rows)
   ========================================================= */
.biz-list { border-top: 1px solid var(--line); margin-top: 8px; }
.biz-row {
  display: grid;
  grid-template-columns: 56px 1fr 2fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.biz-row .icon-tile {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient-soft); color: var(--brand-blue);
}
.biz-row h3 { font-size: 1.02rem; }
.biz-row p { font-size: 0.92rem; margin: 0; }

@media (max-width: 700px) {
  .biz-row { grid-template-columns: 40px 1fr; grid-template-areas: "icon title" "icon desc"; row-gap: 6px; }
  .biz-row .icon-tile { grid-area: icon; width: 38px; height: 38px; }
  .biz-row h3 { grid-area: title; }
  .biz-row p { grid-area: desc; }
}

/* =========================================================
   EARLY ADOPTER / PRICING
   ========================================================= */
.adopter-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.adopter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0.12;
}
.adopter-card > * { position: relative; z-index: 1; }
.adopter-copy .eyebrow { color: #9FC1F0; }
.adopter-copy .eyebrow::before { background: var(--brand-gradient); }
.adopter-copy h2 { color: #fff; margin-bottom: 14px; }
.adopter-copy p { color: #C4CBE0; margin-bottom: 12px; }
.adopter-copy ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.adopter-copy ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: #DCE1F2; }
.adopter-copy ul .icon { width: 16px; height: 16px; color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.adopter-price {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 30px;
}
.adopter-price .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.adopter-price .amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  color: #fff;
}
.adopter-price .amount small { font-size: 0.95rem; font-weight: 600; color: #B7BFDA; }
.adopter-price .desc { font-size: 0.84rem; color: #B7BFDA; margin: 14px 0 22px; }
.adopter-price .fine { font-size: 0.78rem; color: #9AA2C0; margin-top: 16px; line-height: 1.55; }
.adopter-price .fine + .fine { margin-top: 8px; }

@media (max-width: 900px) {
  .adopter-card { grid-template-columns: 1fr; padding: 32px; }
}

/* =========================================================
   HARDWARE
   ========================================================= */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.hardware-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
}
.hardware-item .icon-tile {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--brand-blue);
}
.hardware-item span { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.hardware-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--slate);
}
.hardware-note + .btn { margin-top: 20px; }

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

/* =========================================================
   SECURITY
   ========================================================= */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  margin-top: 8px;
}
.security-item { display: flex; align-items: flex-start; gap: 12px; }
.security-item .icon { width: 20px; height: 20px; color: var(--brand-violet); margin-top: 2px; }
.security-item span { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.security-note {
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--slate-light);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

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

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.faq-q .icon { width: 20px; height: 20px; color: var(--brand-blue); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a p { padding: 0 4px 22px; font-size: 0.94rem; max-width: 72ch; }
.faq-item.is-open .faq-a { max-height: 300px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0.16;
}
.final-cta .container { position: relative; z-index: 1; max-width: 760px; }
.final-cta h2 { color: #fff; }
.final-cta h2::after { left: 50%; transform: translateX(-50%); }
.final-cta p { color: #C4CBE0; max-width: 56ch; margin: 0 auto 34px; }
.final-cta-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.final-cta .contact-line { color: #9FC1F0; font-weight: 600; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.contact-info p { margin-bottom: 26px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.contact-detail .icon { width: 20px; height: 20px; color: var(--brand-blue); margin-top: 2px; }
.contact-detail strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.94rem; }
.contact-detail span, .contact-detail a { color: var(--slate); font-size: 0.9rem; }
.contact-detail a:hover { color: var(--brand-blue); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--brand-magenta); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 0.94rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(11,87,190,0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .error-msg { font-size: 0.78rem; color: var(--brand-magenta); min-height: 16px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--brand-magenta); }

.form-foot { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.form-note { font-size: 0.78rem; color: var(--slate-light); }
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.is-success { display: block; background: #EAF6EF; color: #157A4D; }
.form-status.is-error { display: block; background: #FCEAF0; color: #A8154E; }

@media (max-width: 900px) {
  .contact .container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0A1530; color: #B7BFDA; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: #8B93B4; max-width: 32ch; }
.footer-brand .footer-company { margin-top: 16px; font-size: 0.84rem; color: #B7BFDA; font-weight: 600; }
.footer-brand .footer-division { font-size: 0.8rem; color: #8B93B4; }

.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 0.88rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: #B7BFDA; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #7B84A6;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Utility
   ========================================================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
