/* FeedbackMount — Claude's HTML proposal.
   Identity: "alpine contour". Deep pine and warm paper, a summit-orange action
   colour, topographic contour lines as the visual metaphor for perspectives
   converging on a development summit. System fonts only; no remote assets. */

:root {
  --paper: #fbf8f3;
  --paper-2: #f3ede3;
  --card: #ffffff;
  --ink: #15302b;
  --text: #2b3a36;
  --muted: #55625e;
  --line: #ddd4c6;
  /* Brand green (logo, small accents) and deeper shades of it for dark bands,
     where light text needs more contrast than the brand green gives. */
  --brand: #0c8264;
  --brand-pale: #e3efea;
  --logo-orange: #e2702c;
  --pine: #08503e;
  --pine-2: #063a2e;
  --footer-bg: #052e25;
  --footer-text: #d9d3c7;
  --on-dark: #f5f1e8;
  --on-dark-muted: #d4ddd7;
  --summit: #c2501f;
  --summit-dark: #9e3f17;
  --glacier: #2c6e68;
  --link-on-dark: #ffd2b8;
  --focus: #1d4ed8;
  --focus-on-dark: #ffd27a;
  --ok-bg: #e4f1ea;
  --ok-ink: #1c5a45;
  --ok-line: #b6d8c6;
  --fic-bg: #fff1cf;
  --fic-ink: #5f3e00;
  --fic-line: #b8861f;
  --h1: #d3e8dc;
  --h2: #e7f0de;
  --h3: #f6eacb;
  --h4: #f2c9a1;
  --h5: #e8935f;
  --error: #b42318;
  --radius: 18px;
  --shadow: 0 18px 40px -26px rgba(21, 48, 43, 0.45);
  --font-sans: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
  --font-ja: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
  --container: 80rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep in-page jumps (form anchors, skip link) clear of the sticky header. */
  scroll-padding-top: 6rem;
}

html:has(.subnav) {
  scroll-padding-top: 9rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

:lang(de) {
  -webkit-hyphens: auto;
  hyphens: auto;
}

:lang(de) h1,
:lang(de) h2,
:lang(de) h3,
:lang(de) .trail-label,
:lang(de) .main-nav,
:lang(de) .btn {
  -webkit-hyphens: manual;
  hyphens: manual;
}

:lang(ja) body,
body:lang(ja) {
  font-family: var(--font-ja);
  line-height: 1.85;
  letter-spacing: 0.02em;
  line-break: strict;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3 {
  font-family: var(--font-ja);
  font-weight: 700;
  line-height: 1.45;
  word-break: auto-phrase;
}

p {
  margin: 0;
}

a {
  color: var(--glacier);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 40rem) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

.narrow {
  display: grid;
  gap: 1rem;
}

.narrow > * {
  max-width: 50rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 1.05rem;
  height: 1.05rem;
}

.icon .fill-bg {
  fill: var(--card);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--summit);
  color: #fff;
}

.btn-primary:hover {
  background: var(--summit-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-secondary.on-dark {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-secondary.on-dark:hover {
  background: var(--on-dark);
  color: var(--pine-2);
}

.btn-ghost {
  color: var(--glacier);
  text-decoration: underline;
  padding-inline: 0.5rem;
}

.btn-small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
}

.logo-band {
  stroke: var(--brand);
}

.logo-third {
  stroke: var(--logo-orange);
}

.logo-peak {
  fill: var(--brand);
}

.logo-letter {
  fill: var(--logo-orange);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav ul,
.lang-menu,
.subnav ul,
.footer-links ul,
.footer-langs,
.link-row,
.checklist,
.goal-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--paper-2);
}

.main-nav a[aria-current='page'],
.main-nav a.is-section {
  background: var(--ink);
  color: #fff;
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover {
  background: var(--paper-2);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 60;
  min-width: 11rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.lang-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--paper-2);
}

.lang-menu a[aria-current='true'] {
  font-weight: 700;
  background: var(--ok-bg);
}

.subnav {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.subnav ul {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-block: 0.45rem;
  scrollbar-width: thin;
}

.subnav a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.subnav a:hover {
  background: var(--card);
}

.subnav a[aria-current='page'] {
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--brand);
}

@media (max-width: 74.99rem) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .js .site-menu.is-open {
    display: flex;
  }

  .site-menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    width: 100%;
    border-radius: 12px;
    padding-inline: 0.9rem;
  }

  .header-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .header-tools .btn {
    width: 100%;
  }

  .lang-menu {
    position: static;
    box-shadow: none;
    margin-top: 0.35rem;
  }
}

