:root {
  --primary-color: #2c3e50;
  --primary-deep: #14283b;
  --accent-orange: #e67e22;
  --accent-orange-dark: #c9610d;
  --accent-green: #27ae60;
  --light-bg: #f8f9fa;
  --text-color: #333;
  --muted: #637180;
  --line: #dfe4e8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(25, 45, 61, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text-color);
  background:
    radial-gradient(circle at 92% 8%, rgba(230, 126, 34, 0.12), transparent 24rem),
    linear-gradient(180deg, #eef2f4 0, var(--light-bg) 25rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--primary-deep);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 0.6rem;
}

.brand-name {
  color: var(--primary-deep);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.test-badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  color: #53606b;
  background: #edf0f2;
  border: 1px solid #d8dee3;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.test-badge {
  color: #795016;
  background: #fff3df;
  border-color: #f1c47f;
}

.status--active {
  color: #157341;
  background: #e9f8ef;
  border-color: #a9dfbd;
}

.language-switch {
  display: inline-flex;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.language-switch button {
  min-width: 2.55rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--primary-color);
}

.intro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
  align-items: end;
  gap: 2rem;
  min-height: clamp(25rem, 46vw, 34rem);
  padding: clamp(2rem, 5vw, 4.25rem);
  color: var(--white);
  background: var(--primary-deep);
  border-radius: 1.5rem 1.5rem 0.45rem 0.45rem;
  box-shadow: var(--shadow);
}

.intro-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 31, 47, 0.97) 0%, rgba(20, 40, 59, 0.9) 37%, rgba(20, 40, 59, 0.44) 67%, rgba(20, 40, 59, 0.15) 100%),
    linear-gradient(0deg, rgba(14, 31, 47, 0.48), transparent 55%);
  pointer-events: none;
}

.intro::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--accent-orange), rgba(230, 126, 34, 0));
  pointer-events: none;
}

.intro-content,
.audience-pills {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-orange);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 0.18rem 1.2rem rgba(0, 0, 0, 0.34);
}

.intro-copy {
  max-width: 45rem;
  margin: 1.25rem 0 0;
  color: #f2f6f8;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  text-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.45);
}

