/* Changes to the approved prototype's landing page, kept out of app.css so that file stays a
   verbatim copy of the prototype's own CSS (tools/prototype-to-blade.py regenerates it).

   The "how it works" tour showed two stock photographs in a 74px strip. They now show the real
   patient and doctor workspaces, so the strip is taller, anchored to the top of the screenshot
   and left unfaded — a desaturated 74px slice of a user interface reads as nothing at all. */

.nhs-stock-ui-image {
  height: 132px;
  object-position: top center;
  opacity: 1;
  filter: none;
  border: 1px solid var(--nhs-border);
  background: var(--nhs-white);
}

@media (max-width: 780px) {
  .nhs-stock-ui-image {
    height: 104px;
  }
}

/* ---------------------------------------------------------------------------
   Landing hero, rebuilt to the approved reference layout (2026-11-10).

   One tinted panel holds the copy on the left and a full-bleed photograph on
   the right; three value cards sit under it and overlap its bottom edge. The
   palette and the two typefaces are unchanged — every colour below resolves
   through an existing token in app.css. Kept here, not in app.css, because
   that file is regenerated verbatim from the prototype.
   --------------------------------------------------------------------------- */

.so-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(14px, 2vw, 32px) 0;
  margin-bottom: 30px;
}

.so-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(118deg, var(--nhs-green-tint) 0%, var(--nhs-green-tint) 54%, #DEEBE4 100%);
}

.so-hero-copy {
  align-self: center;
  padding: clamp(36px, 4.2vw, 62px) clamp(20px, 2.5vw, 34px) clamp(36px, 4.2vw, 62px) clamp(28px, 4vw, 60px);
}

.so-hero-copy h1 {
  margin: 0 0 18px;
  color: var(--color-primary-strong);
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.85vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.so-hero-copy p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--color-text-soft);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.62;
}

.so-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.so-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-control) var(--ease), color var(--dur-control) var(--ease), transform var(--dur-control) var(--ease);
}

.so-btn:focus-visible {
  outline: 3px solid var(--nhs-blue);
  outline-offset: 2px;
}

.so-btn-primary {
  background: var(--color-action);
  color: var(--nhs-white);
  box-shadow: 0 8px 20px rgba(0, 127, 59, .22);
}

.so-btn-ghost {
  background: transparent;
  color: var(--color-primary-strong);
  border-color: var(--color-primary-strong);
}

@media (hover: hover) and (pointer: fine) {
  .so-btn:hover { transform: translateY(-1px); }
  .so-btn-primary:hover { background: var(--color-action-hover); }
  .so-btn-ghost:hover { background: var(--color-primary-strong); color: var(--nhs-white); }
}

@media (prefers-reduced-motion: reduce) {
  .so-btn { transition: none; }
  .so-btn:hover { transform: none; }
}

.so-hero-media {
  position: relative;
  min-height: 440px;
}

.so-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 45%;
}

/* Softens the seam where the photograph meets the tinted panel. */
.so-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--nhs-green-tint) 0%, rgba(230, 242, 235, 0) 30%);
}

.so-hero-cards {
  position: relative;
  z-index: 2;
  margin: -40px 24px 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.so-hero-cards li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(25, 43, 47, .10);
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.so-hero-cards strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-primary-strong);
  font-size: 15px;
}

.so-card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nhs-green-tint);
  color: var(--color-action);
}

.so-card-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1080px) {
  .so-hero-media { min-height: 400px; }
  .so-hero-cards { margin-inline: 0; gap: 14px; }
  .so-hero-cards li { padding: 18px; }
}

