/*
 * www.hosvela.com — first-layer public pages (landing and /login).
 *
 * Locked design, 23/09/2026: dark brand moments (charcoal) opening onto warm
 * paper working surfaces. Inter for display and UI, IBM Plex Mono for micro
 * labels and status. Gradients appear ONLY inside the marks — no gradient
 * buttons or chrome. Module colours are signals (chips, dots, rules), never
 * large fills, and every status is also a text label.
 *
 * CONTRAST: --faint (#8A8D93) fails AA as text on paper (2.95:1) and is used
 * for rules/decoration only.
 */
:root {
  --charcoal: #0B0F14;
  --slate: #1A1F26;
  --paper: #F4F1EB;
  --paper-raised: #FFFFFF;
  --paper-tint: #FBFAF6;
  --text-body: #3A3F47;
  --text-muted: #5B5F66;
  --faint: #8A8D93;
  --rule: rgba(11, 15, 20, 0.12);
  --rule-dark: rgba(244, 241, 235, 0.12);
  --cream-75: rgba(244, 241, 235, 0.75);
  --cream-70: rgba(244, 241, 235, 0.70);
  --eod: #A78BFA;
  --pos: #FB7185;
  --people: #60A5FA;
  --stock: #34D399;
  --crm: #FBBF24;
  --tile-top: #1D232C;
  --danger: #B42318;
  --gutter: 80px;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --signal: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { background: var(--paper); color: var(--charcoal); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.micro {
  margin: 0;
  font: 500 12px/1.2 var(--signal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dark .micro { color: var(--cream-70); }

:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--paper); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); color: var(--charcoal); padding: 10px 14px; border-radius: 9px; }

/* ── Buttons (never gradient) ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font: 500 15px/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-paper { background: var(--paper); color: var(--charcoal); }
.btn-paper:hover { background: #fff; }
.btn-outline-dark { border-color: rgba(244, 241, 235, 0.45); color: var(--paper); background: transparent; }
.btn-outline-dark:hover { border-color: var(--paper); }
.btn-ink { background: var(--charcoal); color: var(--paper); }
.btn-ink:hover { background: var(--slate); }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; }

/* ── Icon tiles (V on charcoal) ───────────────────────────────────────── */
.tile {
  --size: 52px; --glow: 167, 139, 250;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: var(--size); height: var(--size); border-radius: calc(var(--size) * 0.24);
  background: linear-gradient(160deg, var(--tile-top) 0%, var(--charcoal) 65%);
  border: 1px solid rgba(244, 241, 235, 0.06);
  box-shadow: 0 calc(var(--size) * 0.12) calc(var(--size) * 0.4) rgba(var(--glow), 0.30);
}
.tile img { width: 58%; }
.tile.is-brand img { width: 60%; }
.tile.is-disabled { box-shadow: 0 calc(var(--size) * 0.12) calc(var(--size) * 0.4) rgba(var(--glow), 0.12); }
.tile.is-disabled img { opacity: 0.45; }
.tile.m-eod { --glow: 167, 139, 250; }
.tile.m-pos { --glow: 251, 113, 133; }
.tile.m-people { --glow: 96, 165, 250; }
.tile.m-stock { --glow: 52, 211, 153; }
.tile.m-crm { --glow: 251, 191, 36; }

/* ── A. Hero (dark) ───────────────────────────────────────────────────── */
.dark { background: var(--charcoal); color: var(--paper); }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  inset: -10% -10% auto 40%; height: 120%;
  background: radial-gradient(45% 40% at 60% 40%, rgba(124, 108, 245, 0.22), transparent 70%),
              radial-gradient(35% 30% at 80% 65%, rgba(96, 165, 250, 0.12), transparent 70%);
}
.topbar { position: relative; border-bottom: 1px solid var(--rule-dark); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.topbar .brand img { width: 168px; }
.topnav { display: flex; align-items: center; gap: 32px; }
.topnav a:not(.btn) { color: var(--paper); text-decoration: none; font-size: 15px; white-space: nowrap; }
.topnav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 700px) 1fr; gap: 48px; align-items: center; padding-top: 120px; padding-bottom: 96px; }
.hero h1 { margin: 24px 0 0; font-size: 92px; font-weight: 300; line-height: 0.95; letter-spacing: -0.05em; }
.hero .lede { margin: 28px 0 0; max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--cream-75); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-mark { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.hero-mark .v { width: 240px; } /* V brand: never above 240px anywhere */
.tile-row { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.hero-trace { position: relative; border-top: 1px solid var(--rule-dark); }
.hero-trace svg { display: block; width: 100%; height: 96px; }

/* ── B. Access (paper) ────────────────────────────────────────────────── */
.access { padding: 96px 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; }
.card h2 { margin: 18px 0 0; font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.card .secondary { margin: 12px 0 0; color: var(--text-muted); font-size: 16px; }
.card .btn { margin-top: 32px; align-self: flex-start; }
/* A card that ends in its action: pin the action to the bottom so paired cards align. */
.card > .btn:last-child { margin-top: auto; }
.card > :has(+ .btn:last-child) { margin-bottom: 32px; }

.field-label { display: block; margin-top: 28px; font-size: 14px; font-weight: 500; color: var(--text-body); }
.field { display: flex; margin-top: 10px; border: 1px solid rgba(11, 15, 20, 0.28); border-radius: 12px; overflow: hidden; background: #fff; }
.field:focus-within { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.field input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 0; outline: none;
  background: transparent; color: var(--charcoal); font: 400 17px/1 var(--signal);
}
.field input::placeholder { color: var(--text-muted); }
.field .suffix {
  display: inline-flex; align-items: center; padding: 0 16px; border-left: 1px solid var(--rule);
  background: var(--paper-tint); color: var(--text-muted); font: 400 15px/1 var(--signal);
}
.helper { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }
.error { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.card form .btn { margin-top: 14px; }

/* ── C. Product (paper) ───────────────────────────────────────────────── */
.product { padding: 32px 0 120px; }
.product .wrap { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 80px; align-items: center; }
.product h2 { margin: 20px 0 0; font-size: 48px; font-weight: 300; line-height: 1.02; letter-spacing: -0.045em; }
.product .body { margin: 20px 0 0; color: var(--text-body); font-size: 17px; line-height: 1.55; }
.shown { display: flex; align-items: center; gap: 14px; margin-top: 32px; font: 500 12px/1 var(--signal); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

.timeline-card { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
.timeline-band { background: var(--paper-tint); border-bottom: 1px solid var(--rule); padding: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }
/* Labels never break mid-phrase; on a narrow phone the status drops to its own line instead. */
.timeline-band .micro, .timeline-band .status { white-space: nowrap; }
.timeline-band .status { font: 500 12px/1 var(--signal); letter-spacing: 0.18em; color: var(--charcoal); display: inline-flex; align-items: center; gap: 8px; }
.timeline-band .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--eod); }
.timeline { list-style: none; margin: 0; padding: 12px 28px 20px; }
.timeline li { display: grid; grid-template-columns: 40px 28px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 0; }
.timeline .n { font: 400 13px/1 var(--signal); color: var(--text-muted); }
.timeline .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--charcoal); }
.timeline .is-current .dot { background: #fff; border: 2px solid var(--eod); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18); }
.timeline .is-pending .dot { background: transparent; border: 1.5px dashed var(--faint); }
.timeline strong { display: block; font-size: 16px; font-weight: 500; }
.timeline small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 14px; }
.timeline .state { font: 500 11px/1 var(--signal); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.timeline .is-current .state { color: var(--charcoal); }

/* ── D. Suite (dark) ──────────────────────────────────────────────────── */
.suite { padding: 120px 0; }
.suite-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.suite h2 { margin: 20px 0 0; font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -0.045em; }
.suite-head .v { width: 88px; }
.modules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; list-style: none; margin: 72px 0 0; padding: 0; }
.modules li { border-top: 1px solid var(--rule-dark); padding-top: 32px; }
.modules .tile { --size: 112px; }
.modules h3 { margin: 28px 0 0; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px;
  border: 1px solid var(--rule-dark); border-radius: 999px;
  font: 500 11px/1 var(--signal); letter-spacing: 0.16em; color: var(--cream-70);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.is-live { color: var(--eod); border-color: rgba(167, 139, 250, 0.4); }
.chip.is-crm { color: var(--crm); border-color: rgba(251, 191, 36, 0.4); }
.modules p { margin: 16px 0 0; color: var(--cream-70); font-size: 15px; line-height: 1.55; }

/* ── E. Footer (dark) ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule-dark); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 112px; }
.site-footer img { width: 130px; }
.site-footer small { font: 400 13px/1 var(--signal); color: var(--cream-70); }

/* ── /login (same system, paper) ──────────────────────────────────────── */
.login-top { border-bottom: 1px solid var(--rule-dark); }
.login-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.login-top img { width: 168px; }
.login-top a:not(.brand) { color: var(--paper); font-size: 15px; }
.login-main { padding: 80px 0 120px; }
.login-main h1 { margin: 0 0 40px; font-size: 56px; font-weight: 300; letter-spacing: -0.045em; line-height: 1; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .hero-body { grid-template-columns: 1fr; padding-top: 72px; }
  .hero h1 { font-size: 68px; }
  .hero-mark { align-items: flex-start; }
  .hero-mark .v { width: 240px; }
  /* minmax(0, …): a bare 1fr floors the track at the card's min-content, which the
     workspace field (input intrinsic width + .hosvela.com suffix) pushes past a phone. */
  .cards { grid-template-columns: minmax(0, 1fr); }
  .product .wrap { grid-template-columns: 1fr; gap: 48px; }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .topnav .nav-sections { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar .brand img, .login-top img { width: 96px; }
  .topbar .wrap { gap: 12px; }
  /* Collapses to the two sign-in actions; both stay, on one line. */
  .topnav { gap: 12px; }
  .topnav a:not(.btn) { font-size: 13px; }
  .topnav .btn { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .hero h1 { font-size: 48px; }
  .hero .lede { font-size: 17px; }
  .hero-mark .v { width: 180px; }
  .tile-row { gap: 10px; }
  .tile-row .tile { --size: 44px; }
  .card { padding: 28px 22px; }
  .card h2 { font-size: 26px; }
  .product h2, .login-main h1 { font-size: 36px; }
  .timeline li { grid-template-columns: 28px 22px 1fr; }
  .timeline .state { grid-column: 3; }
  .suite h2 { font-size: 40px; }
  .suite-head .v { display: none; }
  .modules { grid-template-columns: 1fr; }
  .field .suffix { padding: 0 10px; font-size: 13px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; justify-content: center; }
}
