/* ============================================================
   Stakenix — style.css
   Bangla-first SaaS platform · mobile-first · no framework
   Breakpoints: 480 / 768 / 1024
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Color */
  --navy-900: #0A1E3F;
  --navy-800: #102A54;
  --navy-700: #14356E;
  --blue-600: #1A56C9;
  --blue-500: #2467E8;
  --blue-100: #E4EDFB;
  --teal-600: #0B7A66;
  --teal-500: #12A98E;
  --teal-100: #DFF4EF;
  --ink-900: #16233B;
  --ink-700: #2A3A57;
  --slate-600: #52627E;
  --line-200: #DCE6F2;
  --bg-app: #F5F9FD;
  --surface: #FFFFFF;
  --danger-600: #B3261E;
  --grad-brand: linear-gradient(120deg, var(--blue-600) 0%, var(--teal-500) 100%);

  /* Type */
  --font-bangla: 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans Bengali', ui-monospace, monospace;

  /* Spacing — 8px scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 30, 63, 0.06), 0 2px 8px rgba(10, 30, 63, 0.05);
  --shadow-md: 0 4px 14px rgba(10, 30, 63, 0.08), 0 12px 32px rgba(10, 30, 63, 0.07);
  --shadow-lg: 0 12px 28px rgba(10, 30, 63, 0.12), 0 28px 64px rgba(10, 30, 63, 0.12);

  /* Z-index */
  --z-header: 100;
  --z-nav: 110;
  --z-cookie: 120;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-bangla);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.4em; margin: 0 0 var(--sp-2); }
p { margin: 0 0 var(--sp-2); }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-2);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

address { font-style: normal; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--teal-100); color: var(--navy-900); }

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--sp-2);
  z-index: calc(var(--z-nav) + 1);
  padding: 10px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-2);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-3); } }

.section { padding-block: var(--sp-8); }
@media (min-width: 1024px) { .section { padding-block: var(--sp-12); } }

.section-alt { background: var(--surface); border-block: 1px solid var(--line-200); }

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  margin-bottom: var(--sp-2);
  background: var(--teal-100);
  color: var(--teal-600);
  border: 1px solid rgba(18, 169, 142, 0.25);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
}

.lead { font-size: 1.1rem; color: var(--slate-600); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn-solid {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 201, 0.32);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26, 86, 201, 0.4); }
.btn-solid:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--line-200);
}
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-100); }

.btn-light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* NOTE: এখানে backdrop-filter দেবেন না — দিলে fixed drawer header-এর সাপেক্ষে বসে
     এবং লুকানো drawer ডান পাশে horizontal scroll তৈরি করে */
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line-200);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 172px; height: auto; }
@media (min-width: 768px) { .brand img { width: 196px; } }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-weight: 500;
}
.nav-link:hover { background: var(--blue-100); color: var(--blue-600); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--blue-600); font-weight: 700; }

.nav-cta { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-2); }

/* Mobile nav drawer */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line-200);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: var(--z-nav);
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 88px var(--sp-3) var(--sp-3);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    overflow-y: auto;
    visibility: hidden;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s ease;
  }
  body.nav-locked { overflow: hidden; }
  body.nav-locked::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: rgba(10, 30, 63, 0.45);
  }
  /* X (close) বাটন সবসময় drawer-এর ওপরে — দুটোই header-এর stacking context-এ */
  .nav-toggle {
    position: relative;
    z-index: calc(var(--z-nav) + 1);
    background: var(--surface);
  }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: var(--sp-3); }
  .main-nav ul { flex-direction: row; gap: 2px; }
  .nav-link { padding: 8px 14px; }
  .nav-cta { flex-direction: row; align-items: center; margin: 0; }
  .nav-cta .btn { padding: 10px 20px; font-size: 0.92rem; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-8) var(--sp-8);
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(18, 169, 142, 0.14), transparent 65%),
    radial-gradient(720px 420px at -10% 20%, rgba(26, 86, 201, 0.12), transparent 65%),
    var(--bg-app);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-200) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  mask-image: radial-gradient(75% 70% at 50% 30%, #000 20%, transparent 90%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 1024px) {
  .hero { padding-block: var(--sp-10) var(--sp-12); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); }
}

