/* Leader Simulator Lab: marketing site styles (design direction 1, "The Coach's Study").
   Tokens first, then shared components, then page sections. */

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

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC,
    U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC,
    U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #faf6ef;
  --surface: #fffdf8;
  --raised: #ffffff;
  --border: #e6ddcf; /* decorative only, 1.25:1 */
  --border-ui: #8e8274; /* inputs and controls, 3.48:1 */
  --text: #2b2420; /* 14.17:1 */
  --muted: #62574d; /* 6.52:1 */
  --placeholder: #7a6e62; /* 4.60:1 */
  --accent: #a84b2a; /* terracotta; white on it 5.67:1 */
  --accent-hover: #8e3e22;
  --on-accent: #ffffff;
  --accent-tint: #f5e6dc;
  --secondary: #1e5c57; /* deep teal, 7.16:1 */
  --secondary-tint: #e2eeec;
  --success: #2f6a3c;
  --warning: #8a5700;
  --danger: #a3302b;
  --focus: #1e5c57;

  --tag-beginner-bg: #e5efe6;
  --tag-beginner-text: #2c5a39; /* 6.78:1 */
  --tag-intermediate-bg: #fbebd3;
  --tag-intermediate-text: #7a4a0c; /* 6.37:1 */
  --tag-advanced-bg: #efe3ee;
  --tag-advanced-text: #6b3463; /* 7.36:1 */

  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --display-weight: 500;
  --scene-weight: 400;
  --display-settings: normal;
  --display-max: 3.5rem;
  --body-size: 17px;
  --body-lh: 1.6;

  --radius-control: 10px;
  --radius-btn: 10px;
  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgba(43, 36, 32, 0.06);
  --shadow-raised: 0 12px 32px -12px rgba(43, 36, 32, 0.18);
  --shadow-btn: none;
  --hover-lift: 0px;
}

.hero h1,
.scene-lead,
.auth-card h1,
.person-name {
  font-optical-sizing: auto;
}

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

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-settings);
  font-size: 20px;
  letter-spacing: -0.01em;
  min-height: 44px;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-nav {
  display: none;
  gap: 4px;
  margin-left: 12px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: var(--radius-control);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--accent-tint);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch svg {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.lang-switch select {
  appearance: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-control);
  min-height: 44px;
  padding: 0 30px 0 34px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.header-signin {
  display: none;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-control);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, transform 160ms ease-out,
    box-shadow 160ms ease-out;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(var(--hover-lift));
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-ui);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-settings);
  font-size: clamp(2.1rem, 6.2vw + 0.6rem, var(--display-max));
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Long Hungarian and Dutch compounds may need to break on narrow phones */
@media (max-width: 480px) {
  .hero h1 {
    hyphens: auto;
  }
}

.hero-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .btn {
  flex: 1 1 220px;
}

/* ---------- Employee card ---------- */
.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
  padding: 22px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.person-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: none;
}

.person-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-settings);
  font-size: 1.5rem;
  line-height: 1.2;
}

.person-role {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

.person-quote {
  margin-top: 16px;
  font-size: 1.08rem;
  min-height: 5.2em;
}

.person-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tag-beginner {
  background: var(--tag-beginner-bg);
  color: var(--tag-beginner-text);
}

.tag-intermediate {
  background: var(--tag-intermediate-bg);
  color: var(--tag-intermediate-text);
}

.tag-advanced {
  background: var(--tag-advanced-bg);
  color: var(--tag-advanced-text);
}

.dots {
  display: flex;
  gap: 2px;
}

.dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-ui);
  transition: background-color 160ms ease-out;
}

.dots button[aria-pressed="true"]::before {
  background: var(--secondary);
  border-color: var(--secondary);
}

.person-body {
  transition: opacity 320ms ease-out;
}

.person-body.is-swapping {
  opacity: 0;
}

