/* ============================================================
   site.css — Staffly shared stylesheet for all sub-pages
   (solution, modules, how-it-works, sectors, pricing)
   NOT used by index.html (which has its own inline styles)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Aclonica&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&family=Tajawal:wght@300;400;500;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* raw palette */
  --ink:          #060605;
  --ink-2:        #131312;
  --ink-3:        #1a1a19;
  --ink-4:        #222220;
  --paper:        #F1ECE2;
  --paper-2:      #E7E0D3;
  --paper-3:      #DCD3C2;

  /* luxury green */
  --green:        #2E8B73;
  --green-bright: #3BA88E;
  --green-deep:   #1D6357;
  --green-glow:   rgba(46, 139, 115, 0.20);

  /* semantic — DARK default */
  --bg:           #0d0d0c;
  --fg:           #f5f5f0;
  --fg-soft:      #b8b8b2;
  --fg-muted:     #7a7a74;
  --accent:       #3BA88E;
  --card:         #1a1a19;
  --card-hover:   var(--ink-4);
  --card-line:    rgba(237, 233, 226, 0.15);
  --hair:         #272725;
  --hair-2:       rgba(237, 233, 226, 0.10);

  /* typography */
  --font-head:    'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-arabic:  'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-wordmark:'Aclonica', system-ui, sans-serif;

  /* layout */
  --maxw:         1680px;
  --maxw-narrow:  940px;
  --maxw-content: 1200px;
  --nav-h:        72px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --pad-section:  clamp(60px, 8vw, 120px);
  --pad-x:        clamp(20px, 4.2vw, 64px);
  --radius:       10px;
  --radius-lg:    16px;
}

/* ── Color scheme ─────────────────────────────────────────── */
html {
  color-scheme: dark;
}

/* ── Box-sizing reset ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Language / Directionality ───────────────────────────── */
html[lang="ar"] {
  font-family: var(--font-arabic);
  direction: rtl;
}

html[lang="en"] {
  font-family: var(--font-head);
  direction: ltr;
}

/* ── Bilingual span helpers ───────────────────────────────── */
.only-ar,
.only-en { display: inline; }

html[lang="ar"] .only-en { display: none !important; }
html[lang="en"] .only-ar { display: none !important; }

/* ── RTL / LTR text alignment helpers ────────────────────── */
.text-start {
  text-align: start;
}

.text-end {
  text-align: end;
}

html[lang="ar"] .ltr-text {
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="en"] .rtl-text {
  direction: rtl;
  unicode-bidi: isolate;
}

/* ── Typography ───────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  color: var(--fg-soft);
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--green-bright);
}

/* Force dark link color on mobile (prevents yellow links) */
a:visited {
  color: var(--accent);
}

a[href^="tel"],
a[href^="tel"]:visited,
a[href^="tel"]:hover {
  color: var(--fg-soft, rgba(237,233,226,0.74));
}

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

ul,
ol {
  list-style: none;
}

/* ── Wordmark ─────────────────────────────────────────────── */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(13, 13, 12, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw-content);
  margin: 0 auto;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo .wordmark {
  font-size: 1.35rem;
  color: var(--fg);
}

.nav-logo:hover .wordmark {
  color: var(--accent);
}

.nav-logo img,
.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--fg-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: var(--hair);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* Active nav link indicator */
.site-nav a.active { color: var(--green, #3BA88E); border-bottom: 2px solid currentColor; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--hair);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--card-line);
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  font-family: inherit;
}

.lang-toggle button.active,
.lang-toggle button:hover {
  background: var(--card);
  color: var(--fg);
}

.lang-toggle button.active {
  color: var(--accent);
}

/* Sign-in CTA */
.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s var(--ease), opacity 0.2s;
  white-space: nowrap;
}

.nav-signin:hover {
  background: var(--green-deep);
  color: #fff;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 850;
  background: rgba(13, 13, 12, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 2rem var(--pad-x);
  gap: 0.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--hair);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--fg-soft);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--hair);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--accent);
  background: var(--green-glow);
}

.mobile-menu .mobile-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 28vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block-start: calc(var(--nav-h, 72px) + clamp(36px, 6vw, 64px));
  padding-block-end: clamp(36px, 6vw, 64px);
  padding-inline: var(--pad-x, clamp(20px, 4.2vw, 64px));
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(46, 139, 115, 0.14) 0%, transparent 70%);
}

