/* ============================================================
   hiBar — website styles  v2
   Light corporate (Eqibank-inspired) + hiBar app identity
   App palette: canvas #0d1117 · panel #161b22 · border #30363d
                text #c9d1d9 · accent #58a6ff · teal #2AB0A6
                base-node purple #8E5CFF
   ============================================================ */

:root {
  /* Brand (site) */
  --blue:      #1e5bff;
  --blue-600:  #1747d6;
  --blue-050:  #eaf0ff;
  --navy:      #0a1a3f;

  /* App palette (used in mockups & dark sections) */
  --app-bg:     #0d1117;
  --app-panel:  #161b22;
  --app-border: #30363d;
  --app-text:   #c9d1d9;
  --app-muted:  #8b949e;
  --app-accent: #58a6ff;
  --app-teal:   #2AB0A6;
  --app-purple: #8E5CFF;
  --app-amber:  #ffb454;
  --app-pink:   #e06cff;
  --app-green:  #3fb950;

  /* Neutrals */
  --ink:       #0d1633;
  --body:      #46506b;
  --muted:     #7a8397;
  --line:      #e6e9f2;
  --bg:        #ffffff;
  --bg-soft:   #f6f8fc;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px rgba(13, 22, 51, .10);
  --shadow-sm: 0 6px 20px rgba(13, 22, 51, .07);
  --shadow-lg: 0 40px 90px rgba(13, 22, 51, .22);
  --maxw:      1180px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--app-bg); }
.section--dark h2, .section--dark h3 { color: #f0f4fc; }
.section--dark p, .section--dark .lead { color: var(--app-muted); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-050);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--app-accent); background: rgba(88,166,255,.12); }
.lead { font-size: 1.15rem; color: var(--body); max-width: 660px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--app-accent), var(--app-teal));
  z-index: 200; transition: width .1s linear;
}

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--app-bg); color: var(--app-text);
  font-size: .84rem; text-align: center; padding: 9px 16px;
  border-bottom: 1px solid var(--app-border);
}
.topbar a { color: var(--app-accent); font-weight: 700; }
.topbar .dot-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--app-green); margin-right: 7px; vertical-align: 1px;
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,185,80,.55); }
  60% { box-shadow: 0 0 0 6px rgba(63,185,80,0); }
}

