/* ==========================================================================
   Vently Solutions — home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 0.98;
  max-width: 11ch;
}
.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-dark-muted);
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 0.9375rem; color: var(--on-dark-muted); }

.hero-copy > .hero-sub,
.hero-copy > .hero-actions,
.hero-copy > .hero-note {
  animation: heroFade 0.9s var(--ease) both;
}
.hero-copy > .hero-sub { animation-delay: 0.55s; }
.hero-copy > .hero-actions { animation-delay: 0.7s; }
.hero-copy > .hero-note { animation-delay: 0.85s; }
.ledger { animation: heroRise 1s var(--ease) 0.35s both; }
@keyframes heroFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Call ledger (hero) ---------- */
.ledger {
  background: #f7f8fa;
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.ledger-title { font-family: var(--font-display); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.2; }
.ledger-sub { margin-top: 2px; font-size: 0.8125rem; color: var(--muted); }

.mode {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #e4e9f0;
  border-radius: 999px;
  isolation: isolate;
}
.mode button {
  position: relative;
  z-index: 1;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.25s;
}
.mode button[aria-pressed="true"] { color: var(--ink); }
.mode-thumb {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(11, 23, 48, 0.22);
  transition: transform 0.45s var(--ease);
}
.mode[data-mode="with"] .mode-thumb { transform: translateX(100%); }

.log-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.log-row:first-child { border-top: 0; }
.log-time { font-size: 0.8438rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-req strong { display: block; font-weight: 600; font-size: 0.9688rem; line-height: 1.3; }
.log-note { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); transition: opacity 0.16s; }

.js .log-row { opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .log-row.is-in { opacity: 1; transform: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.16s, transform 0.16s, background-color 0.25s, color 0.25s;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--miss { background: var(--miss-tint); color: var(--miss-ink); }
.chip--ok { background: var(--go-tint); color: var(--go-ink); }
.chip--handoff { background: #e7ecf6; color: #23406e; }
.chip.is-swap, .log-note.is-swap { opacity: 0; }
.chip.is-swap { transform: translateY(5px); }

.ledger-foot { padding: 18px 22px 20px; background: #fff; border-top: 1px solid var(--line); }
.tally { display: flex; align-items: baseline; gap: 10px; font-size: 0.9688rem; color: var(--muted); }
.tally b {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ticks { display: flex; gap: 4px; margin-top: 12px; }
.ticks i { flex: 1; height: 6px; border-radius: 3px; background: #dbe0e9; transition: background-color 0.35s; }
.ticks i.miss { background: var(--miss); }
.ticks i.on { background: var(--go); }
.ledger-caption { margin-top: 12px; font-size: 0.9062rem; line-height: 1.5; color: var(--muted); min-height: 2.7em; }

@media (max-width: 560px) {
  .log-row { grid-template-columns: 52px minmax(0, 1fr); row-gap: 8px; padding: 14px 18px; }
  .log-row .chip { grid-column: 2; justify-self: start; }
  .ledger-head, .ledger-foot { padding-inline: 18px; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.prose p { color: #2a3a56; max-width: 52ch; }
.prose p + p { margin-top: 18px; }
.prose .lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink); }

/* ---------- Services ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.two-col--wide-right { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.two-col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.sticky-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.sticky-intro .lede { margin-top: 20px; }

.svc-group + .svc-group { margin-top: clamp(40px, 6vw, 64px); }
.svc-group h3 { margin-bottom: 14px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.svc-group li:last-child { border-bottom: 1px solid var(--line); }
.svc::before {
  content: "";
  position: absolute;
  left: -16px; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--blue-500);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.svc:hover::before, .svc:focus-within::before { transform: scaleY(1); }
.svc h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
.svc p { grid-column: 1; max-width: 50ch; color: var(--muted); }
.svc-ask {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.2s;
}
.svc:hover .svc-ask, .svc-ask:focus-visible { text-decoration-color: var(--go-ink); }

/* ---------- Process ---------- */
.rail { position: relative; --p: 0; --line-h: 0px; }
.rail-line {
  position: absolute;
  left: 19px; top: 20px;
  width: 2px;
  height: var(--line-h);
  background: var(--line-dark);
  border-radius: 2px;
}
.rail-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-500);
  border-radius: 2px;
  transform: scaleY(var(--p));
  transform-origin: top;
}
.step { position: relative; padding: 0 0 clamp(40px, 6vw, 64px) 76px; }
.step:last-child { padding-bottom: 0; }
.node {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1.5px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--on-dark-muted);
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}
.step h3 {
  padding-top: 5px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--on-dark-muted);
  transition: color 0.4s;
}
.step p { margin-top: 10px; max-width: 46ch; color: var(--on-dark-muted); }
.step.is-active .node { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.step.is-active h3 { color: #fff; }

/* ---------- Sample conversations ---------- */
.tabs { display: grid; gap: 10px; margin-top: 36px; }
.tab {
  position: relative;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: background-color 0.25s, border-color 0.25s;
}
.tab::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  background: var(--blue-500);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}
.tab:hover { background: rgba(255, 255, 255, 0.65); }
.tab[aria-selected="true"] { background: #fff; border-color: var(--line); }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab strong { display: block; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.tab span { display: block; margin-top: 2px; font-size: 0.9688rem; color: var(--muted); }

.chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(11, 23, 48, 0.4);
}
.chat-head, .chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}
.chat-head { border-bottom: 1px solid var(--line); }
.chat-head strong { color: var(--ink); font-weight: 600; font-size: 0.9688rem; }
.chat-foot { border-top: 1px solid var(--line); }
.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 410px; padding: 22px 20px; }
.msg {
  max-width: 84%;
  padding: 11px 15px;
  font-size: 0.9844rem;
  line-height: 1.45;
  border-radius: 16px;
  animation: msgIn 0.4s var(--ease) both;
}
.msg small { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 600; opacity: 0.65; }
.msg--them { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; }
.msg--us { align-self: flex-end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 4px; }
.typing {
  align-self: flex-end;
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  background: var(--navy-900);
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  animation: msgIn 0.3s var(--ease) both;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.4; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--go-tint);
  color: var(--go-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  animation: msgIn 0.4s var(--ease) both;
}
.outcome svg { width: 20px; height: 20px; flex: none; }
.replay { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.35; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }

/* ---------- Founding partners ---------- */
.perks { margin-top: 0; }
.perks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.perks li:last-child { border-bottom: 1px solid var(--line); }
.perks svg { flex: none; width: 26px; height: 26px; margin-top: 1px; color: var(--go-ink); }
.founding-cta { margin-top: 32px; }

/* ---------- FAQ preview ---------- */
.link-underline { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--line); transition: text-decoration-color 0.2s; }
.link-underline:hover { text-decoration-color: var(--ink); }
.sticky-intro .link-underline { display: inline-block; margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-list { margin: 40px 0 0; display: grid; gap: 24px; }
.contact-list dt { font-size: 0.9062rem; color: var(--on-dark-muted); }
.contact-list dd { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--blue-500), var(--blue-500)) 0 100% / 0 1.5px no-repeat; transition: background-size 0.35s var(--ease); }
.contact-list a:hover { background-size: 100% 1.5px; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cdd5e2;
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:hover { border-color: #9fabc0; }
.input:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(37, 194, 110, 0.5); }
.input[aria-invalid="true"] { border-color: var(--miss); }
textarea.input { min-height: 124px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230b1730' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.err { min-height: 1.2em; font-size: 0.875rem; color: var(--miss-ink); }
.err:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: 0.875rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .two-col, .two-col--wide-right, .two-col--even { grid-template-columns: 1fr; }
  .sticky-intro { position: static; }
  .hero h1 { max-width: 14ch; }
  .svc::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-ask { grid-column: 1; grid-row: auto; justify-self: start; padding-top: 6px; }
  .form-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .step { padding-left: 64px; }
}
