/* ==========================================================================
   Northstar Digital — design system
   Mobile-first. Navy, white and a single blue accent. No web fonts, no
   animation beyond a 150ms hover transition, and every animation is removed
   for visitors who ask for reduced motion.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */

:root {
  --navy-900: #0a1a2f;
  --navy-800: #102542;
  --navy-700: #16304f;
  --navy-600: #1d3c60;

  --blue-700: #1e40af;
  --blue-600: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --white: #ffffff;
  --grey-50: #f7f9fc;
  --grey-100: #eef2f7;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #526077;
  --grey-700: #334155;

  --text: #1e293b;
  --text-muted: #526077;
  --text-inverse: #f8fafc;

  --success: #0f766e;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(10, 26, 47, 0.14);

  --container: 1100px;
  --gutter: 20px;
  --header-height: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --- Reset ------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}
h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}
h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-600);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--grey-200);
  margin: 2.5rem 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--grey-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

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

/* --- Layout ------------------------------------------------------------ */

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

.section {
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.section--grey {
  background: var(--grey-50);
}

.section--navy {
  background: var(--navy-900);
  color: var(--text-inverse);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy a {
  color: #bfdbfe;
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.075rem;
  margin-bottom: 0;
}

.section--navy .section__head p {
  color: #c7d4e4;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-sm > * + * {
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
  }
}

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

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

/* Spacing utilities. The site ships a strict Content-Security-Policy without
   'unsafe-inline', so inline style attributes are blocked — use these. */
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.75rem;
}
.mt-2 {
  margin-top: 1.25rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.75rem;
}
.mb-2 {
  margin-bottom: 1.25rem;
}
.mb-3 {
  margin-bottom: 2rem;
}
.center {
  margin-inline: auto;
}
.mx-auto {
  margin-inline: auto;
}
.mx-auto {
  margin-inline: auto;
}
.max-w-prose {
  max-width: 44rem;
}
.nowrap {
  white-space: nowrap;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--grey-300);
}

.btn-secondary:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: transparent;
  padding-inline: 0.5rem;
}

.btn-ghost:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn-inverse {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-inverse:hover {
  background: var(--blue-50);
  border-color: var(--blue-50);
  color: var(--navy-900);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-inverse:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #991b1b;
  border-color: #991b1b;
  color: var(--white);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

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

.muted-light {
  color: #c7d4e4;
}

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--grey-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
  padding: 0.5rem var(--gutter) 1.25rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list li + li {
  margin-top: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-100);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--blue-700);
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .site-nav__list a {
    padding: 0.5rem 0.7rem;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .site-nav__list a:hover {
    background: var(--grey-100);
  }
  .site-nav__list a[aria-current="page"] {
    color: var(--navy-900);
    background: var(--grey-100);
  }
  .site-nav__cta {
    margin-left: 0.5rem;
  }
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--grey-100);
}

.hero__grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

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

.hero__lede {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CSS-drawn browser preview — no image download required. */
.mock-window {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-window__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
}

.mock-window__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grey-300);
}

.mock-window__url {
  margin-left: 0.5rem;
  flex: 1;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.72rem;
  color: var(--grey-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-window__body {
  padding: 1.25rem;
}

.mock-window__hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 0.9rem;
}

.mock-window__hero h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.mock-window__hero p {
  color: #c7d4e4;
  font-size: 0.78rem;
  margin: 0;
}

.mock-window__button {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
}

.mock-window__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.mock-window__tile {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.55rem;
}

.mock-window__tile strong {
  display: block;
  font-size: 0.8rem;
  color: var(--navy-900);
}

.mock-window__tile span {
  font-size: 0.68rem;
  color: var(--grey-500);
}

/* --- Cards ------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

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

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

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.card__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__list li + li {
  margin-top: 0.45rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.card__list--numbered {
  counter-reset: steps;
  list-style: none;
}

.card__list--numbered li {
  counter-increment: steps;
}

.card__list--numbered li::before {
  content: counter(steps);
  top: 0.1em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--navy-900);
  border: 0;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h3-like {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0.9rem 0 0;
}

/* --- Feature list ------------------------------------------------------ */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-list__mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* --- Steps ------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.step__number {
  counter-increment: step;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.step__number::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* --- Pricing table ----------------------------------------------------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.95rem;
}

.price-table caption {
  caption-side: bottom;
  padding-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
}

.price-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table__price {
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Callouts ---------------------------------------------------------- */

.callout {
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--blue-600);
  background: var(--grey-50);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
}

.callout strong {
  color: var(--navy-900);
}

.callout--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  border-left-color: #d97706;
  color: var(--warning);
}

