/* Poppins, self-hosted (SIL OFL, see /fonts/OFL.txt). latin-ext covers macrons (ā ē ī ō ū). */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --teal-900: #134E4A;
  --teal-800: #115E59;
  --teal-700: #0F766E;
  --teal-400: #2DD4BF;
  --teal-300: #5EEAD4;
  --teal-100: #CCFBF1;
  --teal-50: #F0FDFA;

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* EWS zone colours (brief §7) — obs visuals only, always with black text */
  --ews-yellow: #FFF9AD;
  --ews-orange: #FEE1BC;
  --ews-red: #FACBDF;
  --ews-blue: #CCDAF0;
  --success-bg: #DCFCE7;
  --red-600: #DC2626;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Fluid type scale */
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --text-h3: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --text-h2: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem);
  --text-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  --radius-sm: 8px;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px -12px rgb(15 23 42 / 0.18);

  --container: 1120px;
  --measure: 42rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

/* Keep the hidden attribute working on elements given a display value below */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  background: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--teal-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-900);
}

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--slate-100);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: var(--slate-900);
}

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

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal-700);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  min-height: 4.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

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

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--teal-100);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--teal-400);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 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: -5px; }
.nav-toggle-icon::after { top: 5px; }

.site-header.is-open .nav-toggle-icon { background: transparent; }
.site-header.is-open .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile: collapse the menu behind the toggle (only when JS is running;
   without JS the menu simply wraps under the logo). */
@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-menu {
    display: none;
  }

  .js .site-header.is-open .site-menu {
    display: flex;
  }

  .site-menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: rgb(255 255 255 / 0.12);
    box-shadow: inset 3px 0 0 var(--teal-400);
    padding-left: 0.75rem;
  }

  .header-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

/* On teal backgrounds */
.btn-primary {
  background: var(--teal-400);
  color: var(--slate-900);
}

.btn-primary:hover {
  background: var(--teal-300);
  color: var(--slate-900);
}

.btn-launch {
  border-color: rgb(255 255 255 / 0.55);
  color: #ffffff;
}

.btn-launch:hover {
  background: var(--teal-800);
  color: #ffffff;
}

/* On light backgrounds */
.btn-cta {
  background: var(--teal-700);
  color: #ffffff;
}

.btn-cta:hover {
  background: var(--teal-800);
  color: #ffffff;
}

.btn-secondary {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

.btn-secondary:hover {
  background: var(--teal-50);
  color: var(--teal-800);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

/* ==========================================================================
   Sections and layout
   ========================================================================== */

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

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--space-4);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--teal-700);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  font-size: var(--text-lg);
  color: var(--slate-600);
  max-width: var(--measure);
}

/* Page intro (every page except Home) */
.page-intro {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  background: linear-gradient(180deg, var(--teal-50), var(--slate-50));
  border-bottom: 1px solid var(--slate-200);
}

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

/* Home hero */
.hero {
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(45 212 191 / 0.18), transparent 70%),
    linear-gradient(180deg, var(--teal-50), var(--slate-50));
  border-bottom: 1px solid var(--slate-200);
}

.hero .lede {
  margin-bottom: 0;
}

/* Two-column text + media; stacks on small screens */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split-wide-media {
    grid-template-columns: 5fr 7fr;
  }

  .split-reverse > :first-child {
    order: 2;
  }
}

/* Long-form reading pages (About, For IT, Privacy) */
.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  margin-top: var(--space-5);
}

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

.prose h3 {
  margin-top: var(--space-4);
}

.prose .table-wrap {
  margin: 0 0 var(--space-2);
}

.prose .callout {
  margin: 0 0 var(--space-2);
}

/* Reference tables inside prose (For IT): narrower than the pricing table */
@media (min-width: 641px) {
  .compare.compact {
    min-width: 34rem;
  }
}

.prose ul,
.prose ol,
.faq-answer ul,
.faq-answer ol {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-2);
}

.prose li + li,
.faq-answer li + li {
  margin-top: 0.35rem;
}

/* Sidebar layout for long pages: on-page contents + prose */
.with-toc {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 960px) {
  .with-toc {
    grid-template-columns: 14rem 1fr;
    gap: var(--space-5);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 6rem;
  }
}

.toc {
  font-size: var(--text-sm);
}

