/* Hexyl marketing v2 (2026-09-06) - shared design system for the relaunched
   marketing pages. Derived from the approved landing prototype. */

  .marketing-v2 {
    --ink: #081a16;
    --pine: #0c2b25;
    --pine-2: #10352d;
    --emerald: #087556;
    --emerald-deep: #065b43;
    --mint: #e7f4ee;
    --paper: #f7faf8;
    --card: #ffffff;
    --text: #12211d;
    --muted: #5d6f68;
    --amber: #f2b33d;
    --coral: #e4573d;
    --line: rgba(8, 26, 22, .1);
    --radius: 18px;
    --display: var(--font-heading);
    --body: var(--font-body);
  }
  .marketing-v2 * { box-sizing: border-box; }
  .marketing-v2 { scroll-behavior: smooth; }
  .marketing-v2 { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  @media (prefers-reduced-motion: reduce) { .marketing-v2 { scroll-behavior: auto; } .marketing-v2 *, .marketing-v2 *::before, .marketing-v2 *::after { animation: none !important; transition: none !important; } }

  .marketing-v2 .wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
  .marketing-v2 .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); }
  .marketing-v2 .eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: var(--emerald); }
  .marketing-v2 h1, .marketing-v2 h2, .marketing-v2 h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
  .marketing-v2 h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin: .6rem 0 .8rem; }
  .marketing-v2 .lede { color: var(--muted); font-size: 1.1rem; max-width: 58ch; text-wrap: pretty; margin: 0; }
  .marketing-v2 section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

  .marketing-v2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
  .marketing-v2 .btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
  .marketing-v2 .btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 12px 28px -12px rgba(16, 165, 123, .65); }
  .marketing-v2 .btn-primary:hover { transform: translateY(-2px); background: var(--emerald-deep); }
  .marketing-v2 .btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
  .marketing-v2 .btn-ghost-dark:hover { border-color: #fff; }
  .marketing-v2 .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(8, 26, 22, .25); }
  .marketing-v2 .btn-ghost:hover { border-color: var(--ink); }

  /* ---------- Hero ---------- */
  .marketing-v2 .hero { background: radial-gradient(60rem 34rem at 78% -20%, rgba(16, 165, 123, .28), transparent 55%), radial-gradient(40rem 30rem at -10% 110%, rgba(16, 165, 123, .12), transparent 55%), var(--pine); color: #fff; overflow: hidden; }
  .marketing-v2 .hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); padding-block: clamp(3rem, 7vw, 5.5rem); }
  .marketing-v2 .hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 800; color: #fff; }
  .marketing-v2 .hero h1 .accent { color: #6fe3bd; }
  .marketing-v2 .hero .sub { color: rgba(255, 255, 255, .78); font-size: 1.15rem; max-width: 52ch; margin: 1.25rem 0 1.9rem; text-wrap: pretty; }
  .marketing-v2 .hero-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 2.1rem 0 0; list-style: none; }
  .marketing-v2 .hero-chips li { display: flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .68); font-size: .9rem; }
  .marketing-v2 .hero-chips li::before { content: '\2713'; width: 1.15rem; height: 1.15rem; border-radius: 999px; display: grid; place-items: center; font-size: .68rem; font-weight: 800; background: rgba(111, 227, 189, .18); color: #6fe3bd; }

  /* ---------- Phone / bot demo ---------- */
  .marketing-v2 .phone-zone { display: grid; justify-items: center; }
  .marketing-v2 .phone { width: min(100%, 375px); background: #0d211c; border: 1px solid rgba(255, 255, 255, .14); border-radius: 34px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), inset 0 0 0 6px #071511; overflow: hidden; }
  .marketing-v2 .phone-top { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .marketing-v2 .avatar { width: 34px; height: 34px; border-radius: 999px; background: conic-gradient(from 210deg, var(--emerald), #6fe3bd, var(--emerald)); display: grid; place-items: center; color: var(--pine); font-weight: 800; font-size: .85rem; }
  .marketing-v2 .phone-top .who { line-height: 1.2; }
  .marketing-v2 .phone-top .who strong { display: block; color: #fff; font-size: .92rem; }
  .marketing-v2 .phone-top .who span { color: #6fe3bd; font-size: .74rem; display: inline-flex; align-items: center; gap: .35rem; }
  .marketing-v2 .live-dot { width: .5rem; height: .5rem; border-radius: 999px; background: #6fe3bd; animation: pulse 1.6s infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
  .marketing-v2 .phone-tabs { margin-left: auto; display: flex; gap: .3rem; }
  .marketing-v2 .phone-tabs button { border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(255, 255, 255, .6); font: inherit; font-size: .68rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; cursor: pointer; }
  .marketing-v2 .phone-tabs button.active { background: rgba(111, 227, 189, .16); color: #6fe3bd; border-color: transparent; }
  .marketing-v2 .chat { height: 430px; overflow: hidden; padding: 1rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
  .marketing-v2 .msg { max-width: 82%; padding: .6rem .85rem; border-radius: 16px; font-size: .88rem; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
  .marketing-v2 .msg.show { opacity: 1; transform: none; }
  .marketing-v2 .msg.bot { background: #16352d; color: #eafff6; border-bottom-left-radius: 5px; align-self: flex-start; }
  .marketing-v2 .msg.patient { background: #dff7ec; color: #0c2b25; border-bottom-right-radius: 5px; align-self: flex-end; }
  .marketing-v2 .msg.sys { align-self: center; max-width: 95%; background: transparent; border: 1px dashed rgba(111, 227, 189, .45); color: #6fe3bd; font-size: .74rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
  .marketing-v2 .typing { display: inline-flex; gap: .28rem; align-items: center; }
  .marketing-v2 .typing i { width: .38rem; height: .38rem; border-radius: 999px; background: #6fe3bd; animation: blink 1s infinite; }
  .marketing-v2 .typing i:nth-child(2) { animation-delay: .18s; } .marketing-v2 .typing i:nth-child(3) { animation-delay: .36s; }
  @keyframes blink { 40% { opacity: .25; } }
  .marketing-v2 .phone-note { margin-top: .9rem; color: rgba(255, 255, 255, .5); font-size: .78rem; display: flex; align-items: center; gap: .6rem; }
  .marketing-v2 .phone-note button { border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: .74rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; cursor: pointer; }

  /* ---------- Proof strip ---------- */
  .marketing-v2 .proof { background: var(--ink); color: #fff; padding-block: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .06); }
  .marketing-v2 .proof-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
  .marketing-v2 .proof-item { display: flex; flex-direction: column; gap: .1rem; }
  .marketing-v2 .proof-item strong { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: #6fe3bd; font-variant-numeric: tabular-nums; }
  .marketing-v2 .proof-item span { font-size: .78rem; color: rgba(255, 255, 255, .55); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

  /* ---------- Steps ---------- */
  .marketing-v2 .steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 2.5rem; }
  .marketing-v2 .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; position: relative; }
  .marketing-v2 .step .n { position: absolute; top: -1rem; left: 1.35rem; width: 2rem; height: 2rem; border-radius: 999px; background: var(--emerald); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; box-shadow: 0 8px 18px -8px rgba(16, 165, 123, .7); }
  .marketing-v2 .step h3 { font-size: 1.15rem; font-weight: 700; margin: .5rem 0 .4rem; }
  .marketing-v2 .step p { margin: 0; color: var(--muted); font-size: .95rem; }

  /* ---------- Feature grid ---------- */
  .marketing-v2 .features { background: var(--mint); }
  .marketing-v2 .feat-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2.5rem; }
  .marketing-v2 .feat { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.5rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease; }
  .marketing-v2 .feat:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(8, 26, 22, .35); }
  .marketing-v2 .feat .ico { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--mint); display: grid; place-items: center; font-size: 1.15rem; margin-bottom: .9rem; }
  .marketing-v2 .feat h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
  .marketing-v2 .feat p { margin: 0; color: var(--muted); font-size: .93rem; }
  .marketing-v2 .feat .tag { display: inline-block; margin-top: .8rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); }

  /* ---------- Product mockups ---------- */
  .marketing-v2 .mock-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 2.5rem; }
  .marketing-v2 .browser { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(8, 26, 22, .35); }
  .marketing-v2 .browser-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; background: #eef4f1; border-bottom: 1px solid var(--line); }
  .marketing-v2 .dot { width: .6rem; height: .6rem; border-radius: 999px; background: #cfdad4; }
  .marketing-v2 .browser-bar .url { margin-left: .6rem; flex: 1; background: #fff; border-radius: 999px; font-size: .72rem; color: var(--muted); padding: .25rem .8rem; border: 1px solid var(--line); }
  .marketing-v2 .dash { padding: 1.1rem; display: grid; gap: .8rem; }
  .marketing-v2 .dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .marketing-v2 .kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
  .marketing-v2 .kpi strong { font-family: var(--display); font-size: 1.25rem; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
  .marketing-v2 .kpi span { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .marketing-v2 .kpi .up { color: var(--emerald); font-size: .7rem; font-weight: 700; }
  .marketing-v2 .row { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; }
  .marketing-v2 .row .who-dot { width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--mint); display: grid; place-items: center; font-weight: 700; color: var(--emerald-deep); font-size: .72rem; flex: none; }
  .marketing-v2 .row .grow { flex: 1; min-width: 0; }
  .marketing-v2 .row .grow b { display: block; font-size: .82rem; }
  .marketing-v2 .row .grow small { color: var(--muted); }
  .marketing-v2 .pill { font-size: .64rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; }
  .marketing-v2 .pill.ok { background: #e2f6ed; color: var(--emerald-deep); }
  .marketing-v2 .pill.warn { background: #fdf1dc; color: #a8791f; }
  .marketing-v2 .pill.ai { background: #ecebfb; color: #5b54c7; }
  .marketing-v2 .mock-copy h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
  .marketing-v2 .mock-copy p { color: var(--muted); max-width: 46ch; }
  .marketing-v2 .mock-copy ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
  .marketing-v2 .mock-copy li { display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; }
  .marketing-v2 .mock-copy li::before { content: '\2192'; color: var(--emerald); font-weight: 700; }

  /* ---------- Integrations ---------- */
  .marketing-v2 .integrations { text-align: center; }
  .marketing-v2 .logo-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
  .marketing-v2 .logo-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; font-size: .9rem; }
  .marketing-v2 .logo-chip em { font-style: normal; width: 1.5rem; height: 1.5rem; border-radius: 8px; background: var(--mint); display: grid; place-items: center; font-size: .68rem; color: var(--emerald-deep); }

  /* ---------- Pricing ---------- */
  .marketing-v2 .pricing { background: var(--pine); color: #fff; }
  .marketing-v2 .pricing .lede { color: rgba(255, 255, 255, .7); }
  .marketing-v2 .price-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2.5rem; max-width: 820px; }
  .marketing-v2 .price-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; }
  .marketing-v2 .price-card.hot { background: #fff; color: var(--text); border-color: transparent; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); position: relative; }
  .marketing-v2 .price-card.hot .flag { position: absolute; top: -0.85rem; left: 1.4rem; background: var(--amber); color: #4a3406; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
  .marketing-v2 .price-card h3 { font-size: 1.2rem; font-weight: 700; }
  .marketing-v2 .price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
  .marketing-v2 .price small { font-family: var(--body); font-size: .85rem; font-weight: 500; opacity: .6; }
  .marketing-v2 .price-card ul { list-style: none; margin: .8rem 0 1.4rem; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
  .marketing-v2 .price-card li { display: flex; gap: .55rem; align-items: baseline; }
  .marketing-v2 .price-card li::before { content: '\2713'; font-weight: 800; color: var(--emerald); }
  .marketing-v2 .price-card .btn { margin-top: auto; }
  .marketing-v2 .price-note { margin-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

  /* ---------- FAQ ---------- */
  .marketing-v2 details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.05rem 1.3rem; margin-bottom: .7rem; }
  .marketing-v2 details summary { cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .marketing-v2 details summary::after { content: '+'; font-family: var(--display); font-size: 1.3rem; color: var(--emerald); transition: transform .2s ease; flex: none; }
  .marketing-v2 details[open] summary::after { transform: rotate(45deg); }
  .marketing-v2 details p { color: var(--muted); margin: .7rem 0 0; font-size: .95rem; }

  /* ---------- Final CTA ---------- */
  .marketing-v2 .final { text-align: center; }
  .marketing-v2 .final .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
/* ---------- Sub-page primitives (pricing, security, product, integrations) ---------- */
.marketing-v2 .page-hero { background: radial-gradient(50rem 28rem at 80% -20%, rgba(16,165,123,.25), transparent 55%), var(--pine); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.marketing-v2 .page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: #fff; }
.marketing-v2 .page-hero .lede { color: rgba(255,255,255,.75); }
.marketing-v2 .v2-prose { max-width: 70ch; }
.marketing-v2 .v2-prose h2 { margin-top: 2.4rem; }
.marketing-v2 .v2-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .4rem; }
.marketing-v2 .v2-prose p, .marketing-v2 .v2-prose li { color: var(--muted); }
.marketing-v2 .v2-prose strong { color: var(--text); }
.marketing-v2 .card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 2.25rem; }
.marketing-v2 .v2-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.marketing-v2 .v2-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .4rem; }
.marketing-v2 .v2-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.marketing-v2 .v2-card .tag { display: inline-block; margin-top: .8rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); }
.marketing-v2 .check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.marketing-v2 .check-list li { display: flex; gap: .6rem; align-items: baseline; }
.marketing-v2 .check-list li::before { content: '\2713'; font-weight: 800; color: var(--emerald); }
.marketing-v2 .split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.marketing-v2 .crumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: .8rem; }
.marketing-v2 .crumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.marketing-v2 .section-alt { background: var(--mint); }
.marketing-v2 .faq-wrap { max-width: 760px; }
.marketing-v2 .compare { width: 100%; border-collapse: collapse; margin-top: 2rem; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.marketing-v2 .compare th, .marketing-v2 .compare td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.marketing-v2 .compare th { font-family: var(--display); font-weight: 700; background: var(--mint); }
.marketing-v2 .compare td:not(:first-child) { font-variant-numeric: tabular-nums; }
.marketing-v2 .compare .yes { color: var(--emerald-deep); font-weight: 700; }
.marketing-v2 .compare .no { color: var(--muted); }
.marketing-v2 .table-scroll { overflow-x: auto; }