.callout--warning strong {
  color: #7c2d12;
}

.callout--concept {
  background: var(--blue-50);
  border-color: var(--blue-100);
  border-left-color: var(--blue-600);
}

/* --- Forms ------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.field__label {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--navy-900);
}

.field__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field__optional {
  font-weight: 400;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23526077' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
  padding-right: 2.25rem;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--blue-600);
  flex: 0 0 auto;
}

.checkbox label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.field__error {
  font-size: 0.875rem;
  color: var(--danger);
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

/* Honeypot: hidden from people, reachable by naive bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Alerts ------------------------------------------------------------ */

.alert {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
}

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

.alert--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.alert--error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.alert--info {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-700);
}

.form-status {
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* --- Portfolio --------------------------------------------------------- */

.concept {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.concept__visual {
  background: var(--navy-900);
  padding: 1.25rem;
}

.concept__frame {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.concept__bar {
  height: 20px;
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 8px;
}

.concept__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grey-300);
}

.concept__content {
  padding: 1rem;
}

.concept__content h4 {
  color: var(--navy-900);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.concept__content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.concept__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.concept__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.concept__body h3 {
  margin-bottom: 0;
}

.concept__tag {
  align-self: flex-start;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--grey-200);
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list span:first-child {
  color: var(--text-muted);
}

.spec-list span:last-child {
  font-weight: 600;
  text-align: right;
}

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-900);
  color: #b7c6d8;
  padding-block: 2.75rem 2rem;
  font-size: 0.925rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: #dbeafe;
  text-decoration: none;
}

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

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 0.5rem;
}

.site-footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8fa3ba;
}

/* --- Page header ------------------------------------------------------- */

.page-header {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* --- Definition list --------------------------------------------------- */

.definitions {
  display: grid;
  gap: 0.25rem 1.25rem;
  margin: 0;
}

@media (min-width: 640px) {
  .definitions {
    grid-template-columns: minmax(9rem, 14rem) 1fr;
  }
}

.definitions dt {
  font-weight: 600;
  color: var(--navy-900);
  padding: 0.55rem 0;
  border-top: 1px solid var(--grey-200);
}

.definitions dd {
  margin: 0;
  padding: 0.55rem 0;
  border-top: 1px solid var(--grey-200);
  color: var(--text-muted);
}

/* --- Dashboard --------------------------------------------------------- */

.dash {
  background: var(--grey-50);
  min-height: 100vh;
}

.dash__header {
  background: var(--navy-900);
  color: var(--white);
  padding-block: 1.1rem;
}

.dash__header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.dash__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

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

.dash__title {
  font-size: 0.95rem;
  color: #b7c6d8;
  font-weight: 400;
}

.dash__main {
  padding-block: 1.75rem 3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat__value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
  margin-top: 0.2rem;
}

.stat__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.toolbar .field {
  flex: 1 1 160px;
}

.toolbar .field--search {
  flex: 2 1 220px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--grey-200);
}

.panel__header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 860px;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
}

.data-table thead th {
  background: var(--grey-50);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-600);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.data-table tbody tr:hover {
  background: var(--grey-50);
}

.data-table td a {
  font-weight: 600;
}

.data-table__actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill--new {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.pill--contacted {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.pill--replied {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.pill--proposal_sent {
  background: #fdf4ff;
  color: #86198f;
  border-color: #f5d0fe;
}
.pill--won {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}
.pill--lost {
  background: var(--grey-100);
  color: var(--grey-600);
  border-color: var(--grey-300);
}

.tag {
  display: inline-block;
  background: var(--grey-100);
  color: var(--grey-700);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--grey-50);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 1.4rem;
}

/* Modal used to edit a lead. */
.modal {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 640px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.modal::backdrop {
  background: rgba(10, 26, 47, 0.55);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--grey-200);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal__body {
  padding: 1.25rem;
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--grey-200);
  background: var(--grey-50);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid .span-2 {
    grid-column: 1 / -1;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-width: calc(100% - 2rem);
}

.toast[hidden] {
  display: none;
}

.toast--error {
  background: var(--danger);
}

/* --- Motion ------------------------------------------------------------ */

@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;
  }
}

@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
}