/* French and Spanish labels are longer: switch to the compact menu earlier. */
@media (min-width: 75rem) and (max-width: 80.99rem) {
  html.js:is(:lang(fr), :lang(es)) .menu-toggle {
    display: inline-flex;
  }

  html.js:is(:lang(fr), :lang(es)) .site-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  html.js:is(:lang(fr), :lang(es)) .site-menu.is-open {
    display: flex;
  }

  html:is(:lang(fr), :lang(es)) .site-menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  html:is(:lang(fr), :lang(es)) .main-nav ul {
    flex-direction: column;
  }

  html:is(:lang(fr), :lang(es)) .main-nav a {
    width: 100%;
    border-radius: 12px;
    padding-inline: 0.9rem;
  }

  html:is(:lang(fr), :lang(es)) .header-tools {
    flex-direction: column;
    align-items: stretch;
  }

  html:is(:lang(fr), :lang(es)) .header-tools .btn {
    width: 100%;
  }

  html:is(:lang(fr), :lang(es)) .lang-menu {
    position: static;
    box-shadow: none;
    margin-top: 0.35rem;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 6rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background-color: var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-split .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero-copy {
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.45rem + 3.2vw, 3.9rem);
  letter-spacing: -0.015em;
  margin-top: 0.75rem;
}

:lang(ja) .hero h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  letter-spacing: 0.01em;
}

.lead {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  max-width: 62ch;
}

:lang(ja) .lead {
  max-width: 40em;
}

