/* ============================================================
   People's Doctor — Demo-Site page styles
   Links AFTER styles/design-system.css (the canonical house
   design system). Owns ONLY page-body styling that the house
   system does not already express: the ambient hero phone, the
   iframe demo frames, scroll-reveal, the early-access signup.

   Everything else — tokens, chrome, buttons, badges, cards
   (.feature-grid__item), the .container, section tints — comes
   from design-system.css. No competing token system here.

   HARD RULE: all body/heading text weight <=500; buttons 700
   UPPERCASE. Tokens only — no magic numbers, no hex literals
   except the intentional demo-phone gradients flagged below.
   ============================================================ */

/* ============================================================
   DEMO-SITE PAGE-SPECIFIC TOKENS
   The only tokens declared outside design-system.css. These have
   no house home: --shadow-float is the deep lift used by the
   floating hero phone + the iframe demo frames; the phone-chassis
   gradients render a physical device shell (marketing prop, not a
   house surface). Kept deliberately scoped here.
   ============================================================ */
:root {
  --shadow-float: 0 30px 80px rgba(19, 25, 44, 0.20);
  --phone-chassis: #000000;
  --phone-screen:  linear-gradient(180deg, #FFFFFF 0%, #F4F5FB 100%);
}

/* ---------- Base ---------- */
/* House body is lavender-50 flat; keep that — drop the demo gradient. */
body {
  overflow-x: hidden;
}

/* ============================================================
   HEADER / FOOTER / MOBILE MENU — site chrome.
   The chrome is a verbatim copy of the canonical People's site
   chrome and is styled entirely by design-system.css (loaded
   before this file). No chrome rules here.
   ============================================================ */

/* ============================================================
   INLINE ICONS + TEXT-LINK
   Raw inline <svg> arrows in page CTAs/links need explicit
   sizing (the house sizes icons via .icon/sprite; these use
   raw inline SVG). Without this they balloon in flex parents.
   ============================================================ */
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  color: var(--color-periwinkle-900);
  transition: color var(--dur-fast) var(--ease-out);
}

.text-link svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  transition: transform var(--dur-fast) var(--ease-out);
}

.text-link:hover { color: var(--color-navy-900); }
.text-link:hover svg { transform: translateX(3px); }

/* ============================================================
   HERO — bespoke: ambient floating phone. No house analogue
   (house heroes use video). Re-tokenised onto the house system.

   NOTE: design-system.css ships a centred `.hero` pattern; this
   page-hero is a left-aligned split. The rules below explicitly
   override the house pattern's text-align + horizontal padding.
   Top padding (header-breathing) is owned by `main > :first-child`
   in design-system.css — only the lower padding is page-owned.
   ============================================================ */
.hero {
  position: relative;
  /* clip the ambient glow/orbs, but leave 120px so the floating phone's
     drop shadow is not cut off */
  overflow: clip;
  overflow-clip-margin: 120px;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: var(--space-20);
  background: var(--grad-hero-light);
}

.hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.28) 0%, rgba(86, 105, 164, 0) 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowDrift 16s var(--ease-smooth) infinite alternate;
}

@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 50px) scale(1.12); }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.3fr 0.8fr;
    gap: var(--space-14);
  }
}

.hero__copy { max-width: 680px; }

.hero__title {
  margin: var(--space-5) 0 var(--space-4);
  /* bespoke hero display size — bigger than --text-h1, one line on desktop */
  font-size: clamp(2.5rem, 4.6vw, 3.85rem);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
}

.hero__sub {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-prose);
  color: var(--color-navy-500);
  max-width: 480px;
}

.hero__checklist {
  max-width: 480px;
  margin: var(--space-6) 0 0;
  gap: var(--space-2);
}

.hero__checklist .checklist__item {
  font-size: var(--text-meta);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--color-periwinkle-700);
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-periwinkle-900);
  flex-shrink: 0;
}

