/* adsome landing page. Colors follow the app (ui/src/styles.scss, app-preset.ts). */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --navy-950: #08111f;
  --navy-900: #0f1d33;
  --navy-800: #182a47;
  --navy-700: #1d355a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --border: #e4e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --on-dark: #e6edf7;
  --on-dark-muted: #9fb0c8;
  --green: #10b981;
  --amber: #f59e0b;
  --violet: #7c3aed;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(8, 17, 31, 0.35);
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue-600);
  color: #fff;
}

.skip:focus {
  left: 8px;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.btn-white {
  background: #fff;
  color: var(--blue-700);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(8, 17, 31, 0.25);
}

/* Top bar */

/* Always dark: at the top it matches the hero, below it keeps the light menu readable on white sections. */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(8, 17, 31, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow 0.2s;
}

.topbar.scrolled {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(8, 17, 31, 0.25);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-login-mobile {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  height: 38px;
  min-width: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  color: var(--on-dark);
  font: 600 0.82rem var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.menu {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.menu span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.menu[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 110px;
  color: var(--on-dark);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(124, 58, 237, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-300);
  font-size: 0.85rem;
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  color: #fff;
}

.hero h1 span {
  display: block;
}

.grad {
  background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--on-dark-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Hero visual: the app window with floating cards */

.hero-visual {
  position: relative;
  padding: 24px 0 36px;
}

.window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: #f1f4f9;
  border-bottom: 1px solid var(--border);
}

.window-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}

.window-bar > span:nth-child(2) {
  background: #fbbf24;
}

.window-bar > span:nth-child(3) {
  background: #34d399;
}

.window-url {
  flex: 1;
  max-width: 300px;
  margin-left: 14px;
  padding: 3px 12px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-body {
  display: flex;
  height: 340px;
}

.mini-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 52px;
  padding: 14px 0;
  background: var(--navy-900);
}

.mini-side img {
  margin-bottom: 6px;
}

.mini-side i {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: #2b3d5b;
}

.mini-side i.on {
  background: var(--blue-500);
}

.map {
  position: relative;
  flex: 1;
  min-width: 0;
}

.map svg {
  width: 100%;
  height: 100%;
}

.route {
  animation: dash 1.4s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -26;
  }
}

.pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.map-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  color: var(--muted);
  font-size: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
}

.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
}

.chip.c-amber::before {
  background: var(--amber);
}

.chip.c-violet::before {
  background: var(--violet);
}

.float {
  position: absolute;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 40px rgba(8, 17, 31, 0.28);
  font-size: 0.82rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

.f-title {
  font-weight: 700;
  font-size: 0.84rem;
}

.f-sub {
  color: var(--muted);
  font-size: 0.76rem;
}

.f-sub.ok {
  color: #059669;
  font-weight: 600;
}

.f-offer {
  top: -6px;
  right: -18px;
  width: 248px;
}

.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.b-blue {
  background: var(--blue-50);
  color: var(--blue-700);
}

.f-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}

.f-row b {
  color: var(--text);
  font-size: 0.95rem;
}

.bar {
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 3px;
  background: #eef2f7;
  overflow: hidden;
}

.bar i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--violet));
}

.f-job {
  left: -26px;
  bottom: 4px;
  display: flex;
  gap: 12px;
  width: 248px;
  animation-delay: -2s;
}

.f-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d1fae5;
}

.f-check svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #059669;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.thumbs i {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.thumbs i:nth-child(2) {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.thumbs i:nth-child(3) {
  background: linear-gradient(135deg, #a7f3d0, #10b981);
}

.thumbs span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.f-approve {
  right: 18px;
  bottom: -10px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation-delay: -4s;
}

.seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ede9fe;
}

.seal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Flow strip */

.strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}

