/* === Deelva — shared marketing CSS ================================
   Powers the audience one-pagers (investors / agents / brokerages) and the
   pricing page. Tokens + nav + footer + buttons match index.html 1:1 so the
   marketing surfaces read as one site. index.html keeps its own inline copy;
   this file is only loaded by the new standalone pages. */

:root {
  --w-bg: #faf7f1;
  --w-bg-soft: #f5efe1;
  --w-bg-card: #ffffff;
  --w-text: #0F1F2C;
  --w-text-2: rgba(26, 33, 40, 0.62);
  --w-text-3: rgba(26, 33, 40, 0.64);
  --w-accent: #2E5A38;
  --w-accent-hover: #244530;
  --w-accent-bg: rgba(47, 90, 63, 0.06);
  --w-separator: rgba(26, 33, 40, 0.10);
  --w-separator-2: rgba(26, 33, 40, 0.06);
  --w-sage: #A5B5A3;
  --w-font-sans: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --w-font-display: "Satoshi", "Inter", -apple-system, sans-serif;
  --w-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--w-font-sans);
  background: var(--w-bg);
  color: var(--w-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--w-accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* === Top nav === */
.w-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--w-separator-2);
}
.w-brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--w-text); }
.w-brand-logo { flex-shrink: 0; width: 52px; height: 52px; }
.w-brand-text { display: flex; flex-direction: column; gap: 2px; margin-top: -2px; }
.w-brand-name { font-family: var(--w-font-display); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: 0.10em; text-transform: uppercase; color: var(--w-text); }
.w-brand-name .iq { color: var(--w-accent); }
/* deelva wordmark — inline SVG (lowercase letters + forest gable over the ee)
   that replaces the old wordmark text. Height scales with the lockup
   font-size; currentColor = letters, gable falls back to #2E5A38. Reset the
   uppercase tracking the brand-name spans set for the old caps wordmark. */
.deelva-word {
  height: 1.8em;
  width: auto;
  display: block;
  text-transform: none;
  letter-spacing: normal;
  overflow: visible;
}
.w-brand-tagline { font-family: var(--w-font-display); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.04em; color: var(--w-text-2); }
.w-nav-right { display: inline-flex; align-items: center; gap: 22px; }
.w-nav-link { font-size: 14px; font-weight: 600; color: var(--w-text-2); transition: color 0.15s var(--w-ease); }
.w-nav-link:hover { color: var(--w-text); }
.w-cta-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--w-accent); color: #faf7f1;
  font-weight: 600; letter-spacing: -0.005em;
  border-radius: 980px; height: 38px; padding: 0 18px; font-size: 14px;
  transition: background 0.18s var(--w-ease), transform 0.18s var(--w-ease);
}
.w-cta-pill:hover { background: var(--w-accent-hover); transform: translateY(-1px); }
/* Back-to-Deelva button (landing + pricing pages; returns to the page you came from) */
.w-back-link {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  height: 40px; padding: 0 17px 0 13px;
  border-radius: 980px;
  background: rgba(15, 31, 44, 0.05);
  color: var(--w-text);
  font-family: var(--w-font-display);
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; line-height: 1;
  transition: background 0.18s var(--w-ease), transform 0.18s var(--w-ease);
}
.w-back-link:hover { background: rgba(15, 31, 44, 0.09); }
.w-back-link:active { transform: translateY(1px); }
.w-back-link:focus-visible { outline: 2px solid var(--w-accent); outline-offset: 2px; }
.w-back-link svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.18s var(--w-ease); }
.w-back-link:hover svg { transform: translateX(-2px); }
@media (max-width: 560px) {
  .w-topbar { padding: 12px 18px; }
  .w-brand-logo { width: 40px; height: 40px; }
  .w-brand-name { font-size: 18px; }
  .w-brand-tagline { font-size: 10.5px; }
  .w-nav-right { gap: 14px; }
  .w-cta-pill { height: 34px; padding: 0 14px; font-size: 12.5px; }
  .w-back-link { height: 36px; font-size: 13px; padding: 0 14px 0 11px; gap: 7px; }
  .w-back-link svg { width: 16px; height: 16px; }
}
@media (max-width: 420px) {
  .w-brand-tagline { display: none; }
  .w-brand-name { font-size: 16px; letter-spacing: 0.08em; }
  .w-nav-link { display: none; }
  .w-back-full { display: none; }
}

