:root {
  --ink: #0b0c0d;
  --muted: #5f6673;
  --soft: #f6f7f5;
  --line: #e7e9e5;
  --blue: #1d4ed8;
  --blue-soft: #eaf1ff;
  --blue-line: #bfd2ff;
  --green: #26c966;
  --green-ink: #0b7c3c;
  --green-soft: #eaf9ef;
  --green-line: #bdebcf;
  --red: #f04438;
  --red-soft: #fff0ee;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  --radius: 18px;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fbfbfa;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fbfbfa;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(21, 28, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 28, 36, 0.035) 1px, transparent 1px),
    #fbfbfa;
  background-size: 56px 56px;
}

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: min(1440px, calc(100% - 48px));
  min-height: 72px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px 16px 12px 22px;
  border: 1px solid rgba(231, 233, 229, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 30px;
}

.brand-mark i {
  position: absolute;
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: #050505;
  transform: rotate(-42deg);
}

.brand-mark i:first-child {
  left: 0;
  top: 4px;
}

.brand-mark i:last-child {
  right: 0;
  bottom: 4px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a,
.link-action {
  color: #1c1f24;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.site-nav a.is-active,
.site-nav a:hover,
.link-action:hover {
  color: var(--ink);
  text-decoration: underline var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f2f3f0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}

.button-dark {
  color: white;
  border-color: #050505;
  background: linear-gradient(180deg, #18191a, #050505);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 32px rgba(0, 0, 0, 0.16);
}

.button-dark span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
}

.button-soft {
  border-color: var(--blue-line);
  color: #123ca7;
  background: var(--blue-soft);
}


.button-large {
  min-height: 72px;
  padding-left: 34px;
  border-radius: 24px;
}

.full {
  width: 100%;
}

.hero {
  width: min(1420px, calc(100% - 48px));
  margin: 68px auto 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  color: #21252b;
  font-size: 14px;
  font-weight: 760;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.eyebrow.compact {
  padding: 8px 13px;
  box-shadow: none;
}

.hero h1,
.page-hero h1,
.top-split h1 {
  max-width: 1050px;
  margin: 26px auto 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 strong,
.page-hero h1 strong {
  color: var(--blue);
  font-style: normal;
}

.hero-copy,
.page-hero p,
.section-heading p,
.split-section p,
.auth-card p,
.builder-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.quick-create {
  width: min(620px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quick-create span {
  padding-left: 16px;
  font-weight: 850;
}

.quick-create input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
}

.quick-create a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  color: white;
  background: #050505;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(1120px, 100%);
  margin: 46px auto 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.feature-strip article {
  display: flex;
  gap: 14px;
  padding: 22px;
  text-align: left;
  border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip strong,
.feature-card strong {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.feature-strip h3,
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature-strip p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-visual {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-visual img,
.wide-visual,
.split-section img,
.auth-preview img {
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.section,
.page-hero,
.split-section,
.pricing-grid,
.feature-detail-grid,
.legal-page {
  width: min(1280px, calc(100% - 48px));
  margin: 110px auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.legal-page h1,
.auth-card h1,
.dashboard-header h1,
.builder-header h1,
.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

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

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

.feature-card,
.plan,
.panel,
.legal-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.feature-card {
  min-height: 210px;
  padding: 28px;
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 22px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  align-items: center;
  gap: 42px;
}

.top-split {
  margin-top: 92px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.trust-list span {
  padding: 12px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  color: #123ca7;
  background: var(--blue-soft);
  font-weight: 800;
}

.trust-list.stacked {
  display: grid;
}

.page-hero {
  text-align: center;
}

.page-hero.compact-hero {
  margin-bottom: 42px;
}

.wide-visual {
  width: min(1050px, 100%);
  margin: 42px auto 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 0;
}

.plan {
  min-height: 470px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan.is-featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.plan h2 {
  margin: 0 0 10px;
}

.plan p {
  min-height: 70px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.plan > strong {
  margin-top: 22px;
  font-size: 42px;
}

.plan > span {
  color: var(--muted);
}

.plan .button {
  margin: 24px 0;
}

.plan ul {
  display: grid;
  gap: 13px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.plan li::before {
  content: "✓";
  color: var(--blue);
  margin-right: 10px;
  font-weight: 900;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  gap: 44px;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.auth-brand {
  position: fixed;
  top: 28px;
  left: 34px;
}

.auth-card {
  padding: 38px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 9px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  outline: 0;
  background: white;
  color: #17191d;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

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

.auth-form a:not(.button) {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline var(--blue);
  text-underline-offset: 4px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fbfbfa;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.sidebar-brand {
  font-size: 28px;
  font-family: Georgia, serif;
  text-decoration: underline var(--red);
  text-underline-offset: 9px;
}

.workspace,
.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.workspace span,
.plan-card p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  padding: 13px 14px;
  border-radius: 12px;
  color: #363b43;
  font-weight: 760;
}

.sidebar nav a.is-active,
.sidebar nav a:hover {
  color: #123ca7;
  background: var(--blue-soft);
}

.plan-card {
  margin-top: auto;
  border-color: var(--blue-line);
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.plan-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #123ca7;
  background: var(--blue-soft);
  font-weight: 800;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  padding: 12px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.app-topbar input {
  width: min(360px, 45vw);
}

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

.topbar-actions span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
}

.dashboard-header,
.builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px 38px 20px;
}

.dashboard-header h1,
.builder-header h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 56px);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 38px;
}

.kpi {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

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

.kpi strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 30px;
}

.kpi em {
  color: var(--green-ink);
  font-style: normal;
  font-weight: 850;
}

.kpi small {
  display: block;
  height: 26px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, transparent 0 18%, var(--green) 19% 24%, transparent 25% 40%, var(--green) 41% 48%, transparent 49% 100%);
  opacity: 0.65;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 16px;
  padding: 16px 38px 38px;
}

.panel {
  padding: 22px;
}

.panel.large {
  min-height: 320px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-title h2,
.builder-form h2,
.builder-preview h2 {
  margin: 0;
  font-size: 20px;
}

.panel-title span,
.panel-title a {
  color: var(--muted);
  font-weight: 800;
}

.chart-lines {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 220px;
  padding: 24px 14px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfbfa, #ffffff);
  border: 1px solid var(--line);
}

.chart-lines i {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--green), rgba(38, 201, 102, 0.15));
}

.donut {
  width: 160px;
  height: 160px;
  margin: 10px auto 22px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 42%, #111 42% 67%, var(--red) 67% 82%, #7aa2ff 82% 92%, #d6dad6 92% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: white;
}

.legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.legend span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.legend li:nth-child(2) span {
  background: #111;
}

.legend li:nth-child(3) span {
  background: var(--red);
}

.legend li:nth-child(4) span {
  background: var(--blue);
}

.link-table {
  display: grid;
  gap: 10px;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 80px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.link-row span {
  color: var(--muted);
}

.link-row div span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.link-row em {
  color: var(--green-ink);
  font-style: normal;
  font-weight: 850;
}

.map-card {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 45%, rgba(29, 78, 216, 0.2), transparent 16%),
    radial-gradient(circle at 56% 35%, rgba(29, 78, 216, 0.13), transparent 14%),
    linear-gradient(135deg, #f4f6f3, #ffffff);
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.back-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-weight: 900;
}

.builder-header {
  justify-content: flex-start;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 20px;
  padding: 10px 38px 38px;
}

.builder-form {
  display: grid;
  gap: 18px;
}

.input-group {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: white;
}

.input-group span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #f6f7f5;
  font-weight: 850;
}

.input-group input {
  border: 0;
  border-radius: 0;
}

.form-divider {
  height: 1px;
  background: var(--line);
}

.toggle-row,
.rule-row,
.preview-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.toggle-row strong,
.rule-row em {
  padding: 6px 10px;
  border-radius: 999px;
  color: #123ca7;
  background: var(--blue-soft);
  font-style: normal;
}

.builder-preview {
  display: grid;
  gap: 16px;
  align-content: start;
}

.preview-link {
  min-width: 0;
  flex-wrap: wrap;
  margin-top: 16px;
  background: var(--blue-soft);
  color: #123ca7;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.preview-link button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  font-weight: 850;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  margin: 24px auto 4px;
  border: 12px solid #111;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px),
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px),
    white;
  background-size: 40px 40px;
}

.rule-row {
  margin-top: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-row .kpi {
  min-height: 110px;
}

.legal-page {
  max-width: 820px;
}

.legal-page > p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.legal-card {
  margin-top: 30px;
  padding: 28px;
}

.footer {
  width: min(1280px, calc(100% - 48px));
  margin: 120px auto 36px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
}

.footer-brand {
  font-size: 20px;
}

.footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 30px;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .mobile-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    justify-content: stretch;
    padding: 12px;
  }

  .feature-strip,
  .pricing-grid,
  .cards-grid,
  .cards-grid.three,
  .split-section,
  .auth-page,
  .dashboard-grid,
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .sidebar {
    position: relative;
    height: auto;
  }

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

  .plan-card {
    margin-top: 0;
  }

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

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .page-hero,
  .split-section,
  .pricing-grid,
  .feature-detail-grid,
  .legal-page,
  .footer,
  .auth-page {
    width: min(100% - 28px, 100%);
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    margin-top: 44px;
  }

  .hero h1,
  .page-hero h1,
  .top-split h1 {
    font-size: 46px;
  }

  .hero-copy,
  .page-hero p,
  .section-heading p,
  .split-section p {
    font-size: 17px;
  }

  .hero-actions {
    gap: 12px;
  }

  .button,
  .button-large {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 17px;
  }

  .quick-create {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .quick-create a {
    justify-content: center;
  }

  .feature-strip {
    margin-top: 28px;
  }

  .section,
  .page-hero,
  .split-section {
    margin-top: 72px;
    margin-bottom: 72px;
  }

  .pricing-grid {
    margin-bottom: 72px;
  }

  .auth-page {
    min-height: auto;
    padding-top: 112px;
  }

  .auth-brand {
    left: 20px;
  }

  .auth-card {
    padding: 24px;
  }

  .app-topbar {
    justify-content: stretch;
    padding: 12px 14px;
  }

  .app-topbar input {
    width: 100%;
  }

  .topbar-actions {
    display: none;
  }

  .dashboard-header,
  .builder-header,
  .kpi-grid,
  .dashboard-grid,
  .builder-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kpi-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

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

  .rule-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .rule-row span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

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

  .footer {
    flex-direction: column;
    margin-top: 72px;
  }

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