/* ---------- Hero ambient phone (bespoke marketing prop) ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

@media (min-width: 1024px) {
  .hero__visual { min-height: 560px; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero-orb--a {
  width: 300px;
  height: 300px;
  top: 4%;
  left: -6%;
  background: radial-gradient(circle, rgba(122, 138, 189, 0.42) 0%, rgba(122, 138, 189, 0) 70%);
  animation: orbFloatA 13s var(--ease-smooth) infinite alternate;
}

.hero-orb--b {
  width: 240px;
  height: 240px;
  bottom: 2%;
  right: -4%;
  background: radial-gradient(circle, rgba(56, 69, 109, 0.34) 0%, rgba(56, 69, 109, 0) 70%);
  animation: orbFloatB 17s var(--ease-smooth) infinite alternate;
}

@keyframes orbFloatA {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(34px, -28px); }
}

@keyframes orbFloatB {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-30px, 30px); }
}

/* Fixed 292px width with an 8px bezel: the 276px screen paired with
   the 600px screen height keeps a true iPhone ratio (~19.5:9). */
.hero-phone {
  position: relative;
  z-index: 2;
  width: 292px;
  animation: phoneFloat 9s var(--ease-smooth) infinite alternate;
}

@keyframes phoneFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-16px); }
}

.hero-phone__frame {
  position: relative;
  padding: 8px;
  background: var(--phone-chassis);
  border-radius: 44px;
  box-shadow: var(--shadow-float);
}

.hero-phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: var(--color-navy-900);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.hero-phone__screen {
  position: relative;
  border-radius: 34px;
  background: var(--phone-screen);
  padding: 30px 18px 20px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.hero-phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-navy-700);
  padding: 0 4px;
}

.hero-phone__signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.hero-phone__signal i {
  display: block;
  width: 3px;
  background: var(--color-navy-400);
  border-radius: 1px;
}

.hero-phone__signal i:nth-child(1) { height: 5px; }
.hero-phone__signal i:nth-child(2) { height: 8px; }
.hero-phone__signal i:nth-child(3) { height: 11px; }

/* --- Dashboard header --- */
.hero-phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.hero-phone__greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-phone__hello {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-navy-500);
}

.hero-phone__title {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
}

.hero-phone__user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-btn-premium);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-tight);
}

/* --- Companion card --- */
.hero-phone__companion {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: 22px;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--grad-premium-card);
  box-shadow: var(--shadow-md);
}

.hero-phone__companion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

.hero-phone__companion-icon svg { width: 20px; height: 20px; }

.hero-phone__companion-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-phone__companion-title {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-white);
}

.hero-phone__companion-sub {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.62);
}

/* --- Feature grid --- */
.hero-phone__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.hero-phone__tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-lavender-100);
  box-shadow: var(--shadow-md);
}

.hero-phone__tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-lavender-100);
  color: var(--color-periwinkle-900);
}

.hero-phone__tile-icon svg { width: 17px; height: 17px; }

.hero-phone__tile-label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
}

/* --- Bottom nav --- */
.hero-phone__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: auto -18px -20px;
  padding: var(--space-3) var(--space-2);
  padding-bottom: var(--space-4);
  background: var(--color-white);
  border-top: 1px solid var(--color-lavender-100);
}

.hero-phone__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-periwinkle-700);
}

.hero-phone__nav-item svg { width: 19px; height: 19px; }

.hero-phone__nav-item--active {
  color: var(--color-navy-900);
}

/* ============================================================
   SECTION INTRO — centred eyebrow + heading + lead.
   .section-heading comes from the house system; only the
   intro-block wrapper + lead paragraph are page-owned.
   ============================================================ */
.section__head {
  max-width: 620px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}

.section__head .eyebrow {
  display: inline-block;
}

/* In a centred intro the heading sits directly above the lead —
   tighten the heading's house bottom-margin to a single step.
   width:max-content lets a single-line heading stay on one line
   (it only wraps once it would exceed the viewport). */
