/* ==========================================================================
   Miftah — marketing site styles
   Design tokens first; every component reads from them.
   ========================================================================== */

:root {
  /* Brand */
  --teal-950: #062E2B;
  --teal-900: #0A3D39;
  --teal-800: #0B4F49;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-100: #CCFBF1;
  --teal-50:  #EFFBF8;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-100: #FEF3C7;

  /* Neutrals (warm) */
  --ink: #0C1C1A;
  --ink-2: #2B3B39;
  --muted: #5C6B69;
  --line: #E3E7E4;
  --line-2: #EDF0EE;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F3F5F2;

  /* Status */
  --success: #15803D;
  --success-bg: #DCFCE7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --info: #1D4ED8;
  --info-bg: #DBEAFE;
  --warn: #C2410C;
  --warn-bg: #FFEDD5;

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 26, .06), 0 1px 1px rgba(12, 28, 26, .04);
  --shadow-md: 0 8px 24px -8px rgba(12, 28, 26, .14), 0 2px 6px rgba(12, 28, 26, .05);
  --shadow-lg: 0 30px 60px -20px rgba(6, 46, 43, .35), 0 12px 24px -12px rgba(6, 46, 43, .18);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal-100); color: var(--teal-900); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.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; }

/* ---------- Type helpers ---------- */
.eyebrow {
  justify-self: start; width: fit-content;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--teal-700); background: var(--teal-50);
  border: 1px solid var(--teal-100); padding: 6px 12px 6px 8px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.eyebrow--dark { color: var(--teal-100); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }

.display { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; }
.h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 40rem; }
.muted { color: var(--muted); }
.accent { color: var(--teal-700); }
.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(245, 158, 11, .35) 62%);
  padding-inline: .05em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-bg: var(--teal-700); --btn-fg: #fff; --btn-bd: var(--teal-700); }
.btn-primary:hover { --btn-bg: var(--teal-800); box-shadow: 0 10px 24px -8px rgba(15, 118, 110, .6); }
.btn-amber { --btn-bg: var(--amber-500); --btn-fg: var(--teal-950); --btn-bd: var(--amber-500); }
.btn-amber:hover { --btn-bg: var(--amber-400); box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .6); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); box-shadow: none; }
.btn-outline-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .22); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, .12); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-700); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 250, 247, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 28, 26, .4); }
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--teal-700); background: var(--teal-50); }
.nav-cta { display: flex; gap: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a.m-link {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink);
  padding: 14px 4px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a.m-link[aria-current="page"] { color: var(--teal-700); }
.mobile-menu .m-cta { display: grid; gap: 10px; margin-top: 24px; }

@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head.center .eyebrow { justify-self: center; }
.section-head.split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 32px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

.bg-surface { background: var(--surface); border-block: 1px solid var(--line-2); }
.bg-dark {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(20, 184, 166, .22), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(245, 158, 11, .12), transparent 60%),
              var(--teal-950);
  color: rgba(255, 255, 255, .78);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark .lead, .bg-dark .muted { color: rgba(255, 255, 255, .7); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(20, 184, 166, .16), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(245, 158, 11, .10), transparent 70%);
}
.page-hero .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px; }
.page-hero-inner { display: grid; gap: 20px; justify-items: start; }
.page-hero-inner > * { max-width: 52rem; }
.breadcrumbs { font-size: .875rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.breadcrumbs a:hover { color: var(--teal-700); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(20, 184, 166, .22), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .875rem; margin-top: 8px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal-600); }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
}

