/* ==========================================================================
   IVEOS CO. DESIGN SYSTEM
   One stylesheet for the whole site. Change the tokens in :root and every
   page updates.

   1. Tokens (color, type, space, shape)
   2. Base and accessibility
   3. Layout
   4. Components
   5. Page sections
   6. Utilities, print, forced colors
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  color-scheme: light;

  /* ----- Color: brand ----- */
  --navy-950: #0D151D;   /* footer */
  --navy-900: #14202B;   /* headings, dark bands */
  --action: #0E7C86;     /* buttons (white text 5.9:1) */
  --action-hover: #0A6169;
  --link: #0A6B74;       /* text links (6.5:1 on white, 5.4:1 on light blue) */
  --brand: #14A0AD;      /* graphics and large accents only */
  --sky-100: #E3F3F4;    /* highlight surfaces */
  --sky-50: #F2F9F9;     /* alternate sections */
  --sky-300: #7FD0D8;    /* links and focus on dark (9.3:1 on navy) */

  /* ----- Color: neutral ----- */
  --ink: #3A4651;        /* body text (9:1 on white) */
  --muted: #596570;      /* secondary text (5.7:1) */
  --border: #DAE5E7;     /* decorative dividers and cards */
  --border-strong: #7A8E92;  /* form fields (3.5:1, meets non-text contrast) */
  --bg: #FFFFFF;
  --bg-alt: var(--sky-50);
  --on-dark: #D3DEE2;    /* body text on navy (12:1) */
  --on-dark-muted: #A6B5BB;  /* footer text (8:1) */

  /* ----- Color: status (draft tags) ----- */
  --draft-bg: #FFF4D6;
  --draft-border: #F2D98A;
  --draft-text: #7A5200;

  /* ----- Focus ----- */
  --focus: var(--action);

  /* ----- Typography ----- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text-xs: 0.8125rem;   /* 13px  captions, tags */
  --text-sm: 0.9375rem;   /* 15px  nav, notes, table labels */
  --text-base: 1.0625rem; /* 17px  body */
  --text-lg: clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);          /* lead text */
  --text-h3: 1.25rem;                                            /* 20px */
  --text-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.25rem);           /* 28 to 36px */
  --text-h1: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem);           /* 34 to 52px */
  --text-display: clamp(2.5rem, 1.7rem + 3.4vw, 3.875rem);       /* 40 to 62px, home hero only */

  --leading-tight: 1.12;
  --leading-heading: 1.25;
  --leading-body: 1.6;

  --measure: 68ch;        /* comfortable line length */

  /* ----- Spacing (4px base) ----- */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */

  --gutter: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);
  --container: 72rem;   /* 1152px */

  /* ----- Shape and depth ----- */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 32, 43, 0.1);

  /* ----- Layers ----- */
  --header-height: 4.25rem;

  /* ----- Motion ----- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 0.15s;
  --dur: 0.25s;
  --dur-slow: 0.6s;
}


/* ==========================================================================
   2. BASE AND ACCESSIBILITY
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); line-height: var(--leading-tight); letter-spacing: -0.025em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-base); }

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

strong { font-weight: 600; color: var(--navy-900); }

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

[hidden] {
  display: none !important;
}

/* Leave room for the sticky header when jumping to a section */
[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

/* Keyboard focus: always visible, never removed */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

/* Skip link: first thing a keyboard user can tab to */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: calc(-1 * var(--space-9));
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  color: #FFFFFF;
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
  color: #FFFFFF;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

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

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.section-heading p {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.section-title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-5);
}

.section-narrow {
  max-width: 48rem;
  margin-inline: auto;
}

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

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: start;
}

/* Card grids fill the row on their own: 1, 2 or 3 columns, no breakpoints */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: var(--space-5);
}

.card-grid-two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

@media (max-width: 56em) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;            /* 44px touch target */
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.button-primary {
  color: #FFFFFF;
  background: var(--action);
}

.button-primary:hover {
  color: #FFFFFF;
  background: var(--action-hover);
}

.button-secondary {
  color: var(--link);
  background: #FFFFFF;
  border-color: var(--action);
}

.button-secondary:hover {
  color: var(--action-hover);
  background: var(--sky-100);
}

.button-light {
  color: var(--navy-900);
  background: #FFFFFF;
}