.hero-copy .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.hero-note {
  margin-top: var(--sp-2);
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* Provisioning terminal — signature element */
.provision-card {
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.prov-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--sp-2);
  background: var(--navy-900);
  color: #C7D3E8;
  font-size: 0.82rem;
}
.prov-dot { width: 10px; height: 10px; border-radius: 50%; }
.prov-dot:nth-child(1) { background: #F26D6D; }
.prov-dot:nth-child(2) { background: #F2C36D; }
.prov-dot:nth-child(3) { background: #57C99B; }
.prov-bar-title { margin-left: 6px; }

.prov-body { padding: var(--sp-3); }
.prov-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 6px;
}
.prov-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--bg-app);
  border: 1px solid var(--line-200);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--navy-800);
}
.prov-suffix { color: var(--slate-600); }
.prov-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-inline: 1px;
  background: var(--blue-600);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.prov-steps { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 10px; }
.prov-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate-600);
  transition: color 0.3s ease;
}
.prov-step .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.prov-step .tick svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.3s ease; }
.prov-step.is-done { color: var(--ink-900); }
.prov-step.is-done .tick { background: var(--teal-500); border-color: var(--teal-500); }
.prov-step.is-done .tick svg { opacity: 1; }

.prov-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-3);
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.prov-status.is-live { opacity: 1; transform: none; }
.prov-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* ---------- 7. Cards & grids ---------- */
.card-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(18, 169, 142, 0.5); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--blue-100);
  color: var(--blue-600);
}
.card-icon svg { width: 26px; height: 26px; }
.card:nth-child(even) .card-icon { background: var(--teal-100); color: var(--teal-600); }

.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--slate-600); font-size: 0.95rem; flex-grow: 1; }
.card-more {
  margin-top: var(--sp-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-600);
}

/* Check-arrow list (logo motif) */
.check-list { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 6px;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l4 4 7-9' fill='none' stroke='%230B7A66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- 8. Steps (how it works) ---------- */
.steps { display: grid; gap: var(--sp-3); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
}
.step::before {
  counter-increment: step;
  content: counter(step, bengali);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; font-size: 0.94rem; color: var(--slate-600); }

/* ---------- 9. Pricing ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.billing-toggle .toggle-label { font-weight: 600; color: var(--slate-600); }
.billing-toggle .toggle-label.is-active { color: var(--ink-900); }

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--line-200);
  border-radius: var(--r-full);
  transition: background 0.2s ease;
  pointer-events: none;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.switch input:checked + .switch-track { background: var(--teal-500); }
.switch input:checked + .switch-track::after { transform: translateX(26px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.save-badge {
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-grid { display: grid; gap: var(--sp-3); align-items: stretch; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.plan.is-featured {
  border: 2px solid var(--teal-500);
  box-shadow: var(--shadow-md);
}
@media (min-width: 1024px) { .plan.is-featured { transform: scale(1.03); } }

.plan-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 16px;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-name { font-size: 1.15rem; margin-bottom: 4px; }
.plan-desc { font-size: 0.92rem; color: var(--slate-600); min-height: 3em; }

.plan-price { display: flex; align-items: baseline; gap: 6px; margin: var(--sp-2) 0 4px; }
.price-amount {
  /* বাংলা সংখ্যায় mono fallback-এ কমার আশপাশে ফাঁক তৈরি হয় — তাই Bangla face */
  font-family: var(--font-bangla);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.price-period { color: var(--slate-600); font-size: 0.92rem; }
.plan-vat { font-size: 0.82rem; color: var(--slate-600); margin-bottom: var(--sp-2); }

.plan .check-list { flex-grow: 1; margin-bottom: var(--sp-3); font-size: 0.94rem; }

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: var(--sp-2);
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 14px var(--sp-2);
  text-align: left;
  border-bottom: 1px solid var(--line-200);
  font-size: 0.94rem;
}
.compare-table thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-app); }
.compare-table td.yes { color: var(--teal-600); font-weight: 700; }
.compare-table td.no { color: var(--slate-600); }

