:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-2: #4a4740;
  --ink-3: #6b665c;
  --line: #e7e1d6;
  --line-strong: #d6cebf;
  --accent: #1f4fd8;
  --accent-hover: #173fb3;
  --accent-ink: #ffffff;
  --soft: #f4efe6;
  --error: #b42318;
  --success: #146c43;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 26, 23, 0.05), 0 12px 32px rgba(27, 26, 23, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font);
  font-style: normal;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: #5f7fd6;
  cursor: progress;
}

.btn-small {
  font-size: 15px;
  padding: 0 16px;
  margin-left: 4px;
}

.btn-large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
  min-height: 50px;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-sub {
  margin-top: 24px;
  font-size: 20px;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-offer {
  margin-top: 20px;
  font-size: 16px;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 28px;
}

.hero-support {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-3);
}

/* Shared tag */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Avatars */
.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3e9fb;
  color: #1a3a99;
  font-weight: 700;
  font-size: 15px;
}

.avatar-large {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

/* Prospect card */
.prospect-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.person {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.person-name {
  font-size: 26px;
  font-weight: 700;
}

.person-role {
  margin-top: 4px;
  font-weight: 500;
  color: var(--ink-2);
}

.person-company {
  color: var(--ink-3);
}

.card-fields {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.field {
  min-width: 0;
}

.field dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field dd {
  margin-top: 4px;
  font-size: 17px;
  color: var(--ink);
}

.field-reason {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
}

.field-reason dd {
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact {
  font-weight: 600;
  overflow-wrap: break-word;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
}

.what {
  padding-bottom: 32px;
}

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

.benefit-list li {
  position: relative;
  padding: 22px 22px 22px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* Delivery preview */
.delivery {
  padding-top: 32px;
}

.inbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #fdfbf8;
}

.inbox-title {
  font-size: 18px;
  font-weight: 700;
}

.inbox-row {
  display: flex;
  gap: 18px;
  padding: 24px 28px;
}

.inbox-row + .inbox-row {
  border-top: 1px solid var(--line);
}

.row-body {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 6px 28px;
  align-items: start;
}

.row-head {
  grid-row: span 2;
}

.row-name {
  font-size: 18px;
  font-weight: 700;
}

.row-role {
  color: var(--ink-2);
  font-size: 15px;
}

.row-fit {
  color: var(--ink-2);
  font-size: 15px;
}

.row-reason {
  font-weight: 600;
  font-size: 15px;
}

.row-contact {
  grid-column: 2 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
}

/* Pricing */
.pricing-intro {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 15px;
}

.pricing-standard {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 44em;
}

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

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

.plan-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}

.plan-price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.price {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.period {
  color: var(--ink-3);
  font-size: 15px;
}

.plan-body {
  margin-top: 14px;
  color: var(--ink-2);
}

/* Included */
.included {
  padding-top: 24px;
}

.included-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  font-size: 18px;
  color: var(--ink);
}

.included-list li:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--ink-3);
}

.allowance {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  max-width: 48em;
  color: var(--ink-3);
  font-size: 15px;
}

/* Final CTA */
.final-cta {
  padding: 88px 0 96px;
}

.final-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  text-align: center;
}

.final-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
}

/* Dialog */
.signup-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(27, 26, 23, 0.22);
}

.signup-dialog::backdrop {
  background: rgba(27, 26, 23, 0.45);
}

.dialog-inner {
  padding: 24px 28px 28px;
}

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

.dialog-head h2 {
  font-size: 24px;
  font-weight: 700;
}

.dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--soft);
}

.signup-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

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

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.form-status:empty,
.form-alert:empty {
  display: none;
}

.form-status {
  font-weight: 600;
  color: var(--ink-2);
}

.form-status.is-success {
  color: var(--success);
  font-size: 18px;
  padding: 14px 16px;
  background: #edf7f1;
  border: 1px solid #b7dfc7;
  border-radius: 10px;
}

.form-alert {
  color: var(--error);
  font-weight: 600;
  padding: 12px 14px;
  background: #fdf0ef;
  border: 1px solid #f2c4bf;
  border-radius: 10px;
}

.signup-form.is-done .form-field,
.signup-form.is-done #signup-submit {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

  .row-head {
    grid-row: auto;
  }

  .row-contact {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .benefit-list,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 60px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 14px;
  }

  .btn-small {
    padding: 0 12px;
    font-size: 14px;
    margin-left: 2px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .prospect-card {
    padding: 22px;
  }

  .person-name {
    font-size: 22px;
  }

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

  .section {
    padding: 56px 0;
  }

  .inbox-header,
  .inbox-row {
    padding-left: 18px;
    padding-right: 18px;
  }

  .inbox-row {
    gap: 14px;
  }

  .btn-large {
    width: 100%;
  }

  .dialog-inner {
    padding: 20px;
  }
}

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

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