.toc-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--slate-900);
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--slate-200);
}

.toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  color: var(--slate-600);
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal-700);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-3);
}

.card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow);
}

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

.card-link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: " →";
}

/* Pricing */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-3);
}

.price-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--teal-700);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  box-shadow: var(--shadow);
}

/* Diagonal ribbon across the card's top-right corner. The eyebrow and
   heading keep clear of it so it never sits on top of text. */
.price-sash {
  position: absolute;
  top: 2.9rem;
  right: -4rem;
  width: 16rem;
  margin: 0;
  padding: 0.35rem 0;
  transform: rotate(45deg);
  background: var(--red-600);
  box-shadow: 0 2px 6px rgb(15 23 42 / 0.2);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.price-card > .eyebrow,
.price-card > h2 {
  padding-right: 5.5rem;
}

@media (max-width: 30rem) {
  .price-card > .eyebrow {
    padding-right: 8rem;
  }
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  margin: 0.25rem 0 var(--space-2);
}

.price-amount {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.1;
}

.price-term {
  color: var(--slate-600);
  font-weight: 500;
}

.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.checklist {
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li + li {
  margin-top: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--teal-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F766E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}

.checklist .sublist {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.checklist .sublist li {
  padding-left: 0;
}

.checklist .sublist li + li {
  margin-top: 0.2rem;
}

.checklist .sublist li::before {
  content: none;
}

/* Comparison table — scrolls sideways inside its own box on narrow screens */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #ffffff;
}

.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.compare thead th {
  background: var(--teal-50);
  color: var(--slate-900);
  font-weight: 600;
}

.compare tbody th {
  width: 28%;
  color: var(--slate-900);
  font-weight: 500;
}

.compare tr:last-child > * {
  border-bottom: 0;
}

/* FAQ — native details/summary, no JS */
.faq-group + .faq-group {
  margin-top: var(--space-5);
}

.faq-list {
  border-top: 1px solid var(--slate-200);
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item summary {
  position: relative;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  border-radius: 50%;
  background: var(--teal-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%230F766E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 0.85rem no-repeat;
  transition: transform 0.2s ease;
}

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

.faq-item summary:hover {
  color: var(--teal-800);
}

.faq-answer {
  padding: 0 0 1.25rem;
  max-width: var(--measure);
}

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

/* Pill links (jump lists) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.pills a {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--teal-800);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.pills a:hover {
  border-color: var(--teal-400);
  background: var(--teal-50);
}

/* Media frame — screenshots, recordings, animation */
.media-frame {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.media-frame > img,
.media-frame > video {
  display: block;
  width: 100%;
}

/* Document excerpt — a letter or note from a (fictional) patient record */
.doc-frame {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc-frame-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  font-size: var(--text-sm);
  color: var(--slate-600);
}

.doc-frame-body {
  padding: 1.25rem 1.4rem;
  font-size: 0.95rem;
}

/* Letter recreated inside a doc-frame */
.letter .doc-frame-body > * + * {
  margin-top: 0.75rem;
}

.letter-title {
  font-size: 1.05rem;
}

.letter-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: var(--text-sm);
}

.letter-meta dt {
  font-weight: 600;
  color: var(--slate-600);
}

.letter-meta dd {
  margin: 0;
}

.letter p {
  margin-bottom: 0;
}

.letter sub {
  line-height: 0;
}

/* Long document beside short text: on desktop, cap its height and let it
   scroll, fading the bottom edge until the end is reached. Phones show it
   in full, since a scroll box inside the page is awkward to use by thumb. */
@media (min-width: 860px) {
  .doc-scroll {
    max-height: 26rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 4rem), transparent);
    mask-image: linear-gradient(#000 calc(100% - 4rem), transparent);
  }

  .doc-scroll.is-end {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* The frame clips overflow, so draw the focus ring inside */
  .doc-scroll:focus-visible {
    outline-offset: -3px;
  }
}

/* Tall letter beside short text: keep the text at the top */
.split-top {
  align-items: start;
}

/* Callout */
.callout {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--teal-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--teal-50);
}

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

/* EWS zone chips — optional accents tying back to the obs chart */
.ews-chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  color: #000000;
  font-size: var(--text-sm);
  font-weight: 500;
}

.ews-yellow { background: var(--ews-yellow); }
.ews-orange { background: var(--ews-orange); }
.ews-red { background: var(--ews-red); }
.ews-blue { background: var(--ews-blue); }

/* Closing call-to-action band */
.cta-band {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(45 212 191 / 0.25), transparent 70%),
    var(--teal-800);
  color: var(--teal-100);
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band .lede {
  color: var(--teal-100);
}

.cta-band code {
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
}

.cta-band a:not(.btn) {
  color: #ffffff;
}

.cta-band .btn-secondary {
  border-color: rgb(255 255 255 / 0.55);
  color: #ffffff;
}

.cta-band .btn-secondary:hover {
  background: rgb(255 255 255 / 0.1);
  color: #ffffff;
}

.cta-band .placeholder {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.3);
  color: var(--teal-100);
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--slate-900);
}

