/* Wagemap website: the app's Halo look (navy from the icon, mint money, cobalt actions). */
:root {
  --bg: #05070a;
  --navy: #1d2850;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f6fb;
  --text2: #a9b2c7;
  --text3: #6f7a93;
  --mint: #34e0a1;
  --amber: #ffbe2e;
  --cobalt: #7b93ff;
  --cobalt-strong: #3a5bff;
  --night: #1e2a44;
  --warn: #ffb547;
  --radius: 24px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
}

h1,
h2,
h3 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 72% 8%, var(--navy) 0%, var(--bg) 62%);
  overflow: hidden;
}

.backdrop::before,
.backdrop::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: drift 18s ease-in-out infinite alternate;
}

.backdrop::before {
  width: 46vw;
  height: 46vw;
  right: 4vw;
  top: -10vw;
  background: rgba(58, 91, 255, 0.28);
}

.backdrop::after {
  width: 38vw;
  height: 38vw;
  left: -8vw;
  top: 55vh;
  background: rgba(52, 224, 161, 0.1);
  animation-delay: -9s;
}

@keyframes drift {
  to {
    transform: translate(-6vw, 4vh);
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* The W draws itself, then the dots pop in */
.mark-line {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw 1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.mark-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mark-dot.start {
  animation-delay: 0.15s;
}

.mark-dot.end {
  animation-delay: 1.15s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.mint {
  color: var(--mint);
}

.nowrap {
  white-space: nowrap;
}

.lede {
  color: var(--text2);
  font-size: 20px;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--cobalt);
  color: #0b1020;
  font-weight: 700;
  text-decoration: none;
}

.pill.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--text2);
  font-size: 15px;
}

.promises span::before {
  content: '✓';
  color: var(--mint);
  font-weight: 700;
  margin-right: 6px;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: up 0.7s ease forwards;
}

@keyframes up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Phone */
.phone {
  justify-self: center;
  width: 300px;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(160deg, #2a3350, #0b0f18);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screen {
  border-radius: 34px;
  background: #080b0f;
  padding: 26px 18px 22px;
  min-height: 560px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
  font-weight: 600;
}

.screen-title {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin: 2px 0 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

.money {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 38px;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bar {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0 6px;
  gap: 3px;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 1s ease 1.6s forwards;
}

@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

.legend {
  font-size: 12px;
  color: var(--text3);
}

.rota {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.rota b {
  aspect-ratio: 1;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  animation: popin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popin {
  to {
    opacity: 1;
    transform: none;
  }
}

.d {
  background: #f2a900;
  color: #1a1200;
}

.n {
  background: var(--night);
  color: #fff;
}

.ot {
  background: #12b886;
  color: #04140e;
}

.h {
  background: #4cc3ff;
  color: #04121a;
}

.o {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text3);
}

/* Sections */
section {
  padding-top: 56px;
  padding-bottom: 56px;
}

section > h2 {
  font-size: clamp(30px, 4vw, 42px);
  text-align: center;
}

.sub {
  text-align: center;
  color: var(--text2);
  max-width: 40em;
  margin: 0 auto 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 20px;
}

.feature p {
  color: var(--text2);
  margin: 0;
}

.check-demo {
  font-size: 15px;
}

.check-demo div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.flag {
  background: rgba(255, 181, 71, 0.14);
  color: var(--warn);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  margin-top: 6px;
}

.private {
  text-align: center;
  background: linear-gradient(135deg, rgba(52, 224, 161, 0.12), rgba(58, 91, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 24px;
}

.private h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.price.pro {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt) inset;
}

.price .amount {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 34px;
}

.price ul {
  padding-left: 1.1em;
  color: var(--text2);
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0 auto 10px;
  max-width: 760px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  color: var(--text2);
  margin: 10px 0 0;
}

/* Legal pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 46px);
}

.doc h2 {
  font-size: 24px;
  margin-top: 1.8em;
}

.doc p,
.doc li {
  color: #d3d9e6;
}

.doc .updated {
  color: var(--text3);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.doc th {
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  padding-bottom: 48px;
  color: var(--text3);
  font-size: 14px;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

footer a {
  color: var(--text2);
  text-decoration: none;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 24px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links .hide-sm {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .mark-line {
    stroke-dashoffset: 0;
  }

  .mark-dot,
  .rota b,
  .fade-up {
    opacity: 1;
    transform: none;
  }

  .bar i {
    transform: none;
  }
}