.chain li {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.chain li:not(:last-child)::after {
  content: '';
  width: 26px;
  height: 10px;
  margin: 0 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10' fill='none' stroke='%2393c5fd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h23M20 1l4 4-4 4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.chain li:first-child,
.chain li:last-child {
  color: var(--blue-700);
}

/* Sections */

.section {
  padding: 104px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section.dark {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
}

.section-head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.dark .section-head h2 {
  color: #fff;
}

.kicker {
  margin-bottom: 12px;
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dark .kicker {
  color: var(--blue-400);
}

/* Features */

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

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-100);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px rgba(37, 99, 235, 0.1);
}

.card.wide {
  grid-column: span 2;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(59, 130, 246, 0.1), transparent 70%),
    var(--surface);
}

.card h3 {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.i-indigo {
  background: #e0e7ff;
  color: #4338ca;
}

.i-violet {
  background: #ede9fe;
  color: #6d28d9;
}

.i-amber {
  background: #fef3c7;
  color: #b45309;
}

.i-green {
  background: #d1fae5;
  color: #047857;
}

.i-sky {
  background: #e0f2fe;
  color: #0369a1;
}

.i-rose {
  background: #ffe4e6;
  color: #be123c;
}

.i-orange {
  background: #ffedd5;
  color: #c2410c;
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}

.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.ticks.lg {
  gap: 14px;
  margin-top: 28px;
  font-size: 1rem;
}

/* Order flow */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-300), var(--violet));
  opacity: 0.5;
}

.steps li {
  position: relative;
  text-align: center;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue-100);
  background: #fff;
  color: var(--blue-700);
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg-alt);
}

.steps li:last-child .num {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.steps h3 {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Field */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.split-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
}

.split-copy > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-wrap::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  filter: blur(30px);
}

.phone {
  position: relative;
  width: 290px;
  padding: 12px;
  border-radius: 42px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 22px;
  margin-left: -48px;
  border-radius: 0 0 14px 14px;
  background: var(--navy-900);
  z-index: 2;
}

.phone-screen {
  overflow: hidden;
  border-radius: 32px;
  background: var(--bg-alt);
  padding-bottom: 16px;
}

.p-head {
  display: flex;
  flex-direction: column;
  padding: 38px 18px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.p-head span {
  font-weight: 700;
  font-size: 1rem;
}

.p-head small {
  color: var(--muted);
  font-size: 0.75rem;
}

.p-map svg {
  width: 100%;
  height: 110px;
}

.p-jobs {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 12px;
  list-style: none;
}

.p-jobs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.p-jobs li.done {
  opacity: 0.6;
}

.p-jobs div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.p-jobs b {
  font-size: 0.82rem;
}

.p-jobs small {
  color: var(--muted);
  font-size: 0.7rem;
}

.p-jobs em {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}

.p-jobs li.done em {
  color: var(--green);
}

.k {
  flex: none;
  width: 58px;
  padding: 3px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
}

.k-green {
  background: #d1fae5;
  color: #047857;
}

.k-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.k-amber {
  background: #fef3c7;
  color: #b45309;
}

.k-violet {
  background: #ede9fe;
  color: #6d28d9;
}

.p-btn {
  margin: 14px 12px 0;
  padding: 11px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Audience */

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

.aud {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue-600);
}

.aud:nth-child(2) {
  border-top-color: var(--green);
}

.aud:nth-child(3) {
  border-top-color: var(--violet);
}

.aud h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.aud p {
  margin-top: 12px;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-700), var(--blue-600) 50%, #4f46e5);
  color: #fff;
}

.facts div {
  text-align: center;
}

.facts dt {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Security */

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

.sec {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sec h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.sec h3::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.sec p {
  margin-top: 10px;
  color: var(--on-dark-muted);
  font-size: 0.93rem;
}

/* Contact: the demo form */

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding: 56px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 0% 100%, rgba(167, 139, 250, 0.3), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
}

.cta-copy > p {
  margin-top: 14px;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}

.next {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  counter-increment: next;
}

.next li::before {
  content: counter(next);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.16);
  color: var(--blue-300);
  font-weight: 700;
  font-size: 0.85rem;
}

.demo-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(8, 17, 31, 0.3);
}

.demo-form {
  display: grid;
  gap: 14px;
}

.demo-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 10px center / 16px no-repeat;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field .invalid,
.check.invalid {
  border-color: #ef4444;
}