/* ---------- 10. FAQ accordion ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: var(--sp-2); }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--blue-600); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--teal-500); color: #fff; }
.faq-a { padding: 0 var(--sp-3) var(--sp-3); color: var(--slate-600); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------- 11. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6) var(--sp-3);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900) 55%, #0D2B4E);
  color: #DCE6F2;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 260px at 85% 10%, rgba(18, 169, 142, 0.28), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 12. Page head (inner pages) ---------- */
.page-head {
  padding-block: var(--sp-6);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(18, 169, 142, 0.12), transparent 65%),
    var(--surface);
  border-bottom: 1px solid var(--line-200);
}
.page-head .lead { max-width: 640px; margin-bottom: 0; }

.breadcrumb { margin-bottom: var(--sp-2); font-size: 0.88rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--slate-600); }
.breadcrumb a { color: var(--slate-600); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); font-weight: 600; }

/* Anchor chip nav (products) */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-3); }
.chip {
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: var(--bg-app);
  border: 1px solid var(--line-200);
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 600;
}
.chip:hover { border-color: var(--teal-500); color: var(--teal-600); text-decoration: none; }

/* ---------- 13. Product sections ---------- */
.module { padding-block: var(--sp-8); border-bottom: 1px solid var(--line-200); }
.module:last-of-type { border-bottom: none; }
.module-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 1024px) {
  .module-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); align-items: start; }
  .module:nth-of-type(even) .module-grid > .module-aside { order: -1; }
}

.module-tag {
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: var(--sp-1);
  border-radius: var(--r-full);
  background: var(--blue-100);
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.module-aside {
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.module-aside h3 { font-size: 1rem; }
.module-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.module-price .price-amount { font-size: 1.7rem; }
.module-note { font-size: 0.85rem; color: var(--slate-600); }

.callout {
  margin-top: var(--sp-2);
  padding: var(--sp-2);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--r-sm);
  background: var(--teal-100);
  color: var(--ink-700);
  font-size: 0.92rem;
}
.callout strong { color: var(--navy-800); }

/* ---------- 14. Forms ---------- */
.form-grid { display: grid; gap: var(--sp-2); }
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-900);
}
.required-mark { color: var(--danger-600); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 86, 201, 0.18);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--danger-600); }

.field-error {
  display: none;
  margin-top: 5px;
  font-size: 0.86rem;
  color: var(--danger-600);
  font-weight: 500;
}
.form-field.has-error .field-error { display: block; }

.consent-field { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.consent-field input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--teal-500); flex-shrink: 0; }

/* Honeypot — visually hidden from humans */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  display: none;
  margin-top: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.form-status.is-success { display: block; background: var(--teal-100); color: var(--teal-600); border: 1px solid rgba(18, 169, 142, 0.35); }
.form-status.is-error { display: block; background: #FBEAE9; color: var(--danger-600); border: 1px solid rgba(179, 38, 30, 0.3); }

/* ---------- 15. Contact page ---------- */
.contact-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6); } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.info-item {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
}
.info-item .card-icon { width: 42px; height: 42px; margin: 0; flex-shrink: 0; }
.info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.info-item p { margin: 0; font-size: 0.94rem; color: var(--slate-600); }

.map-wrap {
  margin-top: var(--sp-4);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- 16. Legal pages ---------- */
.legal-layout { display: grid; gap: var(--sp-4); padding-block: var(--sp-6); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px 1fr; gap: var(--sp-6); align-items: start; }
}