.audience-pills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.audience-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 9rem;
  padding: 0.7rem 0.9rem;
  background: rgba(20, 40, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.8rem;
  font-weight: 750;
  box-shadow: 0 0.45rem 1.4rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.audience-pills svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--accent-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.portal-card {
  --card-padding: clamp(1.25rem, 3vw, 2rem);
  --module-accent: var(--primary-color);
  --module-deep: var(--primary-deep);
  --module-tint: rgba(44, 62, 80, 0.055);
  --module-shadow: rgba(25, 45, 61, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 23rem;
  overflow: hidden;
  padding: var(--card-padding);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 54%, var(--module-tint) 100%);
  border: 1px solid color-mix(in srgb, var(--module-accent) 30%, var(--line));
  border-top: 0.34rem solid var(--module-accent);
  border-radius: 0.45rem 0.45rem 1.25rem 1.25rem;
  box-shadow: 0 12px 32px var(--module-shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.portal-card:hover {
  box-shadow: 0 18px 38px var(--module-shadow);
  transform: translateY(-2px);
}

.portal-card--ready {
  --module-accent: var(--accent-green);
  --module-deep: #16683a;
  --module-tint: rgba(39, 174, 96, 0.1);
  --module-shadow: rgba(24, 116, 63, 0.14);
}

.portal-card--stops {
  --module-accent: #d88918;
  --module-deep: #84500b;
  --module-tint: rgba(230, 150, 34, 0.11);
  --module-shadow: rgba(177, 106, 13, 0.14);
}

.portal-card--workshop {
  --module-accent: #456d89;
  --module-deep: #24465d;
  --module-tint: rgba(69, 109, 137, 0.11);
  --module-shadow: rgba(36, 70, 93, 0.14);
}

.portal-card--philosophy {
  --module-accent: var(--accent-orange);
  --module-deep: var(--primary-deep);
  --module-tint: rgba(44, 62, 80, 0.09);
  --module-shadow: rgba(20, 40, 59, 0.16);
}

.portal-card--philosophy .card-media img {
  object-position: 65% center;
}

.card-media {
  position: relative;
  height: clamp(9rem, 16vw, 11rem);
  flex: 0 0 auto;
  overflow: hidden;
  margin: calc(-1 * var(--card-padding)) calc(-1 * var(--card-padding)) 0.6rem;
  background: var(--primary-color);
  border-bottom: 0.28rem solid var(--module-accent);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 59, 0.48), transparent 58%, rgba(20, 40, 59, 0.14));
  pointer-events: none;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.portal-card:hover .card-media img {
  transform: scale(1.025);
}

.portal-card--active {
  --module-accent: var(--accent-orange);
  --module-shadow: rgba(20, 40, 59, 0.25);
  grid-column: span 2;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(33, 50, 66, 0.99), rgba(44, 62, 80, 0.96)),
    var(--primary-color);
  border-color: var(--module-accent) var(--primary-color) var(--primary-color);
}

.card-topline {
  position: absolute;
  z-index: 1;
  inset: 1rem 1rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  background: #edf1f4;
  border-radius: 1rem 1rem 0.35rem 1rem;
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card-icon--orange { color: var(--accent-orange); background: #fff0e3; }
.card-icon--green { color: var(--accent-green); background: #e8f7ee; }
.card-icon--navy { color: var(--primary-color); }

.portal-card--active .card-icon--orange {
  color: #fff;
  background: var(--accent-orange);
}

.portal-card h2 {
  margin: 1.35rem 0 0.65rem;
  color: var(--module-deep);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.portal-card--active h2 { color: var(--white); }

.portal-card p {
  margin: 0;
  color: var(--muted);
}

.portal-card--active p { color: #dce5eb; }

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: #4f5d67;
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--module-accent);
  border-radius: 50%;
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.route-links a {
  padding: 0.48rem 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.route-links a:hover,
.route-links a:focus-visible {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.52);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 18rem);
  margin-top: auto;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: var(--accent-orange);
  border-radius: 0.7rem;
  font-weight: 820;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.78rem 1rem;
  color: #fff;
  background: var(--module-accent);
  border: 1px solid var(--module-accent);
  border-radius: 0.7rem;
  font-weight: 820;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: var(--module-deep);
  background: #fff;
  border-color: var(--module-accent);
}

.portal-card:not(.portal-card--active) .status {
  color: var(--module-deep);
  background: color-mix(in srgb, var(--module-accent) 12%, white);
  border-color: color-mix(in srgb, var(--module-accent) 34%, white);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--accent-orange-dark);
  transform: translateY(-1px);
}

.primary-action svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.principles {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin: 1rem 0 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.principles h2 {
  margin: 0;
  color: var(--primary-deep);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.principles > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.55rem;
}

footer p { margin: 0; }

.footer-content {
  display: grid;
  gap: 0.45rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.legal-links a {
  color: var(--primary-deep);
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.legal-main {
  padding: 1rem 0 4rem;
}

.legal-hero,
.legal-document {
  width: min(880px, 100%);
  margin-inline: auto;
}

.legal-hero {
  padding: clamp(2rem, 6vw, 4.5rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-color));
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.legal-hero h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-hero p { margin: 0; color: #dbe4eb; }

.legal-document {
  margin-top: 1.5rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 10px 30px rgba(25, 45, 61, 0.07);
}

.legal-document h2 {
  margin: 2rem 0 0.45rem;
  color: var(--primary-deep);
  font-size: 1.3rem;
  line-height: 1.25;
}

.legal-document h2:first-child { margin-top: 0; }
.legal-document p, .legal-document ul { margin: 0.45rem 0 0; }
.legal-document address { font-style: normal; }
.legal-document a { color: #9b4a0a; text-underline-offset: 0.2em; }
.legal-document .updated { color: var(--muted); font-size: 0.9rem; }
.legal-document li + li { margin-top: 0.35rem; }

.philosophy-main {
  padding: 1rem 0 4rem;
}

.philosophy-main,
.philosophy-main > [data-legal-lang],
.philosophy-hero,
.philosophy-document,
.philosophy-panel,
.promise-grid,
.module-philosophy-grid,
.promise,
.module-philosophy {
  min-width: 0;
  max-width: 100%;
}

.philosophy-hero,
.philosophy-document {
  width: min(980px, 100%);
  margin-inline: auto;
}

.philosophy-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(25rem, 52vw, 36rem);
  display: flex;
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem);
  color: var(--white);
  background: var(--primary-deep);
  border-radius: 1.5rem 1.5rem 0.45rem 0.45rem;
  box-shadow: var(--shadow);
}

.philosophy-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.philosophy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 31, 47, 0.97) 0%, rgba(20, 40, 59, 0.88) 48%, rgba(20, 40, 59, 0.32) 100%);
}

.philosophy-hero-content {
  position: relative;
  z-index: 1;
  max-width: 45rem;
}

.philosophy-hero h1 {
  max-width: 16ch;
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.1rem, 5.5vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.philosophy-hero .lead {
  margin: 0;
  color: #f2f6f8;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.philosophy-document {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.philosophy-panel {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 10px 30px rgba(25, 45, 61, 0.07);
}

.philosophy-panel h2 {
  margin: 0 0 0.7rem;
  color: var(--primary-deep);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.philosophy-panel h3 {
  margin: 1.6rem 0 0.35rem;
  color: var(--primary-deep);
  font-size: 1.16rem;
}

.philosophy-panel p,
.philosophy-panel ul {
  margin: 0.55rem 0 0;
}

.philosophy-panel li + li { margin-top: 0.45rem; }

.philosophy-panel a {
  color: #9b4a0a;
  text-underline-offset: 0.2em;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  color: var(--primary-deep);
  background: #edf5f0;
  border: 1px solid #b8d9c5;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 780;
}

.promise-grid,
.module-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.promise,
.module-philosophy {
  padding: 1.15rem;
  background: var(--light-bg);
  border-left: 0.28rem solid var(--accent-green);
  border-radius: 0.7rem;
}

.promise h3,
.module-philosophy h3 { margin-top: 0; }

.comparison-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.2rem;
}

.comparison-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  color: var(--primary-deep);
  background: #edf2f5;
}

.comparison-table th:last-child { background: #e8f7ee; }

.plain-language {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-color));
  border: 0;
}

.plain-language h2,
.plain-language h3 { color: var(--white); }

.plain-language .eyebrow { color: #ffb36f; }

.philosophy-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 0.35rem solid var(--accent-orange);
}

.philosophy-cta .primary-action {
  flex: 0 0 auto;
  margin-top: 0;
}

.philosophy-cta .primary-action,
.plain-language a { color: var(--white); }

[data-legal-lang][hidden] { display: none; }

:focus-visible {
  outline: 3px solid rgba(230, 126, 34, 0.58);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-card--active { grid-column: span 2; }
  .intro { grid-template-columns: 1fr; align-content: end; }
  .intro::before {
    background:
      linear-gradient(90deg, rgba(14, 31, 47, 0.94), rgba(20, 40, 59, 0.48)),
      linear-gradient(0deg, rgba(14, 31, 47, 0.76), transparent 70%);
  }
  .audience-pills { flex-direction: row; }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; padding: 0.8rem 0; }
  .brand { gap: 0.45rem; }
  .brand img { width: 3.5rem; height: 3.5rem; }
  .brand-name { font-size: 1.05rem; }
  .header-actions { flex-direction: column-reverse; align-items: flex-end; gap: 0.4rem; }
  .test-badge { min-height: 1.65rem; font-size: 0.72rem; }
  .intro { min-height: 33rem; padding: 1.5rem; border-radius: 1.15rem 1.15rem 0.4rem 0.4rem; }
  .intro-image { object-position: 58% center; }
  .intro::before {
    background:
      linear-gradient(90deg, rgba(14, 31, 47, 0.88), rgba(20, 40, 59, 0.28)),
      linear-gradient(0deg, rgba(14, 31, 47, 0.92) 0%, rgba(14, 31, 47, 0.5) 68%, rgba(14, 31, 47, 0.12) 100%);
  }
  .intro h1 { max-width: none; }
  .audience-pills { flex-wrap: wrap; }
  .audience-pills > span { min-width: auto; flex: 1 1 8rem; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card--active { grid-column: auto; }
  .portal-card { --card-padding: 1.35rem; min-height: auto; }
  .card-media { height: 11rem; }
  .primary-action { margin-top: 1.5rem; }
  .secondary-action { margin-top: 1.5rem; }
  .principles { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .philosophy-hero { min-height: 31rem; padding: 1.5rem; }
  .philosophy-hero > img { object-position: 65% center; }
  .philosophy-hero::after { background: linear-gradient(0deg, rgba(14, 31, 47, 0.97) 0%, rgba(20, 40, 59, 0.65) 75%, rgba(20, 40, 59, 0.25) 100%); }
  .philosophy-panel { padding: 1.15rem; overflow-wrap: anywhere; }
  .trust-strip { align-items: stretch; }
  .trust-strip span { max-width: 100%; border-radius: 0.75rem; overflow-wrap: anywhere; }
  .comparison-wrap { scrollbar-width: thin; }
  .comparison-table { min-width: 32rem; }
  .promise-grid, .module-philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-cta { align-items: flex-start; flex-direction: column; }
  .philosophy-cta .primary-action { width: 100%; }
  .philosophy-cta .primary-action span { min-width: 0; overflow-wrap: anywhere; }
}

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