/* === Layout === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* === Buttons === */
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  background: var(--w-accent); color: #faf7f1;
  border-radius: 980px; font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  box-shadow: 0 8px 24px -10px rgba(47, 90, 63, 0.55);
  transition: background 0.18s var(--w-ease), transform 0.18s var(--w-ease), box-shadow 0.18s var(--w-ease);
}
.cta-primary:hover { background: var(--w-accent-hover); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(47, 90, 63, 0.65); }
.cta-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  background: transparent; color: var(--w-accent);
  border: 1.5px solid var(--w-accent); border-radius: 980px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  transition: background 0.15s var(--w-ease), color 0.15s var(--w-ease);
}
.cta-outline:hover { background: var(--w-accent); color: #faf7f1; }
.cta-quiet {
  font-size: 15px; font-weight: 500; color: var(--w-accent); letter-spacing: -0.005em;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: color 0.15s var(--w-ease), border-color 0.15s var(--w-ease);
}
.cta-quiet:hover { color: var(--w-accent-hover); border-bottom-color: var(--w-accent); }

/* === Page hero (audience + pricing) === */
.m-hero { padding: clamp(56px, 9vw, 100px) 0 clamp(36px, 6vw, 64px); text-align: center; }
.m-eyebrow { font-family: var(--w-font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-accent); margin-bottom: 16px; }
.m-h1 { font-family: var(--w-font-display); font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; color: var(--w-text); max-width: 16ch; margin: 0 auto; }
.m-h1 em { font-style: italic; color: var(--w-accent); font-weight: 500; }
/* Round 126: drop the 16ch cap for headlines meant to sit on one line on
   desktop (e.g. the brokerages hero). Wraps naturally on narrow screens. */
.m-h1-1line { max-width: none; }
.m-sub { margin: 20px auto 0; font-size: clamp(16px, 1.7vw, 19px); color: var(--w-text-2); max-width: 54ch; line-height: 1.55; text-wrap: balance; }
/* Round 125: the pricing sub stays on one line on desktop (drops the ch cap;
   nowrap once there is room). Wraps naturally below 980px. */
.m-sub-wide { max-width: none; }
@media (min-width: 980px) { .m-sub-wide { white-space: nowrap; } }
.m-hero-actions { margin-top: 30px; display: flex; gap: 14px 20px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* === Inline term tooltips (Round 126) — define jargon for first-timers === */
.m-term { position: relative; border-bottom: 1px dashed var(--w-text-3); cursor: help; }
.m-term:focus { outline: none; }
.m-term:focus-visible { outline: 2px solid var(--w-accent); outline-offset: 3px; border-radius: 2px; }
.m-tip {
  position: absolute; left: 50%; bottom: calc(100% + 11px);
  transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: min(280px, 76vw);
  background: var(--w-text); color: #faf7f1;
  font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: 0;
  text-transform: none; text-align: left; white-space: normal;
  padding: 10px 13px; border-radius: 11px;
  box-shadow: 0 16px 38px -14px rgba(15, 31, 44, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.16s var(--w-ease), transform 0.16s var(--w-ease);
  z-index: 60;
}
.m-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--w-text);
}
.m-term:hover .m-tip, .m-term:focus .m-tip, .m-term:focus-within .m-tip {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
/* On narrow screens a tooltip centered on the word would clip at the viewport
   edge for terms near a card edge. Pin it to the bottom-center of the screen
   instead (a standard mobile pattern) so it can never clip. */
@media (max-width: 699px) {
  .m-tip {
    position: fixed; left: 50%; right: auto; bottom: 18px; top: auto;
    width: max-content; max-width: min(360px, 90vw);
    transform: translateX(-50%) translateY(8px);
    font-size: 13.5px;
  }
  .m-tip::after { display: none; }
  .m-term:hover .m-tip, .m-term:focus .m-tip, .m-term:focus-within .m-tip {
    transform: translateX(-50%) translateY(0);
  }
}

/* === Feature trio === */
.m-section-head { text-align: center; max-width: 40ch; margin: 0 auto clamp(28px, 4vw, 44px); }
.m-section-head h2 { font-family: var(--w-font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.m-section-head h2 em { font-style: normal; color: var(--w-accent); font-weight: 500; }
.m-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .m-features { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
/* Round 127: icon sits next to the header (row 1); body spans full width (row 2). */
.m-feature { background: var(--w-bg-card); border: 1px solid var(--w-separator); border-radius: 16px; padding: 28px 26px; display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-items: center; }
.m-feature-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--w-accent-bg); color: var(--w-accent); display: grid; place-items: center; }
.m-feature h3 { font-family: var(--w-font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.m-feature p { font-size: 14.5px; color: var(--w-text-2); line-height: 1.55; grid-column: 1 / -1; margin-top: 14px; }

/* === Billing toggle ===
   The switch is centered; the "save" nudge floats to the right of it on
   desktop (absolute, so it never pulls the switch off-center) and drops below
   it on mobile. */
.m-billing { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 28px; }
.m-billing-switch { display: inline-flex; background: var(--w-bg-card); border: 1px solid var(--w-separator); border-radius: 980px; padding: 4px; gap: 2px; }
.m-billing-switch button { padding: 8px 20px; border-radius: 980px; font-size: 14px; font-weight: 600; color: var(--w-text-2); transition: background 0.18s var(--w-ease), color 0.18s var(--w-ease); }
.m-billing-switch button.is-active { background: var(--w-accent); color: #faf7f1; }
.m-billing-save { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--w-accent); }
@media (min-width: 700px) {
  .m-billing-save { position: absolute; left: 50%; top: 50%; transform: translate(112px, -50%); white-space: nowrap; }
}

/* === Pricing plans === */
.m-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 920px) { .m-plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.m-plans.m-plans-single { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.m-plan {
  background: var(--w-bg-card); border: 1px solid var(--w-separator);
  border-radius: 18px; padding: 30px 26px 28px;
  display: flex; flex-direction: column;
}
.m-plan.is-featured { border-color: var(--w-accent); box-shadow: 0 16px 44px -20px rgba(47, 90, 63, 0.45); }
.m-plan-badge { align-self: flex-start; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--w-accent); background: var(--w-accent-bg); padding: 4px 10px; border-radius: 980px; }
.m-plan-name { font-family: var(--w-font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-text-2); }
.m-plan-price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.m-plan-price .amt { font-family: var(--w-font-display); font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--w-text); }
.m-plan-price .per { font-size: 15px; font-weight: 500; color: var(--w-text-2); }
/* Monthly equivalent shown next to the quarterly/annual price (R138). */
.m-price-mo { font-size: 14px; font-weight: 600; color: var(--w-accent); white-space: nowrap; }
.m-plan-save { min-height: 18px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--w-accent); }
.m-plan-save:empty { display: none; }
.m-plan-seats { margin-top: 6px; font-size: 13px; color: var(--w-text-3); }
.m-plan-desc { font-size: 14px; color: var(--w-text-2); line-height: 1.5; margin: 16px 0 18px; }
.m-plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; flex: 1; }
.m-plan-features li { font-size: 14px; color: var(--w-text); line-height: 1.45; padding-left: 26px; position: relative; }
.m-plan-features li::before {
  content: ""; position: absolute; left: 2px; top: 4px;
  width: 14px; height: 14px;
  background: var(--w-accent-bg);
  border-radius: 50%;
}
.m-plan-features li::after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 4px; height: 7px;
  border: solid var(--w-accent); border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.m-plan .cta-primary, .m-plan .cta-outline { width: 100%; height: 46px; font-size: 15px; }
.m-plan-foot { margin-top: 12px; font-size: 12.5px; color: var(--w-text-3); text-align: center; line-height: 1.5; }
.m-plan-foot a { color: var(--w-accent); font-weight: 600; }

/* tighten section spacing on standalone pages */
.m-section { padding: clamp(48px, 7vw, 80px) 0; }
.m-section-soft { background: rgba(245, 239, 225, 0.5); }
.m-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--w-text-3); line-height: 1.6; }
.m-note a { color: var(--w-accent); font-weight: 600; }