.eyebrow {
  color: var(--summit-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:lang(ja) .eyebrow {
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.eyebrow-problem {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow-problem::before {
  content: '';
  width: 2.25rem;
  height: 2px;
  background: var(--summit);
  flex: none;
}

:lang(ja) .eyebrow-problem {
  font-family: var(--font-ja);
  font-style: normal;
}

.kicker {
  margin-top: 0.75rem;
  color: var(--glacier);
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-compact {
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.hero-visual {
  min-width: 0;
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

@media (min-width: 64rem) {
  .hero-home .hero-stack {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-left: auto;
  }

  .hero-home .pc-fig {
    margin-left: 2.5rem;
  }
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section-tint {
  background: var(--paper-2);
}

.section-dark {
  background: var(--pine);
  color: var(--on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark a {
  color: var(--link-on-dark);
}

.section-dark :focus-visible {
  outline-color: var(--focus-on-dark);
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  display: grid;
  gap: 0.9rem;
}

.section h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.55rem);
}

:lang(ja) .section h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
}

.section-head p {
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .split-reverse .split-copy {
    order: 2;
  }
}

.split-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.split-visual {
  min-width: 0;
}

.section-attention {
  background-color: var(--pine);
  background-image: url('contours-light.svg');
  background-repeat: no-repeat;
  background-position: left -18rem bottom -12rem;
  background-size: 60rem auto;
}

.privacy-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--h4);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 12px 12px 0;
}

.privacy-note .icon {
  margin-top: 0.2rem;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

@media (min-width: 64rem) {
  .cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.card h2,
.card h3 {
  font-size: clamp(1.18rem, 1.1rem + 0.35vw, 1.4rem);
}

:lang(ja) .card h2,
:lang(ja) .card h3 {
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem);
}

.card > p {
  color: var(--text);
}

.card .link-row {
  margin-top: auto;
  padding-top: 0.5rem;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--brand);
}

.card-number {
  position: absolute;
  top: 1.1rem;
  right: 1.35rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--h4);
  font-weight: 600;
}

.card-strength {
  border-top: 5px solid var(--summit);
}

.card-strength h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  padding-right: 2.5rem;
}

.card-feature {
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
}

.card-feature h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
}

.card-family {
  border-left: 6px solid var(--glacier);
}

.card-quiet {
  background: transparent;
  border-style: dashed;
}

.card-founder {
  background: var(--card);
}

.steps-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

/* ---------- badges ---------- */
.badge-fictional {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-fictional {
  background: var(--fic-bg);
  color: var(--fic-ink);
  border: 1px dashed var(--fic-line);
}

/* ---------- content details ---------- */
.example {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--fic-line);
  background: #fff8e6;
  border-radius: 0 12px 12px 0;
  color: var(--text);
}

.section-dark .example {
  background: rgba(255, 248, 230, 0.09);
  border-left-color: var(--h4);
  color: var(--on-dark);
}

.checklist {
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checklist .icon {
  color: var(--ok-ink);
  margin-top: 0.25rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 0.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  min-height: 2.25rem;
}

.text-link .icon {
  transition: transform 0.15s ease;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.link-row.on-dark .text-link {
  color: var(--link-on-dark);
}

.related {
  padding-block: 0 2.5rem;
}

.link-row-boxed {
  gap: 0.6rem;
}

.link-row-boxed .text-link {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.placeholder-block {
  display: grid;
  place-items: center;
  min-height: 11.5rem;
  padding: 1.25rem;
  border: 2px dashed var(--fic-line);
  border-radius: 14px;
  background: #fff8e6;
  color: var(--fic-ink);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* ---------- path / trail ---------- */
.trail {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  counter-reset: trail;
}

.trail-step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 0.25rem;
}

.trail-step::before {
  content: '';
  position: absolute;
  top: 1.45rem;
  left: 2.9rem;
  right: -1rem;
  border-top: 2px dashed var(--h4);
}

.trail-step:last-child::before {
  display: none;
}

.trail-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.trail-step:last-child .trail-num {
  background: var(--summit);
}

.trail-label {
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 47.99rem) {
  .trail {
    grid-template-columns: 1fr;
  }

  .trail-step {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .trail-step::before {
    top: 2.75rem;
    bottom: -1rem;
    left: 1.2rem;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--h4);
  }
}

.trail-panel {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trail-vertical {
  grid-template-columns: 1fr;
  margin: 0;
}

.trail-vertical .trail-step {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.trail-vertical .trail-step::before {
  top: 2.75rem;
  bottom: -1rem;
  left: 1.2rem;
  right: auto;
  border-top: 0;
  border-left: 2px dashed var(--h4);
}

/* ---------- timeline (how it works) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 54rem;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2.25rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 1.45rem;
  top: 3.2rem;
  bottom: 0.4rem;
  border-left: 2px dashed var(--h4);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline-step:last-child .timeline-num {
  background: var(--summit);
}

.timeline-body {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-body h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
}

.timeline-body h2 .icon {
  color: var(--glacier);
}

/* ---------- illustrations ---------- */
.illus {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.illus-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.illus-title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.illus figcaption {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.table-scroll {
  position: relative;
  overflow-x: auto;
  border-radius: 10px;
}

.heatmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.heatmap thead th {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted);
  vertical-align: bottom;
  text-align: center;
  padding: 0.25rem 0.2rem;
  line-height: 1.25;
}

.heatmap thead th:first-child,
.heatmap tbody th {
  text-align: left;
}

.heatmap tbody th,
.heatmap thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
}

.heatmap tbody th {
  font-weight: 600;
  color: var(--ink);
  padding: 0.45rem 0.5rem 0.45rem 0;
  min-width: 8.5rem;
  line-height: 1.3;
}

.heatmap td {
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: 8px;
  min-width: 3.1rem;
  color: var(--ink);
}

.hm-c1 {
  background: var(--h1);
}

.hm-c2 {
  background: var(--h2);
}

.hm-c3 {
  background: var(--h3);
}

.hm-c4 {
  background: var(--h4);
}

.hm-c5 {
  background: var(--h5);
}

.hm-hidden,
.sw-hidden {
  background: repeating-linear-gradient(135deg, #efe9de 0 5px, #ddd3c2 5px 10px);
  color: var(--muted);
}

.ct-withheld span {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.is-flagged {
  box-shadow: inset 0 0 0 3px var(--ink);
  font-weight: 800;
}

.hm-flag,
.sw-flag {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: 0.05em;
}

.is-compact .heatmap {
  font-size: 0.85rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.legend-item,
.legend-scale {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.swatches {
  display: inline-flex;
  gap: 2px;
}

.sw {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.sw-flag {
  margin: 0;
}

.key {
  display: inline-block;
  width: 1.7rem;
  height: 0.9rem;
}

.key-self {
  height: 0;
  border-top: 3px dashed var(--summit);
}

.key-others {
  background: rgba(44, 110, 104, 0.2);
  border: 2px solid var(--glacier);
  border-radius: 3px;
}

.key-avg {
  width: 0;
  height: 1rem;
  border-left: 2px dashed var(--ink);
}

.radar {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin-inline: auto;
}

.r-ring,
.r-axis {
  fill: none;
  stroke: #e3dbcd;
  stroke-width: 1;
}

.r-others {
  fill: rgba(44, 110, 104, 0.18);
  stroke: var(--glacier);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.r-self {
  fill: none;
  stroke: var(--summit);
  stroke-width: 2.5;
  stroke-dasharray: 7 5;
  stroke-linejoin: round;
}

.r-mark-others {
  fill: var(--glacier);
}

.r-mark-self {
  fill: #fff;
  stroke: var(--summit);
  stroke-width: 2.5;
}

.r-label {
  fill: var(--text);
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 40rem) {
  .r-label {
    font-size: 21px;
  }
}

.is-compact .radar {
  max-width: 27rem;
}

.values {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.values summary {
  cursor: pointer;
  color: var(--glacier);
  font-weight: 650;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

.data-table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.bars {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 36%) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.bar-row dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
}

.bar-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.bar-track {
  position: relative;
  flex: 1;
  height: 0.9rem;
  border-radius: 999px;
  background: #efe9de;
}

.bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: 999px;
  background: var(--glacier);
}

.bar-v3 {
  background: #b88a2c;
}

.bar-v4,
.bar-v5 {
  background: #c95b26;
}

.bar-before {
  background: #a59a8a;
}

.bar-after {
  background: var(--glacier);
}

.avg-line {
  position: absolute;
  top: -0.35rem;
  bottom: -0.35rem;
  left: calc(var(--avg) * 100%);
  border-left: 2px dashed var(--ink);
}

.bar-value {
  min-width: 2.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pc-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -0.35rem 0 0.85rem;
}

.goal-card {
  display: grid;
  gap: 0.85rem;
}

.goal-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
}

:lang(ja) .goal-text {
  font-family: var(--font-ja);
  font-weight: 600;
}

.goal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.goal-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-pill {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: #e6eefb;
  color: #1e3a8a;
  font-weight: 700;
}

.milestones {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.ms-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.ms-step {
  height: 0.55rem;
  border-radius: 999px;
  background: #e5ddd0;
}

.ms-step.is-done {
  background: var(--glacier);
}

/* ---------- sample report ---------- */
.report-sheet {
  margin-block: 0 clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.75rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.sheet-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.sheet-part {
  display: grid;
  gap: 0.9rem;
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.sheet-part:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sheet-part h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
}

.sheet-part > p {
  max-width: 62ch;
}

.sheet-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 60rem) {
  .sheet-visuals:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.sheet-visuals .illus {
  box-shadow: none;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pine-2);
  color: var(--on-dark);
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
}

.cta-band-large {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  background-color: var(--pine-2);
  background-image: url('contours-light.svg');
  background-repeat: no-repeat;
  background-position: right -16rem center;
  background-size: 56rem auto;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.cta-copy {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
}

:lang(ja) .cta-band h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
}

.cta-text {
  font-size: 1.15rem;
}

.cta-band a:not(.btn) {
  color: var(--link-on-dark);
}

.cta-band :focus-visible {
  outline-color: var(--focus-on-dark);
}

.actions-on-dark {
  margin-top: 0;
}

/* ---------- forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .form-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  }
}

.form-aside {
  display: grid;
  gap: 1.25rem;
}

.form-main {
  display: grid;
  gap: 1rem;
}

.form-main > h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
}

.form-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1.1rem 1.25rem;
}

@media (min-width: 40rem) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field label {
  font-weight: 650;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #a99d8a;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field [aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field-error {
  display: flex;
  gap: 0.4rem;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-error::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
}

.field-error[hidden] {
  display: none;
}

.form-explanation {
  color: var(--text);
}

.privacy-link {
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Sending, sent, or not sent: the status of a submitted form. */
.form-status:not(:empty) {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  color: var(--text);
  font-weight: 600;
}

.form-status[data-state='accepted'] {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.form-status[data-state='failed'],
.form-status[data-state='unknown'] {
  border-color: var(--error);
  background: var(--card);
  color: var(--error);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 0.25rem;
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--summit);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  gap: 0.75rem;
  padding: 0 0.25rem 1.4rem;
  max-width: 62ch;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-size: 0.95rem;
}

.site-footer a {
  color: #f5f1e8;
}

.site-footer a:hover {
  color: var(--link-on-dark);
}

.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 60rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
}

.footer-brand {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  max-width: 28rem;
}

.brand-footer {
  color: #fff;
}

.brand-footer:hover {
  color: #fff;
}

.brand-footer .logo-band {
  stroke: var(--brand-pale);
}

.brand-footer .logo-peak {
  fill: var(--brand-pale);
}

.footer-note {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.footer-links {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.footer-links ul {
  display: grid;
  gap: 0.15rem;
  align-content: start;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.3rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current='page'] {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.footer-bottom .placeholder {
  background: rgba(255, 241, 207, 0.15);
  color: #ffe6b0;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-langs a[aria-current='true'] {
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- shrinkable grid/flex children (long German words, Japanese phrases) ---------- */
.sheet-part,
.cta-copy,
.split-copy,
.section-head,
.lead,
.form-main,
.form-aside,
.goal-card,
.faq-answer,
.footer-brand,
.narrow,
.timeline-body,
.field,
.form-card,
.milestones,
.hero-stack {
  grid-template-columns: minmax(0, 1fr);
}

.cta-copy {
  flex: 1 1 22rem;
  min-width: 0;
}

.timeline-step {
  grid-template-columns: 3rem minmax(0, 1fr);
}

@media (max-width: 40rem) {
  :lang(de) h1,
  :lang(de) h2,
  :lang(de) h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}


/* ---------- revision 2: compact journey, AI card, annotations, phone action bar ---------- */
.section-approach {
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.strengths {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .strengths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-ai {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: center;
  }
}

@media (min-width: 64rem) {
  .strengths {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr);
  }

  .card-ai {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

.card-ai {
  background: var(--pine-2);
  border-color: var(--pine-2);
  color: var(--on-dark);
}

.card-ai h3 {
  color: #fff;
}

.card-ai .card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd2b8;
}

.card-ai a {
  color: var(--link-on-dark);
}

.card-ai :focus-visible {
  outline-color: var(--focus-on-dark);
}

.card-ai-copy {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.card-ai > p,
.card-ai-copy > p {
  color: var(--on-dark);
}

.card-ai .ai-fig {
  box-shadow: none;
}

.ai-voice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ai-voice > .icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--summit);
  color: #fff;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 2rem;
}

.wave i {
  display: block;
  width: 3px;
  height: calc(var(--h) * 2.4px);
  border-radius: 2px;
  background: var(--glacier);
}

.ai-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

:lang(ja) .ai-label {
  letter-spacing: 0.02em;
}

.ai-transcript {
  margin: 0.35rem 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--glacier);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}

.ai-suggestion {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ok-line);
  background: var(--ok-bg);
  border-radius: 12px;
  color: var(--ink);
}

.ai-suggestion .ai-label {
  color: var(--ok-ink);
}

.ai-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--ok-ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ok-ink);
}

.chip-solid {
  background: var(--ok-ink);
  color: #fff;
}

.journey-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.journey-grid .section-head {
  margin-bottom: 0;
}

.steps-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 48rem) {
  .steps-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.steps-strip li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  min-width: 0;
}

.steps-strip li:last-child {
  border-color: var(--summit);
}

.steps-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}

.steps-strip li:last-child .steps-num {
  background: var(--summit);
}

.subhead {
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 1.25rem;
}

.section .subhead {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
}

.cards-compact .card {
  padding: 1.1rem 1.25rem 1.25rem;
  gap: 0.55rem;
}

.cards-compact .card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
}

.hm-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #fff4ec;
  border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.hm-note .hm-flag {
  margin-top: 0.15rem;
  flex: none;
}

.hm-hidden-group {
  width: 5.5rem;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.3;
  vertical-align: middle;
}

.hm-hidden-group span {
  display: inline-block;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.rater-summary {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.rater-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rater-summary li {
  padding: 0.2rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}

.rater-summary li.is-named {
  border-color: var(--ink);
}

.rater-summary li.is-anon {
  border-style: dashed;
  border-color: var(--glacier);
}

/* Phone action bar: Book a demo and language always within reach. */
.mobile-cta {
  display: none;
}

@media (max-width: 47.99rem) {
  .mobile-cta {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(18, 48, 42, 0.97);
    border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, visibility 0.2s;
  }

  .mobile-cta.is-hidden {
    transform: translateY(calc(100% + 1rem));
    visibility: hidden;
  }

  .mobile-cta .btn {
    flex: 1;
    min-width: 0;
  }

  .mobile-cta .lang-switch summary {
    color: var(--on-dark);
  }

  .mobile-cta .lang-switch summary:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-cta :focus-visible {
    outline-color: var(--focus-on-dark);
  }

  .mobile-cta .lang-switch .lang-menu {
    position: absolute;
    top: auto;
    bottom: calc(100% + 0.6rem);
    right: 0;
    margin: 0;
    box-shadow: var(--shadow);
  }

  body {
    padding-bottom: 5.25rem;
  }

  html {
    scroll-padding-bottom: 6rem;
  }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .badge-fictional,
  .is-flagged {
    border: 2px solid CanvasText;
  }
}

/* ---------- revision 2: tighter phone layout ---------- */
.strengths {
  align-items: start;
}

.footer-links {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}

@media (max-width: 47.99rem) {
  .section {
    padding-block: 2.25rem;
  }

  .hero {
    padding-block: 2rem 2.25rem;
  }

  .hero .illus figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .card,
  .card-feature {
    padding: 1.1rem 1.15rem;
    gap: 0.55rem;
  }

  /* Icon beside the text instead of above it. */
  .cards-compact .card,
  .strengths .card:not(.card-ai) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: start;
  }

  .cards-compact .card > *:not(.card-icon):not(.card-number),
  .strengths .card:not(.card-ai) > *:not(.card-icon):not(.card-number) {
    grid-column: 2;
  }

  .cards-compact .card > .card-icon,
  .strengths .card:not(.card-ai) > .card-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .card-number {
    top: 0.85rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  .card-strength h3 {
    padding-right: 2rem;
  }

  .ai-voice {
    margin-bottom: 0.5rem;
  }

  .site-footer {
    padding-top: 2rem;
  }

  .footer-bottom {
    margin-top: 1.5rem;
  }
}

@media (max-width: 29.99rem) {
  .steps-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.steps-strip li span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.r-gap-line {
  stroke: var(--summit-dark);
  stroke-width: 2;
  stroke-dasharray: 2 3;
}

.r-gap rect {
  fill: var(--summit-dark);
}

.r-gap text {
  fill: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- revision 3: phone homepage length ---------- */
@media (max-width: 47.99rem) {
  /* The Progress Check stays on Continuous development and the sample report;
     on phones the opening keeps one illustration. */
  .hero-home .pc-fig {
    display: none;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .section-journey .subhead {
    margin-top: 1.75rem;
  }

  .lead {
    gap: 0.75rem;
  }

  .split {
    gap: 1.5rem;
  }

  .cta-band-large {
    padding-block: 2.5rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  .footer-brand {
    gap: 0.6rem;
  }
}

@media (max-width: 47.99rem) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.75rem;
    font-size: 0.86rem;
  }

  .footer-links a {
    padding-block: 0.35rem;
    line-height: 1.3;
  }
}

@media (max-width: 22.49rem) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the space reserved for the phone action bar inside the dark footer. */
@media (max-width: 47.99rem) {
  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }
}

.footer-links a {
  overflow-wrap: anywhere;
}

/* ---------- revision 3: keep the opening action above the fold on laptops ---------- */
@media (min-width: 64rem) {
  .hero-home {
    padding-block: clamp(2rem, 0.5rem + 2.5vw, 3.25rem) clamp(2.5rem, 1.5rem + 2vw, 4rem);
  }

  .hero-home .hero-grid {
    align-items: start;
  }

  .hero-home .hero-copy {
    padding-top: clamp(0.5rem, -1rem + 2.5vw, 2.5rem);
  }

  .hero-home h1 {
    font-size: clamp(2.4rem, 1.2rem + 2.6vw, 3.6rem);
  }

  .hero-home .lead {
    margin-top: 1rem;
  }

  .hero-home .actions {
    margin-top: 1.4rem;
  }
}

@media (min-width: 64rem) {
  :is(:lang(fr), :lang(de), :lang(es)) .hero-home h1 {
    font-size: clamp(2.2rem, 1.2rem + 2vw, 3.1rem);
  }

  .hero-home .lead {
    font-size: 1.06rem;
    gap: 0.7rem;
  }

  .hero-home .hero-note {
    margin-top: 0.75rem;
  }
}

/* ---------- revision 4: heatmap signals, named milestones, sub-navigation ---------- */
.is-signal {
  box-shadow: inset 0 0 0 2px var(--glacier);
  font-weight: 700;
}

.hm-sig,
.sw-sig {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: var(--card);
  color: var(--glacier);
  border: 1.5px solid var(--glacier);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: 0.05em;
}

.sw-sig {
  margin: 0;
}

.ms-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ms-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.ms-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ms-done .ms-dot {
  background: var(--glacier);
  border-color: var(--glacier);
  color: #fff;
}

.ms-active .ms-dot {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.ms-text {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.ms-state {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.rater-fig .rater-summary {
  padding-block: 0.25rem 0;
  border-bottom: 0;
}

/* The Platform sub-navigation sits outside the header: sticky beneath it on
   wider screens, scrolling away on phones to leave room for reading. */
.subnav {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .subnav {
    position: sticky;
    top: var(--header-h, 4.5rem);
    z-index: 40;
  }
}

.rater-fig .rater-summary li {
  font-size: 0.95rem;
  padding: 0.35rem 0.85rem;
}

.key-named,
.key-anon {
  width: 1.6rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}

.key-anon {
  border-style: dashed;
  border-color: var(--glacier);
}

/* Chart value tables fit narrow phones: fixed layout, wrapping cells. */
.data-table {
  table-layout: fixed;
}

.data-table th,
.data-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.data-table th:first-child {
  width: 46%;
}

/* Owner placeholders are English inside every language: never hyphenate them. */
.placeholder-block {
  -webkit-hyphens: manual;
  hyphens: manual;
}

/* ---------- revision 5: agreed combined changes ---------- */
.dv-lead {
  margin: -0.35rem 0 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--ink);
}

:lang(ja) .dv-lead {
  font-family: var(--font-ja);
  font-weight: 600;
}

.dv-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.pc-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--line);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: var(--text);
}

.ai-steps {
  list-style: none;
  margin: -0.2rem 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink);
}

.ai-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 0.75rem;
}

.hm-q {
  display: block;
}

.hm-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

:lang(ja) .hm-tag {
  text-transform: none;
}

/* Phone heatmap: choose a topic, see one card per department. */
.hm-picker {
  display: grid;
  gap: 0.6rem;
}

.hm-picker[hidden] {
  display: none;
}

.hm-picker label {
  font-weight: 650;
  color: var(--ink);
}

.hm-picker select {
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid #a99d8a;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.hm-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.hm-cards[hidden] {
  display: none;
}

.hm-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  color: var(--ink);
  min-width: 0;
}

.hm-card-dept {
  font-size: 0.85rem;
  font-weight: 650;
}

.hm-card-v {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.hm-card-sig {
  font-size: 0.78rem;
  font-weight: 600;
}

.hm-toggle {
  justify-self: start;
  min-height: 2.5rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: none;
  color: var(--glacier);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}

.heatmap-fig.is-picker .table-scroll {
  display: none;
}

.heatmap-fig.is-picker.show-table .table-scroll {
  display: block;
  margin-top: 0.75rem;
}

/* Capability cards lead onwards. */
.card-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.card-link .icon {
  color: var(--summit);
  transform: translateY(0.12em);
  transition: transform 0.15s ease;
}

.card-link:hover {
  color: var(--glacier);
  text-decoration: underline;
}

.card-link:hover .icon {
  transform: translate(3px, 0.12em);
}

/* "On this page" index. */
.toc-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.toc-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0.25rem 1rem;
}

.toc-box summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.toc-box ol {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.toc-box a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc-box a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.toc-box a[aria-current='true'] {
  border-left-color: var(--summit);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 650;
}

.toc-main {
  min-width: 0;
}

.cards-toc {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

@media (min-width: 64rem) {
  .toc-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 7rem);
    overflow: auto;
  }

  html:has(.subnav) .toc {
    top: 9rem;
  }

  .toc-box {
    border: 0;
    background: transparent;
    padding: 0;
  }

  .toc-box summary {
    pointer-events: none;
    list-style: none;
  }

  .toc-box summary::-webkit-details-marker {
    display: none;
  }
}

[tabindex='-1']:focus {
  outline: none;
}

[tabindex='-1']:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Footer: legal links on their own line. */
.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* Phones: the language globe sits in the header beside the menu button. */
.lang-switch-header {
  display: none;
}

@media (max-width: 74.99rem) {
  .js .lang-switch-header {
    display: block;
    margin-left: auto;
  }

  .js .lang-switch-header + .menu-toggle {
    margin-left: 0;
  }

  .js .site-menu .lang-switch {
    display: none;
  }
}

@media (min-width: 75rem) and (max-width: 80.99rem) {
  html.js:is(:lang(fr), :lang(es)) .lang-switch-header {
    display: block;
    margin-left: auto;
  }

  html.js:is(:lang(fr), :lang(es)) .lang-switch-header + .menu-toggle {
    margin-left: 0;
  }

  html.js:is(:lang(fr), :lang(es)) .site-menu .lang-switch {
    display: none;
  }
}

@media (max-width: 29.99rem) {
  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .menu-toggle {
    padding: 0.4rem 0.6rem;
  }
}

.menu-toggle {
  position: relative;
}

.hm-picker {
  grid-template-columns: minmax(0, 1fr);
}

.hm-picker select {
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
}

/* Safari/WebKit lays out a closed <details>' content: hide it explicitly. */
.lang-switch:not([open]) .lang-menu {
  display: none;
}

.hm-picker > * {
  min-width: 0;
}

/* Custom select arrow: native WebKit menulists overflow with long options. */
.hm-picker select,
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315302b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
}

.hm-picker select,
.field select {
  overflow: hidden;
}

/* Phone header on one line: brand, language globe, menu. */
@media (max-width: 47.99rem) {
  .header-inner {
    column-gap: 0.5rem;
  }

  .lang-switch-header summary {
    padding-inline: 0.5rem;
  }
}

@media (max-width: 23.99rem) {
  .brand {
    font-size: 1rem;
    gap: 0.45rem;
  }

  .logo {
    width: 2.1rem;
    height: 2.1rem;
  }

  .lang-switch-header .lang-code {
    display: none;
  }
}

/* ---------- revision 6: one opening illustration, Platform drop-down ---------- */
.dv-follow {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.45rem;
}

.dv-follow-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}

.dv-follow-title .icon {
  color: var(--glacier);
}

.dv-follow-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  color: var(--text);
}

.dv-follow-values strong {
  font-size: 1.15rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dv-follow .pc-note {
  margin-top: 0.15rem;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary:hover {
  background: var(--paper-2);
}

.nav-menu summary.is-section {
  background: var(--ink);
  color: #fff;
}

.nav-menu summary .icon {
  transition: transform 0.15s ease;
}

.nav-menu[open] summary .icon {
  transform: rotate(180deg);
}

.nav-panel {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  display: grid;
  gap: 0.1rem;
}

.nav-menu:not([open]) .nav-panel {
  display: none;
}

.nav-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel a:hover {
  background: var(--paper-2);
}

.nav-panel a[aria-current='page'] {
  font-weight: 700;
  background: var(--ok-bg);
}

@media (min-width: 75rem) {
  .nav-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.35rem);
    z-index: 60;
    min-width: 15rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 74.99rem) {
  .nav-menu summary {
    width: 100%;
    border-radius: 12px;
    padding-inline: 0.9rem;
  }

  .nav-panel {
    padding: 0.2rem 0 0.4rem 1rem;
  }

  .nav-panel a {
    white-space: normal;
  }
}

@media (min-width: 75rem) and (max-width: 80.99rem) {
  html:is(:lang(fr), :lang(es)) .nav-panel {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.2rem 0 0.4rem 1rem;
  }
}

.main-nav .nav-panel {
  display: grid;
  flex-direction: column;
  gap: 0.1rem;
}

.main-nav .nav-menu:not([open]) .nav-panel {
  display: none;
}

.main-nav .nav-panel a {
  width: 100%;
  border-radius: 10px;
  font-weight: 500;
}

.main-nav .nav-panel a[aria-current='page'] {
  background: var(--ok-bg);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- revision 7: Codex's final corrections and refinements ---------- */
/* Phone menu scrolls inside the screen; the booking bar steps aside meanwhile. */
@media (max-width: 74.99rem) {
  .js .site-menu.is-open {
    max-height: calc(100vh - 4.75rem);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-width: 75rem) and (max-width: 80.99rem) {
  html.js:is(:lang(fr), :lang(es)) .site-menu.is-open {
    max-height: calc(100vh - 4.75rem);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.menu-open .mobile-cta {
  display: none;
}

/* Card headings stay inside their card (long German compounds). */
.card h2,
.card h3 {
  max-width: 100%;
  overflow-wrap: break-word;
}

:lang(de) .card h2,
:lang(de) .card h3 {
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Homepage heatmap section: introduction, illustration, then the rest. */
.attention-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .attention-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      'intro visual'
      'rest visual';
    column-gap: clamp(2rem, 1rem + 3vw, 3.5rem);
    align-items: start;
  }

  .attention-intro {
    grid-area: intro;
  }

  .attention-visual {
    grid-area: visual;
    align-self: center;
  }

  .attention-rest {
    grid-area: rest;
  }
}

/* Heatmap: on phones the explanation follows the chosen topic. */
.heatmap-fig.is-picker > .hm-note {
  display: none;
}

.hm-topic-note[hidden] {
  display: none;
}

.hm-note.is-quiet {
  border-left-color: var(--line);
  background: var(--paper);
  color: var(--muted);
}

.hm-note .hm-sig {
  margin-top: 0.15rem;
  flex: none;
}

/* Opening: quiet route to the sample report; ratings labelled 1–5. */
.hero-sample {
  margin-top: 0.85rem;
  text-align: right;
}

.dv-scale {
  margin: -0.65rem 0 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Inline page index on full-width pages (Reports, Sample report). */
.toc-inline {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

@media (min-width: 64rem) {
  .toc.toc-inline {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .toc-inline .toc-box {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .toc-inline .toc-box ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
  }

  .toc-inline .toc-box a {
    border-left: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0.35rem 0.8rem;
  }

  .toc-inline .toc-box a[aria-current='true'] {
    border-color: var(--summit);
  }
}

/* ---------- revision 8: the open phone menu is one column that scrolls vertically only ---------- */
@media (max-width: 74.99rem) {
  .js .site-menu.is-open,
  .js .site-menu .main-nav ul,
  .js .site-menu .header-tools {
    flex-wrap: nowrap;
  }
}

@media (min-width: 75rem) and (max-width: 80.99rem) {
  html.js:is(:lang(fr), :lang(es)) .site-menu.is-open,
  html.js:is(:lang(fr), :lang(es)) .site-menu .main-nav ul,
  html.js:is(:lang(fr), :lang(es)) .site-menu .header-tools {
    flex-wrap: nowrap;
  }
}

/* Platform's pages sit one level in, beside a guide line, so the grouping reads. */
@media (max-width: 74.99rem) {
  .main-nav .nav-panel {
    margin-left: 0.9rem;
    padding: 0.15rem 0 0.35rem 0.35rem;
    border-left: 2px solid var(--line);
  }
}

@media (min-width: 75rem) and (max-width: 80.99rem) {
  html:is(:lang(fr), :lang(es)) .main-nav .nav-panel {
    margin-left: 0.9rem;
    padding: 0.15rem 0 0.35rem 0.35rem;
    border-left: 2px solid var(--line);
  }
}

/* ---------- legal pages ---------- */
.legal-section {
  padding-top: 0;
}

.legal-text {
  max-width: 46rem;
  display: grid;
  gap: 0.85rem;
}

.legal-text h2 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  margin-top: 1.1rem;
}

.legal-text ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.legal-text a {
  color: var(--glacier);
}

/* ---------- connected forms and the protected address ---------- */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card {
  position: relative;
}

.form-fallback {
  margin-top: 0.5rem;
  font-weight: 600;
}

.noscript-note {
  border-left: 4px solid var(--summit);
  background: var(--paper-2);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
}