.form .optional {
  color: var(--slate-500);
  font-weight: 400;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--slate-900);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgb(45 212 191 / 0.35);
}

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

.form-status {
  margin: 0 0 var(--space-3);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--slate-900);
}

.form-status-success {
  background: var(--success-bg);
}

.form-status-error {
  background: var(--ews-red);
}

.contact-layout {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
}

/* ==========================================================================
   Placeholders — scaffolding only; delete as real content lands
   ========================================================================== */

.placeholder {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--slate-500);
  background: rgb(241 245 249 / 0.7);
  font-size: 0.95rem;
}

.placeholder::before {
  content: "Placeholder";
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder + .placeholder,
* + .placeholder {
  margin-top: var(--space-2);
}

.placeholder-media {
  display: grid;
  place-content: center;
  min-height: 16rem;
  aspect-ratio: 4 / 3;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-5) 0 var(--space-4);
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3) var(--space-5);
}

.footer-brand img {
  display: block;
  height: 30px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--slate-800);
  text-decoration: none;
}

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

.footer-legal {
  flex-basis: 100%;
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

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

.faq-more {
  margin-top: var(--space-3);
}

/* Comparison table on phones: one block per row, each cell labelled */
@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .compare {
    min-width: 0;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }

  .compare tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
  }

  .compare tbody th {
    width: auto;
    background: var(--teal-50);
  }

  .compare td {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.75rem;
  }

  .compare td::before {
    content: attr(data-label);
    color: var(--slate-500);
    font-size: var(--text-sm);
  }

  .compare tr > :last-child {
    border-bottom: 0;
  }
}

.placeholder + p {
  margin-top: var(--space-2);
}

/* ==========================================================================
   Hotspot image — numbered markers over an illustration (public/hotspots.js)
   ========================================================================== */

.hotspots {
  position: relative;
  margin: 0;
}

.hotspots-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.hotspots-image img {
  display: block;
  width: 100%;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  height: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  padding: 0;
  translate: -50% -50%;
  border: 2px solid var(--teal-700);
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal-800);
  font: inherit;
  font-size: clamp(0.8rem, 0.7rem + 0.3vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.25);
  transition: background-color 0.15s ease, color 0.15s ease, scale 0.15s ease;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--teal-400);
  opacity: 0;
  animation: hotspot-pulse 2.4s ease-out infinite;
}

/* Larger invisible tap target (~44px) without a larger marker */
.hotspot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.hotspot:hover,
.hotspot[aria-expanded="true"] {
  background: var(--teal-700);
  color: #ffffff;
  scale: 1.1;
}

.hotspot[aria-expanded="true"]::before {
  animation: none;
}