.section__head .section-heading {
  margin-bottom: var(--space-3);
  width: max-content;
  max-width: 90vw;
  margin-inline: auto;
}

.section__lead {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-prose);
  color: var(--color-navy-500);
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem {
  position: relative;
}

.moment-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

/* The "moment" cards use the house .feature-grid__item card. Only
   the time-eyebrow + the quote-style body are page-specific.
   Selectors are scoped under .feature-grid__item so they outweigh
   the house `.feature-grid__item p` rule. */
.moment-card__time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--color-periwinkle-700);
}

.moment-card__time svg {
  width: 15px;
  height: 15px;
  color: var(--color-periwinkle-900);
}

.feature-grid__item .moment-card__text {
  margin: var(--space-4) 0 0;
  font-size: var(--text-quote);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-snug);
  color: var(--color-navy-900);
}

/* The three "moment" cards are the emotional anchor of the section.
   They use the design system's light periwinkle card gradient
   (--grad-pro-card) so they stand clear of the white section
   without going dark. */
.problem .moment-grid .feature-grid__item {
  background: var(--grad-pro-card);
  border: none;
  padding: var(--space-8);
  box-shadow: 0 16px 38px -14px rgba(86, 99, 164, 0.4);
}

.problem .moment-grid .feature-grid__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -16px rgba(86, 99, 164, 0.46);
}

.problem .moment-card__time {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-periwinkle-900);
}

.problem .moment-card__time svg {
  color: var(--color-periwinkle-900);
}

.problem .feature-grid__item .moment-card__text {
  margin-top: var(--space-5);
  font-size: clamp(1.12rem, 1.4vw, 1.34rem);
  color: var(--color-navy-900);
}

/* ============================================================
   DEMO SECTIONS — split copy + iframe phone demo
   ============================================================ */
.demo-section__inner {
  position: relative;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .demo-section__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .demo-section__inner--reverse .demo-section__copy { order: 2; }
  .demo-section__inner--reverse .demo-frame { order: 1; }
}

.demo-section__copy { max-width: 540px; }

/* Keep the longest demo headline ("Sig det der betyder noget")
   on a single line above its accent line — two lines total. */
.demo-section__copy .section-heading { text-wrap: balance; }

/* Left-aligned section heading inside the split layout. */
.demo-section__copy .section-heading {
  text-align: left;
  margin-bottom: var(--space-4);
}

.demo-section__copy .section__lead {
  text-align: left;
  margin-top: 0;
}

/* ---------- Checklist ---------- */
/* Re-tokenised local component: the demo ships its own inline SVG
   ticks rather than the house /assets/icons/ background images, so
   .check-list cannot be adopted directly. */
.checklist {
  list-style: none;
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-prose);
  color: var(--color-navy-700);
}

.checklist__item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-lavender-100);
  color: var(--color-periwinkle-900);
  box-sizing: content-box;
}

/* ---------- Demo iframe frame (bespoke — holds the app demo) ---------- */
.demo-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6);
  min-height: 540px;
}

.demo-frame__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.26) 0%, rgba(86, 105, 164, 0) 70%);
  filter: blur(16px);
  pointer-events: none;
  animation: glowBreath 9s ease-in-out infinite;
}

.demo-frame--feature .demo-frame__glow {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.34) 0%, rgba(86, 105, 164, 0) 70%);
}

@keyframes glowBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

.demo-frame__iframe {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 100%;
  height: 780px;
  background: transparent;
}

.demo-frame--feature .demo-frame__iframe {
  width: 400px;
  height: 800px;
}

@media (max-width: 460px) {
  .demo-frame {
    padding: var(--space-3);
    min-height: 680px;
  }
  .demo-frame__iframe,
  .demo-frame--feature .demo-frame__iframe {
    width: 320px;
    height: 660px;
  }
}

/* ============================================================
   COMPANION + TRUST grids
   ============================================================ */