/* === Footer (matches index.html) === */
.foot { border-top: 1px solid var(--w-separator-2); padding: 56px 0 40px; background: rgba(245, 239, 225, 0.5); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; }
  .foot-brand-logo { width: 36px !important; height: 36px !important; }
  .foot-brand-name { font-size: 16px !important; }
  .foot-brand-tagline { font-size: 11px !important; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: auto minmax(0, 1fr); gap: 24px 22px; justify-content: start; }
  .foot-grid .foot-col:first-child { display: none; }
  .foot-grid .foot-col:last-child a { white-space: nowrap; }
}
.foot-brand-block { display: inline-flex; align-items: center; gap: 14px; }
.foot-brand-logo { flex-shrink: 0; }
.foot-brand-text { display: flex; flex-direction: column; gap: 2px; }
.foot-brand-name { font-family: var(--w-font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 0.10em; text-transform: uppercase; color: var(--w-text); }
.foot-brand-name .iq { color: var(--w-accent); }
.foot-brand-tagline { font-family: var(--w-font-display); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.04em; color: var(--w-text-2); }
.foot-h { font-family: var(--w-font-sans); font-size: 12px; font-weight: 700; color: var(--w-text-2); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col p { font-size: 13px; color: var(--w-text-3); line-height: 1.7; }
.foot-col a { color: var(--w-text-3); transition: color 0.15s var(--w-ease); }
.foot-col a:hover { color: var(--w-text); }
.foot-disclaimer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--w-separator-2); font-size: 12px; color: var(--w-text-3); line-height: 1.65; }