.button-light:hover {
  color: var(--navy-900);
  background: var(--sky-100);
}

.button-small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.button-group-center {
  justify-content: center;
}

/* ----- Skip link, logo ----- */
.logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-decoration: none;
}

.logo:hover {
  color: var(--navy-900);
}

.logo-accent {
  color: var(--link);
}

/* ----- Header and navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.header-cta {
  order: 2;
  margin-left: auto;
}

.nav-toggle {
  order: 3;
}

/* Menu button (shown on tablets and phones) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--navy-900);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -0.4rem; }
.nav-toggle-icon::after  { top: 0.4rem; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-0.4rem) rotate(-45deg);
}

/* Menu: a panel under the header on small screens */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: var(--space-4) var(--gutter) var(--space-5);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.main-nav.is-open {
  display: block;
  animation: panel-in var(--dur) var(--ease);
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--link);
  background: var(--sky-50);
}

.nav-list a.active,
.nav-list a[aria-current="page"] {
  font-weight: 600;
  color: var(--link);
}

.nav-dropdown-menu {
  margin: 0 0 var(--space-2) var(--space-4);
  padding-left: var(--space-3);
  border-left: 2px solid var(--border);
}

.nav-dropdown-menu a {
  font-size: var(--text-sm);
}

.nav-cta-mobile {
  margin-top: var(--space-3);
}

.nav-cta-mobile .button {
  width: 100%;
}

.nav-list .nav-cta-mobile .button {
  justify-content: center;
  color: #FFFFFF;
  background: var(--action);
}

.nav-list .nav-cta-mobile .button:hover {
  color: #FFFFFF;
  background: var(--action-hover);
}

/* Header button: hidden on the smallest phones, where the menu carries it */
@media (max-width: 40em) {
  .header-cta {
    display: none;
  }

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

@media (min-width: 40.01em) {
  .nav-cta-mobile {
    display: none;
  }
}

/* Full menu on wide screens */
@media (min-width: 68.75em) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    max-height: none;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .nav-list a {
    padding-inline: var(--space-3);
    font-size: var(--text-sm);
  }

  .nav-list a.active,
  .nav-list a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--brand);
    border-radius: 0;
  }

  .nav-item-dropdown {
    position: relative;
  }

  /* Dropdown opens on hover and on keyboard focus */
  .nav-dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
                visibility 0s linear var(--dur-fast);
    min-width: 16rem;
    margin: 0;
    padding: var(--space-2);
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav-dropdown-menu a.active,
  .nav-dropdown-menu a[aria-current="page"] {
    box-shadow: none;
    background: var(--sky-50);
  }

  .header-cta {
    margin-left: 0;
  }
}

/* Without JavaScript the menu simply shows as a wrapped row */
html:not(.js) .nav-toggle {
  display: none;
}

html:not(.js) .main-nav {
  display: block;
  position: static;
  padding: 0;
  box-shadow: none;
  border: 0;
}

html:not(.js) .header-inner {
  flex-wrap: wrap;
  padding-block: var(--space-3);
}

html:not(.js) .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

html:not(.js) .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

/* ----- Cards ----- */
.card,
.benefit,
.testimonial {
  margin: 0;
  padding: var(--space-6);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.card > :last-child,
.benefit > :last-child,
.testimonial > :last-child {
  margin-bottom: 0;
}

.card h3,
.benefit h3 {
  font-size: var(--text-h3);
}

.card-highlight {
  background: var(--sky-100);
  border-color: var(--sky-100);
}

.card-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-weight: 600;
}

/* ----- Lists ----- */
.bullet-list li {
  position: relative;
  margin-bottom: var(--space-2);
  padding-left: 1.375rem;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.7em;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--brand);
  border-radius: 50%;
}

.card .bullet-list {
  margin-top: var(--space-4);
}

.checklist li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 2rem;
  font-weight: 500;
  color: var(--navy-900);
  border-bottom: 1px solid var(--border);
}

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

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.375rem;
  height: 1.375rem;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.375rem;
  text-align: center;
  color: var(--link);
  background: var(--sky-100);
  border-radius: 50%;
}