.page-hero::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--green, #2E8B73);
  margin: 0 0 1.5rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw-content);
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.page-hero .hero-sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: var(--fg-soft, #b8b8b2);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.page-hero .subtitle {
  color: var(--fg-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 55ch;
  text-align: center;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.page-hero .breadcrumb a {
  color: var(--fg-muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--accent);
}

.page-hero .breadcrumb span {
  color: var(--accent);
}

/* ── Section layout ───────────────────────────────────────── */
.section {
  padding: var(--pad-section) var(--pad-x);
}

.section-inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  width: 100%;
}

.section-narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin: 0.75rem auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Alternate section background */
.section-alt {
  background: var(--ink-2);
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(59, 168, 142, 0.3);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-glow);
  border: 1px solid rgba(59, 168, 142, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 100%;
}

/* Accent-top card variant */
.card-accent {
  border-top: 2px solid var(--accent);
}

/* Flat card (no border, only bg) */
.card-flat {
  border: none;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: #2E8B73;
  color: #fff;
}

.btn-primary:hover {
  background: #3BA88E;
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--hair);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--green-glow);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

/* ── Badges / Tags ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: var(--green-glow);
  color: var(--accent);
  border: 1px solid rgba(59, 168, 142, 0.2);
}

/* ── Divider ──────────────────────────────────────────────── */
hr,
.divider {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 2rem 0;
}

/* ── Reveal / IntersectionObserver animation classes ─────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.13s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.29s; }
.d5 { transition-delay: 0.37s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--hair);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) 2rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .wordmark {
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  max-width: 28ch;
}

.footer-col h4 {
  color: var(--fg-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: var(--fg-muted);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--hair);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--fg-muted);
  font-size: 0.83rem;
  max-width: 100%;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--fg-muted);
  font-size: 0.83rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Double-click footer logo → admin portal */
.footer-logo-link {
  cursor: pointer;
  user-select: none;
}

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  background: var(--ink-3);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  max-width: 860px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  transform: translateX(-50%) translateY(12px);
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
  color: var(--fg-soft);
  font-size: 0.88rem;
  max-width: 55ch;
  margin: 0;
}

.cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Accent line decoration ───────────────────────────────── */
.accent-line {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ── Stat / metric display ────────────────────────────────── */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--fg-muted);
}

/* ── List with check icons ────────────────────────────────── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--fg-soft);
  font-size: 0.97rem;
}

.check-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 1px solid rgba(59, 168, 142, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%233BA88E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 3px;
}

/* ── Two-column content split ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split.reverse {
  direction: ltr;
}

html[lang="ar"] .split.reverse {
  direction: rtl;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 2rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  font-family: inherit;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--fg-soft);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Table styles ─────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead th {
  background: var(--ink-3);
  color: var(--fg-soft);
  font-weight: 600;
  text-align: start;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--hair-2);
  transition: background 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--hair-2);
}

tbody td {
  padding: 0.85rem 1.1rem;
  color: var(--fg-soft);
}

/* ── Pricing card extras ──────────────────────────────────── */
.pricing-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s var(--ease);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(
    145deg,
    rgba(46, 139, 115, 0.08) 0%,
    var(--card) 100%
  );
}

.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}

.pricing-card .price sub,
.pricing-card .price sup {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
}

/* ── FAQ accordion ────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--hair);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
  text-align: start;
  padding: 1.25rem 0;
  cursor: pointer;
  gap: 1rem;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
  color: var(--accent);
}

.faq-item.open .faq-question .faq-icon {
  background: var(--green-glow);
  border-color: rgba(59, 168, 142, 0.3);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.3s;
  color: var(--fg-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* ── Form inputs ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-soft);
}

input,
textarea,
select {
  background: var(--ink-3);
  border: 1px solid var(--hair);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 168, 142, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-muted);
}

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

.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-6  { margin-bottom: 3rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-muted  { color: var(--fg-muted); }
.text-soft   { color: var(--fg-soft); }
.text-accent { color: var(--accent); }
.w-full      { width: 100%; }

/* ── Responsive — Tablet (max 1024px) ────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ── Responsive — Mobile (max 768px) ─────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --pad-x: clamp(16px, 5vw, 28px);
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-signin {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Page hero */
  .page-hero {
    min-height: 22vh;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  }

  /* Grids collapse */
  .grid-2,
  .grid-3,
  .grid-4,
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }

  .split.reverse > :last-child {
    order: 1;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    left: 0.75rem;
  }

  .cookie-banner.visible {
    transform: translateY(0);
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
    justify-content: center;
  }

  /* Typography adjustments */
  h1 {
    letter-spacing: -0.015em;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }

  /* Stats */
  .stat-value {
    font-size: 2rem;
  }
}

/* ── Responsive — Small mobile (max 480px) ────────────────── */
@media (max-width: 480px) {
  .grid-auto {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-nav,
  .mobile-menu,
  .cookie-banner {
    display: none !important;
  }

  .page-hero {
    min-height: auto;
    background: none;
    padding: 1.5rem 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}