@media (max-width: 880px) {
  .so-hero-panel { grid-template-columns: 1fr; border-radius: 22px; }
  .so-hero-copy { padding: 36px 24px 32px; }
  .so-hero-media { min-height: 0; height: 280px; }
  .so-hero-media::after {
    background: linear-gradient(0deg, rgba(230, 242, 235, 0) 70%, var(--nhs-green-tint) 100%);
  }
  .so-hero-cards { grid-template-columns: 1fr; margin: 18px 0 0; gap: 12px; }
  .so-btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   "How it works" — the four-step strip, rebuilt as a full-bleed navy band of
   photo cards (2026-11-10), to the client's reference. It replaces
   `.nhs-route-strip` in the landing view; those rules stay in app.css, unused
   by this page. The band carries the #how-it-works anchor the hero scrolls to.
   Navy is the app's own --nhs-dark-blue, as used by .nhs-final-cta.
   --------------------------------------------------------------------------- */

.so-how {
  background: var(--nhs-dark-blue);
  color: var(--nhs-white);
  padding: clamp(44px, 5.5vw, 76px) 0;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.so-how-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 48px);
}

.so-how h2 {
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  color: var(--nhs-white);
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.so-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
}

.so-steps li {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-primary-strong);
}

.so-steps img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Each photograph has its subject in a different place; these keep the face
   or the document inside the frame. */
.so-steps li:nth-child(1) img { object-position: 50% 30%; }
.so-steps li:nth-child(2) img { object-position: 50% 40%; }
.so-steps li:nth-child(3) img { object-position: 68% 40%; }
.so-steps li:nth-child(4) img { object-position: 54% 18%; }

/* Scrim behind the numeral, so it stays legible over a light photograph. */
.so-steps li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 30, 80, .62), rgba(0, 30, 80, .22) 55%, rgba(0, 30, 80, 0));
}

.so-step-num {
  position: absolute;
  top: clamp(10px, 1.1vw, 16px);
  left: clamp(12px, 1.3vw, 20px);
  color: var(--nhs-white);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 16px rgba(0, 24, 64, .55);
}

.so-step-body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(12px, 1.1vw, 16px);
  background: rgba(0, 48, 135, .62);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.so-step-body strong {
  display: block;
  color: var(--nhs-white);
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.so-step-body small {
  display: block;
  margin-top: clamp(4px, .5vw, 8px);
  color: rgba(255, 255, 255, .84);
  font-size: clamp(12px, .8vw, 13px);
  line-height: 1.6;
}

.so-btn-onblue {
  margin-top: clamp(22px, 2.6vw, 34px);
  background: var(--color-action);
  color: var(--nhs-white);
}

.so-how .so-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .so-btn-onblue:hover { background: var(--color-action-hover); }
}

@media (max-width: 820px) {
  .so-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .so-steps li { aspect-ratio: 16 / 11; }
  .so-btn-onblue { width: 100%; }
}

/* app.css caps the tour, reviews, final-CTA and footer bands at a fixed
   1160px with fixed 40px gutters, leaving large dead margins on wide
   screens. Widen them to match .so-hero/.so-how-inner above and switch to
   the same fluid gutter so they also track the viewport. Only the inline
   padding is overridden; app.css still owns each band's vertical padding,
   grid and mobile-breakpoint rules. */
.nhs-tour,
.nhs-reviews,
.nhs-final-cta,
.nhs-footer-top,
.nhs-footer-bottom {
  max-width: 1600px;
  padding-inline: clamp(22px, 4vw, 48px);
}

.nhs-reviews {
  margin: 0 auto;
  padding-block: clamp(38px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.nhs-reviews-intro h2 {
  margin: 14px 0 12px;
  color: var(--color-primary-strong);
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.nhs-reviews-intro > p {
  margin: 0;
  color: var(--s);
  font-size: 15px;
  line-height: 1.6;
}

.nhs-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nhs-review {
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 8px;
  background: var(--nhs-green-tint);
}

.nhs-review:nth-child(2) {
  background: var(--nhs-blue-tint);
}

.nhs-review > p {
  margin: 0;
  color: var(--t);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
}

.nhs-review footer {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.nhs-review cite {
  color: var(--color-primary-strong);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.nhs-review footer span {
  color: var(--s);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nhs-reviews {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .nhs-reviews {
    padding-inline: 18px;
    padding-block: 34px;
  }

  .nhs-review-list {
    grid-template-columns: 1fr;
  }
}