/* ----- Notes and tags ----- */
.note-box {
  padding: var(--space-4) var(--space-5);
  background: var(--sky-50);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

/* Marks draft content to check before publishing. Delete the tag once reviewed. */
.review-tag {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.125rem var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--draft-text);
  background: var(--draft-bg);
  border: 1px solid var(--draft-border);
  border-radius: var(--radius-pill);
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: var(--space-2);
  color: var(--border-strong);
}

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

.breadcrumb a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* ----- Table ----- */
.table-wrap {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: var(--space-4) var(--space-5);
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: var(--text-sm);
  color: var(--navy-900);
  background: var(--sky-50);
}

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

.data-table td:first-child {
  width: 28%;
  font-weight: 600;
  color: var(--navy-900);
}

.data-table-pricing td:nth-child(2) {
  width: 20%;
  font-weight: 700;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* On phones each row becomes a small card; ARIA roles keep it a table for screen readers */
@media (max-width: 40em) {
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
  }

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

  .data-table td,
  .data-table td:first-child,
  .data-table-pricing td:nth-child(2) {
    width: auto;
    padding: var(--space-1) 0;
    white-space: normal;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
  }
}

/* ----- FAQ ----- */
.faq details {
  margin-bottom: var(--space-3);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--link);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

/* ----- Steps ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: var(--space-5);
}

.step {
  text-align: center;
}

.step h3 {
  font-size: 1.125rem;
}

.step p {
  margin-bottom: 0;
  font-size: var(--text-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
  font-weight: 700;
  color: #FFFFFF;
  background: var(--action);
  border-radius: 50%;
}

.steps-four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.detail-step {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.detail-step .step-number {
  margin-bottom: 0;
}

.detail-step h3 {
  font-size: 1.375rem;
}

.step-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.step-split h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

@media (max-width: 40em) {
  /* Keep the number beside the text so the connector can run down the left */
  .detail-step {
    gap: var(--space-4);
  }
}

/* ----- Pricing ----- */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.price-tab {
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--link);
  background: #FFFFFF;
  border: 2px solid var(--action);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.price-tab:hover {
  background: var(--sky-100);
}

.price-tab[aria-selected="true"] {
  color: #FFFFFF;
  background: var(--action);
}

/* With JavaScript only the chosen platform is shown */
html.js .price-panel {
  display: none;
}

html.js .price-panel.is-active {
  display: block;
}

/* Without JavaScript every platform is shown, so the tab buttons are hidden */
html:not(.js) .price-tabs {
  display: none;
}

.price-panel + .price-panel {
  margin-top: var(--space-8);
}

.price-card h3 {
  font-size: 1.375rem;
}

.price-amount {
  margin: var(--space-3) 0 var(--space-4);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.price-card-featured {
  border: 2px solid var(--action);
}

.platform-line {
  margin: var(--space-6) 0 0;
  text-align: center;
}

/* ----- Testimonials ----- */
.testimonial blockquote {
  margin: 0 0 var(--space-4);
  font-size: 1.125rem;
  color: var(--navy-900);
}

.testimonial figcaption {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

/* ----- Forms ----- */
.form {
  display: grid;
  gap: var(--space-5);
}

.form label,
.form legend {
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 600;
  color: var(--navy-900);
}

.form .req {
  color: var(--link);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-4);
  font: inherit;              /* 17px, so iOS does not zoom */
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

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

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

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-5);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-2) var(--space-4);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

.form .checkbox-group input {
  flex: none;
  width: 1.25rem;
  min-height: 0;
  height: 1.25rem;
  accent-color: var(--action);
}

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

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

/* ----- Call-to-action band and footer (dark surfaces) ----- */
.cta,
.site-footer {
  --focus: var(--sky-300);
}

.cta {
  padding-block: var(--section-y);
  color: var(--on-dark);
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--navy-900);
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, auto;
}

.cta-inner {
  max-width: 46rem;
}

.cta h2 {
  color: #FFFFFF;
}

.cta p {
  font-size: var(--text-lg);
}

.cta a:not(.button) {
  color: #FFFFFF;
}

.cta-small {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm) !important;
}

.site-footer {
  padding-block: var(--space-7);
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
  background: var(--navy-950);
}

.site-footer p {
  margin-bottom: var(--space-1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-7);
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-heading {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: #FFFFFF;
}

.footer-grid li {
  margin-bottom: var(--space-1);
}

.site-footer a {
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--on-dark-muted);
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-disclaimer {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 56em) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 30em) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
}


