/* earlinkcrm.com — shared styles for index.html and calls.html */

  :root {
    --navy: #17395f; --navy-deep: #0f2540; --ink: #0d1a2b;
    --ground: #f3f6fa; --surface: #ffffff; --panel: #e9eef5;
    --line: #d7dfea; --line-strong: #b9c5d6; --muted: #5a6b82;
    --blue: #2563eb; --blue-soft: #e4ecfb;
    --won: #158f56; --won-soft: #dff3e8;
    --amber: #d98c0e; --amber-soft: #fbefd6;
    --live: #d93a2b; --live-soft: #fbe3e0;
    --screen: #0f2540; --screen-2: #16304f; --screen-line: rgba(255,255,255,.12); --screen-muted: #9db0c8;
    --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --radius: 14px; --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(13,26,43,.06), 0 12px 32px -12px rgba(13,26,43,.18);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--ground); color: var(--ink);
    font-family: var(--body); font-size: 17px; line-height: 1.55;
    text-wrap: pretty; -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05;
    letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
  h1 { font-weight: 800; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; }
  .wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
  .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .num { font-variant-numeric: tabular-nums; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
  .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .eyebrow.won { color: var(--won); } .eyebrow.blue { color: var(--blue); } .eyebrow.live { color: var(--live); } .eyebrow.amber { color: var(--amber); }
  .lede { font-size: 19px; color: var(--muted); max-width: 58ch; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
    border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1;
    border: 1.5px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer;
    transition: background .15s, border-color .15s, transform .08s; }
  .btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
  .btn:active { transform: translateY(1px); }
  .btn.ghost { background: transparent; color: var(--navy); }
  .btn.ghost:hover { background: var(--blue-soft); }
  .btn.light { background: #fff; color: var(--navy); border-color: #fff; }
  .btn.light:hover { background: var(--panel); border-color: var(--panel); }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

  /* language */
  [data-l] { display: none; }
  [data-lang="en"] [data-l="en"], [data-lang="es"] [data-l="es"] { display: revert; }
  .lang { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
  .lang button { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; border: 0;
    padding: 8px 12px; background: transparent; color: var(--muted); cursor: pointer; }
  .lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

  /* header */
  .site-head { display: flex; align-items: center; gap: 18px; padding-block: 18px; flex-wrap: wrap; }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--navy); }
  .brand img { width: 34px; height: 34px; display: block; }
  .nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; color: var(--muted); }
  .nav a:hover { color: var(--navy); }
  .head-right { display: flex; align-items: center; gap: 12px; }
  @media (max-width: 1060px) { .nav { display: none; } .head-right { margin-left: auto; } }

  /* sections */
  section { padding-block: clamp(48px, 7vw, 96px); }
  .section-head { display: grid; gap: 14px; max-width: 64ch; margin-bottom: clamp(28px, 4vw, 48px); }
  .section-head h2 { font-size: clamp(30px, 4.2vw, 48px); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
  .split.wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  @media (max-width: 900px) { .split, .split.wide-right, .split.wide-left { grid-template-columns: 1fr; } }
  .grid { display: grid; gap: 18px; }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 540px) { .cols-3, .cols-4 { grid-template-columns: 1fr; } }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
  .card h3 { font-size: 20px; margin-bottom: 8px; }
  .card p { color: var(--muted); font-size: 15.5px; }
  .bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
  .bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
  .bullets li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 9px; border-radius: 999px; background: var(--navy); }
  .bullets.won li::before { background: var(--won); } .bullets.blue li::before { background: var(--blue); } .bullets.amber li::before { background: var(--amber); }
  .tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); }
  .tag.won { color: var(--won); border-color: var(--won); background: var(--won-soft); }
  .tag.live { color: var(--live); border-color: var(--live); background: var(--live-soft); }
  .tag.amber { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }
  .tag.blue { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
  .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--live); display: inline-block; }
  .dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,58,43,.45); } 50% { box-shadow: 0 0 0 6px rgba(217,58,43,0); } }

  /* hero */
  .hero { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 88px); }
  .hero h1 { font-size: clamp(42px, 7vw, 84px); margin-top: 18px; }
  .hero h1 .won-word { color: var(--won); }
  .hero .lede { margin-top: 22px; }
  .hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
  .hero .pillars { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
  .hero .pillars > span { display: inline-flex; align-items: center; gap: 7px; }
  .hero .pillars i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

  /* screen (sales floor) */
  .screen { background: var(--screen); color: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(13,26,43,.6);
    display: grid; gap: 14px; font-size: 13.5px; position: relative; }
  .screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--screen-line); }
  .screen-bar .title { font-family: var(--display); font-weight: 700; font-size: 16px; }
  .screen-bar .meta { font-family: var(--mono); font-size: 12px; color: var(--screen-muted); display: inline-flex; gap: 8px; align-items: center; }
  .kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
  .kpi { background: var(--screen-2); border-radius: 10px; padding: 10px 12px; }
  .kpi .label { font-size: 11px; color: var(--screen-muted); letter-spacing: .04em; text-transform: uppercase; font-family: var(--mono); }
  .kpi .value { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; margin-top: 4px; }
  .kpi.won .value { color: #5fd69a; }
  .screen-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
  @media (max-width: 480px) { .screen-grid { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  .feed, .livecall, .trend { background: var(--screen-2); border-radius: 10px; padding: 12px; }
  .panel-title { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--screen-muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
  .feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
  .feed li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.35; }
  .feed time { font-family: var(--mono); color: var(--screen-muted); font-size: 11.5px; padding-top: 1px; }
  .feed b { font-weight: 600; }
  .feed .auto { color: #8fb4ff; }
  .feed .ok { color: #5fd69a; }
  .right-col { display: grid; gap: 10px; }
  .livecall .who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
  .livecall .score { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
  .wave { display: flex; align-items: center; gap: 3px; height: 34px; margin: 10px 0 8px; }
  .wave i { flex: 1; background: #8fb4ff; border-radius: 2px; height: 30%; display: block; transform-origin: center; }
  .wave i:nth-child(3n) { height: 65%; } .wave i:nth-child(4n) { height: 90%; } .wave i:nth-child(5n) { height: 45%; } .wave i:nth-child(7n) { height: 75%; }
  .wave.play i { animation: wave 1.1s ease-in-out infinite; }
  .wave.play i:nth-child(2n) { animation-delay: -.3s; } .wave.play i:nth-child(3n) { animation-delay: -.6s; } .wave.play i:nth-child(5n) { animation-delay: -.9s; }
  @keyframes wave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
  .livecall .hint { font-size: 12px; color: var(--screen-muted); }
  .trend .bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 6px; }
  .trend .bars i { flex: 1; display: block; background: rgba(255,255,255,.28); border-radius: 3px 3px 0 0; }
  .trend .bars i:last-child { background: #5fd69a; }
  .trend .axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--screen-muted); margin-top: 6px; }
  .sample { position: absolute; top: -11px; right: 18px; }

  /* automation flow */
  .flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
  .flow li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -4px; width: 2px; background: var(--line-strong); }
  .flow li:last-child::before { display: none; }
  .flow .node { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--blue); background: var(--surface); display: grid; place-items: center; position: relative; z-index: 1; }
  .flow .node::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--blue); }
  .flow .node.human { border-color: var(--navy); } .flow .node.human::after { background: var(--navy); }
  .flow .node.won { border-color: var(--won); } .flow .node.won::after { background: var(--won); }
  .flow .stamp { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: block; margin-top: 6px; }
  .flow h3 { font-size: 19px; }
  .flow p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
  .flow .who { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
  .flow .who.human { color: var(--navy); }

  /* pipeline board */
  .board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  @media (max-width: 640px) { .board { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 6px; } }
  .col { background: var(--panel); border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; }
  .col .col-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
  .col .deal { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 12px; line-height: 1.3; }
  .col .deal small { display: block; color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
  .col.won { background: var(--won-soft); outline: 2px solid var(--won); outline-offset: -2px; }
  .col.won .col-title { color: var(--won); }
  .col.won .deal { border-color: rgba(21,143,86,.35); }
  .report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .report .rhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 16px; }
  .report table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .report th, .report td { text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--line); }
  .report th { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .report td.n, .report th.n { text-align: right; font-family: var(--mono); }
  .report tr:last-child td { border-bottom: 0; }
  .report td.won { color: var(--won); font-weight: 700; }
  .report .rfoot { padding: 10px 18px; font-size: 12.5px; color: var(--muted); background: var(--panel); }
  .bigstat { display: grid; gap: 4px; }
  .bigstat .v { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--won); letter-spacing: -0.03em; }
  .bigstat .l { color: var(--muted); font-size: 15px; }

  /* dark monitoring section */
  .dark { background: var(--screen); color: #fff; }
  .dark .section-head h2, .dark .lede { color: #fff; }
  .dark .lede { color: var(--screen-muted); }
  .dark .eyebrow.live { color: #ff8a7a; }
  .monitor { background: var(--screen-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--screen-line); }
  .monitor .mhead { padding: 12px 16px; border-bottom: 1px solid var(--screen-line); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--screen-muted); }
  .mrow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--screen-line); font-size: 13.5px; }
  .mrow:last-child { border-bottom: 0; }
  .mrow .name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .mrow .sub { font-family: var(--mono); font-size: 11.5px; color: var(--screen-muted); }
  .mrow .live-score { font-family: var(--display); font-weight: 800; font-size: 22px; }
  .mrow .acts { display: flex; gap: 6px; }
  .mrow .acts > span { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border: 1px solid var(--screen-line); border-radius: 6px; color: #dbe6f5; }
  .scorecard { background: var(--surface); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .scorecard .shead { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
  .scorecard .shead .t { font-family: var(--display); font-weight: 700; font-size: 18px; }
  .scorecard .shead .m { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
  .scorecard .big { font-family: var(--display); font-weight: 800; font-size: 34px; width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: #fff; }
  .scorecard .rubric { padding: 18px 22px; display: grid; gap: 14px; }
  .rub p { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
  .rub p span:last-child { font-family: var(--mono); font-weight: 500; }
  .bar { height: 8px; border-radius: 999px; background: var(--panel); overflow: hidden; }
  .bar > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
  .bar.warn > span { background: var(--amber); }
  .scorecard .flags { border-top: 1px solid var(--line); background: var(--ground); padding: 16px 22px; display: grid; gap: 10px; }
  .flags p { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
  .flags .ts { font-family: var(--mono); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); flex: 0 0 auto; }
  .flags .ts.bad { background: var(--live-soft); border-color: var(--live); color: var(--live); }
  .flags .ts.good { background: var(--won-soft); border-color: var(--won); color: var(--won); }
  .dark .card { background: var(--screen-2); border-color: var(--screen-line); }
  .dark .card h3 { color: #fff; } .dark .card p { color: var(--screen-muted); }

  /* improvement */
  .loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
  @media (max-width: 720px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .loop .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; position: relative; }
  .loop .step::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--line-strong); font-size: 18px; z-index: 1; }
  .loop .step:last-child::after { display: none; }
  @media (max-width: 720px) { .loop .step:nth-child(2)::after { display: none; } }
  .loop .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
  .loop .step h3 { font-size: 17px; margin-top: 4px; }
  .loop .step p { color: var(--muted); font-size: 14px; margin-top: 4px; }
  .chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
  .chart .ctitle { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 700; font-size: 16px; }
  .chart .ctitle small { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--muted); }
  .chart .plot { display: grid; grid-template-columns: 30px 1fr; gap: 8px; margin-top: 14px; }
  .chart .y { display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; height: 140px; }
  .chart .cols { display: flex; align-items: flex-end; gap: 8px; height: 140px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 8px;
    background-image: linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%, transparent 25%, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%, transparent calc(75% - 1px), var(--line) calc(75% - 1px), var(--line) 75%, transparent 75%); }
  .chart .cols i { flex: 1; display: block; background: var(--amber-soft); border: 1px solid var(--amber); border-bottom: 0; border-radius: 4px 4px 0 0; position: relative; }
  .chart .cols i:last-child { background: var(--amber); }
  .chart .cols i b { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--muted); }
  .chart .cols i:last-child b { color: var(--ink); font-weight: 600; }
  .chart .x { display: grid; grid-template-columns: 30px 1fr; gap: 8px; margin-top: 6px; }
  .chart .x div { display: flex; justify-content: space-between; padding-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
  .brief { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; font-size: 14.5px; }
  .brief .bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; }
  .brief .bh small { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--muted); }
  .brief dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; }
  .brief dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .brief dd { margin: 0; }
  .brief dd.bad { color: var(--live); } .brief dd.good { color: var(--won); font-weight: 600; }

  /* how */
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
  .steps .n { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; }
  .steps h3 { font-size: 19px; } .steps p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

  /* proof */
  .quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 14px; }
  .quote p { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.3; }
  .quote figcaption { font-size: 14px; color: var(--muted); }
  .logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 28px; }
  .slot { display: grid; place-items: center; text-align: center; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--surface);
    font-family: var(--mono); font-size: 11.5px; color: var(--muted); width: 100%; aspect-ratio: 3 / 1; }

  /* demo */
  .demo { background: var(--navy); color: #fff; }
  .demo h2 { font-size: clamp(34px, 5vw, 64px); }
  .demo .lede { color: #cfdcee; }
  /* GoHighLevel embedded form (fields + SMS consent live in GHL, not here) */
  .formcol { display: grid; gap: 14px; }
  /* Heights here are a fallback only. form_embed.js re-parents each iframe into
     its own .ep-iFrameContainer > .ep-wrapper and sets an exact inline height
     from what the form reports, and that inline style wins over these rules.
     The fallback matters when the script is blocked or never activates.
     Both forms grow as they narrow, and the Spanish copy is noticeably longer,
     so the two need different reserves — measured at the widths this column
     actually takes: EN ~1015px desktop / ~1150px phone, ES ~1222px / ~1390px.
     Erring short would hide the consent checkboxes and the submit button behind
     an iframe scrollbar; erring tall only costs some white space. */
  .ghl-form { display: block; width: 100%; height: 1200px; border: 0;
    border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  [data-l="es"] .ghl-form { height: 1420px; }

  footer { padding-block: 28px 36px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
  footer a { text-decoration: underline; text-underline-offset: 3px; }
  footer .links { display: flex; gap: 16px; flex-wrap: wrap; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wave.play i, .dot.pulse { animation: none; }
  }

  /* ============================================================
     Earlink Calls — product block, screenshots, dedicated page
     ============================================================ */

  /* two-product split ("What you get") */
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  @media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }
  .pair .card { padding: 26px 28px; display: grid; gap: 14px; align-content: start; }
  .pair .card .khead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .pair .card h3 { font-size: 24px; margin: 0; }
  .pair .card .role { color: var(--muted); font-size: 15px; }
  .pair .card.own { border-color: var(--navy); box-shadow: var(--shadow); }
  .tag.own { color: var(--navy); border-color: var(--navy); background: var(--blue-soft); }

  /* screenshot frame */
  .shot { display: grid; gap: 10px; margin: 0; }
  .shot .frame { border-radius: 12px; overflow: hidden; background: #0d1117;
    border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -24px rgba(6,12,22,.7); }
  .dark .shot .frame { border-color: rgba(255,255,255,.16); }
  .shot .chrome { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 30px;
    background: #171e28; border-bottom: 1px solid rgba(255,255,255,.08); }
  .shot .chrome i { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.2); display: block; }
  .shot .chrome .url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: #7f90a8; letter-spacing: .02em; }
  .shot img { display: block; width: 100%; height: auto; }
  .shot figcaption { font-size: 14px; color: var(--muted); }
  .dark .shot figcaption { color: var(--screen-muted); }
  .shot figcaption b { color: var(--ink); font-weight: 600; }
  .dark .shot figcaption b { color: #fff; }

  /* alternating splits that keep copy first in the DOM */
  .split.flip > *:first-child { order: 2; }
  .split.flip > *:last-child { order: 1; }
  @media (max-width: 900px) { .split.flip > * { order: 0; } }

  /* module heading inside the Earlink Calls block */
  .mod { display: grid; gap: 12px; align-content: start; }
  .mod .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8fb4ff; }
  .mod h3 { font-size: clamp(24px, 2.8vw, 32px); }
  .mod p { color: var(--screen-muted); font-size: 16px; }
  .mod .bullets li { color: #dbe6f5; font-size: 15.5px; }
  .mod .bullets li::before { background: #8fb4ff; }

  .calls-block { display: grid; gap: clamp(44px, 6vw, 80px); }

  /* capability strip */
  .strip { display: flex; flex-wrap: wrap; gap: 8px 10px; }
  .strip span { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--screen-line); color: #cfdcee; background: rgba(255,255,255,.03); }

  /* footer columns */
  footer.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 28px 24px; align-items: start; }
  @media (max-width: 860px) { footer.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 460px) { footer.cols { grid-template-columns: 1fr; } }
  footer.cols .fcol { display: grid; gap: 8px; align-content: start; }
  footer.cols .fcol strong { font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink); font-weight: 600; }
  footer.cols .fcol a { text-decoration: none; }
  footer.cols .fcol a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
  footer.cols .fbrand { display: grid; gap: 8px; }

  /* calls.html */
  .page-hero { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); }
  .page-hero h1 { font-size: clamp(36px, 6vw, 68px); margin-top: 18px; }
  .page-hero .lede { margin-top: 20px; max-width: 62ch; }
  .page-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
  .plug { list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  @media (max-width: 860px) { .plug { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 460px) { .plug { grid-template-columns: 1fr; } }
  .plug li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 16px; position: relative; }
  .plug li .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
  .plug li h3 { font-size: 17px; margin-top: 4px; }
  .plug li p { color: var(--muted); font-size: 14px; margin-top: 4px; }
  .report td.lbl { font-weight: 600; width: 34%; }
  .report td .tag { margin: 2px 4px 2px 0; }

  /* Captures are 790px of real pixels — never upscale them past that. */
  .shot.natural .frame { max-width: 790px; margin-inline: auto; }
  .shot.natural figcaption { max-width: 790px; margin-inline: auto; }
  .shot.narrow .frame, .shot.narrow figcaption { max-width: 450px; margin-inline: auto; }

  /* ---- zoom affordance on every screenshot frame ---------------------- */
  .shot .frame { position: relative; }
  .shot .frame.is-zoomable { cursor: zoom-in; }
  .zoom-btn { position: absolute; right: 10px; bottom: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
    border: 1px solid rgba(255,255,255,.24); border-radius: 999px;
    background: rgba(9,13,20,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #e8eef7; font-family: var(--mono); font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; line-height: 1; cursor: zoom-in;
    opacity: .78; transition: opacity .15s, background .15s, border-color .15s, transform .08s; }
  .zoom-btn svg { width: 15px; height: 15px; flex: none; }
  .zoom-btn-t { display: none; }
  @media (min-width: 700px) { .zoom-btn-t { display: inline; } }
  .shot .frame:hover .zoom-btn, .zoom-btn:hover,
  .shot .frame:focus-within .zoom-btn { opacity: 1; background: rgba(9,13,20,.92); border-color: rgba(255,255,255,.4); }
  .zoom-btn:active { transform: translateY(1px); }
  @media (hover: none) { .zoom-btn { opacity: 1; } }

  /* ---- lightbox ------------------------------------------------------- */
  html.lb-open { overflow: hidden; }
  .lightbox[hidden] { display: none; }
  .lightbox { position: fixed; inset: 0; z-index: 9999;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    background: rgba(6,10,17,.97); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    color: #e8eef7; font-family: var(--body); animation: lb-in .16s ease-out; }
  @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

  .lightbox-top { display: flex; align-items: center; gap: 14px;
    padding: 10px clamp(10px, 2vw, 20px); border-bottom: 1px solid rgba(255,255,255,.1); }
  .lightbox-url { font-family: var(--mono); font-size: 12px; color: #93a6c0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lightbox-count { margin-left: auto; font-family: var(--mono); font-size: 12px;
    color: #93a6c0; font-variant-numeric: tabular-nums; flex: none; }
  .lightbox-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent;
    color: #e8eef7; cursor: pointer; transition: background .15s; }
  .lightbox-x svg { width: 18px; height: 18px; }
  .lightbox-x:hover { background: rgba(255,255,255,.12); }

  .lightbox-stage { min-height: 0; overflow: auto; display: flex;
    padding: clamp(10px, 2vw, 22px); overscroll-behavior: contain; }
  .lightbox-img { margin: auto; display: block; max-width: 100%; max-height: 100%;
    width: auto; height: auto; border-radius: 8px; cursor: zoom-in;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
  /* Zoomed: the -full capture at its own 2x pixels, dragged around by hand. */
  .lightbox.is-zoomed .lightbox-img { max-width: none; max-height: none; cursor: grab; }
  .lightbox.is-panning .lightbox-img { cursor: grabbing; }
  .lightbox.is-loading .lightbox-img { filter: saturate(.92); }

  .lightbox-bot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 12px clamp(10px, 2vw, 20px); border-top: 1px solid rgba(255,255,255,.1); }
  .lightbox-cap { flex: 1 1 320px; min-width: 0; font-size: 14px; line-height: 1.45; color: #b6c5da; }
  .lightbox-cap b { color: #fff; font-weight: 600; }
  .lightbox-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
  .lightbox-hint { font-family: var(--mono); font-size: 11px; color: #71839c;
    letter-spacing: .04em; margin-right: 4px; }
  @media (max-width: 700px) {
    .lightbox-hint { display: none; }
    /* Keep the caption from eating the room the screenshot needs on a phone. */
    .lightbox-cap { flex-basis: 100%; font-size: 13px; display: -webkit-box;
      -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .lightbox-bot { gap: 10px; padding-block: 10px; }
  }
  .lightbox-b { height: 36px; min-width: 36px; padding: 0 14px; display: inline-flex;
    align-items: center; justify-content: center; gap: 6px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent;
    color: #e8eef7; font-family: var(--mono); font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
  .lightbox-b:hover { background: rgba(255,255,255,.12); }
  .lightbox-b[hidden] { display: none; }
  .lightbox-nav { padding: 0; }
  .lightbox-nav svg { width: 18px; height: 18px; }

  .lightbox-loading { position: absolute; left: 50%; top: 68px; transform: translateX(-50%);
    margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(9,13,20,.85);
    border: 1px solid rgba(255,255,255,.16); font-family: var(--mono); font-size: 11px;
    letter-spacing: .06em; color: #cddcef; opacity: 0; transition: opacity .2s .25s; pointer-events: none; }
  .lightbox.is-loading .lightbox-loading { opacity: 1; }

  /* The GoHighLevel chat launcher floats over everything — park it while a
     screenshot is open, without tearing down the widget's own state. */
  html.lb-open chat-widget { visibility: hidden; pointer-events: none; }
