@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #202125;
  --bg-deep: #191a1e;
  --surface: #2a2b30;
  --surface-high: #33343a;
  --navy: #1b2440;
  --blue: #3b5ba5;
  --blue-light: #a8c0ef;
  --red: #d7303c;
  --red-dark: #b82733;
  --red-light: #f3a3a8;
  --white: #ffffff;
  --muted: #c9ccd3;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --container: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--white);
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

strong {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--bg-deep);
  font-weight: 800;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--bg-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 33, 37, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand:hover {
  color: var(--white);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-wordmark {
  width: auto;
  height: 27px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
}

.nav-list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-list a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-list .nav-cta {
  margin-left: 0.45rem;
  background: var(--red);
  color: var(--white);
}

.nav-list .nav-cta:hover,
.nav-list .nav-cta[aria-current="page"] {
  background: var(--red-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--white);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* Tartan accents */
.tartan {
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0 26px,
    var(--blue) 26px 34px,
    var(--red) 34px 38px,
    var(--navy) 38px 64px
  );
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 91, 165, 0.24), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(215, 48, 60, 0.14), transparent 40%);
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--red-light);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}

.hero-media {
  margin: 0;
  padding: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.hero-media figcaption {
  padding: 0.55rem 0.5rem 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.4rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-head .lead {
  font-size: 1.08rem;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 1.15rem;
}

.grid > * {
  min-width: 0;
}

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

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

.card {
  background: linear-gradient(160deg, var(--surface-high), #26272c);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--navy);
  border: 1px solid rgba(168, 192, 239, 0.35);
  color: var(--blue-light);
  font-weight: 900;
  font-size: 1.05rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  padding: 1.7rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* Lists */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ticks li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue-light);
}

.ticks strong {
  color: var(--white);
}

.plain-list {
  color: var(--muted);
}

.plain-list li {
  margin-bottom: 0.5rem;
}

/* Feature sections */
.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.feature-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-block:last-of-type {
  padding-bottom: 0;
}

.feature-block h2 {
  margin-bottom: 0.6rem;
}

.feature-block .feature-intro {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-items {
  display: grid;
  gap: 0.85rem;
}

.feature-item {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.note {
  padding: 1.1rem 1.25rem;
  background: var(--navy);
  border: 1px solid rgba(168, 192, 239, 0.3);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.note strong {
  color: var(--white);
}

.note p:last-child {
  margin-bottom: 0;
}

/* Comparison */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
}

.compare-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.compare-card .compare-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--red-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-card p {
  color: var(--muted);
}

.compare-card p:last-child {
  margin-bottom: 0;
}

/* Table */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

caption {
  padding: 1rem 1.25rem 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
}

th,
td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: rgba(27, 36, 64, 0.75);
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
}

/* Prose pages */
.page-hero {
  padding: 3.75rem 0 2.75rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 91, 165, 0.2), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(215, 48, 60, 0.12), transparent 40%);
}

.page-hero h1 {
  max-width: 22ch;
}

.page-hero .lead {
  max-width: 58ch;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2,
.prose h3,
.prose strong {
  color: var(--white);
}

.prose a {
  color: var(--blue-light);
}

.prose code {
  padding: 0.1em 0.35em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
  margin-bottom: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--surface-high), #25262b);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.plan-featured {
  border-color: rgba(215, 48, 60, 0.75);
  box-shadow: 0 0 0 1px rgba(215, 48, 60, 0.25) inset;
}

.plan h2,
.plan h3 {
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.plan-for {
  color: var(--red-light);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.price {
  margin: 0 0 0.25rem;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.plan .ticks {
  flex: 1;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.plan .ticks li {
  font-size: 0.95rem;
}

.plan .btn {
  margin-top: 1rem;
  width: 100%;
}

.pricing-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--navy);
  border: 1px solid rgba(168, 192, 239, 0.35);
  border-radius: var(--radius-sm);
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
}

.pricing-note a {
  color: var(--white);
  font-weight: 800;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2.2rem;
  align-items: start;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
  font-size: 0.97rem;
}

.form-field .hint {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid #747882;
  border-radius: var(--radius-sm);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-light);
  outline: 3px solid rgba(168, 192, 239, 0.45);
  outline-offset: 1px;
}

.form-field input:user-invalid,
.form-field textarea:user-invalid,
.form-field select:user-invalid {
  border-color: var(--red-light);
}

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

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(59, 91, 165, 0.22);
  border: 1px solid rgba(168, 192, 239, 0.45);
  border-radius: var(--radius-sm);
  color: var(--white);
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.contact-aside h2 {
  font-size: 1.3rem;
}

.contact-aside p {
  color: var(--muted);
}

.contact-aside .email-link {
  display: inline-block;
  margin: 0.3rem 0 1rem;
  font-size: 1.12rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-aside .ticks li {
  font-size: 0.95rem;
}

/* Call to action panel */
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem;
  background:
    linear-gradient(120deg, rgba(59, 91, 165, 0.28), rgba(42, 43, 48, 0.4)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.cta-panel h2 {
  margin-bottom: 0.4rem;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
}

.cta-panel .btn-row {
  margin-top: 0;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.4rem 1.4rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-width: 28rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

/* 404 */
.not-found {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
}

.not-found-inner {
  max-width: 40rem;
  text-align: center;
}

.not-found-code {
  display: block;
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.not-found .btn-row {
  justify-content: center;
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-media {
    max-width: 38rem;
  }

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

  .feature-block {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.9rem 1.25rem 1.2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-list .nav-cta {
    margin: 0.4rem 0 0;
    text-align: center;
  }

  .no-js .site-nav {
    width: 100%;
    margin-left: 0;
    padding-bottom: 0.9rem;
  }

  .no-js .nav-list {
    flex-wrap: wrap;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3,
  .plans,
  .steps,
  .compare,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 3.2rem 0 2.6rem;
  }

  .page-hero {
    padding: 2.8rem 0 2.2rem;
  }

  .plan .btn {
    width: 100%;
  }

  .form {
    padding: 1.4rem;
  }
}

@media (max-width: 420px) {
  .brand-wordmark {
    height: 23px;
  }

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

  .btn-row .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
