/* Company Explorer — shares the ravi.rambarki.com header, type and palette. */
:root {
  --navy: #0b2447;
  --navy-2: #0e2d58;
  --ink: #102a43;
  --text: #2b3f52;
  --muted: #5d7183;
  --line: #d8e6f0;
  --soft: #f3f8fc;
  --page: #edf5fb;
  --accent: #146b9d;
  --accent-2: #2e8cbc;
  --label: #16618e;
  --good: #157347;
  --warn: #9a5b00;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(clamp(16px, 6vw, 90px), calc((100vw - 1320px) / 2 + 90px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Header — identical to the portfolio */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; background: var(--navy); color: #fff; }
.logo { font-family: var(--sans); font-size: clamp(21px, 2.25vw, 29px); font-weight: 600; line-height: 1.2; color: #fff; text-decoration: none; }
.logo strong { font-weight: 800; }
.logo:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.logo:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 5px; }
.nav { display: flex; flex-wrap: wrap; gap: 30px; font-size: 13px; }
.nav a { color: #cfddf2; text-decoration: none; }
.nav a:hover { color: #fff; }

/* Hero + the single input */
.hero { background: linear-gradient(120deg, #102d60, #0d3972 62%, #146b9d); color: #fff; padding-top: 72px; padding-bottom: 76px; }
.eyebrow { margin: 0; color: #bce9ff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 62px); line-height: 1.07; letter-spacing: -.035em; max-width: 900px; margin: 16px 0 18px; }
.lede { font-size: 18px; line-height: 1.65; color: #d7e6f4; max-width: 760px; margin: 0 0 34px; }
.ask { max-width: 760px; }
.ask label { display: block; font-size: 13px; font-weight: 700; color: #cfe6f7; margin-bottom: 8px; }
.ask-row { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px #04112a55; }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 12px 14px; color: var(--ink); background: transparent; }
.ask input::placeholder { color: #93a5b5; }
.ask-row:focus-within { box-shadow: 0 0 0 3px #bce9ff, 0 18px 50px #04112a55; }
.cta { flex: none; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 700; background: var(--navy); color: #fff; cursor: pointer; }
.cta:hover { background: #12356a; }
.cta:disabled { opacity: .6; cursor: default; }
.ask-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: #cfe0ef; }
.try { background: none; border: 0; padding: 0; font: inherit; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quota { font-variant-numeric: tabular-nums; }
.formerr { margin: 12px 0 0; color: #ffd9cf; font-weight: 600; font-size: 14px; }

/* Progress + notices */
.stage-wrap { padding-top: 40px; padding-bottom: 60px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 34px); max-width: 760px; box-shadow: 0 10px 30px #0b24470d; }
.progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.kicker { margin: 0; color: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.panel h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 6px 0 18px; letter-spacing: -.02em; }
.elapsed { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; padding-top: 4px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; }
.steps li { position: relative; padding: 7px 0 7px 32px; color: #98a8b7; font-size: 15px; transition: color .2s; }
.steps li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cfdbe6; background: #fff; box-sizing: border-box; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--good); border-color: var(--good); }
.steps li.done::after { content: ""; position: absolute; left: 7px; top: 13px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps li.active { color: var(--ink); font-weight: 700; }
.steps li.active::before { border-color: var(--accent-2); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.active::before { animation: none; background: var(--accent-2); } html { scroll-behavior: auto; } }
.notice p { margin: 0 0 18px; }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent-2); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Report */
.report-wrap { padding-bottom: 70px; }
.rhead { background: #fff; border-bottom: 1px solid var(--line); padding-top: 40px; padding-bottom: 28px; }
.rhead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.rhead h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -.035em; line-height: 1.05; color: var(--ink); margin: 6px 0 10px; }
.tagline { font-size: 19px; color: var(--text); max-width: 820px; margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--soft); border: 1px solid var(--line); color: var(--label); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.rmeta { color: var(--muted); font-size: 13px; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ractions { display: flex; gap: 8px; flex-wrap: wrap; }

.toc { position: sticky; top: 0; z-index: 5; background: #fffffff2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc ul { display: flex; gap: 4px; overflow-x: auto; list-style: none; margin: 0; padding: 10px 0; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; white-space: nowrap; padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.on { background: var(--soft); color: var(--ink); }

.rbody { padding-top: 12px; display: grid; gap: 18px; }
.sec { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); margin-top: 6px; }
.sec > h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 2.4vw, 28px); letter-spacing: -.02em; color: var(--ink); margin: 0 0 14px; }
.sec > h3 .aside { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--label); background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.sec h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.sec p { margin: 0 0 12px; }
.lead { font-size: 17.5px; color: var(--ink); max-width: 900px; }
.empty { color: var(--muted); font-style: italic; margin: 0; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.points li { position: relative; padding-left: 18px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2); }
.unconfirmed { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); background: #fff4e0; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
sup.cite { font-size: 10.5px; line-height: 0; margin-left: 2px; white-space: nowrap; }
sup.cite a { color: var(--accent); text-decoration: none; font-weight: 700; padding: 0 1px; }
sup.cite a:hover { text-decoration: underline; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 18px 0; }
.fact { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fact span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fact b { display: block; color: var(--ink); font-size: 16px; margin-top: 3px; line-height: 1.35; }

.promise { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.35; color: var(--ink); border-left: 4px solid var(--accent-2); padding: 2px 0 2px 16px; margin: 0 0 18px; max-width: 900px; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card h5 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.card p { font-size: 14.5px; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; font-size: 12.5px; color: var(--text); }

.asof { color: var(--muted); font-size: 13px; }
.callout { background: #e9f7ef; border: 1px solid #c7e8d4; color: #135c38; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 14px; }
.plan-group + .plan-group { margin-top: 18px; }
.plans { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.plan .pname { font-weight: 700; color: var(--ink); }
.plan .price { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 4px 0 0; }
.plan .billing { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.plan ul { margin: 0; padding-left: 16px; font-size: 13.5px; }

.cols2 { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols3 { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols4 { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item + .item { margin-top: 12px; }
.item b { color: var(--ink); }
.item p { margin: 2px 0 0; font-size: 14.5px; }

/* Customer journey */
.journey { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; list-style: none; margin: 4px 0 16px; padding: 0; counter-reset: stage; }
.journey > li { position: relative; padding: 0 14px 0 0; counter-increment: stage; }
.journey .node { display: flex; align-items: center; margin-bottom: 12px; }
.journey .node::before { content: counter(stage); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; }
.journey .node::after { content: ""; flex: 1; height: 2px; margin-left: 8px; background: linear-gradient(90deg, var(--accent-2), #cfe3f0); }
.journey > li:last-child .node::after { background: transparent; }
.journey h5 { margin: 0 0 4px; font-size: 15.5px; color: var(--ink); }
.journey p { font-size: 13.5px; margin: 0 0 8px; }
.jnote { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin: 0; }

.bm { border-top: 3px solid var(--accent-2); padding-top: 12px; }
.bm .points { font-size: 14.5px; }

.comp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.comp th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.comp td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.comp tr:last-child td { border-bottom: 0; }
.comp td:first-child { font-weight: 700; color: var(--ink); width: 24%; }
.comp td:nth-child(2) { width: 34%; }

.dir-basis { color: var(--muted); font-size: 14px; margin: -4px 0 16px; }
.dir { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.dir .points { font-size: 14.5px; }

.opps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: opp; }
.opps > li { counter-increment: opp; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.opps > li::before { content: counter(opp); grid-row: span 3; width: 30px; height: 30px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--label); }
.opps h5 { margin: 3px 0 2px; font-size: 16px; color: var(--ink); }
.opps p { margin: 0; font-size: 14.5px; }
.opps .probe { color: var(--muted); margin-top: 6px; }
.opps .probe b { color: var(--label); }

.sources { margin: 0; padding-left: 28px; font-size: 14px; display: grid; gap: 6px; }
.sources li:target { background: #fff6d6; border-radius: 6px; }
.sources a { word-break: break-word; }
.stype { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 4px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.gaps { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.gaps ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

.foot { background: var(--navy); color: #c4d8ee; font-size: 13px; padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.foot-note { color: #91a4b9; }

@media (max-width: 1000px) {
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .journey > li { padding: 0 0 14px 44px; }
  .journey .node { position: absolute; left: 0; top: 0; height: 100%; flex-direction: column; margin: 0; }
  .journey .node::after { width: 2px; height: auto; flex: 1; margin: 6px 0 0; background: #cfe3f0; }
  .journey h5 { padding-top: 4px; }
}
@media (max-width: 760px) {
  .top { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .logo { font-size: 22px; }
  .nav { gap: 18px; }
  .hero { padding-top: 44px; padding-bottom: 50px; }
  .lede { font-size: 16.5px; }
  .ask-row { flex-direction: column; }
  .cta { width: 100%; padding: 13px; }
  .cols2, .cols3, .cols4 { grid-template-columns: 1fr; }
  .comp thead { display: none; }
  .comp, .comp tbody, .comp tr, .comp td { display: block; width: 100% !important; }
  .comp tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .comp td { border: 0; padding: 2px 0; }
  .comp td:nth-child(2)::before { content: "Competitors: "; color: var(--muted); font-weight: 600; }
  .sec { border-radius: 14px; }
}
@media print {
  .top .nav, .hero, .toc, .ractions, .foot-note { display: none !important; }
  body { background: #fff; }
  .sec { break-inside: avoid; border-color: #ccc; }
}