/* ==========================================================================
   5. PAGE SECTIONS
   ========================================================================== */

/* ----- Home hero ----- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 5rem);
  background: linear-gradient(180deg, var(--sky-50) 0%, #FFFFFF 100%);
  overflow: hidden;
}

/* Faint grid: a quiet data-and-technology motif that fades out downward */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 124, 134, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 124, 134, 0.07) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero h1 {
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.text-accent {
  color: var(--link);
}

.hero-subtext {
  max-width: 36rem;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

.hero-note {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero-card {
  padding: var(--space-6);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-card-title {
  margin-bottom: var(--space-4);
  font-size: var(--text-h3);
}

@media (max-width: 56em) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* ----- Sub-page header ----- */
.page-hero {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: linear-gradient(180deg, var(--sky-50) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}

.lead {
  max-width: 44rem;
  margin-bottom: 0;
  font-size: var(--text-lg);
}


/* ==========================================================================
   6. UTILITIES, PRINT, FORCED COLORS
   ========================================================================== */

.u-mt-12 { margin-top: var(--space-3) !important; }
.u-mt-16 { margin-top: var(--space-4) !important; }
.u-mt-24 { margin-top: var(--space-5) !important; }
.u-mt-32 { margin-top: var(--space-6) !important; }
.u-mt-48 { margin-top: var(--space-7) !important; }
.u-mb-0  { margin-bottom: 0 !important; }
.u-mb-32 { margin-bottom: var(--space-6) !important; }

@media (forced-colors: active) {
  .button,
  .price-tab,
  .nav-toggle {
    border: 2px solid ButtonText;
  }

  .nav-list a.active,
  .nav-list a[aria-current="page"] {
    text-decoration: underline;
  }
}

@media print {
  .site-header,
  .skip-link,
  .cta,
  .nav-toggle,
  .button {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000000;
  }

  a {
    color: #000000;
  }
}


/* ==========================================================================
   7. MOTION
   Everything here is subtle and optional. Content is fully visible without
   JavaScript, and visitors who prefer reduced motion get none of the movement.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0.4; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ----- Hover and focus transitions (these only change color, border and shadow) ----- */
a {
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}

main a:not(.button):hover {
  text-decoration-thickness: 2px;
}

.nav-list a {
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.site-header {
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.card,
.benefit,
.testimonial {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.card:hover,
.benefit:hover {
  border-color: var(--sky-300);
  box-shadow: var(--shadow-sm);
}

/* Cards that link somewhere also lift a little */
.card:has(.card-link):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-link::after {
  content: "\2192";
  content: "\2192" / "";
  display: inline-block;
  margin-left: 0.35em;
  transition: transform var(--dur) var(--ease);
}

.card-link:hover::after,
.card:hover .card-link::after {
  transform: translateX(4px);
}

.button-primary:hover {
  box-shadow: 0 6px 16px rgba(14, 124, 134, 0.28);
}

.button-secondary:hover,
.button-light:hover {
  box-shadow: var(--shadow-md);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: 0.05s;
}

.step-number {
  transition: transform var(--dur) var(--ease);
}

.step:hover .step-number,
.detail-step:hover .step-number {
  transform: scale(1.08);
}

.data-table tbody tr {
  transition: background-color var(--dur-fast) ease;
}

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

.price-tab {
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.faq summary {
  border-radius: var(--radius-md);
  transition: background-color var(--dur-fast) ease;
}

.faq summary:hover {
  background: var(--sky-50);
}

.faq details[open] summary {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.faq summary::after {
  transition: transform var(--dur) var(--ease);
}

.form input,
.form select,
.form textarea {
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

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

.checkbox-group label {
  transition: color var(--dur-fast) ease;
}

.checkbox-group label:hover {
  color: var(--navy-900);
}

.site-footer a {
  transition: color var(--dur-fast) ease;
}

/* ----- Movement: only for visitors who have not asked for reduced motion ----- */
@media (prefers-reduced-motion: no-preference) {

  /* Page load: the hero text, then the card, then the checklist items one by one */
  .hero-text > * {
    animation: rise var(--dur-slow) var(--ease) both;
  }

  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }

  .hero-card {
    animation: rise 0.7s var(--ease) 0.2s both;
  }

  .hero-card .checklist li {
    animation: rise 0.5s var(--ease) both;
  }

  .hero-card .checklist li:nth-child(1) { animation-delay: 0.4s; }
  .hero-card .checklist li:nth-child(2) { animation-delay: 0.47s; }
  .hero-card .checklist li:nth-child(3) { animation-delay: 0.54s; }
  .hero-card .checklist li:nth-child(4) { animation-delay: 0.61s; }
  .hero-card .checklist li:nth-child(5) { animation-delay: 0.68s; }
  .hero-card .checklist li:nth-child(6) { animation-delay: 0.75s; }

  .page-hero .container > * {
    animation: rise 0.5s var(--ease) both;
  }

  .page-hero .container > :nth-child(2) { animation-delay: 0.06s; }
  .page-hero .container > :nth-child(3) { animation-delay: 0.12s; }

  /* Pricing: the chosen platform fades in */
  html.js .price-panel.is-active {
    animation: fade-in var(--dur) var(--ease);
  }

  /* Scroll reveals. site.js adds .reveal only to items below the fold, so nothing
     visible on arrival is ever hidden, and removes it again once shown. */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* FAQ answers open smoothly in browsers that support it */
  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }

    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size var(--dur) var(--ease), content-visibility var(--dur) var(--ease) allow-discrete;
    }

    .faq details[open]::details-content {
      block-size: auto;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .card,
  .step-number,
  .card-link::after {
    transform: none !important;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ----- Hero digit rain: faint numbers drifting down and fading out ----- */
.hero-digits {
  position: absolute;
  top: -5rem;
  left: 0;
  width: 100%;
  height: calc(100% + 10rem);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

@media print {
  .hero-digits { display: none; }
}

/* ----- Content that needs JavaScript (hidden without it) ----- */
.js-only { display: none; }
.js .js-only { display: block; }

/* ----- Page header with a certification slot on the right ----- */
.page-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
}

.page-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.cert-slot {
  flex: 0 0 11rem;
  width: 11rem;
}

.cert-slot img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Placeholder only. Delete this div when you add the real badge. */
.cert-slot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  padding: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

@media (max-width: 47.99em) {
  .page-hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .cert-slot { flex-basis: auto; width: 9rem; }
  .cert-slot-empty { min-height: 6rem; }
}

/* ----- Clio price calculator ----- */
.calc {
  margin-top: var(--space-7);
  padding: var(--space-6);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.calc h3 { margin-bottom: var(--space-2); }
.calc-intro { margin-bottom: 0; color: var(--muted); }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  align-items: start;
}

.calc-hint {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.calc-result {
  padding: var(--space-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.calc-result-title {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  color: var(--navy-900);
}

.calc-lines {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.calc-lines:empty { display: none; }

.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
}

.calc-lines li span:last-child {
  font-weight: 600;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.calc-message {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink);
}

.calc-options {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.calc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.calc-option.is-best {
  border: 2px solid var(--action);
}

.calc-option-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-900);
}

.calc-option-detail {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted);
}

.calc-option-price {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-badge {
  display: block;
  width: max-content;
  margin-bottom: 4px;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #FFFFFF;
  background: var(--action);
  border-radius: var(--radius-pill);
}

.calc-save {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #14683A;
}

.calc-note { margin: var(--space-4) 0 0; }

@media (max-width: 52em) {
  .calc { padding: var(--space-5); }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----- SOW block ----- */
.sow { margin-top: var(--space-7); }
.sow .bullet-list { margin-bottom: var(--space-5); }

/* ----- Data templates ----- */
.template-card .template-link {
  display: inline-block;
  padding: 2px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-pill);
}

#templates .note-box { margin-bottom: var(--space-6); }
#templates .review-tag { margin-bottom: var(--space-4); }

/* ==========================================================================
   Parallax: layers inside the hero, page headers and call-to-action bands drift
   at different speeds as you scroll. site.js sets --py (how far the section is from
   the middle of the screen); each layer below moves by a small fraction of it.
   Only transform-style properties are animated, and nothing moves for visitors who
   prefer reduced motion (--py stays 0).
   ========================================================================== */
.hero,
.page-hero,
.cta {
  --py: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Soft glows sit behind everything and move the least */
.hero::after,
.page-hero::after,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  top: -10rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(20, 160, 173, 0.14), transparent 65%);
  translate: 0 calc(var(--py) * 0.18);
}

.page-hero::after {
  top: -9rem;
  right: -6rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(20, 160, 173, 0.1), transparent 65%);
  translate: 0 calc(var(--py) * 0.15);
}

.cta::after {
  bottom: -16rem;
  left: 50%;
  width: 34rem;
  height: 34rem;
  margin-left: -17rem;
  background: radial-gradient(circle, rgba(61, 139, 255, 0.28), transparent 65%);
  translate: 0 calc(var(--py) * 0.2);
}

/* Grids drift slower than the page */
.hero::before { background-position: 0 calc(var(--py) * 0.25); }

.cta {
  background-position: 0 calc(var(--py) * 0.2), 0 calc(var(--py) * 0.2), 0 0;
}

/* Foreground pieces float very slightly against the text */
.hero-card { translate: 0 calc(var(--py) * 0.06); }
.hero-digits { translate: 0 calc(var(--py) * -0.12); }
.cert-slot { translate: 0 calc(var(--py) * 0.08); }

@media (max-width: 47.99em) {
  /* Gentler on phones */
  .hero-card, .cert-slot { translate: none; }
}

/* ----- Branded number stepper (price calculator) ----- */
.stepper {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--dur, 0.2s) ease, box-shadow var(--dur, 0.2s) ease;
}

.stepper:focus-within {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.18);
}

.form .stepper input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.form .stepper input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}

/* Hide the browser's own up/down arrows */
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  min-height: 2.75rem;
  padding: 0;
  color: var(--action);
  background: var(--sky-50);
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.stepper-btn:first-child { border-right: 1px solid var(--border); }
.stepper-btn:last-child  { border-left: 1px solid var(--border); }

.stepper-btn:hover:not(:disabled) {
  color: #FFFFFF;
  background: var(--action);
}

.stepper-btn:active:not(:disabled) {
  background: var(--action-hover);
}

.stepper-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}

.stepper-btn:disabled {
  color: var(--border-strong);
  cursor: not-allowed;
}

/* ==========================================================================
   Step connectors: rows of dots run from each numbered circle to the next.
   They stay as a still dotted line when motion is reduced.
   ========================================================================== */
.detail-step,
.step {
  position: relative;
}

/* Vertical (How It Works) */
.detail-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 3px);
  top: calc(var(--space-6) + 2.75rem + 0.5rem);
  bottom: calc(0.5rem - var(--space-6));
  width: 6px;
  background: radial-gradient(circle, var(--brand) 0 2px, transparent 2.6px) 0 0 / 6px 14px repeat-y;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
}

/* Horizontal (home page and Clio page) */
@media (min-width: 40.01em) {
  .steps > .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(1.375rem - 3px);
    left: calc(50% + 1.375rem + 0.5rem);
    width: calc(100% + var(--space-5) - 2.75rem - 1rem);
    height: 6px;
    background: radial-gradient(circle, var(--brand) 0 2px, transparent 2.6px) 0 0 / 14px 6px repeat-x;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .detail-step:not(:last-child)::after { animation: dots-down 1.1s linear infinite; }
  .steps > .step:not(:last-child)::after { animation: dots-right 1.1s linear infinite; }

  /* A soft ring pulses from each circle as the dots leave it */
  .detail-step .step-number,
  .steps > .step .step-number {
    animation: ring-pulse 2.8s ease-out infinite;
  }

  .detail-step:nth-child(2) .step-number,
  .steps > .step:nth-child(2) .step-number { animation-delay: 0.9s; }

  .detail-step:nth-child(3) .step-number,
  .steps > .step:nth-child(3) .step-number { animation-delay: 1.8s; }
}

@keyframes dots-down {
  to { background-position: 0 14px; }
}

@keyframes dots-right {
  to { background-position: 14px 0; }
}

@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 124, 134, 0.35); }
  70%  { box-shadow: 0 0 0 0.75rem rgba(14, 124, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 124, 134, 0); }
}

/* ----- Saved quote card (pricing calculator and contact form) ----- */
.quote-card {
  padding: var(--space-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--action);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-card[hidden] { display: none; }

.saved-quote { margin-top: var(--space-5); }

.quote-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.quote-card-title {
  margin: 0;
  font-weight: 600;
  color: var(--navy-900);
}

.quote-ref {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.quote-card-price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.quote-card-meta {
  margin: var(--space-1) 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.quote-card ul {
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.quote-card li { padding: 2px 0; }

.quote-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.link-button:hover { color: var(--action-hover); }

/* ==========================================================================
   Branded dropdowns. With JavaScript, site.js swaps each <select> for the custom
   list below (the real select stays in the form, hidden, so it still submits).
   Without JavaScript the native select is shown, styled to match.
   ========================================================================== */
.form select {
  padding-right: 2.75rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%230E7C86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
}

.select {
  position: relative;
}

.select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast, 0.15s) ease, box-shadow var(--dur-fast, 0.15s) ease;
}

.select-button:hover { border-color: var(--ink); }

.select-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--action);
}

.select-button[aria-expanded="true"] {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.18);
}

.select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-chevron {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  color: var(--action);
  transition: transform 0.2s var(--ease, ease);
}

.select-button[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }

.select-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 16rem;
  margin: 0;
  padding: var(--space-1);
  overflow-y: auto;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.select-list[hidden] { display: none; }

.select.is-up .select-list {
  top: auto;
  bottom: calc(100% + 6px);
}

.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.select-option.is-active {
  color: var(--navy-900);
  background: var(--sky-50);
}

.select-option[aria-selected="true"] {
  font-weight: 600;
  color: var(--action);
}

.select-option[aria-selected="true"]::after {
  content: "";
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='%230E7C86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .select-list:not([hidden]) { animation: select-in 0.16s var(--ease, ease) both; }
}

@keyframes select-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ----- Spam trap and form sending state ----- */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: progress;
}