.feature-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  /* House .feature-grid ships its own padding; the demo lays grids
     directly inside .section, so neutralise it here. */
  padding: 0;
}

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

/* Icon tile inside a feature card — the house .feature-grid__icon
   already carries the periwinkle gradient + radius; only the inner
   SVG sizing is page-owned (the demo uses inline SVGs). */
.feature-grid__icon svg { width: 23px; height: 23px; }

.trust-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

/* Trust cards: house feature card, centred (a thin local modifier
   — the audit explicitly permits this). */
.feature-grid__item--center {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.feature-grid__item--center .feature-grid__icon {
  border-radius: var(--radius-pill);
}

/* ============================================================
   HOW IT WORKS — alternating rows, each with a "half phone"
   (a bespoke app-screen mockup, masked + clipped at the bottom).
   ============================================================ */
.hiw__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hiw__row + .hiw__row {
  margin-top: var(--space-12);
}

@media (min-width: 860px) {
  .hiw__row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .hiw__row--reverse .hiw__phone-wrap { order: 2; }
  .hiw__row--reverse .hiw__copy { order: 1; }
}

/* --- The half-phone slot: fixed height, clipped + faded at base --- */
.hiw__phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 388px;
  padding-top: 28px;
  overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, #000 73%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 73%, transparent 99%);
}

/* --- Phone chassis --- */
.hiw-phone {
  width: 256px;
  flex-shrink: 0;
}

.hiw-phone__frame {
  position: relative;
  padding: 6px;
  background: var(--phone-chassis);
  border-radius: 40px;
  box-shadow: var(--shadow-float);
}

.hiw-phone__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: var(--color-navy-900);
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

.hiw-phone__screen {
  border-radius: 31px;
  background: var(--phone-screen);
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hiw-phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-navy-700);
  padding: 0 4px;
}

.hiw-phone__signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.hiw-phone__signal i {
  display: block;
  width: 3px;
  background: var(--color-navy-400);
  border-radius: 1px;
}

.hiw-phone__signal i:nth-child(1) { height: 5px; }
.hiw-phone__signal i:nth-child(2) { height: 8px; }
.hiw-phone__signal i:nth-child(3) { height: 11px; }

/* --- Screen header bar --- */
.hiw-phone__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 4px;
}

.hiw-phone__back {
  width: 18px;
  height: 18px;
  color: var(--color-navy-500);
  flex-shrink: 0;
}

.hiw-phone__bar-title {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
}

/* --- Chat screen --- */
.hiw-chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hiw-bubble {
  max-width: 86%;
  padding: 10px 13px;
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  border-radius: 16px;
}

.hiw-bubble--ai {
  align-self: flex-start;
  background: var(--color-white);
  color: var(--color-navy-700);
  border: 1px solid var(--color-lavender-100);
  border-bottom-left-radius: 5px;
}

.hiw-bubble--me {
  align-self: flex-end;
  background: var(--color-periwinkle-900);
  color: var(--color-white);
  border-bottom-right-radius: 5px;
}

.hiw-phone__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 7px 7px 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-lavender-100);
  font-size: var(--text-sm);
  color: var(--color-navy-400);
}

.hiw-phone__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-btn-premium);
  color: var(--color-white);
  flex-shrink: 0;
}

.hiw-phone__send svg { width: 15px; height: 15px; }

/* --- Result screen --- */
.hiw-result {
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-lavender-100);
  box-shadow: var(--shadow-md);
}

.hiw-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hiw-result__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy-700);
}

.hiw-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: var(--track-tight);
}

.hiw-pill--soft {
  background: var(--color-lavender-100);
  color: var(--color-periwinkle-900);
}

.hiw-result__value {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
  margin-top: 6px;
}

.hiw-result__value span {
  font-size: var(--text-sm);
  color: var(--color-navy-400);
}

.hiw-result__bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-lavender-100);
  margin-top: var(--space-3);
}