@keyframes hotspot-pulse {
  0% { opacity: 0.9; transform: scale(0.8); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

.hotspot-list {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-2);
}

.hotspot-list li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.25rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.hotspot-list li::before {
  content: attr(data-n);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--teal-700);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.hotspot-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.hotspot-list p {
  margin: 0;
  font-size: 0.95rem;
}

.hotspot-hint {
  display: none;
  margin: var(--space-2) 0 0;
  color: var(--slate-500);
  font-size: var(--text-sm);
}

/* With JS: one description at a time */
.hotspots.is-interactive .hotspot-list {
  display: block;
}

.hotspots.is-interactive .hotspot-list li {
  display: none;
}

.hotspots.is-interactive .hotspot-list li.is-active {
  display: block;
}

.hotspots.is-interactive:not(.has-active) .hotspot-hint {
  display: block;
}

/* Wide screens: the card sits beside its marker, over the image */
@media (min-width: 860px) {
  .hotspots.is-interactive .hotspot-list {
    margin: 0;
  }

  .hotspots.is-interactive .hotspot-list li.is-active {
    position: absolute;
    z-index: 2;
    left: calc(var(--x) + 2rem);
    top: var(--y);
    width: min(22rem, 40%);
    translate: 0 -50%;
    box-shadow: 0 12px 32px -8px rgb(15 23 42 / 0.35);
    animation: hotspot-card-in 0.15s ease-out;
  }

  .hotspots.is-interactive .hotspot-list li.is-active.opens-left {
    left: auto;
    right: calc(100% - var(--x) + 2rem);
  }

  .hotspots.is-interactive .hotspot-list li.is-active.opens-down {
    translate: 0 -1.25rem;
  }

  .hotspots.is-interactive .hotspot-hint {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.9);
    box-shadow: 0 1px 4px rgb(15 23 42 / 0.15);
  }
}

/* Portrait screenshot in a tablet bezel (Home: the instructor's view) */
.tablet-frame {
  max-width: 40rem;
  margin-inline: auto;
}

.tablet-frame .hotspots-image {
  border: clamp(8px, 0.4rem + 0.5vw, 14px) solid var(--slate-800);
  border-radius: clamp(1rem, 0.8rem + 0.8vw, 1.6rem);
  box-shadow: 0 2px 4px rgb(15 23 42 / 0.06), 0 30px 60px -24px rgb(15 23 42 / 0.4);
}

@media (min-width: 860px) {
  /* The image is narrow, so cards take more of its width */
  .tablet-frame.hotspots.is-interactive .hotspot-list li.is-active {
    width: min(19rem, 72%);
  }
}

@keyframes hotspot-card-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Product screenshot (Home hero)
   ========================================================================== */

.hero-text {
  max-width: 46rem;
}

.product-shot {
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 2px 4px rgb(15 23 42 / 0.06), 0 30px 60px -24px rgb(15 23 42 / 0.4);
}

.product-shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.product-shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Hero app tour (public/app-tour.js): tabs swap the screenshot, markers reuse
   the hotspot component. Visible overflow lets marker cards spill past the frame.
   -------------------------------------------------------------------------- */

.app-tour {
  overflow: visible;
}

.app-tour .product-shot-bar {
  align-items: center;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.app-tour-screen {
  position: relative;
}

.app-tour .hotspots-image {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.app-tour picture img {
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.app-tour .hotspot::before {
  animation-iteration-count: 3;
}

.app-tour .hotspot-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--slate-900);
  font-size: 1.05rem;
}

.app-tour .hotspot-list li {
  font-size: 0.95rem;
}

.app-tour .hotspots.is-interactive:not(.has-active) .hotspot-list {
  display: none;
}

/* Tabs: without JS they do nothing, so they stay hidden */
.app-tour-tabs {
  display: none;
}

.js .app-tour-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--slate-200);
  scrollbar-width: thin;
}

.app-tour-tabs button {
  flex: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: #ffffff;
  color: var(--slate-600);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.app-tour-tabs button[aria-selected="true"] {
  border-color: var(--teal-700);
  background: var(--teal-700);
  color: #ffffff;
}

/* Callout pointing at the tabs, until the visitor tries one (app-tour.js).
   A zero-height box at the tabs' lower edge, so it overlays the screenshot's
   dark header band without moving anything. Narrow: under the pill row,
   pointing up at the first pill. */
.app-tour-callout {
  display: none;
}

.js .app-tour-callout {
  position: relative;
  z-index: 2;
  display: block;
  height: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.app-tour-callout.is-dismissed {
  opacity: 0;
}

.app-tour-callout p {
  position: absolute;
  top: 0.7rem;
  left: 0.75rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-800);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--teal-400), 0 4px 14px rgb(15 23 42 / 0.35);
  animation: callout-in 0.4s ease-out 0.6s backwards, callout-nudge-up 0.9s ease-in-out 1.2s 3;
}

