/* HopMango landing. Plain CSS, brand tokens as custom properties. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/inter-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  --orange: #ff9f1c;
  --orange-text: #c2540a;
  --yellow: #ffc94d;
  --green: #7ed957;
  --green-text: #1f7a3a;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --slate: #475569;
  --slate-2: #94a3b8;
  --line: #e2e8f0;
  --off-white: #f8fafc;
  --white: #ffffff;
  --text-on-dark: #f1f5f9;

  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / 0.08), 0 24px 60px rgb(15 23 42 / 0.18);
  --font: 'Inter Variable', Inter, ui-sans-serif, 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;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 600;
}
.skip:focus { top: 12px; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Type */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 14px;
}
.kicker-on-dark { color: var(--orange); }

.display {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
}
.display em { font-style: normal; color: var(--orange-text); }

.section-sub {
  margin-top: 16px; max-width: 56ch; font-size: 18px; color: var(--slate);
}

/* Wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { width: 34px; height: 34px; }
.wordmark {
  font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
}
.wordmark-sm { font-size: 20px; }
.wm-hop { color: var(--navy); }
.wm-hop-dark { color: var(--white); }
.wm-mango { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #ffad3f; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: rgb(15 23 42 / 0.06); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: rgb(15 23 42 / 0.06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(248 250 252 / 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.site-nav { display: flex; gap: 6px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--slate);
}
.site-nav a:hover { color: var(--navy); background: rgb(15 23 42 / 0.05); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 36px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; color: var(--slate);
}
.lang-switch:hover { color: var(--navy); border-color: var(--slate-2); }

/* Hero */
.hero { padding: 72px 0 40px; background: var(--off-white); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin-top: 4px;
}
.lede { margin-top: 24px; max-width: 46ch; font-size: 20px; color: var(--slate); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--slate); max-width: 52ch; }
.hero-art svg { width: min(100%, 440px); height: auto; margin-inline: auto; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.section-alt .card { background: var(--off-white); }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--slate); font-size: 16px; flex: 1; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(255 159 28 / 0.14); color: var(--orange-text);
}
.card-icon svg { width: 22px; height: 22px; }
.card-ref {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-text); text-decoration: none; border-bottom: 2px solid rgb(255 159 28 / 0.4); padding-bottom: 2px;
}
.card-ref:hover { border-color: var(--orange); }

.mood { align-items: center; text-align: center; padding-top: 20px; }
.mood-art svg { width: 132px; height: 132px; }
.mood-label { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }

/* Dark band */
.band { background: var(--navy); color: var(--text-on-dark); }
.band .display { color: var(--white); }
.band .section-sub { color: var(--slate-2); }
.band-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.band-copy { position: relative; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-on-dark); font-size: 16px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17.5 8.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17.5 8.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.band-mascot { margin-top: 32px; }
.band-mascot svg { width: 150px; height: 150px; }

/* The dashboard mock, pure HTML and CSS */
.mock {
  display: grid; grid-template-columns: 172px 1fr; border-radius: 18px; overflow: hidden;
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-lg);
  font-size: 12px; line-height: 1.35; min-width: 0;
}
.mock-side { background: var(--navy-2); color: #cbd5e1; padding: 16px 12px; }
.mock-brand { display: flex; align-items: center; gap: 8px; padding: 4px 6px 16px; }
.mock-brand-mark svg { width: 22px; height: 22px; }
.mock-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mock-nav li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.mock-nav li.is-active { background: rgb(255 255 255 / 0.1); color: var(--white); }
.mock-dot { width: 8px; height: 8px; border-radius: 3px; background: currentColor; opacity: 0.6; }
.mock-nav li.is-active .mock-dot { background: var(--orange); opacity: 1; }

.mock-main { padding: 14px 18px 18px; background: var(--off-white); min-width: 0; }
.mock-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.mock-search {
  flex: 0 1 200px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--slate-2);
}
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--white); }

.mock-status {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
}
.mock-status strong { display: block; font-size: 15px; font-weight: 700; }
.mock-status span { color: var(--slate); }
.mock-check {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--green); color: var(--navy);
}
.mock-check svg { width: 20px; height: 20px; }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mock-kpi { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.mock-kpi-label { color: var(--slate); font-size: 11px; }
.mock-kpi-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.mock-kpi-value small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.mock-kpi-delta { color: var(--green-text); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-chart {
  position: relative; margin-top: 12px; padding: 12px 14px 26px 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
}
.mock-chart-title { display: block; font-weight: 700; margin-bottom: 10px; margin-left: -30px; }
.mock-chart svg { width: 100%; height: 96px; }
.mock-axis {
  position: absolute; left: 12px; top: 42px; height: 96px; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 9px; color: var(--slate-2);
}
.mock-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9px; color: var(--slate-2); }

/* On-call */
.oncall-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 48px; align-items: center; }
.oncall-art svg { width: min(100%, 300px); height: auto; margin-inline: auto; }
.oncall-grid .btn { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 40px 0 32px; }
.values {
  list-style: none; margin: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
}
.values li { display: inline-flex; align-items: center; gap: 10px; }
.values svg { width: 18px; height: 18px; color: var(--navy); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--slate); text-decoration: none; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.footer-domain { margin-left: auto; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }

/* Responsive */
@media (max-width: 1024px) {
  .band-grid { grid-template-columns: 1fr; gap: 40px; }
  .band-mascot { display: none; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(70vw, 300px); }
  .cards-3 { grid-template-columns: 1fr; }
  .oncall-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
  .footer-domain { margin-left: 0; }
}

@media (max-width: 600px) {
  .container { width: min(1160px, 100% - 32px); }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: flex; align-items: center; gap: 10px; padding: 10px 12px; overflow: hidden; }
  .mock-brand { padding: 0; flex: none; }
  .mock-nav { display: flex; gap: 0; flex: 1; min-width: 0; overflow: hidden; }
  .mock-nav li { padding: 6px 8px; white-space: nowrap; }
  .mock-nav li:nth-child(n + 4) { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
