/* =========================================================
   Sahayo.in — design system
   Brand: indigo → violet with a saffron accent.
   Each product page sets --accent / --accent-2 on <body>.
   ========================================================= */

:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --violet: #7c3aed;
  --saffron: #f59e0b;
  --saffron-600: #d97706;

  --bg: #fbfbfe;
  --bg-soft: #f3f4fb;
  --surface: #ffffff;
  --surface-2: #f7f7fc;
  --ink: #14123a;
  --ink-2: #3f3d63;
  --muted: #6b6a8a;
  --line: #e5e5f0;
  --line-2: #d7d7e8;
  --ring: rgba(79, 70, 229, 0.35);
  --shadow-sm: 0 1px 2px rgba(20, 18, 58, 0.06), 0 1px 3px rgba(20, 18, 58, 0.06);
  --shadow: 0 10px 30px -12px rgba(30, 27, 75, 0.18), 0 4px 10px -6px rgba(30, 27, 75, 0.08);
  --shadow-lg: 0 40px 80px -30px rgba(30, 27, 75, 0.35), 0 12px 30px -12px rgba(30, 27, 75, 0.18);
  --hero-glow-1: rgba(99, 102, 241, 0.22);
  --hero-glow-2: rgba(245, 158, 11, 0.16);

  --accent: var(--brand);
  --accent-2: var(--violet);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --max: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Plus Jakarta Sans", sans-serif;

  /* mock app screens keep their own light palette so they read as "software" */
  --m-bg: #f6f7fb;
  --m-surface: #ffffff;
  --m-ink: #1f2340;
  --m-muted: #7a7f9a;
  --m-line: #e8eaf3;
}

:root[data-theme="dark"] {
  --bg: #0b0a1f;
  --bg-soft: #12112b;
  --surface: #16153a;
  --surface-2: #1c1b45;
  --ink: #f1f0ff;
  --ink-2: #c9c7ee;
  --muted: #9a98c4;
  --line: #2a2858;
  --line-2: #36346b;
  --ring: rgba(129, 140, 248, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --hero-glow-1: rgba(99, 102, 241, 0.3);
  --hero-glow-2: rgba(245, 158, 11, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0a1f;
    --bg-soft: #12112b;
    --surface: #16153a;
    --surface-2: #1c1b45;
    --ink: #f1f0ff;
    --ink-2: #c9c7ee;
    --muted: #9a98c4;
    --line: #2a2858;
    --line-2: #36346b;
    --ring: rgba(129, 140, 248, 0.45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    --hero-glow-1: rgba(99, 102, 241, 0.3);
    --hero-glow-2: rgba(245, 158, 11, 0.12);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hi { font-family: var(--font-hi); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--brand) 10%, var(--violet) 50%, var(--saffron-600) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { color: var(--brand-700); background: #fff; }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; border-radius: 11px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.brand b span { color: var(--saffron-600); font-weight: 700; }
.brand small { display: block; font-family: var(--font-hi); font-size: 0.7rem; color: var(--brand); font-weight: 600; margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font: inherit; font-weight: 600; font-size: 0.97rem;
  padding: 9px 14px; border-radius: 10px; background: none; border: 0; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links a[aria-current="page"] { color: var(--brand); background: var(--bg-soft); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

/* mega dropdown */
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(760px, 92vw); padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: all .18s ease;
}
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; color: var(--ink); text-decoration: none !important; }
.mega a:hover { background: var(--bg-soft); }
.mega .p-ico { flex: none; }
.mega strong { display: block; font-size: 0.97rem; }
.mega span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.mega .all { grid-column: 1 / -1; justify-content: center; color: var(--brand); font-weight: 700; background: var(--bg-soft); }

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
    max-height: calc(100vh - 72px); overflow: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  body.nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; padding: 12px; }
  .mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 8px; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; }
  .has-menu.open .mega { display: grid; transform: none; }
  .has-menu:hover .mega { transform: none; }
  .nav-actions .btn { display: none; }
}

/* ---------- product icon chip ---------- */
.p-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 18px -8px var(--c1);
}
.p-ico svg { width: 22px; height: 22px; }
.p-ico.lg { width: 60px; height: 60px; border-radius: 18px; }
.p-ico.lg svg { width: 30px; height: 30px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 20%, var(--hero-glow-1), transparent 70%),
    radial-gradient(500px 380px at 85% 10%, var(--hero-glow-2), transparent 70%),
    radial-gradient(700px 400px at 60% 70%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 0.93rem; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: #16a34a; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 22px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
}
.pill b { background: linear-gradient(135deg, var(--saffron), var(--saffron-600)); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; }
.hero-visual { position: relative; min-height: 460px; }
.hero-visual .app-window { position: relative; z-index: 2; }
.float-card {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink);
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: 0.75rem; }
.float-card b { font-size: 1rem; }
.float-card.f1 { left: -28px; bottom: 40px; }
.float-card.f2 { right: -18px; top: -18px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 0; }
  .float-card.f1 { left: 8px; bottom: -20px; }
  .float-card.f2 { right: 8px; top: -20px; }
}

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-align: center;
}
.stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none !important; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.product-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 18%, transparent), transparent 70%);
  transition: transform .4s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); }
