/* MSMEPulse website. Matches the app: Satoshi, warm greys, MSMEPulse green. */

:root {
  --ink: #2e2a2a;
  --ink-soft: #4a4545;
  --muted: #6b6464;
  --line: #e8e5e3;
  --line-strong: #d5d0cd;
  --paper: #faf9f8;
  --surface: #ffffff;
  --hover: #f3f1ef;
  --brand: #0db031;
  --brand-text: #087a21;
  --brand-deep: #065c19;
  --brand-soft: #e7f7eb;
  --night: #1d1b1b;
  --warn: #9a4b06;
  --warn-soft: #fff6e6;
  --danger: #b42318;
  --info: #175cd3;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(46 42 42 / .06), 0 8px 24px rgb(46 42 42 / .08);
  --shadow-lg: 0 2px 6px rgb(46 42 42 / .06), 0 24px 64px rgb(46 42 42 / .16);
  --wrap: 1200px;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
figure { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 900; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-soft); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgb(46 42 42 / .22); }
.btn-primary:hover { background: #000; }
.btn-green { background: var(--brand-text); color: #fff; box-shadow: 0 6px 18px rgb(8 122 33 / .28); }
.btn-green:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 249 248 / .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink-soft); font-size: 15.5px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--hover); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.signin { text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 8px 10px; }
.country { display: inline-flex; padding: 3px; background: var(--hover); border-radius: 999px; border: 1px solid var(--line); }
.country button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.country button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }
@media (max-width: 1040px) {
  .nav-links, .nav-end .signin, .nav-end .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-end { margin-left: auto; }
  .mobile-nav { display: block; position: fixed; inset: 72px 0 0; background: var(--paper); padding: 16px 16px 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; border-top: 1px solid var(--line); }
  .mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
  .mobile-nav li a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 10px; }
}
.mobile-nav .country { display: none; }
@media (max-width: 640px) {
  .nav-end .country { display: none; }
  .mobile-nav .country { display: inline-flex; margin-bottom: 18px; }
  .mobile-nav .country button { font-size: 15px; padding: 8px 14px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-white { background: var(--surface); }
.section-night { background: var(--night); color: #f5f3f1; }
.section-night .lead, .section-night p { color: #c9c4c0; }
.section-green { background: linear-gradient(160deg, #0a8f28 0%, #065c19 100%); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 14px; }
.section-night .eyebrow { color: #4cd96b; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; }
.mark { background: linear-gradient(transparent 62%, rgb(13 176 49 / .28) 62%); padding: 0 .06em; }
.green { color: var(--brand-text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(48% 52% at 78% 30%, rgb(13 176 49 / .16), transparent 70%), radial-gradient(40% 40% at 10% 10%, rgb(23 92 211 / .07), transparent 70%); pointer-events: none; }
.hero .grid-bg { position: absolute; inset: 0; 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(60% 50% at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.hero-copy .lead { margin: 0 auto 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 22px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); text-decoration: none; }
.pill b { background: var(--brand-soft); color: var(--brand-text); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.fineprint span { display: inline-flex; align-items: center; gap: 6px; }
.fineprint svg { width: 16px; height: 16px; color: var(--brand-text); }
.hero-visual { position: relative; max-width: 1080px; margin: 8px auto 0; width: 100%; }

/* Browser frame around screenshots */
.frame { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f4f2f0; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0dcd9; }
.frame-bar i:nth-child(1) { background: #ff6159; } .frame-bar i:nth-child(2) { background: #ffbd2e; } .frame-bar i:nth-child(3) { background: #28c941; }
.frame-url { margin-left: 12px; flex: 1; max-width: 420px; height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; gap: 6px; overflow: hidden; white-space: nowrap; }
.frame-url svg { width: 12px; height: 12px; flex: none; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; cursor: zoom-in; }
.frame.crop img { aspect-ratio: auto; }

/* Phone */
.phone { width: 230px; border-radius: 38px; padding: 9px; background: #1d1b1b; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 30px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; cursor: zoom-in; }
.hero-phone { position: absolute; right: -28px; bottom: -40px; width: 200px; }
.hero-phone .phone { width: 100%; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; animation: float 6s ease-in-out infinite; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: 15px; }
.float-card small { color: var(--muted); }
.fc-1 { left: -36px; top: 22%; }
.fc-2 { left: 6%; bottom: -26px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .hero-phone, .fc-1 { display: none; } .fc-2 { left: 12px; bottom: -22px; } }
@media (max-width: 560px) { .fc-2 { display: none; } }

/* ---------- Built for strip ---------- */
.strip { padding: 34px 0; border-block: 1px solid var(--line); background: var(--surface); }
.strip p { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 15px; background: var(--paper); }
.chips svg { width: 18px; height: 18px; color: var(--brand-text); }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.icon.warn { background: var(--warn-soft); color: var(--warn); }
.icon.night { background: rgb(255 255 255 / .08); color: #4cd96b; }
.section-night .card { background: #262323; border-color: #3a3535; }
.section-night .card p { color: #bdb7b2; }

/* Pain → gain */
.pain { position: relative; }
.pain .card { position: relative; }
.pain .x { position: absolute; top: 22px; right: 22px; color: var(--danger); font-size: 13px; font-weight: 700; background: #fef3f2; padding: 3px 10px; border-radius: 999px; }

/* Lead-to-cash flow */
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; text-align: center; padding: 0 6px; }
.flow li::after { content: ""; position: absolute; top: 31px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: repeating-linear-gradient(90deg, #4cd96b 0 8px, transparent 8px 14px); }
.flow li:last-child::after { display: none; }
.flow .dot { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: #262323; border: 1px solid #3a3535; color: #4cd96b; }
.flow .dot svg { width: 28px; height: 28px; }
.flow b { display: block; font-size: 16px; color: #fff; }
.flow small { display: block; color: #a7a19c; font-size: 13.5px; line-height: 1.4; margin-top: 4px; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin: 0 auto; }
  .flow li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; text-align: left; padding: 0 0 26px; align-items: center; }
  .flow .dot { margin: 0; }
  .flow li::after { top: 64px; left: 31px; right: auto; width: 2px; height: 26px; background: repeating-linear-gradient(180deg, #4cd96b 0 6px, transparent 6px 11px); }
}

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 120px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--ink-soft); font-size: 16.5px; }
.ticks li svg { width: 22px; height: 22px; color: var(--brand-text); margin-top: 2px; }
.ticks b { color: var(--ink); }
.feature-visual { position: relative; }
.feature-visual .phone { position: absolute; right: -18px; bottom: -36px; width: 170px; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature-visual .phone { display: none; }
}
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.tag.soon { background: var(--hover); color: var(--muted); }
.tag.addon { background: #eff4ff; color: var(--info); }

/* Mobile showcase */
.phones { display: flex; gap: 28px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.phones .phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 640px) { .phones .phone { width: 46%; min-width: 150px; } .phones .phone:nth-child(2) { transform: none; } }

/* Country */
.country-card { padding: 30px; }
.country-card .flag { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.country-card .flag span { font-size: 28px; }
.country-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.country-card li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; color: var(--ink-soft); }
.country-card li svg { width: 18px; height: 18px; color: var(--brand-text); margin-top: 3px; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; font-size: 20px; display: grid; place-items: center; }
.step.card { padding: 82px 26px 26px; }
.step.card::before { top: 26px; }

/* Industries */
.industry { display: flex; flex-direction: column; gap: 10px; }
.industry ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.industry li { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 8px; }
.industry li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: none; }
.industry h4 { font-size: 1.12rem; margin-bottom: .2em; }
.industry .icon { margin-bottom: 4px; }
.industry li.more { color: var(--muted); font-style: italic; }
.industry li.more::before { background: var(--line-strong, #ccc); }
.tag.sm { font-size: 11px; padding: 2px 8px; }
.ind-group { font-size: 1.5rem; margin: 56px 0 6px; }
.ind-group:first-of-type { margin-top: 8px; }
.ind-lead { color: var(--muted); margin: 0 0 20px; }

/* ---------- Pricing ---------- */
.toggles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg .save { color: var(--brand-text); font-size: 12px; margin-left: 4px; }
.seg button[aria-pressed="true"] .save { color: #7ff09a; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.plan.popular { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .tagline { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; }
.price b { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.price-note { font-size: 14px; color: var(--muted); margin: 0; }
.plan .btn { margin: 20px 0 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; color: var(--ink-soft); }
.plan li svg { width: 18px; height: 18px; color: var(--brand-text); margin-top: 3px; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--paper); font-size: 14px; position: sticky; top: 72px; }
.compare .grp td { background: var(--paper); font-weight: 700; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare svg { width: 20px; height: 20px; color: var(--brand-text); margin: 0 auto; }
.compare .no { color: var(--line-strong); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll .compare { min-width: 640px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #d8f5df; margin: 0 auto 30px; }
.cta-band .fineprint { color: #c3ecce; }
.cta-band .fineprint svg { color: #7ff09a; }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgb(255 255 255 / .05); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; background: radial-gradient(45% 50% at 50% 30%, rgb(13 176 49 / .12), transparent 70%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero .lead { margin-inline: auto; }

/* Module index on the features page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.jump a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.jump a:hover { border-color: var(--ink); }
.module h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 26px; }
.mini div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mini b { display: block; margin-bottom: 4px; font-size: 16px; }
.mini div > span { color: var(--ink-soft); font-size: 15px; line-height: 1.5; display: block; }

/* Security list */
.sec { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.sec .icon { margin: 0; }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 12px; }
.contact-card a.big { font-size: 1.2rem; font-weight: 700; color: var(--brand-text); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #c9c4c0; padding: 64px 0 32px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: #c9c4c0; }
.foot a:hover { color: #fff; }
.foot .btn-light, .foot .btn-light:hover { color: var(--ink); }
.foot .logo img { height: 22px; margin-bottom: 16px; }
.foot-bottom a { color: #c9c4c0; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a3535; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #8f8984; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgb(20 18 18 / .82); backdrop-filter: blur(3px); }
dialog.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); margin: 0 auto; }
dialog.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 500; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Phone overrides that must come after the base rules. */
@media (max-width: 640px) {
  .frame-url { max-width: 70%; }
  .pain.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pain .card { padding: 18px; }
  .pain .card h3 { font-size: 1.05rem; }
  .pain .card p { font-size: 14.5px; }
  .pain .icon { width: 40px; height: 40px; margin-bottom: 12px; }
}

/* ---------- Legal pages ---------- */
.draft-banner { background: var(--warn-soft); border-bottom: 1px solid #f3d9b0; color: var(--warn); font-size: 15px; }
.draft-banner .wrap { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; }
.draft-banner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal nav { position: sticky; top: 96px; font-size: 14.5px; }
.legal nav ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.legal nav a { text-decoration: none; color: var(--ink-soft); }
.legal nav a:hover { color: var(--ink); }
.legal article { max-width: 760px; font-size: 16.5px; }
.legal article h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; margin: 2.2em 0 .6em; padding-top: 4px; }
.legal article h2:first-of-type { margin-top: 0; }
.legal article h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; }
.legal article p, .legal article li { color: var(--ink-soft); }
.legal article ul { padding-left: 22px; display: grid; gap: 6px; margin: 0 0 1em; }
.legal article table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.legal article th, .legal article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal article th { background: var(--paper); color: var(--ink); }
.legal .meta { color: var(--muted); font-size: 15px; }
.legal .note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 16px; margin: 0 0 1.2em; }
.ph { background: #fff1c2; color: #6b4a00; padding: 0 .3em; border-radius: 4px; font-weight: 500; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal nav { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; } }
@media print { .site-header, .site-footer, .legal nav { display: none; } }

/* ---------- Resources menu ---------- */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 500; font-size: 15.5px; color: var(--ink-soft); cursor: pointer; }
.nav-drop-btn svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .15s; }
.nav-drop-btn:hover, .nav-drop-btn[aria-current="page"], .nav-drop-btn[aria-expanded="true"] { color: var(--ink); background: var(--hover); }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(-90deg); }
.drop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 300px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.nav-drop-btn[aria-expanded="true"] + .drop { display: block; }
.drop a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.drop a:hover, .drop a:focus-visible { background: var(--hover); }
.drop b { display: block; font-size: 15px; }
.drop span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Blog and case studies ---------- */
.section-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.narrow { max-width: 760px; }
.res-tabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; background: var(--hover); border: 1px solid var(--line); border-radius: 999px; }
.res-tabs a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.res-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.post-filters { margin-bottom: 28px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.post-card .post-meta { font-size: 13px; color: var(--muted); }
.post-for { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--brand-text); }
.post-cover { display: grid; place-items: center; height: 120px; background: var(--brand-soft); color: var(--brand-text); }
.post-cover svg { width: 40px; height: 40px; }
.post-cover[data-group="advisory"] { background: #eef2ff; color: #3730a3; }
.post-cover[data-group="creative"] { background: #fdf2f8; color: #9d174d; }
.post-cover[data-group="tech"] { background: #ecfeff; color: #155e75; }
.post-cover[data-group="built"] { background: #fff7ed; color: #9a3412; }
.post-cover[data-group="people"] { background: #f5f3ff; color: #5b21b6; }
.post-cover[data-group="general"] { background: var(--hover); color: var(--ink-soft); }
.post-cover-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--hover); border-bottom: 1px solid var(--line); }
html[data-market="SG"] [data-countries="IN"], html[data-market="IN"] [data-countries="SG"] { display: none !important; }
.post-card.filtered { display: none !important; }
.post-none { text-align: center; color: var(--muted); }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--brand-text); font-weight: 700; text-decoration: underline; cursor: pointer; }
.post-empty { max-width: 560px; margin: 0 auto; text-align: center; padding: 32px; }
.note.center { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.post-hero { text-align: left; }
.post-hero .wrap { margin-inline: auto; }
.post-hero .lead { margin-inline: 0; }
.post-hero .meta { color: var(--muted); font-size: 14px; }
.back { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; }
.back svg { width: 14px; height: 14px; transform: rotate(180deg); }
.example-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.example-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.example-note p { margin: 0; }
.post-hero-img { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 28px; box-shadow: var(--shadow); }
.post-body img { max-width: 100%; height: auto; }
.post-figure { margin: 1.8em 0; }
.post-figure img { display: block; width: 100%; border-radius: 14px; }
.post-figure figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.post-body { font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.post-body h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.post-body h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1em; }
.post-body li { margin: .3em 0; }
.post-body blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--brand); color: var(--ink-soft); }
.post-body em:only-child { color: var(--muted); }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body a { color: var(--brand-text); }
.post-cta { margin-top: 40px; padding: 28px; text-align: center; }
.post-cta h2 { font-size: 1.4rem; }
.post-cta .cta-row { margin-top: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14.5px; color: var(--brand-text); text-decoration: none; }
.more-link svg { width: 14px; height: 14px; }

/* ---------- User manual ---------- */
.help-search { position: relative; max-width: 560px; margin: 28px auto 0; }
.help-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.help-search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); font: inherit; font-size: 16px; box-shadow: var(--shadow); }
.help-search input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.help-results { max-width: 560px; margin: 8px auto 0; padding: 6px; list-style: none; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.help-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.help-results a:hover, .help-results a:focus-visible { background: var(--hover); }
.help-results b { display: block; }
.help-results span, .help-results .none { font-size: 14px; color: var(--muted); }
.help-results .none { padding: 10px 12px; }
.help-h2 { font-size: 1.35rem; margin: 40px 0 16px; }
.help-h2:first-child { margin-top: 0; }
.help-start { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.help-start li { counter-increment: step; }
.help-step { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; text-decoration: none; color: inherit; }
.help-step b::before { content: counter(step) ". "; color: var(--brand-text); }
.help-step span, .help-list span { font-size: 14.5px; color: var(--ink-soft); }
.help-list { list-style: none; padding: 0; margin: 0; gap: 4px 24px; }
.help-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.help-list a:hover b { text-decoration: underline; }
.help-list b { display: block; margin-bottom: 2px; }
.help-more { margin-top: 56px; padding: 28px; text-align: center; }
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-nav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14.5px; }
.help-nav details { border-bottom: 1px solid var(--line); }
.help-nav summary { padding: 10px 0; font-weight: 700; cursor: pointer; }
.help-nav ul { list-style: none; margin: 0 0 10px; padding: 0; }
.help-nav li a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); }
.help-nav li a:hover { background: var(--hover); color: var(--ink); }
.help-nav li a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.help-main { max-width: 760px; }
.help-main h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.help-main .lead { margin-inline: 0; }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.help-pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.help-pager a:hover { border-color: var(--ink); }
.help-pager .next { text-align: right; }
.help-pager span { display: block; font-size: 13px; color: var(--muted); }
.help-related { margin-top: 24px; padding: 20px 24px; }
.help-related h2 { font-size: 1.05rem; }
.help-related ul { margin: 0; padding-left: 18px; }
.help-foot { margin-top: 24px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-nav { position: static; max-height: none; order: 2; }
  .help-nav details:not([open]) { display: none; }
  .help-pager { grid-template-columns: 1fr; }
}
.help-back-mobile { display: none; }
@media (max-width: 900px) { .help-back-mobile { display: flex; } .help-nav > .back { display: none; } }