/* Arrow: a rotated square sharing the bubble's outline */
.app-tour-callout p::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 1.4rem;
  width: 10px;
  height: 10px;
  rotate: 45deg;
  background: #ffffff;
  box-shadow: -2px -2px 0 0 var(--teal-400);
}

.app-tour-callout-mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .app-tour-callout-touch {
    display: none;
  }

  .app-tour-callout-mouse {
    display: inline;
  }
}

@keyframes callout-in {
  from { opacity: 0; translate: 0 6px; }
}

@keyframes callout-nudge-up {
  50% { translate: 0 -5px; }
}

@keyframes callout-nudge-down {
  50% { translate: 0 5px; }
}

/* Narrow screens: a square crop of each screen is too small for markers,
   so every description shows as a list under it */
@media (max-width: 640px) {
  .app-tour .hotspot {
    display: none;
  }

  .app-tour .hotspots.is-interactive .hotspot-list,
  .app-tour .hotspots.is-interactive:not(.has-active) .hotspot-list {
    display: grid;
  }

  .app-tour .hotspots.is-interactive .hotspot-list li {
    display: block;
    padding-left: 1.1rem;
  }

  .app-tour .hotspot-list li::before {
    display: none;
  }
}

@media (max-width: 859px) {
  .app-tour .hotspot-list {
    margin: 0;
    padding: var(--space-2);
    border-top: 1px solid var(--slate-200);
  }

  .app-tour picture img {
    border-radius: 0;
  }
}

/* Wide screens: invisible tab buttons over the screenshot's own tab strip
   (the screenshot already shows which tab is selected) */
@media (min-width: 860px) {
  .js .app-tour-tabs {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    padding: 0;
    border: 0;
    overflow: visible;
    pointer-events: none;
  }

  .app-tour-tabs button,
  .app-tour-tabs button[aria-selected="true"] {
    position: absolute;
    top: 12.5%;
    left: var(--l);
    width: var(--w);
    height: 4.75%;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: transparent;
    pointer-events: auto;
  }

  /* In the empty middle of the header band, pointing down at Notes */
  .js .app-tour-callout {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .app-tour-callout p {
    top: 12.5%;
    left: 37.75%;
    transform: translateY(calc(-100% - 0.6rem));
    animation-name: callout-in, callout-nudge-down;
  }

  .app-tour-callout p::before {
    top: auto;
    bottom: -5px;
    left: 1.2rem;
    box-shadow: 2px 2px 0 0 var(--teal-400);
  }

  .app-tour-tabs button:not([aria-selected="true"]):hover {
    background: rgb(15 118 110 / 0.1);
  }

  .app-tour-tabs button:focus-visible {
    outline: 2px solid var(--teal-700);
    outline-offset: 0;
  }
}

/* ==========================================================================
   Showcase QR page (/showcase): one phone screen, no navigation
   ========================================================================== */

.showcase {
  background: var(--slate-50);
}

.showcase-band {
  background: var(--teal-700);
  color: #ffffff;
  padding: 0.9rem 16px 1rem;
  text-align: center;
}

.showcase-band img {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 auto;
}

.showcase-tagline {
  margin: 0.45rem auto 0;
  max-width: 22rem;
  color: var(--teal-50);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.showcase-main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.9rem 16px 2rem;
}

.showcase-intro {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--slate-600);
}

.showcase-form {
  gap: 0.7rem;
}

.showcase-form label {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

/* 16px+ text stops iOS zooming in on focus; 48px clears the 44px tap target. */
.showcase-form input {
  min-height: 48px;
  font-size: 1.0625rem;
}

.showcase-form input[aria-invalid="true"] {
  border-color: #B91C1C;
}

.field-error {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B91C1C;
}

.showcase-consent {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--slate-600);
}

.showcase-submit {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}

.showcase .form-status {
  margin-bottom: 0.9rem;
}

.showcase .form-status-success {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 1.1rem 1.2rem;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.showcase-links {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  font-size: 0.9rem;
  text-align: center;
}

.showcase-links a {
  display: inline-block;
  padding: 0.65rem 0.25rem; /* 44px+ tap target */
  line-height: 1.4;
}

.icon-linkedin {
  vertical-align: -0.2em;
  margin-right: 0.3rem;
}

/* The no-JavaScript reply page from /api/showcase */
.showcase-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