/* ---------- Scene section ---------- */
.scene {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.scene-inner {
  max-width: 68ch;
}

.scene p + p {
  margin-top: 1em;
}

.scene-lead {
  font-family: var(--font-display);
  font-weight: var(--scene-weight);
  font-variation-settings: var(--display-settings);
  font-size: clamp(1.3rem, 2.2vw + 0.9rem, 1.75rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.stat {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--secondary-tint);
  border-radius: var(--radius-card);
  display: grid;
  gap: 6px;
}

.stat strong {
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-weight: var(--display-weight);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--secondary);
}

.stat a {
  color: var(--secondary);
  font-size: 0.9rem;
}

/* ---------- Auth ---------- */
.auth-main {
  padding: 40px 0 64px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-settings);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.auth-sub {
  color: var(--muted);
  margin-top: 8px;
}

.field {
  margin-top: 22px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.label-row label {
  margin-bottom: 0;
}

.label-row a {
  font-size: 0.95rem;
  padding: 4px 0;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-control);
}

.input::placeholder {
  color: var(--placeholder);
}

.input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
  border-radius: var(--radius-control);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--muted);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle svg {
  width: 22px;
  height: 22px;
}

.password-toggle .icon-hide,
.password-toggle[aria-pressed="true"] .icon-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-hide {
  display: block;
}

.field-msg {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 0.95rem;
}

.field-msg[hidden] {
  display: none;
}

.field-error {
  color: var(--danger);
  font-weight: 500;
}

.field-note {
  color: var(--warning);
  font-weight: 500;
}

.auth-submit {
  margin-top: 26px;
}

.auth-alt {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}

.auth-alt a {
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .header-signin {
    display: inline-flex;
  }

  .auth-card {
    padding: 36px;
  }

  .hero-actions .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
  }

  .scene {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 100ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn-primary:hover {
    transform: none;
  }
}

/* ---------- Skip link, header actions ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-control);
}

.skip-link:focus {
  top: 12px;
  color: var(--bg);
}

.header-signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.btn-small {
  min-height: 44px;
  padding: 8px 16px;
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.7rem, 2.4vw + 1.1rem, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

.section h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
}

.section-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
  text-wrap: pretty;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-top: 1em;
}

/* ---------- Blocks and grids ---------- */
.grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

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

.block p {
  margin-top: 8px;
  color: var(--muted);
}

.block ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.block li + li {
  margin-top: 4px;
}

/* ---------- Arrow list ---------- */
.arrow-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 68ch;
  display: grid;
  gap: 14px;
}

.arrow-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  font-size: 1.1rem;
}

.arrow-list li::before {
  content: "\2192";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
}

.steps .block {
  counter-increment: step;
}

.steps .block::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--secondary-tint);
  color: var(--secondary);
  font-weight: 700;
}

/* ---------- Employees ---------- */
.employee {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.employee .person-name {
  font-size: 1.3rem;
}

.employee .portrait {
  width: 56px;
  height: 56px;
}

.employee p.teaser {
  margin: 0;
  color: var(--text);
  flex: 1;
}

.portrait-initials {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 26px;
  fill: #ffffff;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------- Research panel in the hero ---------- */
.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.proof-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: var(--secondary-tint);
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.proof-label svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-card h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.45rem;
  line-height: 1.25;
  text-wrap: balance;
  font-optical-sizing: auto;
}

.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--secondary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.check-list strong {
  color: var(--text);
  font-weight: 600;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
}

.citation {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Employee carousel ---------- */
.carousel {
  margin-top: 28px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-card);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > li {
  flex: 0 0 min(280px, 80%);
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-ui);
  border-radius: 50%;
  background: var(--raised);
  color: var(--text);
  cursor: pointer;
}

.carousel-controls button:hover {
  background: var(--accent-tint);
}

.carousel-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-controls .icon-play,
.carousel-controls [aria-pressed="true"] .icon-pause {
  display: none;
}

.carousel-controls [aria-pressed="true"] .icon-play {
  display: block;
}

/* ---------- Review ---------- */
.review-card {
  margin-top: 28px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
  padding: 24px;
  max-width: 720px;
}

.review-card dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.review-card dt {
  font-weight: 600;
  color: var(--secondary);
}

.review-card dd {
  margin: 2px 0 0;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 24px;
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 32px 16px 0;
  min-height: 44px;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Closing and footer ---------- */
.closing {
  text-align: center;
}

.closing h2,
.closing .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.closing .btn {
  margin-top: 26px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0;
}

@media (min-width: 560px) {
  .btn-small {
    display: inline-flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .section {
    padding: 80px 0;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