.hiw-result__bar i {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-periwinkle-900);
  border: 2px solid var(--color-white);
}

.hiw-result__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--color-navy-400);
}

.hiw-explain {
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--color-lavender-100);
}

.hiw-explain__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy-900);
}

.hiw-explain__head svg {
  width: 16px;
  height: 16px;
  color: var(--color-periwinkle-900);
  flex-shrink: 0;
}

.hiw-explain__text {
  margin-top: 6px;
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  color: var(--color-navy-700);
}

/* --- Assessment screen --- */
.hiw-symptom {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-lavender-100);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-navy-700);
}

.hiw-verdict {
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-lavender-100);
  box-shadow: var(--shadow-md);
}

.hiw-verdict__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-lavender-100);
  color: var(--color-periwinkle-900);
}

.hiw-verdict__icon svg { width: 19px; height: 19px; }

.hiw-verdict__title {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
}

.hiw-verdict__text {
  margin-top: 4px;
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  color: var(--color-navy-700);
}

.hiw-watch__head {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-navy-500);
}

.hiw-watch {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.hiw-watch li {
  position: relative;
  padding-left: 16px;
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  color: var(--color-navy-700);
}

.hiw-watch li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-periwinkle-700);
}

/* --- Copy column --- */
.hiw__copy {
  max-width: 420px;
}

.hiw__num {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  color: var(--color-periwinkle-700);
}

.hiw__title {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
  margin-top: var(--space-2);
}

.hiw__text {
  margin-top: var(--space-3);
  font-size: var(--text-body);
  line-height: var(--lh-prose);
  color: var(--color-navy-500);
}

/* ---------- Partners ---------- */
.partners {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-lavender-700);
  text-align: center;
}

.partners__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--color-periwinkle-700);
}

.partners__logos {
  list-style: none;
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-7) var(--space-10);
}

.partners__logos img {
  height: 34px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--dur-normal),
              filter var(--dur-normal);
}

.partners__logos li:hover img {
  opacity: 1;
  filter: grayscale(0);
}

@media (min-width: 768px) {
  .partners__logos img { height: 40px; }
}

/* ============================================================
   FINAL CTA — dark band. Section tint comes from .section-navy-deep
   (house); only the glow + inner block + signup are page-owned.
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.4) 0%, rgba(86, 105, 164, 0) 66%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowBreath 12s ease-in-out infinite;
}

.cta-section__inner {
  position: relative;
  max-width: 660px;
  text-align: center;
}

.cta-section__title {
  margin-top: var(--space-4);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--track-tight);
  color: var(--color-white);
}

.cta-section__lead {
  margin: var(--space-4) auto 0;
  max-width: 480px;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-prose);
  color: var(--color-periwinkle-500);
}

/* ---------- Signup form ---------- */
/* Deliberate single-field CTA control. Kept as a pill email input
   (an intentional page-specific affordance, not a house form) but
   fully re-tokenised onto the house palette + focus ring. */
.signup {
  margin-top: var(--space-8);
}

.signup__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .signup__row {
    flex-direction: row;
    align-items: stretch;
  }
}

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

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-navy-900);
  background: var(--color-white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur-fast),
              box-shadow var(--dur-fast);
}

.signup__input::placeholder { color: var(--color-periwinkle-700); }

.signup__input:focus {
  outline: none;
  border-color: var(--color-periwinkle-500);
  box-shadow: var(--shadow-focus-ring);
}

.signup__input.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.signup__btn {
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .signup__btn { width: 100%; }
}

.signup__hint {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-periwinkle-500);
  transition: color var(--dur-fast);
}

.signup__hint.is-error {
  color: #FCA5A5;
}

/* ---------- Success state (bespoke success animation) ---------- */
.signup-success {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: successIn 0.5s var(--ease-smooth) both;
}

.signup-success[hidden] { display: none; }

@keyframes successIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.signup-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.16);
  color: var(--color-success);
}