/* === Shared modals (How it works + About) — injected by marketing-modals.js.
   Class names + styles match index.html 1:1 so the modals read identically
   across the site. === */
.w-demo-backdrop { position: fixed; inset: 0; background: rgba(26, 33, 40, 0.42); -webkit-backdrop-filter: saturate(140%) blur(6px); backdrop-filter: saturate(140%) blur(6px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.18s var(--w-ease); }
.w-demo-backdrop.w-demo-open { opacity: 1; pointer-events: auto; }
.w-demo-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 32px 20px; z-index: 101; opacity: 0; pointer-events: none; transition: opacity 0.18s var(--w-ease); }
.w-demo-modal.w-demo-open { opacity: 1; pointer-events: auto; }
.w-demo-card { position: relative; background: var(--w-bg-card); border-radius: 20px; box-shadow: 0 24px 64px rgba(15, 31, 44, 0.22); width: min(520px, 100%); padding: 36px 36px 32px; max-height: calc(100dvh - 56px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.w-howitworks-card { width: min(480px, 100%); }
.w-howitworks-card .w-demo-h2 { font-size: 24px; margin: 0 0 10px; }
.w-demo-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: inline-grid; place-items: center; background: var(--w-bg-soft); border-radius: 50%; color: var(--w-text-2); transition: background 0.15s var(--w-ease), color 0.15s var(--w-ease); }
.w-demo-close:hover { background: var(--w-separator); color: var(--w-text); }
.w-demo-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.w-demo-brand-text { display: flex; flex-direction: column; gap: 2px; }
.w-demo-brand-name { font-family: var(--w-font-display); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: 0.10em; text-transform: uppercase; color: var(--w-text); }
.w-demo-brand-name .iq { color: var(--w-accent); }
.w-demo-brand-tagline { font-family: var(--w-font-display); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.04em; color: var(--w-text-2); }
/* deelva handoff — hybrid lockup: the marketing header, footer, and demo lockups
   are all compact chrome, so the tagline is dropped (it stays in titles + meta).
   The full tagline lives on the larger welcome lockup in the app. */
.w-brand-tagline,
.foot-brand-tagline,
.w-demo-brand-tagline { display: none; }
.w-demo-h2 { font-family: var(--w-font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--w-text); margin: 0 0 14px; }
.w-demo-h2 em { font-style: normal; color: var(--w-accent); font-weight: 500; }
.w-demo-sub { font-size: 14px; line-height: 1.55; color: var(--w-text-2); margin: 0 0 18px; }
.w-demo-body p { font-size: 15px; line-height: 1.6; color: var(--w-text-2); margin: 0 0 14px; }
.w-demo-body p:last-child { margin: 0; }
.w-demo-body strong { color: var(--w-text); font-weight: 600; }
.w-howitworks-steps { list-style: none; padding: 0; margin: 0; counter-reset: w-howitworks-step; }
.w-howitworks-steps li { position: relative; padding: 14px 0 14px 44px; font-size: 14.5px; line-height: 1.55; color: var(--w-text-2); border-bottom: 1px solid var(--w-separator-2); counter-increment: w-howitworks-step; }
.w-howitworks-steps li:last-child { border-bottom: 0; padding-bottom: 4px; }
.w-howitworks-steps li::before { content: counter(w-howitworks-step); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--w-accent-bg); color: var(--w-accent); font-family: var(--w-font-display); font-weight: 700; font-size: 13px; }
.w-howitworks-steps strong { color: var(--w-text); font-weight: 600; }
.w-demo-cta-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 24px; height: 48px; padding: 0 24px; background: var(--w-accent); color: #faf7f1; border-radius: 980px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; box-shadow: 0 8px 24px -10px rgba(47, 90, 63, 0.55); transition: background 0.15s var(--w-ease), transform 0.08s var(--w-ease); }
.w-demo-cta-link:hover { background: var(--w-accent-hover); transform: translateY(-1px); }
.w-howitworks-actions { margin-top: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.w-howitworks-actions .w-demo-cta-link { width: auto; margin-top: 0; height: 38px; padding: 0 22px; font-size: 14px; }
.w-howitworks-secondary { display: inline-flex; align-items: center; height: 38px; padding: 0 8px; font-size: 13.5px; font-weight: 500; color: var(--w-text-2); letter-spacing: -0.005em; }
.w-howitworks-secondary:hover { color: var(--w-accent); }
@media (max-width: 480px) {
  .w-howitworks-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .w-howitworks-actions .w-demo-cta-link,
  .w-howitworks-secondary { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
