:root {
  --bg: #ffffff;
  --surface: #f8fafd;
  --surface-2: #f1f4f8;
  --text: #202124;
  --muted: #5f6368;
  --faint: #80868b;
  --line: #dadce0;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --green: #188038;
  --red: #c5221f;
  --yellow: #fbbc04;
  --radius: 18px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(218, 220, 224, 0.72);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
  background: #fff;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--blue);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 10px;
  border-color: var(--green);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(225deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button:hover {
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}

.section.tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  font-weight: 700;
}

h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  font-weight: 700;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  margin-bottom: 30px;
}

.copy {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-image {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(60, 64, 67, 0.18);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.trust-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  background: #fff;
}

.trust-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.page-hero {
  max-width: 900px;
  padding-bottom: 28px;
}

.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.subnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.usecase-grid {
  display: grid;
  gap: 18px;
}

.card-row {
  margin-top: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.card.media {
  padding: 0;
  overflow: hidden;
}

.card.media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card p,
.feature-list p {
  color: var(--muted);
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e6f4ea;
  color: var(--green);
  font-weight: 800;
  margin-top: 2px;
}

.product-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: var(--surface);
}

.mock-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.mock-top {
  height: 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.mock-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.mock-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 60px;
  gap: 12px;
  align-items: center;
}

.mock-label {
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.status {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.quote {
  border-left: 4px solid var(--blue);
  padding-left: 22px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.industry-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 54px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  background: #fff;
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 20px 60px rgba(26, 115, 232, 0.12);
}

.price {
  font-size: 44px;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 18px 0;
}

.price span {
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0;
}

.price-list {
  padding-left: 18px;
  margin: 18px 0 24px;
  color: var(--muted);
}

.price-list li {
  margin-bottom: 8px;
}

.section-note {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  padding: 16px 18px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  color: var(--muted);
}

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

.form {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-meta {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-meta-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.contact-meta-item strong {
  display: block;
  margin-bottom: 4px;
}

/* Header login link (plain, sits beside the CTA buttons) */
.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 6px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

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

/* The auth-page header has no hamburger, so keep its CTA visible at every width
   (the global rule hides .nav-cta below 760px). */
.auth-header .nav-cta {
  margin-left: auto;
}

@media (max-width: 760px) {
  .auth-header .nav {
    height: 62px;
    padding: 0 18px;
  }

  .auth-header .nav-cta {
    display: flex;
  }
}

/* ---- Auth page (login.html) ---- */
.auth-main {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(1100px 520px at 50% -10%, var(--blue-soft), transparent 70%),
    var(--surface);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(60, 64, 67, 0.14);
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-head h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.auth-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--surface-2);
  border-radius: 999px;
}

.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 0;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}

.social-auth {
  display: grid;
  gap: 10px;
  margin: -4px 0 18px;
}

.social-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.social-auth-buttons {
  display: grid;
  gap: 8px;
}

.social-auth-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.social-auth-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.social-auth-mark {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 60px;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.auth-hint {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.auth-error {
  display: none;
  border: 1px solid rgba(197, 34, 31, 0.35);
  background: #fce8e6;
  color: var(--red);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.auth-error.show {
  display: block;
}

.auth-form .button.primary {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.auth-form .button[disabled] {
  opacity: 0.65;
  cursor: default;
}

.auth-meta {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-legal {
  margin-top: 14px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.auth-legal a {
  color: var(--muted);
  text-decoration: underline;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-sent {
  border: 1px solid rgba(24, 128, 56, 0.35);
  background: #e6f4ea;
  color: var(--green);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 14px;
}

.auth-actions {
  margin-top: 20px;
  text-align: center;
}

.auth-actions .button.primary {
  width: 100%;
  min-height: 48px;
}

#turnstile-holder {
  min-height: 0;
}

#turnstile-holder.cf-turnstile {
  margin: 2px 0;
}

/* login-only rows (e.g. "Forgot password?") hide in signup mode. */
.auth-form.mode-signup .login-only {
  display: none;
}

/* Higher specificity than `.auth-form label` (0,1,1) so signup-only fields
   actually hide in login mode; the mode-signup rule (0,3,0) re-shows them. */
.auth-form .signup-only {
  display: none;
}

.auth-form.mode-signup .signup-only {
  display: grid;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid.three,
  .grid.two,
  .pricing,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid {
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .nav {
    height: 62px;
    padding: 0 18px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav.open {
    height: auto;
    padding: 14px 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav.open .brand {
    height: 42px;
  }

  .nav.open .nav-links,
  .nav.open .nav-cta {
    width: 100%;
    display: grid;
    gap: 12px;
    margin: 0;
  }

  .section {
    padding: 64px 18px;
  }

  .hero {
    padding: 48px 18px 32px;
  }

  h1 {
    font-size: 48px;
  }

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

/* ---- Cookie notice ---- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(60, 64, 67, 0.18);
}

.cookie-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cookie-text a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-ok {
  min-height: 38px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cookie-bar {
    left: 68px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
  }

  .cookie-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .cookie-ok {
    min-height: 34px;
  }
}

/* ---- Legal / long-form content ---- */
.legal {
  max-width: 820px;
}

.legal h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 34px;
  margin-bottom: 10px;
}

.legal h3 {
  font-size: 17px;
  margin-top: 22px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.legal ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .note {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--faint);
}

/* ---- Trust / social-proof band ---- */
.trust-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  align-items: center;
  justify-content: center;
  padding: 6px 0 10px;
}

.logo-chip {
  color: var(--faint);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 18px;
  opacity: 0.72;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.testimonial p {
  color: var(--text);
  font-size: 16px;
  margin: 0;
}

.testimonial .who {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.compliance-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.compliance-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.compliance-item strong {
  display: block;
  margin-bottom: 4px;
}

.compliance-item span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .testimonials,
  .compliance-row {
    grid-template-columns: 1fr;
  }
}