.signup-success__icon svg {
  width: 26px;
  height: 26px;
  animation: checkPop 0.45s var(--ease-smooth) 0.15s both;
}

@keyframes checkPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.signup-success__title {
  margin-top: var(--space-4);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  color: var(--color-white);
}

.signup-success__text {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-periwinkle-500);
}

/* ============================================================
   SCROLL REVEAL — bespoke (driven by scripts/main.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-smooth),
              transform 0.6s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a grid/flow */
.moment-grid .reveal.is-visible:nth-child(2),
.feature-grid .reveal.is-visible:nth-child(2),
.trust-grid .reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }

.moment-grid .reveal.is-visible:nth-child(3),
.feature-grid .reveal.is-visible:nth-child(3),
.trust-grid .reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }

/* ============================================================
   SUB-PAGES
   ============================================================ */
.subhero {
  position: relative;
  overflow: hidden;
  /* Header-breathing supplied by main > :first-child. */
  padding-bottom: var(--space-14);
  text-align: center;
  background: var(--grad-hero-light);
}

.subhero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.24) 0%, rgba(86, 105, 164, 0) 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowBreath 14s ease-in-out infinite;
}

.subhero__inner {
  position: relative;
  max-width: 680px;
}

.subhero__title {
  margin-top: var(--space-4);
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  color: var(--color-navy-900);
}

.subhero__sub {
  margin: var(--space-4) auto 0;
  max-width: 540px;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-prose);
  color: var(--color-navy-500);
}

.subhero__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-periwinkle-900);
  transition: color var(--dur-fast);
}

.subhero__back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast);
}

.subhero__back:hover { color: var(--color-navy-900); }
.subhero__back:hover svg { transform: translateX(-4px); }

/* ---------- Sub-page demo stage (bespoke iframe holder) ---------- */
.demo-stage {
  position: relative;
  padding: var(--space-6) 0 var(--space-20);
}

.demo-stage__frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 16px;
  min-height: 600px;
}

.demo-stage__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.3) 0%, rgba(86, 105, 164, 0) 70%);
  filter: blur(18px);
  pointer-events: none;
  animation: glowBreath 10s ease-in-out infinite;
}

.demo-stage__iframe {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 100%;
  height: 800px;
  background: transparent;
}

@media (max-width: 460px) {
  .demo-stage__frame {
    padding: var(--space-3);
    min-height: 700px;
  }
  .demo-stage__iframe {
    width: 320px;
    height: 680px;
  }
}

/* ---------- Sådan virker det — steps ---------- */
.steps-section {
  padding: 0 0 var(--space-20);
}

.step-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-12);
}

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

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

/* Step cards use the house .feature-grid__item card; only the
   numbered badge is page-specific. */
.step-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn-premium);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 700;
  box-shadow: var(--shadow-btn-1-strong);
  margin-bottom: var(--space-4);
}

.step-grid .reveal.is-visible:nth-child(2) { transition-delay: 0.07s; }
.step-grid .reveal.is-visible:nth-child(3) { transition-delay: 0.14s; }
.step-grid .reveal.is-visible:nth-child(4) { transition-delay: 0.21s; }

/* ---------- Sub-page CTA band — dark. Tint from .section-navy-deep. ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band__glow {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.36) 0%, rgba(86, 105, 164, 0) 66%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowBreath 13s ease-in-out infinite;
}

.cta-band__inner {
  position: relative;
  max-width: 600px;
  text-align: center;
}

.cta-band__title {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--track-tight);
  color: var(--color-white);
}

.cta-band__lead {
  margin: var(--space-4) auto var(--space-7);
  max-width: 460px;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-prose);
  color: var(--color-periwinkle-500);
}

/* ============================================================
   REDUCED MOTION — static, calm fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__glow,
  .hero-orb,
  .hero-phone,
  .demo-frame__glow,
  .cta-section__glow,
  .subhero__glow,
  .demo-stage__glow,
  .cta-band__glow {
    animation: none !important;
  }
}
