/* urpio.com — shared styles for the home page and solution pages */
:root {
  --paper: #ffffff;
  --mist: #eef3f0;
  --line: #d5e0da;
  --ink: #0f2a22;
  --ink-soft: #46605a;
  --pine: #0b5d45;
  --pine-hover: #084a37;
  --pine-deep: #07382a;
  --mint: #c4eed9;
  --mint-ink: #9fdcbf;
  --answered: #27c27b;
  --missed: #e5604f;
  --radius: 12px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; }
.band-mist { background: var(--mist); }
.band-pine { background: var(--pine-deep); color: #e8f5ef; }
.band-pine .muted, .band-pine .lead { color: #a9cbbd; }

:focus-visible { outline: 3px solid var(--answered); outline-offset: 2px; border-radius: 6px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.045em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--pine); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--answered); }
.nav { display: flex; gap: 22px; font-size: 0.95rem; flex: 1; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; }
.header-actions .signin { text-decoration: none; color: var(--ink-soft); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav, .header-actions .signin { display: none; }
  .header-actions { margin-left: auto; }
  .site-header.open .nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .site-header.open .nav a { padding: 10px 0; }
  .menu-toggle { display: block; margin-left: 0; }
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 10px; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: 0.92rem; }
.band-pine .btn-ghost { border-color: #2b6b56; color: #fff; }
.band-pine .btn-ghost:hover { border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── hero ── */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--ink-soft); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ── call log (signature element) ── */
.calllog {
  background: var(--pine-deep); color: #e8f5ef; border-radius: 18px;
  padding: 22px 22px 10px; box-shadow: 0 30px 60px -30px rgba(7, 56, 42, .55);
}
.calllog-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: #9fc4b5; padding-bottom: 14px; border-bottom: 1px solid #165340; }
.calllog-top b { color: #fff; font-size: 1rem; }
.calllog ol { list-style: none; margin: 0; padding: 0; }
.calllog li { display: grid; grid-template-columns: 52px 14px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid #12493a; }
.calllog li:last-child { border-bottom: 0; }

.calllog time { font-size: 0.85rem; color: #8fb8a7; padding-top: 1px; }
.calllog .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: #5f8a7b; }
.calllog .dot.on { background: var(--answered); box-shadow: 0 0 0 4px rgba(39, 194, 123, .18); }
.calllog .dot.off { background: var(--missed); }
.calllog .dot.win { background: var(--mint); }
.calllog .what { font-size: 0.95rem; line-height: 1.45; }
.calllog .what small { display: block; color: #9fc4b5; font-size: 0.82rem; margin-top: 2px; }
.calllog .say { display: block; margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: #0d4a38; font-size: 0.9rem; color: #d9f1e6; }
.calllog .say.agent { background: transparent; border: 1px solid #1d5f4b; }
.calllog .say + .say { margin-top: 6px; }
.calllog-foot { font-size: 0.78rem; color: #7ea596; padding: 10px 0 6px; }
.js .calllog.animate li { opacity: 0; transform: translateY(6px); }
.js .calllog.animate li.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .calllog.animate li { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── forms ── */
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(11, 93, 69, .14); }
.textarea { min-height: 96px; resize: vertical; }
.phone { display: flex; }
.phone span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--mist); font-size: 0.95rem; color: var(--ink-soft); }
.phone .input { border-radius: 0 10px 10px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pine); flex: none; }
.consent { font-size: 0.8rem; color: var(--ink-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 0.95rem; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: var(--mint); color: var(--pine-deep); }
.form-msg.err { display: block; background: #fde4e0; color: #8a2417; }
.quick-form { background: var(--mist); border-radius: 16px; padding: 20px; max-width: 560px; }
.quick-form .btn { width: 100%; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── use cases (split panels) ── */
.usecases { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.usecase { border-radius: 20px; padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.usecase.cart { background: var(--pine); color: #fff; grid-row: span 2; }
.usecase.cart .muted { color: #bfe0d2; }
.usecase.leads { background: var(--mist); }
.usecase.cod { border: 1.5px dashed var(--line); }
.usecase h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.usecase ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.usecase li { padding-left: 22px; position: relative; }
.usecase li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: currentColor; opacity: .6; }
.usecase .go { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .usecases { grid-template-columns: 1fr; } .usecase.cart { grid-row: auto; } }

/* ── steps (a real sequence) ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 26px 28px 0 0; counter-increment: step; }
.step::before { content: counter(step); display: block; font-size: 3rem; font-weight: 800; color: var(--pine); line-height: 1; margin-bottom: 18px; letter-spacing: -0.04em; }
.step p { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step { padding-right: 0; padding-bottom: 8px; } }

/* ── playbook (calling rules) ── */
.playbook { border-top: 1px solid var(--line); }
.playbook > div { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.playbook dt { font-weight: 700; }
.playbook dd { margin: 0; color: var(--ink-soft); }
.playbook dd b { color: var(--ink); }
@media (max-width: 640px) { .playbook > div { grid-template-columns: 1fr; gap: 4px; } }

/* ── two-column split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── sources / integrations ── */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-left: 1px solid var(--line); }
.source { padding: 6px 22px 10px; border-right: 1px solid var(--line); }
.source b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.source span { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 640px) { .sources { border-left: 0; } .source { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; } }

/* ── pricing ── */
.price-figure { font-size: clamp(4rem, 11vw, 7.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.price-figure small { font-size: 0.24em; letter-spacing: -0.01em; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.band-pine .price-figure small { color: #a9cbbd; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--answered); border-bottom: 2.5px solid var(--answered); transform: rotate(-45deg); }

/* ── calculator ── */
.calc { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.calc .field + .field { margin-top: 16px; }
.calc input[type="range"] { width: 100%; accent-color: var(--pine); }
.calc-out { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out div span { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.calc-out div b { font-size: 1.6rem; letter-spacing: -0.03em; }
.calc-out .big { grid-column: 1 / -1; }
.calc-out .big b { font-size: 2.4rem; color: var(--pine); }
.calc-note { margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); }

/* ── transcript ── */
.transcript { display: grid; gap: 10px; max-width: 560px; }
.line { padding: 12px 16px; border-radius: 14px; max-width: 88%; }
.line.agent { background: var(--pine); color: #fff; border-bottom-left-radius: 4px; }
.line.customer { background: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.line small { display: block; font-size: 0.75rem; opacity: .7; margin-bottom: 2px; }

/* ── race (IndiaMART) ── */
.race { display: grid; gap: 0; border-top: 1px solid #165340; }
.race > div { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #165340; align-items: center; }
.race .who { font-weight: 600; }
.race .when { color: #a9cbbd; }
.race .res { color: #e8a79c; }
.race .you { color: #fff; }
.race .you .when, .race .you .res { color: var(--answered); font-weight: 700; }
@media (max-width: 560px) { .race > div { grid-template-columns: 1fr 1fr; } .race .res { grid-column: 1 / -1; padding-top: 0; } }

/* ── lead card ── */
.leadcard { border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.leadcard header { padding: 18px 22px; background: var(--mist); }
.leadcard header small { display: block; color: var(--ink-soft); font-size: 0.85rem; }
.leadcard dl { margin: 0; padding: 6px 22px 10px; }
.leadcard dl div { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.leadcard dl div:last-child { border-bottom: 0; }
.leadcard dt { color: var(--ink-soft); }
.leadcard dd { margin: 0; font-weight: 600; }
.leadcard footer { padding: 14px 22px; background: var(--pine); color: #fff; font-weight: 600; font-size: 0.95rem; }

/* ── faq ── */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--pine); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 680px; }

/* ── contact ── */
.contact-card { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(22px, 3.5vw, 36px); }
.contact-side p + p { margin-top: 14px; }
.contact-side a { color: #fff; }

/* ── footer ── */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* let grid columns shrink on narrow phones */
.hero .wrap > *, .split > *, .usecases > *, .form-row > * { min-width: 0; }
@media (max-width: 400px) { .header-actions .btn-small { padding: 9px 12px; font-size: 0.85rem; } }