.form-status.is-success { border-left-color: #14683A; }
.form-status.is-error { border-left-color: #A32020; }

/* How It Works: every step gets the same height, so the numbered circles (and the dotted
   connectors between them) are evenly spaced */
.steps-flow {
  display: grid;
  grid-auto-rows: 1fr;
}


/* ----- Currency switch (USD / CAD) ----- */
.currency-switch {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
}
.currency-switch button {
  min-width: 2.75rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--navy-900);
  font: 600 var(--text-xs)/1 var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.currency-switch button:hover { background: var(--sky-100); }
.currency-switch button[aria-pressed="true"] { background: var(--action); color: #fff; }
.currency-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.px { white-space: nowrap; }

/* Keep the header on one line on desktop now that it also holds the currency switch */
.logo, .header-cta, .main-nav a { white-space: nowrap; }
@media (min-width: 64rem) {
  .header-inner { gap: var(--space-3); }
  .main-nav a { padding-inline: 0.55rem; }
}
@media (min-width: 64rem) and (max-width: 77rem) {
  .main-nav a { padding-inline: 0.4rem; font-size: 0.875rem; }
  .header-cta { padding-inline: 0.9rem; }
}

.currency-row, .js .currency-row.js-only { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.currency-label { color: var(--muted); font-size: var(--text-sm); font-weight: 500; }


/* ----- Iveos logo (Lattice Corner lockup) ----- */
.logo { display: block; line-height: 0; flex: none; }
.logo img { display: block; width: 12.5rem; height: auto; }
.footer-logo { display: block; line-height: 0; margin-bottom: var(--space-3); }
.footer-logo img { display: block; width: 15rem; height: auto; }
:root { --header-height: 5rem; }
@media (max-width: 40rem) {
  .logo img { width: 9.5rem; }
  :root { --header-height: 4.5rem; }
}

/* ----- Platform logos on cards, hero badges, softer table striping ----- */
.platform-logo { display: block; height: 2.75rem; width: auto; margin-bottom: var(--space-4); }
.platform-logo-square { border-radius: 0.5rem; }
.cert-slot { flex: 0 0 10rem; width: 10rem; }
@media (max-width: 40rem) {
  .page-hero-row { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .cert-slot { flex-basis: auto; width: 7.5rem; }
}
@media (min-width: 40.01em) {
  .data-table tbody tr:nth-child(even) { background: #F7F7F4; }
  .data-table tbody tr:nth-child(even):hover { background: var(--sky-50); }
}