/* floating chips around the phone */
.float-chip {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-md);
  font-size: .8125rem; line-height: 1.3; min-width: 200px;
  animation: floaty 6s ease-in-out infinite;
}
.float-chip b { display: block; color: var(--ink); font-size: .875rem; }
.float-chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-chip .ic svg { width: 18px; height: 18px; }
.chip-a { left: -24px; top: 30%; }
.chip-b { right: -16px; top: 46%; animation-delay: -2s; }
.chip-c { left: 4%; bottom: 8%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) {
  .float-chip { min-width: 0; padding: 10px 12px; font-size: .75rem; }
  .chip-a { left: 0; top: 0; }
  .chip-b { right: 0; top: 52%; }
  .chip-c { display: none; }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: min(300px, 82vw); aspect-ratio: 300 / 620;
  background: #0E1514; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #26302E;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0E1514; border-radius: 20px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F4F6F6;
  display: flex; flex-direction: column; position: relative; font-family: var(--font-body); color: var(--ink);
}
.app-status { height: 44px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 24px 0; font-size: 11px; font-weight: 600; }
.app-status .bars { display: flex; gap: 4px; align-items: center; }
.app-status .bars i { width: 14px; height: 8px; border-radius: 2px; background: currentColor; opacity: .85; display: block; }
.app-top { padding: 4px 16px 12px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.app-top .hello { font-size: 11px; color: var(--muted); }
.app-top .title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.app-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.app-avatar svg { width: 16px; height: 16px; }
.app-body { flex: 1; overflow-y: auto; padding: 0 12px 12px; display: grid; gap: 10px; align-content: start; grid-auto-rows: max-content; scrollbar-width: none; }
.app-body::-webkit-scrollbar { display: none; }
.app-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.app-hero-card {
  border-radius: 18px; padding: 14px; color: #fff;
  background: linear-gradient(135deg, #0F766E, #115E59 55%, #134E4A);
  position: relative; overflow: hidden;
}
.app-hero-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.app-hero-card .lbl { font-size: 10.5px; opacity: .8; }
.app-hero-card .amt { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 2px; letter-spacing: -0.02em; }
.app-hero-card .amt small { font-size: 12px; opacity: .8; font-weight: 600; margin-right: 4px; }
.app-progress { height: 6px; background: rgba(255, 255, 255, .2); border-radius: 6px; margin-top: 10px; overflow: hidden; }
.app-progress i { display: block; height: 100%; background: var(--amber-400); border-radius: 6px; transition: width .6s var(--ease); }
.app-hero-card .meta { display: flex; justify-content: space-between; font-size: 10px; opacity: .85; margin-top: 6px; }
.app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-stat { background: #fff; border-radius: 14px; padding: 10px; display: grid; gap: 2px; }
.app-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.app-stat .k { font-size: 10px; color: var(--muted); }
.app-stat .i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 4px; }
.app-stat .i svg { width: 13px; height: 13px; }
.app-section-t { font-size: 11px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; padding: 4px 2px 0; }
.app-section-t span { color: var(--teal-700); font-weight: 600; }
.app-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.app-row + .app-row { border-top: 1px solid #F0F2F1; }
.app-row .av { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.app-row .tx { flex: 1; min-width: 0; }
.app-row .tx b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .tx small { font-size: 10px; color: var(--muted); }
.app-row .rt { text-align: right; font-size: 11px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; letter-spacing: .01em; }
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.due { background: var(--warn-bg); color: var(--warn); }
.badge.late { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: #EEF1F0; color: #52605E; }
.app-tabbar { flex: none; height: 62px; background: #fff; border-top: 1px solid #ECEFEE; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 8px; }
.app-tab { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: #8A9694; background: none; border: 0; cursor: pointer; padding: 0; }
.app-tab svg { width: 18px; height: 18px; }
.app-tab.active { color: var(--teal-700); }
.app-tab.active .pill { background: var(--teal-50); }
.app-tab .pill { padding: 3px 12px; border-radius: 999px; transition: background .2s; display: grid; place-items: center; }

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

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: grid; gap: 12px; align-content: start; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D5DCD8; }
.card p { color: var(--muted); }
.card .h3 { margin-top: 4px; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.amber { background: var(--amber-100); color: #B45309; border-color: #FDE68A; }
.icon-tile.violet { background: #EDE9FE; color: #6D28D9; border-color: #DDD6FE; }
.icon-tile.sky { background: #E0F2FE; color: #0369A1; border-color: #BAE6FD; }
.icon-tile.rose { background: #FFE4E6; color: #BE123C; border-color: #FECDD3; }
.icon-tile.dark { background: rgba(255, 255, 255, .08); color: var(--amber-400); border-color: rgba(255, 255, 255, .12); }

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid var(--teal-100);
}
.bg-dark .check-list li::before { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBBF24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Audience strip ---------- */
.strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 40px; color: var(--muted); font-weight: 600; }
.strip-label { width: 100%; text-align: center; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A9694; margin-bottom: 8px; }
.strip span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.125rem; color: var(--ink-2); }
.strip svg { width: 22px; height: 22px; color: var(--teal-600); }

/* ---------- Problem cards ---------- */
.problem-card { padding: 0; overflow: hidden; gap: 0; }
.problem-card .before { padding: 24px 24px 20px; display: grid; gap: 10px; }
.problem-card .after { padding: 18px 24px 24px; background: var(--teal-50); border-top: 1px dashed var(--teal-100); display: grid; gap: 6px; }
.problem-card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.problem-card .before .tag { color: var(--danger); }
.problem-card .after .tag { color: var(--teal-700); }
.problem-card .after p { color: var(--teal-900); font-weight: 500; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 1; } .bento .wide-md { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .wide-md { grid-column: span 1; } }
.bento-card { overflow: hidden; }
.bento-card .visual { margin: 8px -28px -28px; padding: 20px 28px 28px; background: linear-gradient(180deg, transparent, var(--surface-2)); border-top: 1px solid var(--line-2); }
.mini-schedule { display: grid; gap: 8px; }
.mini-schedule .row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; font-size: .875rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mini-schedule .row b { color: var(--ink); font-weight: 600; }
.mini-timeline { display: flex; align-items: center; gap: 0; }
.mini-timeline .node { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .6875rem; font-weight: 700; background: var(--surface); border: 2px solid var(--teal-600); color: var(--teal-700); }
.mini-timeline .node.now { background: var(--amber-500); border-color: var(--amber-500); color: var(--teal-950); }
.mini-timeline .bar { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-600) 0 6px, transparent 6px 10px); }
.mini-timeline-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  background: var(--ink); color: #fff;
}
.step .num::before { content: counter(step, decimal-leading-zero); }

/* ---------- Spotlight (AI) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; gap: 40px; } }
.chat {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-xl);
  padding: 20px; display: grid; gap: 12px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: .9375rem; }
.chat-head .live { margin-left: auto; font-size: .75rem; color: var(--teal-100); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.chat-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.5; }
.bubble.me { justify-self: end; background: var(--amber-500); color: var(--teal-950); border-bottom-right-radius: 6px; font-weight: 500; }
.bubble.ai { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9); border-bottom-left-radius: 6px; }
.bubble.ai b { color: #fff; }
.bubble ul { margin-top: 6px; display: grid; gap: 4px; padding-left: 18px; list-style: disc; }

/* ---------- Split audience ---------- */
.split-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); display: grid; gap: 20px; align-content: start; }
.split-card.owner { background: var(--surface); border: 1px solid var(--line); }
.split-card.tenant { background: var(--teal-900); color: rgba(255, 255, 255, .78); }
.split-card.tenant h3 { color: #fff; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.stats > div { padding: 28px; display: grid; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .v { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stats .v em { font-style: normal; color: var(--teal-600); }
.stats .k { color: var(--muted); font-size: .9375rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1C1A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--teal-50); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate;
  background: var(--teal-900); color: rgba(255, 255, 255, .78);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 100% 0%, rgba(20, 184, 166, .35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(245, 158, 11, .18), transparent 70%); }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; z-index: -1; opacity: .08;
  background: url("../img/logo-mark-white.svg") center / contain no-repeat; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .75); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.name-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.arabic-word { font-family: "Noto Kufi Arabic", var(--font-display); font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; color: var(--teal-700); font-weight: 700; }
@media (max-width: 640px) { .name-card { grid-template-columns: 1fr; } }
.mv-card { padding: clamp(28px, 4vw, 40px); border-radius: var(--r-xl); display: grid; gap: 16px; align-content: start; }
.mv-card.mission { background: var(--teal-900); color: rgba(255, 255, 255, .8); }
.mv-card.mission h3 { color: #fff; }
.mv-card.vision { background: var(--amber-100); color: #5B3A07; border: 1px solid #FDE68A; }
.mv-card.vision h3 { color: #3D2604; }
.mv-card .label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.mv-card p.big { font-family: var(--font-display); font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }

.objectives { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.objectives li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.objectives li:nth-child(odd) { border-right: 1px solid var(--line); }
.objectives li:nth-child(even) { padding-left: 24px; }
.objectives .n { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--teal-600); line-height: 1; }
.objectives h3 { font-size: 1.125rem; margin-bottom: 6px; }
.objectives p { color: var(--muted); }
@media (max-width: 760px) { .objectives { grid-template-columns: 1fr; } .objectives li:nth-child(odd) { border-right: 0; } .objectives li:nth-child(even) { padding-left: 0; } }

.team-card { text-align: left; padding: 0; overflow: hidden; gap: 0; }
.team-photo {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
  background: linear-gradient(140deg, var(--teal-50), #E3F1EE);
  font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--teal-700);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.alt { background: linear-gradient(140deg, var(--amber-100), #FBE7C0); color: #B45309; }
.team-body { padding: 20px 22px 22px; display: grid; gap: 4px; }
.team-body h3 { font-size: 1.125rem; }
.team-body .role { color: var(--teal-700); font-weight: 600; font-size: .875rem; }
.team-body p { font-size: .9375rem; margin-top: 6px; }
.team-links { display: flex; gap: 8px; margin-top: 12px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .2s;
}
.icon-btn:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

.placeholder-note {
  display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: #7C4A03;
  background: #FFFBEB; border: 1px dashed #F59E0B; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 28px;
}
.placeholder-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- Services ---------- */
.service-card { grid-template-columns: auto 1fr; column-gap: 20px; padding: 28px; }
.service-card .icon-tile { grid-row: span 3; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-pill { font-size: .75rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 480px) { .service-card { grid-template-columns: 1fr; } .service-card .icon-tile { grid-row: auto; } }

.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.lifecycle::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--amber-400)); opacity: .6; }
.lc-step { display: grid; justify-items: center; text-align: center; gap: 10px; position: relative; }
.lc-step .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-900); color: var(--amber-400); border: 4px solid var(--teal-950); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.lc-step .dot svg { width: 22px; height: 22px; }
.lc-step h3 { font-size: 1.0625rem; }
.lc-step p { font-size: .875rem; }
@media (max-width: 860px) {
  .lifecycle { grid-template-columns: 1fr; gap: 20px; }
  .lifecycle::before { left: 27px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal-500), var(--amber-400)); }
  .lc-step { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; }
  .lc-step .dot { grid-row: span 2; }
}

/* ---------- Features page ---------- */
.benefit { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); }
.benefit .metric { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.benefit .metric svg { width: 22px; height: 22px; color: var(--teal-600); }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-xl); overflow: hidden; }
.tech-grid > div { background: var(--teal-950); padding: 28px; display: grid; gap: 10px; align-content: start; }
.tech-grid h3 { font-size: 1.0625rem; }
.tech-grid p { font-size: .9375rem; color: rgba(255, 255, 255, .66); }
.tech-grid .stack { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .75rem; color: var(--amber-400); letter-spacing: .02em; }
@media (max-width: 960px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } }

.persona { padding: 28px; }
.persona .who { display: flex; gap: 14px; align-items: center; }
.persona .who .av { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.persona .who .av svg { width: 26px; height: 26px; }
.persona .who small { color: var(--muted); display: block; font-size: .8125rem; }
.persona .quote { font-style: italic; color: var(--ink-2); border-left: 3px solid var(--amber-400); padding-left: 14px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: .9375rem; vertical-align: middle; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: var(--surface-2); position: sticky; top: 0; }
.compare thead th.us { background: var(--teal-900); color: #fff; }
.compare td.us { background: var(--teal-50); font-weight: 600; color: var(--teal-900); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 8px; }
.yes::before, .no::before, .part::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.yes::before { background-color: var(--teal-600); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.no::before { background-color: #E5E7E6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23727F7D' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.part::before { background-color: var(--amber-100); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.no, .part { color: var(--muted); }

/* sticky sub-nav for long pages */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(250, 250, 247, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a.active { color: var(--teal-700); background: var(--teal-50); }

/* ---------- Demo page ---------- */
.demo-shell { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: start; }
@media (max-width: 960px) { .demo-shell { grid-template-columns: 1fr; gap: 32px; } .demo-stage { order: -1; } }
.demo-stage { position: sticky; top: calc(var(--header-h) + 24px); display: grid; justify-items: center; gap: 16px; }
@media (max-width: 960px) { .demo-stage { position: static; } }
.role-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.role-switch button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .875rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.role-switch button[aria-pressed="true"] { background: var(--teal-700); color: #fff; }
.demo-hint { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.demo-hint svg { width: 16px; height: 16px; }

.tour { display: grid; gap: 12px; }
.tour-step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; text-align: left; width: 100%;
  padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.tour-step:hover { border-color: #CFD8D4; transform: translateX(2px); }
.tour-step[aria-current="step"] { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); }
.tour-step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--surface-2); color: var(--ink); }
.tour-step[aria-current="step"] .n { background: var(--teal-700); color: #fff; }
.tour-step .tt { display: block; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }
.tour-step .dd { display: block; color: var(--muted); font-size: .9375rem; }
.tour-step .try { margin-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--teal-700); display: inline-flex; align-items: center; gap: 6px; }

.app-btn { border: 0; border-radius: 10px; padding: 7px 10px; font-size: 10.5px; font-weight: 700; cursor: pointer; background: var(--teal-700); color: #fff; transition: background .2s, transform .15s; }
.app-btn:hover { background: var(--teal-800); }
.app-btn:active { transform: scale(.96); }
.app-btn.ghost { background: var(--teal-50); color: var(--teal-800); }
.app-btn.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-chip { border: 1px solid var(--teal-100); background: #fff; color: var(--teal-800); font-size: 10.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; text-align: left; }
.app-chip:hover { background: var(--teal-50); }
.app-chat { display: grid; gap: 8px; }
.app-msg { max-width: 86%; font-size: 11.5px; line-height: 1.45; padding: 9px 11px; border-radius: 14px; }
.app-msg.me { justify-self: end; background: var(--teal-700); color: #fff; border-bottom-right-radius: 4px; }
.app-msg.ai { background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.app-msg.ai.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--teal-600); }
@keyframes blink { 50% { opacity: 0; } }
.app-toast {
  position: absolute; left: 12px; right: 12px; bottom: 74px; z-index: 6;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 10px 12px; border-radius: 12px;
  display: flex; gap: 8px; align-items: center; transform: translateY(20px); opacity: 0; transition: all .3s var(--ease); pointer-events: none;
}
.app-toast.show { transform: translateY(0); opacity: 1; }
.app-toast svg { width: 14px; height: 14px; color: #34D399; flex: none; }
.app-screen-enter { animation: screenIn .35s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 10.5px; }
.app-kv span { color: var(--muted); display: block; }
.app-kv b { font-size: 11.5px; }

.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(600px 300px at 70% 20%, rgba(20, 184, 166, .35), transparent 70%), var(--teal-950);
  border: 1px solid rgba(255, 255, 255, .1); display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .8);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .play { width: 84px; height: 84px; border-radius: 50%; background: var(--amber-500); color: var(--teal-950); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 12px rgba(245, 158, 11, .18); }
.video-frame .play svg { width: 32px; height: 32px; margin-left: 4px; }

.access-card { display: grid; gap: 14px; align-content: start; }
.access-card .btn { justify-self: start; margin-top: 6px; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .75rem; line-height: 1.2; opacity: .9; }
.store-badge b { display: block; font-size: .9375rem; }
.store-badge svg { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #D6DCD9; background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C3BF; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); background: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185, 28, 28, .08); }
.field .err { font-size: .8125rem; color: var(--danger); min-height: 0; display: none; }
.field.invalid .err { display: block; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; padding: 9px 14px; border-radius: 999px; border: 1px solid #D6DCD9; font-size: .875rem; font-weight: 500; background: var(--bg); transition: all .2s; cursor: pointer; }
.choice input:checked + span { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--amber-400); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-700); flex: none; }
.form-success { display: none; text-align: center; padding: 32px 8px; gap: 12px; justify-items: center; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; }
.form-success .ok svg { width: 30px; height: 30px; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: grid; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.contact-side { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.contact-item .icon-tile { width: 44px; height: 44px; flex: none; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item a.val { color: var(--teal-700); font-weight: 600; word-break: break-word; }
.contact-item a.val:hover { text-decoration: underline; }
.people-list { display: grid; gap: 4px; margin-top: 8px; }
.people-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .9375rem; }
.people-list a:hover { background: var(--surface-2); }
.people-list a small { color: var(--muted); display: block; font-size: .8125rem; }
.people-list svg { width: 18px; height: 18px; color: #0A66C2; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255, 255, 255, .66); padding-block: 72px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .f-brand { grid-column: 1 / -1; } }
.f-brand .brand { color: #fff; }
.f-brand p { margin-top: 16px; max-width: 22rem; font-size: .9375rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: .9375rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.social a:hover { background: #0A66C2; border-color: #0A66C2; }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.stack-sm { display: grid; gap: 12px; } .stack-md { display: grid; gap: 20px; }
.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

.stats .v svg { width: 28px; height: 28px; color: var(--teal-600); }
.check-list.muted li { color: var(--muted); font-size: .9375rem; }
@media (max-width: 640px) { .video-frame:not(:has(iframe, video)) { aspect-ratio: auto; min-height: 300px; padding: 32px 16px; } }

/* ---------- Footer legal links ---------- */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .legal { grid-template-columns: 1fr; gap: 24px; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (max-width: 960px) { .legal-toc { position: static; } }
.legal-toc h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: .875rem; color: var(--ink-2); }
.legal-toc a::before { content: counter(toc) "."; color: var(--teal-600); font-weight: 600; min-width: 18px; }
.legal-toc a:hover { background: var(--surface-2); color: var(--ink); }
.prose { max-width: 46rem; color: var(--ink-2); }
.prose > section { padding-block: 8px 28px; border-bottom: 1px solid var(--line-2); margin-bottom: 28px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose > section:last-child { border-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin-bottom: 14px; }
.prose h3 { font-size: 1.0625rem; margin: 20px 0 8px; letter-spacing: -0.01em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--teal-600); }
.prose a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal-100); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9375rem; }
.legal-meta span { display: inline-flex; align-items: center; gap: 8px; }
.legal-meta svg { width: 16px; height: 16px; color: var(--teal-600); }
.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--r-md); padding: 16px 18px; color: var(--teal-900); margin-bottom: 32px; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--teal-700); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9375rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--surface-2); color: var(--ink); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.consent a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf-inner { display: grid; gap: 20px; justify-items: center; max-width: 34rem; }
.nf-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 10rem); line-height: .9; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-900)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-key { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--amber-100); color: #B45309; border: 1px solid #FDE68A; transform: rotate(-12deg); }
.nf-key svg { width: 34px; height: 34px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 8px; }

@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td { padding: 0; border: 0; }
  .data-table td:first-child { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
  .data-table td:nth-child(3) { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
  .data-table td:nth-child(3)::before { content: "Provided by: "; font-weight: 600; }
}
.video-frame video { background: #062E2B; object-fit: contain; }
