:root {
  --ink: #14212b;
  --muted: #60717d;
  --blue: #1262ff;
  --cyan: #18c6d9;
  --paper: #f5f8fa;
  --line: #dbe4e9;
  --white: #fff;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fffffff2;
  backdrop-filter: blur(14px);
  z-index: 5;
}
.brand {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  padding: 8px;
  border-radius: 10px;
  margin-right: 6px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a,
footer a {
  color: inherit;
  text-decoration: none;
}
nav a:hover {
  color: var(--blue);
}
header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 4px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}
.sign-up-link {
  padding: 0 16px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}
.sign-up-link:hover { color: white; filter: brightness(0.96); }
#menu {
  display: none;
  background: none;
  color: var(--ink);
  font-size: 1.4rem;
  padding: 8px;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
}
section {
  padding: 88px 0;
  scroll-margin-top: 68px;
  border-bottom: 1px solid var(--line);
}
.catalog-page .embedded-tool {
  display: none;
}
.tool-page main > section {
  display: none;
}
.tool-page main > section.active-tool-section {
  display: block;
  min-height: calc(100vh - 150px);
}
.tool-page main {
  max-width: 1180px;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 0.25em 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0.25em 0 0.8em;
}
h3 {
  margin-top: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 64px;
  align-items: center;
  min-height: 78vh;
}
.hero > div > p:not(.eyebrow) {
  max-width: 650px;
  font-size: 1.2rem;
  color: var(--muted);
}
.hero-card,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  box-shadow: 0 16px 50px #1b45600c;
}
.hero-card {
  background: var(--ink);
  color: white;
  transform: rotate(2deg);
}
.hero-card li {
  margin: 12px 0;
  color: #c9e8ee;
}
.button,
button {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), #0d8fdc);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.text-button {
  width: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-align: left;
  box-shadow: none;
}
.danger-button {
  background: #b42318;
}
.danger-panel {
  border-color: #e5a29c;
  background: #fff8f7;
}
.secondary {
  background: #e9f0f5;
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tools-intro {
  max-width: 680px;
  margin: -1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.tool-categories {
  display: grid;
  gap: 50px;
}
.tool-category {
  padding: 0;
  border: 0;
  scroll-margin-top: 90px;
}
.tool-category-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tool-category-heading .eyebrow {
  margin: 0 0 5px;
}
.tool-category-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}
.tool-category-heading > p {
  margin: 0;
  color: var(--muted);
}
.tool-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tool-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
}
.tool-card h4 {
  margin: 0;
  font-size: 1.1rem;
}
.tool-card p {
  flex: 1;
}
.tool-card a {
  font-weight: 750;
}
.free-account-notice {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #b9d5ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf5ff, #f7fbff);
  color: var(--ink);
}
.free-account-notice span { color: var(--muted); }
.free-account-notice a { font-weight: 850; white-space: nowrap; }
.locked-tool {
  position: relative;
  border-style: dashed;
  background: linear-gradient(145deg, #f7f9fb, #eef2f5);
}
.locked-tool > h4,
.locked-tool > p:not(.locked-tool-note) { opacity: 0.58; }
.tool-lock {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.1);
}
.locked-tool-note {
  color: #31567b !important;
  font-size: 0.83rem;
  font-weight: 750;
}
.locked-tool-action { color: var(--blue); }
.card p,
.fine {
  color: var(--muted);
}
.card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.card .price small {
  margin-left: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 18px 48px rgba(18, 98, 255, 0.12);
}
.plan-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.sms-price-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.sms-price-card p {
  flex: 1;
}
.sms-price-buy {
  width: 100%;
  margin-top: auto;
}
.saving {
  color: #087a4b;
  font-weight: 750;
}
.account-card {
  display: grid;
  gap: 20px;
}
.account-dialog { border: 0; padding: 0; border-radius: 24px; width: min(620px, calc(100% - 24px)); box-shadow: 0 30px 90px #12223055; }
.account-dialog::backdrop { background: #08111dcc; backdrop-filter: blur(8px); }
.account-dialog .panel { margin: 0; border: 0; max-height: 90vh; overflow: auto; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading h3 { margin-top: 4px; }
.icon-close { width: 44px; min-width: 44px; padding: 8px; font-size: 24px; }
.ai-credit-balance { padding: 18px; margin-block: 14px; border-radius: 16px; background: #eaf3ff; color: #164fb5; font-weight: 800; }
.tool-ai-badge { display: inline-flex; width: fit-content; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px; background: #eaf3ff; color: #1554bd; font-size: .78rem; font-weight: 800; }
.account-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.account-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.account-limits > div {
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.account-limits small,
.account-limits span {
  color: var(--muted);
}
.account-limits small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 750;
}
.account-limits strong {
  font-size: 1.05rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.panel {
  display: grid;
  gap: 15px;
  background: var(--paper);
}
.wide {
  max-width: 820px;
  margin: 28px auto 0;
}
.mot-reminder-form {
  max-width: 650px;
  padding: 22px;
  gap: 13px;
}
.mot-form-intro h3,
.mot-form-intro p { margin: 0; }
.mot-form-intro p { margin-top: 5px; color: var(--muted); }
.mot-message-preview {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef5fa;
  color: var(--muted);
  font-size: .9rem;
}
.mot-options { border-top: 1px solid var(--line); padding-top: 10px; }
.mot-options summary,
.contact-manager-details > summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 750;
}
.mot-options .row { margin-top: 12px; }
.contact-manager-details > .panel { margin-top: 10px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 650;
}
label small {
  color: var(--muted);
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 13px;
  border: 1px solid #bdcbd4;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.check input {
  width: auto;
}
.message {
  margin: 0;
  color: #b42318;
  min-height: 1.4em;
}
.message.ok {
  color: #087a4b;
}
.notice {
  background: #e8f7fa;
  color: #075e69;
  border-left: 4px solid var(--cyan);
  padding: 14px 18px;
  border-radius: 8px;
}
footer {
  padding: 48px max(5vw, 24px);
  background: var(--ink);
  color: #d5e0e6;
}
footer b {
  color: white;
  font-size: 1.2rem;
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }
  #menu {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .account-limits {
    grid-template-columns: 1fr;
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 9px;
  }
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding-top: 55px;
  }
  .hero-card {
    transform: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .tool-category-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tool-category-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: 0;
  }
  .row {
    grid-template-columns: 1fr;
  }
  section {
    padding: 60px 0;
  }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