.product-card:hover::after { transform: scale(1.3); }
.product-card .top { display: flex; align-items: center; justify-content: space-between; }
.product-card h3 { margin: 4px 0 0; }
.product-card .tag { font-size: 0.86rem; font-weight: 700; color: var(--c1); }
.product-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.product-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; font-size: 0.93rem; }
.product-card li { display: flex; gap: 8px; align-items: flex-start; }
.product-card li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--c1); }
.product-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--c1); display: inline-flex; align-items: center; gap: 6px; }
.product-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.product-card:hover .more svg { transform: translateX(4px); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.badge.live { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.badge.new { color: #6d28d9; background: #ede9fe; border-color: #ddd6fe; }
.badge.soon { color: #b45309; background: #fef3c7; border-color: #fde68a; }
:root[data-theme="dark"] .badge.live { background: #052e16; border-color: #14532d; color: #86efac; }
:root[data-theme="dark"] .badge.new { background: #2e1065; border-color: #4c1d95; color: #c4b5fd; }
:root[data-theme="dark"] .badge.soon { background: #422006; border-color: #78350f; color: #fcd34d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge.live { background: #052e16; border-color: #14532d; color: #86efac; }
  :root:not([data-theme="light"]) .badge.new { background: #2e1065; border-color: #4c1d95; color: #c4b5fd; }
  :root:not([data-theme="light"]) .badge.soon { background: #422006; border-color: #78350f; color: #fcd34d; }
}

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.feature .f-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--accent); background: var(--accent-soft);
}
.feature .f-ico svg { width: 24px; height: 24px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split + .split { margin-top: 110px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li > svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-top: 1px; }
.checks b { color: var(--ink); }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
  .split + .split { margin-top: 72px; }
}

/* ---------- showcase tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 0.93rem;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c1); }
.tab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tab[aria-selected="true"] i { background: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .35s ease; }
.showcase { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .showcase { grid-template-columns: 1fr; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet));
}
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- audience chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 0.95rem;
}

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--surface-2); color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 700; color: var(--ink); }
.compare .yes { color: #16a34a; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px;
  color: #e0e7ff; background: linear-gradient(130deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .45), transparent 70%); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.08rem; }
.cta .btn-row { justify-content: flex-end; position: relative; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 40px 24px; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-cover {
  position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
}
.post-cover::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 18px 18px;
}
.post-cover .big { position: relative; font-family: var(--font-hi); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 6px 24px rgba(0,0,0,.2); text-align: center; line-height: 1.1; padding: 0 20px; }
.post-cover .big small { display: block; font-family: var(--font); font-size: .9rem; font-weight: 700; opacity: .85; margin-top: 8px; letter-spacing: .02em; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 12px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.post-meta .cat { color: var(--c1); }
.post-card h3 { margin: 0; font-size: 1.18rem; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.article-hero { padding: 64px 0 24px; }
.article-hero .post-meta { margin-bottom: 18px; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 900px; }
.article-cover { border-radius: var(--radius-lg); aspect-ratio: 16 / 6; margin: 24px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 48px 0 32px; }
.prose { font-size: 1.08rem; color: var(--ink-2); max-width: 760px; }
.prose h2 { font-size: 1.65rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; white-space: nowrap; }
.prose th { background: var(--surface-2); color: var(--ink); }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.callout { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 1.6em 0; }
.callout b { color: var(--ink); }
.aside-card { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.aside-card h4 { margin-bottom: 8px; }
.aside-card p { font-size: 0.93rem; color: var(--muted); }
.toc { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.toc a { color: var(--ink-2); }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 48px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 600px; z-index: -1;
  background: radial-gradient(600px 300px at 50% 40%, var(--hero-glow-1), transparent 70%);
}
.page-hero .lead { max-width: 720px; margin: 0 auto; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* product hero */
.p-hero .p-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.p-hero .p-title .tag { font-weight: 700; color: var(--accent); }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.p-meta .badge { font-size: 0.8rem; padding: 6px 12px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.form-card { padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.field .err { color: #dc2626; font-size: 0.82rem; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--ink-2); }
.check-row input { accent-color: var(--brand); width: 16px; height: 16px; }
.check-row label:has(input:checked) { border-color: var(--brand); background: var(--bg-soft); color: var(--brand); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .ok { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22c55e, #15803d); }
.form-success .ok svg { width: 36px; height: 36px; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
.hp { position: absolute; left: -5000px; }
.info-list { display: grid; gap: 16px; margin-top: 28px; }
.info-item { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.info-item .f-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--bg-soft); }
.info-item .f-ico svg { width: 22px; height: 22px; }
.info-item b { color: var(--ink); display: block; }
.info-item span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }

/* ---------- calculator widget ---------- */
.calc-card { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg label { padding: 8px 12px; border-radius: 9px; font-weight: 700; font-size: 0.86rem; cursor: pointer; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.calc-out div { padding: 16px; border-radius: 14px; background: var(--bg-soft); }
.calc-out small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.calc-out b { font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.calc-out .hl { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.calc-out .hl small, .calc-out .hl b { color: #fff; }
.calc-steps { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 640px) { .calc-grid, .calc-out { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 72px 0 32px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-2); }
.foot-grid a:hover { color: var(--brand); }
.foot-about p { color: var(--muted); max-width: 340px; margin-top: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   App screen mockups (pure HTML/CSS "screenshots")
   ========================================================= */
.app-window {
  --c1: var(--accent); --c2: var(--accent-2);
  background: var(--m-surface); color: var(--m-ink);
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(20, 18, 58, .12);
  box-shadow: var(--shadow-lg);
  font-size: 12px; line-height: 1.45; text-align: left;
}
.app-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #eceef5; border-bottom: 1px solid var(--m-line); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.app-bar .dots i:nth-child(2) { background: #febc2e; }
.app-bar .dots i:nth-child(3) { background: #28c840; }
.app-bar .t { flex: 1; text-align: center; font-weight: 700; color: #5a5f7d; font-size: 11.5px; margin-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: #fff; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.app-top b { font-size: 13px; }
.app-top .sp { flex: 1; }
.app-top .u { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .95; }
.app-top .u i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.3); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; background: var(--m-bg); }
.app-side { background: var(--m-surface); border-right: 1px solid var(--m-line); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.app-side span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: #5a5f7d; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 3px; background: #c9cde0; }
.app-side span.on { background: color-mix(in srgb, var(--c1) 13%, #fff); color: var(--c1); }
.app-side span.on::before { background: var(--c1); }
.app-side .grp { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: #a3a8c3; padding: 10px 9px 4px; font-weight: 700; }
.app-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-h h5 { margin: 0; font-size: 14px; color: var(--m-ink); }
.app-h .sub { color: var(--m-muted); font-size: 10.5px; }
.m-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 7px; background: var(--c1); color: #fff; font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.m-btn.o { background: #fff; color: var(--c1); border: 1px solid color-mix(in srgb, var(--c1) 40%, #fff); }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-kpi { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.m-kpi small { display: block; color: var(--m-muted); font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-kpi b { display: block; font-size: 14px; color: var(--m-ink); letter-spacing: -0.02em; white-space: nowrap; }
.m-kpi em { font-style: normal; font-size: 9.5px; font-weight: 700; color: #16a34a; }
.m-kpi em.dn { color: #dc2626; }
.m-kpi.hl { background: linear-gradient(135deg, var(--c1), var(--c2)); border: 0; }
.m-kpi.hl small, .m-kpi.hl b, .m-kpi.hl em { color: #fff; }
.m-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.m-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 10px; min-width: 0; }
.m-card h6 { margin: 0 0 8px; font-size: 11px; color: var(--m-ink); display: flex; justify-content: space-between; }
.m-card h6 span { color: var(--m-muted); font-weight: 600; }
.m-bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding-top: 4px; border-bottom: 1px solid var(--m-line); }
.m-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c1), color-mix(in srgb, var(--c2) 70%, #fff)); opacity: .9; }
.m-bars i:nth-child(odd) { opacity: .65; }
.m-axis { display: flex; gap: 6px; margin-top: 4px; }
.m-axis span { flex: 1; text-align: center; color: var(--m-muted); font-size: 8.5px; }
.m-donut { display: flex; align-items: center; gap: 10px; }
.m-donut .ring { width: 78px; height: 78px; border-radius: 50%; flex: none; position: relative; }
.m-donut .ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--m-surface); }
.m-legend { display: grid; gap: 4px; font-size: 10px; color: var(--m-muted); }
.m-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.m-legend i { width: 8px; height: 8px; border-radius: 2px; }
.m-table { width: 100%; border-collapse: collapse; font-size: 10.5px; background: var(--m-surface); }
.m-table th { text-align: left; font-weight: 700; color: var(--m-muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; padding: 7px 8px; background: #f4f5fa; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.m-table td { padding: 7px 8px; border-bottom: 1px solid var(--m-line); color: var(--m-ink); white-space: nowrap; }
.m-table tr:last-child td { border-bottom: 0; }
.m-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.m-table tr.sel td { background: color-mix(in srgb, var(--c1) 8%, #fff); }
.m-table tfoot td { font-weight: 800; background: #f4f5fa; }
.m-tbl-card { border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; }
.m-scroll { overflow: hidden; }
.st { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; background: #e0f2fe; color: #0369a1; }
.st.g { background: #dcfce7; color: #15803d; }
.st.r { background: #fee2e2; color: #b91c1c; }
.st.y { background: #fef3c7; color: #b45309; }
.st.v { background: #ede9fe; color: #6d28d9; }
.m-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.m-input { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: var(--m-surface); border: 1px solid var(--m-line); color: var(--m-muted); font-size: 10.5px; min-width: 0; }
.m-input.grow { flex: 1; }
.m-chip { padding: 4px 9px; border-radius: 999px; background: var(--m-surface); border: 1px solid var(--m-line); font-size: 10px; font-weight: 600; color: var(--m-muted); white-space: nowrap; }
.m-chip.on { background: var(--c1); border-color: var(--c1); color: #fff; }
.m-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-f { display: grid; gap: 3px; min-width: 0; }
.m-f label { font-size: 9.5px; font-weight: 700; color: var(--m-muted); }
.m-f div { padding: 6px 8px; border-radius: 7px; background: var(--m-surface); border: 1px solid var(--m-line); color: var(--m-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-f div.focus { border-color: var(--c1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 18%, transparent); }
.m-f.s2 { grid-column: span 2; }
.m-total { display: flex; gap: 8px; }
.m-total div { flex: 1; padding: 8px 10px; border-radius: 9px; background: var(--m-surface); border: 1px solid var(--m-line); }
.m-total small { display: block; color: var(--m-muted); font-size: 9.5px; font-weight: 600; }
.m-total b { font-size: 13px; }
.m-total .hl { background: linear-gradient(135deg, var(--c1), var(--c2)); border: 0; color: #fff; }
.m-total .hl small { color: rgba(255,255,255,.85); }
.m-hint { color: var(--m-muted); font-size: 9.5px; text-align: center; }
.m-suggest { position: relative; }
.m-suggest .drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--m-line); border-radius: 8px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.25); padding: 4px; z-index: 2; font-family: var(--font-hi); }
.m-suggest .drop span { display: block; padding: 4px 8px; border-radius: 6px; font-size: 11px; }
.m-suggest .drop span:first-child { background: color-mix(in srgb, var(--c1) 12%, #fff); color: var(--c1); font-weight: 700; }

/* receipt paper */
.m-receipt { background: #fff; border: 1px solid var(--m-line); border-radius: 10px; padding: 14px 16px; position: relative; font-size: 10.5px; }
.m-receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.m-receipt .rh { text-align: center; border-bottom: 1px dashed #cfd3e4; padding-bottom: 8px; margin-bottom: 8px; }
.m-receipt .rh b { display: block; font-size: 13px; }
.m-receipt .rh span { color: var(--m-muted); font-size: 9.5px; }
.m-receipt .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin-bottom: 8px; }
.m-receipt .kv span { color: var(--m-muted); }
.m-receipt .kv b { text-align: right; }
.m-receipt .amt { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c1) 10%, #fff); margin-top: 8px; }
.m-receipt .amt b { font-size: 15px; color: var(--c1); }
.m-receipt .sig { display: flex; justify-content: space-between; margin-top: 18px; color: var(--m-muted); font-size: 9px; }
.m-receipt .sig span { border-top: 1px solid #cfd3e4; padding-top: 3px; min-width: 70px; text-align: center; }
.m-stamp { position: absolute; right: 16px; top: 50px; transform: rotate(-12deg); border: 2px solid #16a34a; color: #16a34a; font-weight: 800; padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: .1em; opacity: .8; }

/* tablet frame (Homeo Clinic) */
.tablet { --c1: var(--accent); --c2: var(--accent-2); padding: 14px; border-radius: 30px; background: #1d1f2e; box-shadow: var(--shadow-lg); }
.tablet .screen { border-radius: 18px; overflow: hidden; background: var(--m-bg); display: grid; grid-template-columns: 56px 1fr; min-height: 380px; font-size: 12px; color: var(--m-ink); line-height: 1.45; }
.tablet .rail { background: var(--m-surface); border-right: 1px solid var(--m-line); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.tablet .rail i { width: 32px; height: 32px; border-radius: 10px; background: #eef0f7; display: block; }
.tablet .rail i.on { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tablet .rail i.logo { border-radius: 50%; background: var(--c1); opacity: .25; }
.ink-pad { position: relative; background: #fffdf6; border: 1px solid #efe7cf; border-radius: 10px; padding: 8px 10px; min-height: 150px; background-image: repeating-linear-gradient(transparent 0 23px, #efe6cc 23px 24px); }
.ink-pad svg { width: 100%; height: auto; }
.ink-pad .pen { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 4px; }
.ink-pad .pen i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd; }
.wa { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 10px; background: #e7fbe9; border: 1px solid #c8f0cd; color: #14532d; font-size: 10.5px; }
.wa .wa-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; }
.wa .wa-ico svg { width: 14px; height: 14px; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.photo-row i { aspect-ratio: 3/4; border-radius: 6px; background: linear-gradient(160deg, #f3ead2, #e6d9b8); border: 1px solid #e2d6b4; position: relative; overflow: hidden; }
.photo-row i::after { content: ""; position: absolute; inset: 12% 14%; background: repeating-linear-gradient(transparent 0 6px, rgba(90, 70, 30, .25) 6px 7px); }

@media (max-width: 640px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .m-kpis { grid-template-columns: 1fr 1fr; }
  .m-row { grid-template-columns: 1fr; }
  .m-form { grid-template-columns: 1fr 1fr; }
  .m-scroll { overflow-x: auto; }
  .tablet { padding: 8px; border-radius: 20px; }
  .tablet .screen { grid-template-columns: 1fr; }
  .tablet .rail { display: none; }
}

/* screen gallery on product pages */
.screens { display: grid; gap: 80px; }
.screen-item { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.screen-item:nth-child(even) > :first-child { order: 2; }
.screen-item h3 { font-size: 1.5rem; }
.screen-item p { color: var(--muted); }
@media (max-width: 980px) { .screen-item { grid-template-columns: 1fr; gap: 28px; } .screen-item:nth-child(even) > :first-child { order: 0; } }

.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: 7rem; font-weight: 800; line-height: 1; }
.legal { max-width: 820px; margin: 0 auto; padding-bottom: 40px; }

/* ---------- layout fixes ---------- */
.hero-inner > *, .showcase > *, .split > *, .screen-item > *, .contact-grid > *, .article-layout > *, .m-row > * { min-width: 0; }
.eyebrow svg { width: 15px; height: 15px; }
.badge svg { width: 14px; height: 14px; }
.chip svg { flex: none; }
.hero-inner { grid-template-columns: 0.9fr 1.1fr; }
.app-body { grid-template-columns: 132px 1fr; }
.m-table th, .m-table td { padding: 6px 7px; }
.m-scroll { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .app-body { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .p-hero .p-title { flex-wrap: wrap; }
}
.screen-item:nth-child(even) { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 980px) { .screen-item:nth-child(even) { grid-template-columns: 1fr; } }
.p-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