.field .invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue-600);
}

.check.invalid span {
  color: #b91c1c;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 4px;
}

.human {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.human i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
}

.human[data-state='working'] i {
  border-color: var(--blue-100);
  border-top-color: var(--blue-600);
  animation: spin 0.8s linear infinite;
}

.human[data-state='done'] i {
  border: 0;
  background: #d1fae5
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.human[data-state='done'] {
  color: #047857;
}

.human[data-state='failed'] {
  color: #b91c1c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-form .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.88rem;
}

.demo-done {
  padding: 36px 8px;
  text-align: center;
  outline: none;
}

.done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #d1fae5;
}

.done-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #059669;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-done h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.demo-done p {
  margin-top: 8px;
  color: var(--muted);
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer .copy {
  margin-left: auto;
}

/* Reveal on scroll (only with JavaScript, see main.js) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }

  .window {
    transform: none;
  }

  .f-offer {
    right: -8px;
  }

  .f-job {
    left: -8px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 36px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(15, 29, 51, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    font-size: 1rem;
  }

  .nav-login-mobile {
    display: block;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .menu {
    display: flex;
  }

  .hide-sm {
    display: none;
  }

  .bento,
  .audience,
  .sec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card.wide {
    grid-column: span 2;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 112px 0 72px;
  }

  .topbar-inner {
    gap: 12px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .window-body {
    height: 260px;
  }

  .mini-side {
    display: none;
  }

  .window-url {
    margin-left: 8px;
  }

  .float {
    font-size: 0.76rem;
    padding: 10px 12px;
  }

  .f-offer {
    top: -18px;
    right: -4px;
    width: 210px;
  }

  .f-job {
    left: -4px;
    bottom: 0;
    width: 214px;
  }

  .f-approve {
    display: none;
  }

  .chain li {
    font-size: 0.82rem;
  }

  .chain li:not(:last-child)::after {
    width: 16px;
    margin: 0 6px;
  }

  .bento,
  .audience,
  .sec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card.wide {
    grid-column: auto;
  }

  .card {
    padding: 24px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
  }

  .steps .num {
    grid-row: span 2;
  }

  .steps h3 {
    margin-top: 0;
    align-self: end;
  }

  .phone {
    width: 270px;
  }

  .facts {
    padding: 24px 16px;
  }

  .cta {
    padding: 28px 16px;
    border-radius: 22px;
  }

  .demo-card {
    padding: 20px 16px;
  }

  .demo-form .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-foot .btn {
    flex: 1 1 100%;
  }

  .footer .copy {
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- guide: the first week */
.gsteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: gstep;
}

.gstep {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gstep::after {
  content: '';
  position: absolute;
  top: 38px;
  right: -19px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-300), transparent);
}

.gstep:last-child::after {
  display: none;
}

.gstep-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gstep-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-weight: 700;
}

.gstep-day {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.gstep-time {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.gstep h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.gstep p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.ticks {
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--border);
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.roles-title {
  margin: 56px 0 18px;
  font-size: 1.25rem;
  text-align: center;
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.role {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.role h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.role ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.inapp {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--on-dark);
}

.inapp-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--blue-400);
  color: var(--blue-300);
  font-size: 1.2rem;
  font-weight: 700;
}

.inapp p {
  margin: 0 auto 0 0;
  line-height: 1.5;
}

.inapp .btn {
  flex: none;
}

/* ---------------------------------------------------------------- frequently asked questions */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 100px;
}

.faq-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.faq-head p:not(.kicker) {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.faq {
  display: grid;
  gap: 10px;
}

.qa {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.qa[open] {
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
}

.qa summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::before,
.qa summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
  transition: transform 0.2s;
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.qa summary:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.qa p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .gsteps,
  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gstep::after {
    display: none;
  }
}

@media (max-width: 920px) {
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-head {
    position: static;
  }

  .inapp {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .gsteps,
  .roles {
    grid-template-columns: 1fr;
  }

  .roles-title {
    margin-top: 40px;
  }
}