/* ---------- Buttons (6px corners, like the app's banners) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; font-weight: 700; font-size: .96rem;
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(30,91,255,.28); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,91,255,.35); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,22,51,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .accent { color: var(--blue); }
.brand-mark { width: 34px; height: 34px; }
.brand-logo { height: 26px; width: auto; display: block; }
.footer .brand-logo { height: 28px; }
.brand-suffix {
  font-size: 1.02rem; font-weight: 600; color: var(--body); /* same color as the nav links (Features) */
  letter-spacing: -.01em; margin-left: -10px;
  position: relative; top: 4px; /* sits on the wordmark's baseline */
}
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a { color: var(--body); font-weight: 600; font-size: .95rem; position: relative; white-space: nowrap; }
.nav-links .mobile-only { display: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width .22s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(30,91,255,.10), transparent 60%),
    radial-gradient(760px 420px at 4% 110%, rgba(42,176,166,.09), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-top: 8px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero-note { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note b { color: var(--ink); }

/* ---------- App window mockup (faithful to hiBar — LIGHT, like the real app) ---------- */
.appwin {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .35s ease;
}
.appwin-titlebar {
  display: flex; align-items: center; gap: 8px;
  background: #f6f8fa; border-bottom: 1px solid #d0d7de;
  padding: 10px 14px;
}
.tl-dot { width: 12px; height: 12px; border-radius: 50%; }
.appwin-title { flex: 1; text-align: center; color: #656d76; font-size: .78rem; font-weight: 600; letter-spacing: .02em; margin-right: 44px; }
.appwin-toolbar {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-bottom: 1px solid #d0d7de;
  padding: 7px 12px;
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: #656d76; font-size: .72rem; font-weight: 600;
  border: 1px solid transparent; border-radius: 7px; padding: 5px 9px;
}
.tool-btn.on { color: #0969da; background: rgba(9,105,218,.08); border-color: rgba(9,105,218,.28); }
.tool-btn.purple { color: var(--app-purple); background: rgba(142,92,255,.08); border-color: rgba(142,92,255,.3); }
.tool-sep { width: 1px; height: 18px; background: #d0d7de; margin: 0 5px; }
.tool-spacer { flex: 1; }
.appwin-body { display: flex; min-height: 340px; }
.appwin-side {
  width: 148px; flex: none; background: #f6f8fa;
  border-right: 1px solid #d0d7de; padding: 12px 10px;
}
.side-h { color: #656d76; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 8px 4px 6px; }
.side-item {
  display: flex; align-items: center; gap: 7px; color: #1f2328;
  font-size: .74rem; font-weight: 600; padding: 6px 8px; border-radius: 7px;
}
.side-item.sel { background: rgba(9,105,218,.09); color: #0969da; }
.side-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.appwin-canvas { position: relative; flex: 1; overflow: hidden; background: #ffffff; }
.appwin-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Bare variant: canvas only (no titlebar / toolbar / sidebar) */
.appwin--bare { background: #fff; }
.appwin--bare .appwin-canvas { min-height: 420px; }
@media (max-width: 980px) { .appwin--bare .appwin-canvas { min-height: 320px; } }
.appwin-status {
  display: flex; align-items: center; gap: 14px;
  background: #f6f8fa; border-top: 1px solid #d0d7de;
  padding: 6px 14px; color: #656d76; font-size: .68rem; font-family: var(--mono);
}
.appwin-status .grow { flex: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* floating fact card over mockup */
.fact-pop {
  position: absolute; z-index: 3; min-width: 180px;
  background: #ffffff; border: 1px solid #d0d7de;
  border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 14px 34px rgba(13,22,51,.16);
  animation: factFloat 6s ease-in-out infinite;
}
.fact-pop b { display: block; color: #1f2328; font-size: .78rem; }
.fact-pop small { color: #656d76; font-size: .66rem; display: block; margin-top: 2px; }
.fact-score {
  position: absolute; top: -10px; right: -10px;
  background: var(--app-green); color: #04140a; font-weight: 800; font-size: .68rem;
  border-radius: 999px; padding: 3px 8px; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
@keyframes factFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Era ticker (marquee) ---------- */
.ticker { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 13px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tickerMove 46s linear infinite; will-change: transform; transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; white-space: nowrap; font-family: var(--mono); }
.ticker-item b { color: var(--blue); font-weight: 700; }
.ticker-item i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
@keyframes tickerMove { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* ---------- Press / logos marquee ---------- */
.trust { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logo-marquee { overflow: hidden; position: relative; }
.logo-marquee::before, .logo-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.logo-track { display: flex; gap: 44px; width: max-content; align-items: center; animation: tickerMove 30s linear infinite; will-change: transform; transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.logo-track span { font-weight: 800; color: #a6aec2; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }

/* ---------- Offer tiles (Eqibank "What We Offer") ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer {
  position: relative; border-radius: var(--radius); padding: 30px 24px 26px;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: .25s ease; cursor: pointer;
}
.offer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--tile, var(--blue)); opacity: .9;
}
.offer:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.offer .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: var(--tile, var(--blue)); margin-bottom: 18px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tile, var(--blue)) 35%, transparent);
}
.offer h3 { font-size: 1.08rem; }
.offer p { font-size: .92rem; margin: 0 0 14px; }
.offer .more { font-size: .88rem; font-weight: 700; color: var(--blue); }
.offer .more::after { content: " →"; transition: .2s; }
.offer:hover .more::after { padding-left: 4px; }

/* ---------- Product tabs showcase ---------- */
.tabs-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.tab-btn {
  padding: 11px 22px; border-radius: 6px; font-weight: 700; font-size: .92rem;
  background: #fff; color: var(--body); border: 1.5px solid var(--line); cursor: pointer;
  transition: .2s; font-family: var(--font);
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-pane { display: none; animation: tabIn .45s ease; }
.tab-pane.on { display: grid; }
@keyframes tabIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-pane { grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.tab-shot {
  background: #fff; border: 1px solid #d0d7de; border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11;
}
.tab-shot svg { width: 100%; height: 100%; display: block; }
.tab-copy ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tab-copy li { position: relative; padding: 8px 0 8px 32px; color: var(--body); }
.tab-copy li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e5bff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Score card (Eqibank credit-card moment) ---------- */
.score-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.score-card-scene { perspective: 1100px; display: grid; place-items: center; padding: 20px 0; }
.score-card {
  width: min(400px, 92%); border-radius: 20px; padding: 26px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fc 60%, #eaf0ff 130%);
  border: 1px solid #d0d7de;
  color: #1f2328; box-shadow: 0 30px 70px rgba(13,22,51,.18);
  transform: rotateY(-9deg) rotateX(5deg);
  transition: transform .3s ease; position: relative; overflow: hidden;
}
.score-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px 160px at 80% 0%, rgba(30,91,255,.08), transparent 65%);
}
.score-card:hover { transform: rotateY(0) rotateX(0); }
/* phones/tablets have no hover — let the card float and tilt on its own */
@keyframes cardFloat {
  0%, 100% { transform: rotateY(-9deg) rotateX(5deg) translate3d(0,0,0); }
  50%      { transform: rotateY(7deg) rotateX(-4deg) translate3d(0,-10px,0); }
}
@media (hover: none) {
  .score-card { animation: cardFloat 7s ease-in-out infinite; will-change: transform; }
}
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.sc-brand { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.sc-brand span { color: var(--blue); }
.sc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, var(--app-teal), var(--blue)); opacity: .9; }
.sc-score { font-size: 3rem; font-weight: 800; color: var(--ink); font-family: var(--mono); letter-spacing: -.03em; line-height: 1; }
.sc-score small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 8px; }
.sc-meter { height: 8px; border-radius: 999px; background: #e6e9f2; margin: 18px 0 8px; overflow: hidden; }
.sc-meter i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--app-teal), var(--blue));
  transition: width 1.4s cubic-bezier(.22,.9,.35,1); }
.sc-row { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); font-family: var(--mono); }
.sc-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; position: relative; }
.sc-foot small { color: var(--muted); font-size: .68rem; display: block; }
.sc-foot b { color: var(--ink); font-size: .85rem; font-weight: 700; }
.sc-badges { display: flex; gap: 6px; }
.sc-badge { font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .22s ease;
}
.card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); border-color: #d7ddec; }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue); margin-bottom: 18px; transition: .25s;
}
.card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }

/* dark variant */
.section--dark .card { background: var(--app-panel); border-color: var(--app-border); }
.section--dark .card h3 { color: #f0f4fc; }
.section--dark .card p { color: var(--app-muted); }
.section--dark .card:hover { border-color: #3d4654; box-shadow: 0 16px 40px rgba(0,0,0,.45); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4/3; overflow: hidden; box-shadow: var(--shadow-sm);
}
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split li { position: relative; padding: 8px 0 8px 32px; color: var(--body); }
.split li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e5bff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .22s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }

/* ---------- Stats (counters) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.6rem; color: var(--blue); font-weight: 800; letter-spacing: -.02em; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Testimonials carousel ---------- */
.carousel { position: relative; max-width: 860px; margin: 0 auto; }
.carousel-vp { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.25,.8,.3,1); }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 42px; flex: 0 0 100%; }
.quote .stars { color: #f5a623; letter-spacing: 3px; font-size: .95rem; margin-bottom: 14px; }
.quote p { font-size: 1.12rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .av { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.quote .who small { display: block; color: var(--muted); font-weight: 500; }
.quote .who strong { color: var(--ink); font-size: .95rem; }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; }
.car-dot { width: 9px; height: 9px; border-radius: 50%; background: #cdd5e6; border: 0; padding: 0; cursor: pointer; transition: .2s; }
.car-dot.on { background: var(--blue); transform: scale(1.25); }
.car-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center; color: var(--ink); font-size: 1rem; transition: .2s;
}
.car-arrow:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, #0a1c4a 0%, #133a9e 60%, #1e5bff 130%);
  color: #fff; border-radius: 26px; padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 85% 20%, rgba(255,255,255,.13), transparent 60%);
}
.cta h2, .cta p { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.86); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; position: relative; }
.cta .mini-timeline { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; opacity: .35; }

/* ---------- Footer ---------- */
.footer { background: var(--app-bg); color: #aab2c6; padding: 70px 0 32px; border-top: 1px solid var(--app-border); }
.footer a { color: #aab2c6; transition: .15s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: .95rem; }
.footer-about { max-width: 300px; font-size: .95rem; }
.newsletter { display: flex; gap: 8px; margin-top: 18px; max-width: 320px; }
.newsletter input {
  flex: 1; min-width: 0; background: var(--app-panel); border: 1px solid var(--app-border);
  color: var(--app-text); border-radius: 6px; padding: 11px 16px; font: inherit; font-size: .88rem;
}
.newsletter input::placeholder { color: var(--app-muted); }
.newsletter button {
  background: var(--app-accent); border: 0; color: #06213f; font-weight: 800;
  border-radius: 6px; padding: 11px 18px; cursor: pointer; font: inherit; font-size: .88rem;
}
.newsletter button:hover { filter: brightness(1.1); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--app-border);
  display: grid; place-items: center; color: #aab2c6;
}
.social a:hover { border-color: var(--app-accent); color: var(--app-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem;
}

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 64px 0 44px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- News cards ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.post:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.post .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-050), #dfe6ff); position: relative; }
.post .thumb b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-weight: 800; font-size: 1.05rem; opacity: .6; }
.post .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--app-teal); }
.post h3 { margin: 8px 0; }
.post .meta { margin-top: auto; color: var(--muted); font-size: .85rem; }

/* ---------- Download ---------- */
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; transition: .22s; }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.dl-card .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.badge-soon { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--body); padding-bottom: 16px; margin: 0; }

.mt-0 { margin-top: 0; }
.mb-48 { margin-bottom: 48px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].shown { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .score-wrap, .tab-pane { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .steps, .stats, .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .appwin { transform: none !important; }
  .appwin-side { display: none; }
}
/* Keep header items on one row */
.site-header .container.nav { flex-wrap: nowrap; gap: 18px; }

/* Collapse the nav to the burger before the links can crowd the buttons */
@media (max-width: 1180px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 6px; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: var(--shadow-sm);
    z-index: 60; overflow: visible;
  }
  .nav-links.open a { padding: 8px 0; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .mobile-only { display: block; }
  .nav-links.open .mobile-only:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .nav-links.open .mobile-only a { color: var(--teal-text); font-weight: 700; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 6px; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: var(--shadow-sm); overflow: visible;
  }
  .nav-links.open a { padding: 8px 0; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .mobile-only { display: block; }
  .nav-links.open .mobile-only:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .nav-links.open .mobile-only a { color: var(--teal-text); font-weight: 700; }
  .section { padding: 60px 0; }
  /* narrower marquee strips on phones → smaller GPU layers → smooth motion */
  .ticker-track { gap: 34px; }
  .ticker-item { font-size: .78rem; }
  .logo-track { gap: 34px; }
  .logo-track span { font-size: .92rem; }
  .grid-3, .grid-2, .steps, .stats, .offer-grid { grid-template-columns: 1fr; }
  /* compact footer on phones: link columns side by side, tighter spacing */
  .footer { padding: 36px 0 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-about { max-width: none; margin: 0; }
  .footer h4 { margin-bottom: 8px; font-size: .74rem; }
  .footer li { margin-bottom: 5px; font-size: .88rem; }
  .footer-bottom { margin-top: 22px; padding-top: 16px; gap: 4px; font-size: .8rem; }
  .cta { padding: 44px 24px; }
  .quote { padding: 28px 24px; }
}
/* ---------- Member dashboard ---------- */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 40px 0 80px; }
.dash-side { position: sticky; top: 100px; align-self: start; }
.dash-user { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dash-ava {
  width: 46px; height: 46px; border-radius: 50%; background: var(--mint-050);
  color: var(--teal-text); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  overflow: hidden; flex: none;
}
.dash-ava img { width: 100%; height: 100%; object-fit: cover; }
.dash-user b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.dash-user small { color: var(--muted); font-size: .78rem; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav button {
  text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
  padding: 10px 14px; border-radius: 6px; color: var(--body); font-weight: 600; font-size: .93rem;
  display: flex; align-items: center; gap: 10px;
}
.dash-nav button:hover { background: var(--bg-soft); color: var(--ink); }
.dash-nav button.on { background: #0e2e25; color: #fff; }
.dash-nav .cnt {
  margin-left: auto; background: #e5534b; color: #fff; font-size: .7rem; font-weight: 800;
  border-radius: 999px; padding: 1px 7px; display: none;
}
.dash-nav .cnt.show { display: inline-block; }
.dash-pane { display: none; }
.dash-pane.on { display: block; animation: tabIn .3s ease; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.dash-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.witem { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.witem:last-child { border-bottom: 0; }
.witem .wico {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--mint-050); color: var(--teal-text); font-size: .95rem; font-weight: 800;
}
.witem.unread { background: #f4fbf8; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.witem b { color: var(--ink); font-size: .92rem; }
.witem p { margin: 2px 0 0; font-size: .88rem; color: var(--body); }
.witem time { font-size: .74rem; color: var(--muted); white-space: nowrap; margin-left: auto; flex: none; }
.score-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.spill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; text-align: center; }
.spill b { display: block; font-size: 1.3rem; color: var(--teal-text); font-family: var(--mono); }
.spill span { font-size: .74rem; color: var(--muted); }
.nrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.nrow:last-child { border-bottom: 0; }
.nrow .bar { width: 26px; height: 5px; border-radius: 3px; flex: none; }
.nrow .nsc { margin-left: auto; font-family: var(--mono); font-weight: 800; color: #1a7f47; background: #dcf5e7; border-radius: 6px; padding: 2px 9px; font-size: .8rem; }
.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pform .field.full { grid-column: 1 / -1; }
.pform label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.pform .field { margin-bottom: 14px; }
.pform input[type="text"], .pform input[type="url"], .pform input[type="date"], .pform textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; font-size: .9rem;
}
.pform textarea { min-height: 80px; resize: vertical; }
.pform .check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--body); margin-bottom: 10px; }
.dash-empty { color: var(--muted); font-size: .9rem; padding: 14px 0; }
.dash-msg { display: none; margin-top: 10px; padding: 10px 14px; border-radius: 6px; font-size: .88rem; font-weight: 600; }
.dash-msg.ok { display: block; background: var(--mint-050); color: var(--teal-text); }
.dash-msg.err { display: block; background: #fdecea; color: #b3261e; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .pform { grid-template-columns: 1fr; }
}

/* ---------- Dashboard header (logged-in) ---------- */
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.hdr-search { position: relative; }
.hdr-search input {
  width: 220px; max-width: 46vw; padding: 9px 12px 9px 34px; border: 1.5px solid var(--line);
  border-radius: 8px; font: inherit; font-size: .9rem; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8397' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center;
}
.hdr-search input:focus { outline: none; border-color: var(--mint-deep); background-color: #fff; }
.search-drop {
  position: absolute; top: 44px; left: 0; right: 0; min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 80; display: none; max-height: 340px; overflow-y: auto;
}
.search-drop.show { display: block; }
.hdr-icon {
  position: relative; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--body);
}
.hdr-icon:hover { border-color: var(--mint-deep); color: var(--teal-text); }
.hdr-icon .badge {
  position: absolute; top: -6px; right: -6px; background: #e5534b; color: #fff; font-size: .66rem; font-weight: 800;
  border-radius: 999px; min-width: 17px; height: 17px; padding: 0 4px; display: none; place-items: center;
}
.hdr-icon .badge.show { display: grid; }
/* SQUARE avatar, like the app */
.hdr-ava {
  width: 40px; height: 40px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--line);
  background: var(--mint-050); color: var(--teal-text); display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.hdr-ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-menu {
  position: absolute; top: 64px; right: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; min-width: 180px; z-index: 90; display: none;
}
.ava-menu.show { display: block; }
.ava-menu button, .ava-menu a {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
  padding: 9px 12px; border-radius: 6px; color: var(--body); font-weight: 600; font-size: .9rem;
}
.ava-menu button:hover, .ava-menu a:hover { background: var(--bg-soft); color: var(--ink); }

/* people rows clickable */
.witem.clickable { cursor: pointer; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.witem.clickable:hover { background: var(--bg-soft); }
.dash-ava { border-radius: 8px; } /* square, like the app */

/* profile / compose modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13,22,51,.42); z-index: 120; display: none;
  align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  width: min(560px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-head { display: flex; gap: 14px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); position: relative; }
.modal-head .dash-ava { width: 60px; height: 60px; font-size: 1.3rem; }
.modal-head b { font-size: 1.15rem; color: var(--ink); }
.modal-head small { color: var(--muted); }
.modal-x { position: absolute; top: 16px; right: 18px; background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 20px 24px; }
.prof-row { display: flex; gap: 10px; padding: 7px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.prof-row span { color: var(--muted); min-width: 110px; }
.prof-row b { color: var(--ink); font-weight: 600; }
.modal-actions { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.modal textarea { width: 100%; min-height: 96px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }

/* ---------- Pricing cards ---------- */
.price-card { position: relative; text-align: center; padding-top: 38px; }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #e8913a; color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 6px;
  white-space: nowrap;
}
.price-big { font-size: 2.2rem; font-weight: 800; color: var(--ink); margin: 6px 0 14px; letter-spacing: -.02em; }
.price-big small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price-card .btn { width: 100%; justify-content: center; }

/* Small phones: keep the brand and CTA from overlapping */
@media (max-width: 620px) {
  .brand-suffix { display: none; }
  .brand-logo { height: 22px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 10px 14px; font-size: .86rem; }
}

/* ---------- Dashboard: tablet ---------- */
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; gap: 18px; padding: 24px 0 64px; }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .dash-nav button { flex: 0 0 auto; }
  .hdr-search input { width: 180px; }
}

/* ---------- Dashboard: phones ---------- */
@media (max-width: 640px) {
  .dash { padding: 18px 0 56px; gap: 14px; }
  .dash .container, .container.dash { padding: 0 14px; }
  .hdr-tools { gap: 7px; }
  .hdr-search input { width: 40px; padding-left: 32px; padding-right: 6px; transition: width .2s; }
  .hdr-search input:focus { width: 168px; }
  .hdr-icon { width: 38px; height: 38px; }
  .hdr-ava { width: 38px; height: 38px; }
  .search-drop { position: fixed; left: 12px; right: 12px; top: 70px; }
  .ava-menu { right: 12px; top: 62px; }
  /* nav becomes a horizontal scroll strip so buttons never crowd */
  .dash-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav button { white-space: nowrap; }
  .dash-nav .cnt { margin-left: 4px; }
  .dash-card { padding: 16px; }
  .dash-card h3 { font-size: 1rem; }
  .witem.unread, .witem.clickable { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .score-pills { gap: 8px; }
  .spill { flex: 1 1 44%; padding: 10px 8px; }
  .spill b { font-size: 1.15rem; }
  .modal-overlay { padding: 14px 10px; }
  .modal-head { padding: 18px 18px; }
  .modal-head .dash-ava { width: 52px; height: 52px; }
  .modal-body { padding: 16px 18px; }
  .modal-actions { padding: 14px 18px; flex-direction: column; }
  .prof-row { flex-direction: column; gap: 2px; }
  .prof-row span { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ============================================================
   EQIFI colour direction on WHITE background.
   Mint/emerald accents + glassy green atmosphere; layout,
   content, logo and app mockups unchanged.
   ============================================================ */
:root {
  --mint:      #25d9a9;   /* fills (buttons, meters) */
  --mint-deep: #12b98b;   /* stronger fill / headline accent */
  --teal-text: #0f9e7b;   /* readable teal on white */
  --mint-050:  #e2f7ef;   /* soft mint tint */
  --emerald-d: #0d2b22;   /* dark emerald (topbar/footer/CTA) */
}

body {
  background:
    radial-gradient(1100px 640px at 88% -12%, rgba(37,217,169,.08), transparent 60%),
    radial-gradient(900px 620px at -10% 40%, rgba(18,90,70,.06), transparent 62%),
    #ffffff;
}
a { color: var(--teal-text); }
a:hover { color: #0c8065; }

.scroll-progress { background: linear-gradient(90deg, #0f8f6e, var(--mint), #7defc9); }

.topbar { background: var(--emerald-d); border-bottom-color: rgba(255,255,255,.08); color: #b9d6cb; }
.topbar a { color: var(--mint); }

.nav-links a::after { background: var(--mint-deep); }

.btn-primary { background: var(--mint-deep); color: #fff; box-shadow: 0 10px 24px rgba(18,185,139,.30); }
.btn-primary:hover { background: #0fa87d; color: #fff; box-shadow: 0 14px 30px rgba(18,185,139,.38); }
.btn-ghost:hover { border-color: var(--mint-deep); color: var(--teal-text); }

.eyebrow { color: var(--teal-text); background: var(--mint-050); }
.hero::before {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(37,217,169,.12), transparent 60%),
    radial-gradient(760px 420px at 4% 110%, rgba(18,90,70,.10), transparent 60%);
}
.hero h1 span { color: var(--mint-deep); }

.ticker-item b { color: var(--teal-text); }

.offer .more { color: var(--teal-text); }
.card .ico, .dl-card .ico { background: var(--mint-050); color: var(--teal-text); }
.card:hover, .offer:hover, .step:hover, .post:hover, .dl-card:hover { border-color: rgba(18,185,139,.35); }
.step .num { background: var(--emerald-d); color: #fff; }

.tab-btn:hover { border-color: var(--mint-deep); color: var(--teal-text); }
.tab-btn.on { background: var(--emerald-d); color: #fff; border-color: var(--emerald-d); }

.split li::before, .tab-copy li::before {
  background-color: var(--mint-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2312b98b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.stat b { color: var(--mint-deep); }

.quote .av { background: var(--mint-050); color: var(--teal-text); }
.car-dot.on { background: var(--mint-deep); transform: scale(1.25); }
.car-arrow:hover { border-color: var(--mint-deep); color: var(--teal-text); }

.cta { background: linear-gradient(135deg, #0d2b22 0%, #11493a 58%, #178a68 130%); }
.cta::after { background: radial-gradient(520px 260px at 85% 20%, rgba(122,239,201,.16), transparent 60%); }

/* Score card — dark emerald glass (EQIFI moment) */
.score-card {
  background: linear-gradient(135deg, #10201c 0%, #153029 55%, #0f3f31 100%);
  border-color: rgba(37,217,169,.28);
  box-shadow: 0 34px 80px rgba(10,30,24,.35);
}
.score-card::after { background: radial-gradient(320px 160px at 80% 0%, rgba(37,217,169,.14), transparent 65%); }
.sc-brand { color: #fff; }
.sc-brand span { color: var(--mint); }
.sc-chip { background: linear-gradient(135deg, var(--mint), #0f8f6e); }
.sc-score { color: #fff; }
.sc-score small { color: #8fa39b; }
.sc-meter { background: rgba(255,255,255,.09); }
.sc-meter i { background: linear-gradient(90deg, #0f8f6e, var(--mint)); }
.sc-row, .sc-foot small { color: #8fa39b; }
.sc-foot b { color: #fff; }

.post .thumb { background: linear-gradient(135deg, var(--mint-050), #cdeee0); }
.post .thumb b { color: var(--teal-text); opacity: .7; }
.tag { color: var(--teal-text); }

.faq summary::after { color: var(--mint-deep); }

.newsletter button { background: var(--mint); color: #06231b; }
.footer { background: var(--emerald-d); border-top: 1px solid rgba(255,255,255,.08); }
.footer a:hover { color: var(--mint); }

/* header stays white; app mockups stay exactly like the real app */

/* Offer tiles — uniform solid green, 6px corners (override the multi-colour version) */
.offer {
  background: #0e7d5f; border: 0; border-radius: 6px; color: #fff;
}
.offer::before { display: none; }
.offer:hover { background: #0c6d53; box-shadow: 0 16px 40px rgba(12,80,60,.35); border: 0; }
.offer h3 { color: #fff; }
.offer p { color: rgba(255,255,255,.85); }
.offer .ico {
  background: rgba(255,255,255,.16); color: #fff;
  box-shadow: none; border-radius: 6px;
}
.offer .more { color: #fff; }

/* Keyboard key + live-map shot */
.kbd {
  display: inline-block; font-family: var(--mono); font-size: .78em; font-weight: 700;
  color: var(--ink); background: #fff; border: 1px solid #d0d7de; border-bottom-width: 3px;
  border-radius: 6px; padding: 2px 9px; margin: 0 2px; vertical-align: 2px;
}
.map-shot { position: relative; padding: 0; background: #dfe3ea; }
.map-shot img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.map-badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.92); color: #b3261e; font-size: .76rem; font-weight: 700;
  padding: 6px 11px; border-radius: 6px; box-shadow: var(--shadow-sm);
}
.map-badge i { width: 7px; height: 7px; border-radius: 50%; background: #e5534b; animation: livePulse 1.8s infinite; }

/* ---------- Account page (Sign in / Sign up) ---------- */
.auth-wrap { min-height: 60vh; display: grid; place-items: center; padding: 72px 24px; }
.auth-card {
  width: min(440px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 34px; box-shadow: var(--shadow-sm);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 26px; background: var(--bg-soft); border-radius: 6px; padding: 4px; }
.auth-tab {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 5px; font-weight: 700;
  font-size: .93rem; color: var(--body); cursor: pointer; border: 0; background: transparent; font-family: var(--font);
}
.auth-tab.on { background: var(--emerald-d); color: #fff; }
.auth-form { display: none; }
.auth-form.on { display: block; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(18,185,139,.15); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 16px 0 0; }
.trial-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  color: var(--teal-text); background: var(--mint-050); border-radius: 6px; padding: 7px 12px; margin-bottom: 18px;
}
.auth-msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 6px; font-size: .88rem; font-weight: 600; }
.auth-msg.err { display: block; background: #fdecea; color: #b3261e; }
.auth-msg.ok  { display: block; background: var(--mint-050); color: var(--teal-text); }
.btn[disabled] { opacity: .6; pointer-events: none; }
/* glue the i+B in the "hiBar" wordmark rendered as text (score card) */
.sc-brand span { margin-left: -0.085em; }

/* ============================================================
   Dashboard v2 — modern, site-styled member area (d2-*)
   ============================================================ */
body.d2-body { background: #f6f8f9; overflow-x: hidden; }
@supports (overflow-x: clip) { body.d2-body { overflow-x: clip; } }
.d2-body img { max-width: 100%; }

.d2-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
}
.d2-header .d2-bar {
  max-width: 1200px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 18px;
}
.d2-header .brand { flex: none; }
.d2-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.d2-search { position: relative; }
.d2-search input {
  width: 240px; max-width: 46vw; padding: 9px 14px 9px 34px; font: inherit; font-size: .9rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8397' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") 11px center no-repeat;
  transition: border-color .15s, box-shadow .15s;
}
.d2-search input:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 3px var(--mint-050); }

.d2-ico {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; color: #3a4453; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.d2-ico:hover { background: var(--bg-soft); color: var(--ink); }
.d2-ico.active { border-color: var(--mint-deep); color: var(--teal-text); background: var(--mint-050); }
.d2-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  background: #e5484d; color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 800;
  display: none; place-items: center; line-height: 18px; text-align: center; border: 2px solid #fff;
}
.d2-badge.show { display: grid; }

.d2-ava {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--mint-050); color: var(--teal-text); font-weight: 800; font-size: .9rem;
  display: grid; place-items: center; border: 1.5px solid var(--line); text-decoration: none;
}
.d2-ava img { width: 100%; height: 100%; object-fit: cover; }

/* dropdown panels (notifications / search results / avatar menu) */
.d2-drop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: 92vw;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(15,40,32,.16);
  overflow: hidden; display: none; z-index: 70;
}
.d2-drop.show { display: block; animation: tabIn .18s ease; }
.d2-drop .d2-drop-h { padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.d2-drop .d2-drop-h a { font-size: .78rem; font-weight: 600; color: var(--teal-text); }
.d2-drop-body { max-height: 60vh; overflow-y: auto; }
.d2-search .d2-drop { width: 320px; }
.d2-menu { position: absolute; right: 22px; top: 62px; width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(15,40,32,.16); padding: 6px; display: none; z-index: 70; }
.d2-menu.show { display: block; animation: tabIn .18s ease; }
.d2-menu a, .d2-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); border-radius: 8px; cursor: pointer; }
.d2-menu a:hover, .d2-menu button:hover { background: var(--bg-soft); }
.d2-menu .sep { height: 1px; background: var(--line); margin: 5px 0; }
.d2-menu #d2SignOut { color: #b3261e; }

/* shell */
.d2-shell { max-width: 1200px; margin: 0 auto; padding: 26px 22px 80px; display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 26px; align-items: start; }

.d2-side { position: sticky; top: 84px; min-width: 0; }
.d2-me { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.d2-me .d2-ava { width: 46px; height: 46px; cursor: default; }
.d2-me .who { min-width: 0; }
.d2-me .who b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d2-me .who small { color: var(--muted); font-size: .78rem; }

.d2-nav { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.d2-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 13px; border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 600;
  color: #46505f; border-radius: 10px; cursor: pointer; transition: background .14s, color .14s;
}
.d2-nav button svg { width: 18px; height: 18px; flex: none; }
.d2-nav button:hover { background: var(--bg-soft); color: var(--ink); }
.d2-nav button.on { background: #0e2e25; color: #fff; }

.d2-main { min-width: 0; }
.d2-pane { display: none; }
.d2-pane.on { display: block; animation: tabIn .28s ease; }
.d2-h { font-size: 1.35rem; letter-spacing: -.01em; margin: 2px 0 4px; }
.d2-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

.d2-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; overflow: hidden; }
.d2-card > h3 { font-size: 1.02rem; margin-bottom: 14px; }
.d2-empty { color: var(--muted); font-size: .9rem; padding: 18px 0; text-align: center; }
.d2-msg { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.d2-msg.ok { display: block; background: var(--mint-050); color: var(--teal-text); }
.d2-msg.err { display: block; background: #fdecea; color: #b3261e; }

/* name line: name + verified + score chip */
.name-line { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.name-line .nm { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcheck { flex: none; width: 15px; height: 15px; }
.score-chip { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 800; font-family: var(--mono); color: var(--teal-text); background: var(--mint-050); border-radius: 999px; padding: 2px 8px; }

/* Discover feed */
.d2-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.d2-pub { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; transition: transform .14s, box-shadow .14s, border-color .14s; }
.d2-pub:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,40,32,.10); border-color: #cfe6dc; }
.d2-pub .pub-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.d2-pub .pub-top .d2-ava { width: 34px; height: 34px; border-radius: 9px; font-size: .78rem; cursor: pointer; }
.d2-pub .pub-title { font-size: 1.08rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.d2-pub .pub-meta { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.d2-pub .pub-bars { display: flex; gap: 4px; margin: 14px 0 4px; }
.d2-pub .pub-bars i { height: 6px; border-radius: 3px; flex: 1; display: block; }
.d2-pub .pub-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.d2-chiplet { font-size: .72rem; font-weight: 700; color: #46607a; background: #eef2f6; border-radius: 999px; padding: 3px 9px; }

/* profile pane — mirrors the app's Profile modal */
.pid-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pid-meta { min-width: 0; }
.pid-meta .name-line .nm { font-size: 1.25rem; }
.pid-prof { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.pid-chips { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.pid-loc { font-size: .78rem; color: var(--muted); }
.p-sec { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b7688; margin: 26px 0 12px; }
.p-hint { font-size: .8rem; color: var(--muted); margin: -4px 0 10px; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px,100%), 1fr)); gap: 7px; }
.core-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; text-align: left;
  transition: background .13s, border-color .13s;
}
.core-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.core-chip.on { background: color-mix(in srgb, var(--cc, #12b98b) 10%, #fff); border-color: color-mix(in srgb, var(--cc, #12b98b) 50%, #fff); }

/* discover activity feed (like the app) */
.feed-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-row.clk { cursor: pointer; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.feed-row.clk:hover { background: var(--bg-soft); }
.feed-row .fico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; font-weight: 700; }
.feed-row .fico.ok { background: #e3f6ea; color: #1e9e57; }
.feed-row .fico.warn { background: #fdeedd; color: #e08a2e; }
.feed-row .fico.ver { background: #e3f0f6; color: #2e7fa8; }
.feed-row .ftext { flex: 1; min-width: 0; font-size: .93rem; color: var(--body); }
.feed-row .ftext b { color: var(--ink); }
.feed-row time { flex: none; font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* people rows */
.d2-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.d2-row:last-child { border-bottom: 0; }
.d2-row .d2-ava { width: 42px; height: 42px; }
.d2-row .rr { min-width: 0; flex: 1; }
.d2-row .rr .sub { color: var(--muted); font-size: .84rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d2-row .btn { flex: none; padding: 8px 16px; font-size: .84rem; }
.d2-row.clk { cursor: pointer; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.d2-row.clk:hover { background: var(--bg-soft); }

/* notifications list (in dropdown) */
.d2-note { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: default; }
.d2-note:last-child { border-bottom: 0; }
.d2-note.unread { background: #f4fbf8; }
.d2-note.clk { cursor: pointer; }
.d2-note.clk:hover { background: var(--bg-soft); }
.d2-note .ni { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--mint-050); color: var(--teal-text); display: grid; place-items: center; font-size: .9rem; }
.d2-note b { color: var(--ink); font-size: .88rem; }
.d2-note p { margin: 2px 0 0; font-size: .84rem; color: var(--body); }
.d2-note time { margin-left: auto; font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* score pills */
.d2-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 12px; }
.d2-pill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.d2-pill b { display: block; font-size: 1.5rem; color: var(--teal-text); font-family: var(--mono); line-height: 1; }
.d2-pill span { display: block; font-size: .76rem; color: var(--muted); margin-top: 6px; }

/* node/publication list rows */
.n-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.n-row:last-child { border-bottom: 0; }
.n-row .bar { width: 44px; height: 7px; border-radius: 4px; flex: none; }
.n-row .nn { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; font-size: .92rem; }
.n-row .nn small { color: var(--muted); font-weight: 500; }
.n-row .nsc { flex: none; min-width: 40px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: .82rem; color: var(--teal-text); background: var(--mint-050); border-radius: 8px; padding: 5px 8px; }

/* Chat */
.d2-chat { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 300px minmax(0,1fr); height: 560px; }
.d2-convos { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.d2-convo { display: flex; gap: 11px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.d2-convo:hover { background: var(--bg-soft); }
.d2-convo.on { background: var(--mint-050); }
.d2-convo .d2-ava { width: 40px; height: 40px; }
.d2-convo .cc { min-width: 0; flex: 1; }
.d2-convo .cc .snip { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.d2-convo.unread .cc .snip { color: var(--ink); font-weight: 600; }
.d2-convo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-deep); flex: none; }
.d2-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.d2-thread-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.d2-thread-h .d2-ava { width: 34px; height: 34px; cursor: pointer; }
.d2-bubbles { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fbfdfc; }
.bubble { max-width: 74%; padding: 9px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.4; word-wrap: break-word; }
.bubble.them { align-self: flex-start; background: #eef2f5; color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--mint-deep); color: #fff; border-bottom-right-radius: 5px; }
.bubble time { display: block; font-size: .66rem; opacity: .7; margin-top: 3px; }
/* typing indicator — three dots pulsing in turn */
.typing-bubble { align-self: flex-start; background: #eef2f5; border-radius: 14px; border-bottom-left-radius: 5px; padding: 12px 15px; display: inline-flex; gap: 5px; align-items: center; }
.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: #9aa4b3; display: block; animation: typDot 1.2s infinite ease-in-out; }
.typing-bubble i:nth-child(2) { animation-delay: .2s; }
.typing-bubble i:nth-child(3) { animation-delay: .4s; }
@keyframes typDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
/* read receipt under my last seen message */
.seen-mark { align-self: flex-end; font-size: .68rem; color: var(--muted); margin: -4px 4px 0 0; }
.d2-composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.d2-composer input { flex: 1; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; }
.d2-composer input:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 3px var(--mint-050); }
.d2-composer button { flex: none; }
.d2-chat-empty { display: grid; place-items: center; color: var(--muted); font-size: .92rem; text-align: center; padding: 30px; }
.th-back { display: none; width: 34px; height: 34px; flex: none; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; margin-left: -6px; }

/* like on a message bubble */
.bubble { position: relative; }
.bubble .blike {
  position: absolute; bottom: -9px; right: 8px; width: 18px; height: 18px;
  background: var(--mint-deep); color: #fff; border-radius: 50%; border: 2px solid #fff;
  display: grid; place-items: center; font-size: .6rem; line-height: 1; animation: likePop .25s ease;
}
.bubble.me .blike { right: auto; left: 8px; }
@keyframes likePop { from { transform: scale(.3); } to { transform: scale(1); } }

/* project badges (My projects) */
.pj-badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-left: 7px; vertical-align: 1px; }
.pj-badge.b-pub { background: #e3f6ea; color: #1e9e57; }
.pj-badge.b-priv { background: #eef0f4; color: #66707f; }
.pj-badge.b-shared { background: #e3f0f6; color: #2e7fa8; }

/* pane-switcher pill (phone) */
.d2-navcur { display: none; }
.d2-navwrap { position: relative; }

/* phone: an open chat takes over the screen — only the conversation scrolls,
   the composer stays pinned at the bottom */
@media (max-width: 900px) {
  body.chat-open { overflow: hidden; height: 100dvh; }
  body.chat-open .d2-chat {
    position: fixed; inset: 0; z-index: 90; height: 100dvh; background: #fff;
    border: 0; border-radius: 0; grid-template-columns: minmax(0,1fr);
  }
  body.chat-open .d2-convos { display: none; }
  body.chat-open .d2-thread { height: 100%; }
  body.chat-open .th-back { display: grid; }
  body.chat-open .d2-thread-h { padding-top: max(14px, env(safe-area-inset-top)); }
  body.chat-open .d2-composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  /* 16px stops iOS from auto-zooming into the input */
  .d2-composer input { font-size: 16px; }
}

/* profile edit form */
.d2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d2-form .field { display: flex; flex-direction: column; gap: 6px; }
.d2-form .field.full { grid-column: 1 / -1; }
.d2-form label { font-size: .82rem; font-weight: 600; color: #46505f; }
.d2-form input, .d2-form textarea { padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; }
.d2-form input:focus, .d2-form textarea:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 3px var(--mint-050); }
.d2-form textarea { min-height: 80px; resize: vertical; }
.d2-form label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 500; color: var(--body); cursor: pointer; }
.d2-form label.check input { width: auto; }

/* modal name line adjustments */
.modal-head .name-line .nm { font-size: 1.15rem; }

/* responsive */
@media (max-width: 900px) {
  .d2-shell { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 18px 14px 70px; }
  .d2-side { position: static; }
  .d2-me { display: none; }
  /* phone: the nav is a dark pill that opens a dropdown list of panes */
  .d2-navcur {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 15px 18px; font: inherit; font-size: 1rem; font-weight: 700; color: #fff;
    background: #0e2e25; border: 0; border-radius: 14px; cursor: pointer;
  }
  .d2-navwrap.open .d2-navcur svg { transform: rotate(180deg); }
  .d2-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 75;
    box-shadow: 0 18px 50px rgba(15,40,32,.18);
  }
  .d2-navwrap.open .d2-nav { display: flex; flex-direction: column; animation: tabIn .18s ease; }
  /* phone: Messages = just the conversation list; the thread appears only full-screen */
  .d2-chat { grid-template-columns: minmax(0,1fr); height: auto; border: 0; background: none; }
  .d2-convos { max-height: none; border-right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
  .d2-thread { display: none; }
  body.chat-open .d2-thread { display: flex; }
  .d2-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .d2-header .d2-bar { padding: 10px 14px; gap: 10px; }
  .d2-search input { width: 40px; padding-right: 12px; }
  .d2-search input:focus { width: 200px; }
  .d2-search.expand .d2-drop { position: fixed; left: 12px; right: 12px; top: 66px; width: auto; }
  .d2-drop { position: fixed; left: 12px; right: 12px; top: 66px; width: auto; }
  .d2-menu { right: 12px; top: 60px; }
  .d2-feed { grid-template-columns: 1fr; }
  .d2-h { font-size: 1.2rem; }
  .d2-row.clk { margin: 0; padding-left: 0; padding-right: 0; }
}