.toc {
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
}
@media (min-width: 1024px) { .toc { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow-y: auto; } }
.toc h2 { font-size: 0.95rem; text-transform: none; margin-bottom: var(--sp-1); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--slate-600);
  font-size: 0.9rem;
}
.toc a:hover { background: var(--blue-100); color: var(--blue-600); text-decoration: none; }

.legal-body { max-width: 760px; }
.legal-meta { font-size: 0.9rem; color: var(--slate-600); margin-bottom: var(--sp-3); }
.legal-body h2 {
  font-size: 1.35rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-2);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin-top: var(--sp-3); }
.legal-body table th, .legal-body table td {
  padding: 10px 14px;
  border: 1px solid var(--line-200);
  text-align: left;
  font-size: 0.92rem;
}
.legal-body table th { background: var(--bg-app); }

.en-summary {
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  background: var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
}
.en-summary h2 { font-size: 1rem; margin: 0 0 6px; }
.en-summary p { margin: 0; }

.legal-contact {
  margin-top: var(--sp-6);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
}
.legal-contact h2 { margin-top: 0; font-size: 1.15rem; }
.legal-contact p:last-child { margin-bottom: 0; }

/* ---------- 17. About page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.timeline li {
  position: relative;
  padding-left: var(--sp-4);
  border-left: 2px solid var(--line-200);
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 3px solid var(--teal-100);
}
.timeline .tl-when {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-600);
}
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--slate-600); font-size: 0.94rem; }

.team-card { text-align: center; align-items: center; }
.avatar-ph {
  width: 84px;
  height: 84px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.fact-box {
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
}
.fact-box dl { margin: 0; display: grid; gap: var(--sp-2); }
.fact-box dt { font-size: 0.85rem; font-weight: 600; color: var(--slate-600); }
.fact-box dd { margin: 0; font-weight: 600; color: var(--ink-900); }

/* ---------- 18. Footer ---------- */
.site-footer {
  margin-top: var(--sp-8);
  background: var(--navy-900);
  color: #C7D3E8;
  padding-block: var(--sp-8) var(--sp-3);
  font-size: 0.94rem;
}
.footer-grid { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-6); }
@media (min-width: 480px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }

.footer-logo {
  display: inline-block;
  padding: 10px 14px;
  margin-bottom: var(--sp-2);
  background: #fff;
  border-radius: var(--r-sm);
}
.footer-logo img { width: 150px; }

.footer-legal-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9FB2D1;
  line-height: 1.9;
}

.footer-title {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: var(--sp-2);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #C7D3E8; }
.footer-links a:hover { color: #4FD6BC; }

.footer-address { margin-bottom: var(--sp-2); line-height: 1.9; }
.footer-hours { margin-top: var(--sp-2); font-size: 0.88rem; color: #9FB2D1; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(199, 211, 232, 0.18);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { margin: 0; font-size: 0.88rem; color: #9FB2D1; }

.payment-icons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.payment-icons svg { height: 30px; width: auto; border-radius: 4px; }

/* ---------- 19. Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: var(--sp-2);
  z-index: var(--z-cookie);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 560px;
  margin-inline: auto;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: var(--sp-3); bottom: var(--sp-3); }
}

/* ---------- 20. 404 ---------- */
.error-hero { text-align: center; padding-block: var(--sp-12); }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 600;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 20b. Auth pages (login / signup) ---------- */
.auth-section { padding-block: var(--sp-8); }
.auth-card {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .auth-card { padding: var(--sp-5); } }
.auth-card h1 { font-size: 1.6rem; }
.auth-note { font-size: 0.92rem; color: var(--slate-600); }
.subdomain-input { display: flex; align-items: stretch; }
.subdomain-input input {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  border-right: none;
  font-family: var(--font-mono);
}
.subdomain-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-app);
  border: 1px solid var(--line-200);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--slate-600);
  white-space: nowrap;
}
.auth-alt {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-200);
  text-align: center;
  font-size: 0.94rem;
}

/* ---------- 21. Scroll reveal & motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
