/* =========================================================
   Avenir Next — self-hosted web fonts
   ========================================================= */
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-UltraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-UltraLightItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-DemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("assets/fonts/AvenirNext-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --surface: #f5f5f7;
  --surface-dark: #000000;
  --surface-light: #ffffff;
  --accent: #3DB5E5;
  --accent-dark: #005bb5;
  --tc-teal: #7EC8C8;
  --tc-blue: #3DB5E5;
  --tc-amber: #E5A54B;
  --tc-dark: #2D2D2D;
  --cta-secondary: #1d1d1f;
  font-family: "Avenir Next", "Avenir", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
}

.inline-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ========================================
   Site header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  min-height: 80px;
  display: flex;
  align-items: center;
}

/* Offset anchor scroll targets so the sticky header doesn't cover them */
[id] {
  scroll-margin-top: 90px;
}

.header-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 clamp(24px, 4vw, 64px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Avenir Next", "Avenir", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1rem;
  color: var(--text-primary);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.site-nav a:focus-visible,
.site-nav a:hover {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex !important;
  }

  .site-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 40px clamp(24px, 4vw, 64px);
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    font-size: 1.2rem;
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .site-nav.is-active {
    transform: translateX(0);
  }

  .site-nav a::after {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
  padding-bottom: 0;
}

/* ========================================
   Tesla-style hero card layout
   White page → inset cards with rounded corners
   ======================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 78vh, 760px);
  padding: clamp(64px, 10vw, 120px) clamp(32px, 6vw, 80px) clamp(48px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #1a1a1a;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  /* Tesla-style: rounded card with white margin */
  margin: 0 10px 10px;
  border-radius: 12px;
  overflow: hidden;
}

/* Side-by-side heroes: bottom-left aligned */
.hero-pair .hero {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}

/* Full-width heroes: centered dark scrim */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.30) 55%,
    rgba(0, 0, 0, 0.10) 100%
  );
  border-radius: inherit;
}

/* Side-by-side heroes: bottom-weighted scrim for bottom-left text */
.hero-pair .hero::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.10) 35%,
    rgba(0, 0, 0, 0.50) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* Hero-pair text: softer shadow — readable but not stark */
.hero-pair .hero h2,
.hero-pair .hero p,
.hero-pair .hero .hero-status {
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.60),
    0 0 32px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(0, 0, 0, 0.30),
    0 1px 4px rgba(0, 0, 0, 0.55);
}

/* Hero-pair eyebrows: tighter shadow sized for small uppercase text */
.hero-pair .hero .eyebrow {
  text-shadow:
    0 0 8px  rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.80);
}

/* Helps hero: strong scrim already backs text; softer shadow to match */
.hero.hero-helps h2,
.hero.hero-helps p,
.hero.hero-helps .eyebrow {
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 0, 0, 0.48),
    0 0 55px rgba(0, 0, 0, 0.32),
    0 1px 4px rgba(0, 0, 0, 0.65);
}

/* Foundations: text is vertically centered — use center-weighted radial scrim */
.hero-pair .hero-foundations::after {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.40) 50%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.00) 40%,
      rgba(0, 0, 0, 0.00) 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
}

/* Related Projects divider banner */
.related-projects-banner {
  background: linear-gradient(135deg, #0a4a6a 0%, #2daee4 100%);
  text-align: center;
  padding: clamp(20px, 4vw, 32px) 24px;
  margin: 0 10px 10px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.related-projects-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.related-projects-banner p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* First hero: small top margin, reduced padding to tighten content */
.hero.hero-translationcore {
  margin-top: 0;
  padding-top: clamp(40px, 6vw, 72px);
}

/* translationCore hero: left-weighted scrim matches the left text column */
.hero.hero-translationcore::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.35) 45%,
      rgba(0, 0, 0, 0.10) 75%,
      rgba(0, 0, 0, 0.00) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.00) 35%
    );
}

/* Brighten the background images */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  filter: brightness(1.15) saturate(1.1);
  border-radius: inherit;
}

/* ========================================
   Side-by-side pair (Training + Foundations)
   ======================================== */
.hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 10px 10px;
  background: transparent;
}

.hero-pair .hero {
  margin: 0;
  min-height: clamp(400px, 60vh, 600px);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .hero-pair {
    grid-template-columns: 1fr;
  }
  .hero-pair .hero {
    min-height: clamp(420px, 65vh, 600px);
  }
}

.hero h1,
.hero h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-pair .hero h1,
.hero-pair .hero h2 {
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.hero h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: #ffffff;
  text-align: center;
}

.hero-pair .hero .eyebrow {
  text-align: left;
}

.subhead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.6;
  margin: 0 auto clamp(24px, 5vw, 36px);
  max-width: 520px;
}

.hero .subhead {
  color: #ffffff;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-pair .hero .subhead {
  text-align: left;
  margin-left: 0;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 4vw, 28px);
}

/* hero-pair CTAs align left, with breathing room above */
.hero-pair .hero .hero-actions {
  justify-content: flex-start;
  margin-top: clamp(16px, 3vw, 28px);
}

/* ========================================
   CTA buttons
   ======================================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
}

.cta.primary {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.cta::after {
  content: "›";
  font-size: 1.15em;
  transform: translateY(-1px);
}

.cta.primary:hover,
.cta.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}

.cta.secondary:hover,
.cta.secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

button.cta {
  font-family: "Avenir Next", "Avenir", sans-serif;
}

.hero-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 1.2rem;
}

.hero .hero-status {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
  text-shadow:
    0 0 8px  rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.70),
    0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero-download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-download-wrap .hero-status {
  min-height: 0;
  margin-top: 10px;
}

/* ========================================
   Hero background images
   ======================================== */
.hero-translationcore { --hero-image: url('assets/images/translationcore-hero.webp'); }
.hero-helps           { --hero-image: url('assets/images/translation-helps-hero.webp'); }
.hero-training        { --hero-image: url('assets/images/training-hero.webp'); }
.hero-foundations     { --hero-image: url('assets/images/foundations-hero.webp'); }
.hero-obs             { --hero-image: url('assets/images/obs-hero.webp'); background-color: #2c3e50; }
.hero-btservant       { --hero-image: url('assets/images/btservant-hero.webp'); background-color: #1a3a4a; }

.hero.hero-training {
  background-image: none;
}
.hero.hero-training::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: 30% center;
  filter: brightness(1.15) saturate(1.1);
  z-index: -2;
}

.hero.hero-helps {
  background-size: 160%;
  background-position: 50% 50%;
}

/* Helps hero: stronger scrim — text is centered, image is zoomed */
.hero.hero-helps::after {
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.48) 50%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

/* Foundations: vertically centered, left-aligned */
.hero-pair .hero.hero-foundations {
  justify-content: center;
  padding-bottom: 40px;
  background-position: left center;
}

/* All hero text: bright white */
.hero,
.hero *:not(.cta.primary) {
  color: #ffffff !important;
}

/* Body text in heroes gets readability shadow */
.hero p {
  text-shadow:
    0 0 8px  rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.70),
    0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero h1,
.hero h2,
.hero .eyebrow,
.tc-simple__hero .eyebrow,
.tc-helps-hero-centered .eyebrow,
.tc-simple__hero .subhead,
.tc-helps-hero-centered .subhead,
.tc-simple__hero h1,
.tc-helps-hero-centered h1 {
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.70),
    0 2px 6px rgba(0, 0, 0, 0.95);
}

/* ========================================
   translationCore hero: left-aligned copy column
   ======================================== */
.hero.hero-translationcore {
  align-items: flex-start;
}

.hero.hero-translationcore h1,
.hero.hero-translationcore h2,
.hero.hero-translationcore .eyebrow,
.hero.hero-translationcore p {
  text-align: left;
}

.hero.hero-translationcore .subhead {
  text-align: left;
}

.hero-tc-copy {
  width: min(55%, 540px);
  padding-left: clamp(20px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero.hero-translationcore h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
}

.hero.hero-translationcore .subhead {
  margin-left: 0;
  margin-right: 0;
  max-width: 480px;
}

.hero.hero-translationcore .hero-actions {
  margin-left: 0;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero-tc-copy {
    width: 100%;
    padding-left: 0;
  }
  .hero.hero-translationcore {
    align-items: center;
  }
  .hero.hero-translationcore h1 {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
    text-align: center;
  }
  .hero.hero-translationcore .eyebrow,
  .hero.hero-translationcore p {
    text-align: center;
  }
  .hero.hero-translationcore .subhead {
    text-align: left;
  }
  .hero.hero-translationcore .hero-actions {
    justify-content: center;
  }
}

/* ========================================
   Download Helps dialog
   ======================================== */
body.dialog-open {
  overflow: hidden;
}

.helps-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 48px);
  background: rgba(15, 23, 42, 0.55);
  z-index: 30;
  opacity: 0;
  transition: opacity 200ms ease;
}

.helps-dialog.is-open {
  opacity: 1;
}

.helps-dialog[hidden] {
  display: none;
}

.helps-dialog__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.helps-dialog__panel {
  position: relative;
  width: min(100%, 640px);
  max-height: min(92vh, 680px);
  overflow-y: auto;
  padding-block: clamp(32px, 7vw, 56px);
  padding-inline: clamp(28px, 7vw, 56px);
  z-index: 1;
}

.helps-dialog__close {
  position: absolute;
  top: clamp(16px, 4vw, 24px);
  right: clamp(16px, 4vw, 24px);
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.helps-dialog__close:hover,
.helps-dialog__close:focus-visible {
  background: rgba(15, 23, 42, 0.14);
  color: var(--text-primary);
  transform: scale(1.05);
}

.helps-dialog__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.helps-card {
  background-color: #fff;
  border-radius: 32px;
  padding: clamp(40px, 7vw, 64px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  text-align: center;
  color: var(--text-primary);
}

.helps-card h2 {
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.helps-card .subhead {
  max-width: 480px;
  margin: 0 auto clamp(32px, 6vw, 48px);
  color: var(--text-secondary);
}

.select-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-align: left;
}

.select-wrapper {
  position: relative;
}

.book-select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--surface);
  appearance: none;
  color: var(--text-primary);
}

.book-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.book-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.select-wrapper::after {
  content: "⌄";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  color: var(--text-secondary);
}

.helps-status {
  margin-top: 24px;
  min-height: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.helps-status--error {
  color: #a9191f;
}

.helps-status--success {
  color: #0c6a92;
}

.helps-status--loading {
  color: var(--text-secondary);
  font-style: italic;
}

.helps-status .inline-link {
  color: var(--accent);
  text-decoration: none;
}

.helps-status .inline-link:hover,
.helps-status .inline-link:focus-visible {
  text-decoration: underline;
}

/* ========================================
   tc-simple (translationCore & Helps subpages)
   ======================================== */
.tc-simple {
  background: #ffffff;
  color: var(--text-primary);
  min-height: 100vh;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.tc-simple__main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.tc-simple__container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-inline: clamp(24px, 6vw, 80px);
}

.tc-simple__hero {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  max-height: clamp(520px, 78vh, 760px);
  padding: clamp(48px, 8vw, 80px) clamp(32px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
}

.tc-simple__hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.30) 50%,
      rgba(0, 0, 0, 0.20) 100%
    ),
    radial-gradient(
      ellipse at 35% 50%,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.10) 100%
    );
  border-radius: inherit;
}

.tc-simple__hero .tc-simple__container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  position: relative;
  z-index: 2;
}

.tc-simple__hero-inner {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.tc-simple__hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tc-simple__hero .eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: inline-block;
  width: fit-content;
}

.tc-simple__hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: #ffffff;
}

.tc-simple__hero .subhead {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.6;
}

.tc-simple__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.85);
}

.tc-simple__hero .hero-actions {
  justify-content: flex-start;
  gap: clamp(16px, 4vw, 28px);
}

.tc-simple__hero .cta.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.tc-simple__hero .hero-status {
  color: rgba(255, 255, 255, 0.8);
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.70),
    0 2px 6px rgba(0, 0, 0, 0.95);
}

.tc-simple__hero-figure {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  background: #000000;
}

.tc-simple__section {
  display: block;
  padding-block: clamp(32px, 5vw, 56px);
  position: relative;
}

.tc-simple__section h2 {
  margin-top: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 28px);
  background: linear-gradient(135deg, #2D2D2D 0%, #2daee4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tc-simple__section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #475569;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tc-simple__section--muted {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding-block: clamp(32px, 5vw, 56px);
  position: relative;
  border-radius: 12px;
  margin-inline: 10px;
}

.tc-simple__section--muted::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(148,163,184,0.1)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.tc-simple__section--muted .tc-simple__container {
  padding-inline: clamp(24px, 6vw, 80px);
  position: relative;
  z-index: 2;
}

.tc-simple__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.tc-simple__grid {
  display: grid;
  gap: clamp(24px, 6vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: clamp(16px, 3vw, 32px);
}

.tc-simple__grid--two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tc-simple__grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tc-simple__card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tc-simple__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2daee4 0%, #6ecacd 50%, #e69e35 100%);
}

.tc-simple__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.tc-simple__card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.tc-simple__card p {
  margin: 0;
  color: #64748b;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

.tc-simple__card--tall {
  gap: 20px;
}

.tc-simple__card--tall .tc-simple__list {
  font-size: 0.95rem;
  color: #64748b;
}

.tc-simple__card--tall .tc-simple__access-links {
  margin-top: auto;
  justify-content: flex-start;
}

.tc-simple__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.tc-simple__steps li {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 24px 24px 80px;
  position: relative;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

.tc-simple__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px; left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tc-version-tag {
  font-size: 0.75em;
  font-weight: 400;
  color: var(--text-secondary, #666);
  margin-left: 4px;
}

.tc-simple__section-note {
  text-align: center;
  margin-top: 24px;
}

.tc-simple__cta {
  background: linear-gradient(135deg, #0a4a6a 0%, #2daee4 100%);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 40px 80px rgba(45, 174, 228, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.tc-simple__cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparkles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="30" r="0.5" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="70" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="0.6" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23sparkles)"/></svg>');
  opacity: 0.3;
}

.tc-simple__cta h2 {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: unset;
  margin-bottom: 16px;
}

.tc-simple__cta p {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 0;
}

.tc-simple__cta .hero-actions {
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.tc-simple__cta .cta.primary {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border: none;
  font-weight: 700;
  padding: 18px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tc-simple__cta .cta.primary:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.tc-simple__cta .cta.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
}

.tc-simple__cta .cta.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Testimonial quote
   ======================================== */
.tc-simple__section--quote {
  background: linear-gradient(135deg, #2D2D2D 0%, #3a7d7f 100%);
  color: #ffffff;
  padding-block: clamp(32px, 5vw, 48px);
  text-align: center;
  border-radius: 12px;
  margin-inline: 10px;
}

.tc-simple__quote {
  max-width: 700px;
  margin: 0 auto;
  border: none;
  padding: 0;
}

.tc-simple__quote p {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* ========================================
   Download cards
   ======================================== */
.download-card {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  text-align: left;
}

.download-card h3 {
  color: #0C6A92 !important;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.download-card > p {
  color: #64748b !important;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tc-download-links p {
  margin: 6px 0;
  font-size: 0.92rem;
  color: #334155 !important;
}

.tc-download-links strong {
  color: #1e293b;
  font-weight: 600;
}

.tc-download-links .inline-link {
  color: var(--accent, #2daee4);
  text-decoration: none;
  font-weight: 500;
}

.tc-download-links .inline-link:hover {
  text-decoration: underline;
}

/* ========================================
   translationCore subpage
   ======================================== */
.tc-hero-section {
  background-image: url('/assets/images/translationcore-hero.webp');
}

.tc-hero-section .tc-simple__hero-inner {
  grid-template-columns: 1fr;
  text-align: left;
}

.tc-hero-section .hero-actions {
  justify-content: flex-start;
}

.tc-hero-section .eyebrow {
  text-align: left;
}

/* ========================================
   Translation Helps subpage
   ======================================== */
.tc-helps-hero-section {
  background-image: url('/assets/images/translation-helps-hero.webp');
  background-size: 160%;
  background-position: 50% 50%;
}

.tc-helps-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.40) 40%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    radial-gradient(
      ellipse at 50% 45%,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.40) 55%,
      rgba(0, 0, 0, 0.20) 100%
    );
}

.tc-helps-hero-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tc-helps-hero-centered .hero-actions {
  justify-content: center;
}

.tc-helps-hero-centered h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: #ffffff;
}

.tc-helps-hero-centered .subhead {
  color: #ffffff;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
  text-align: center;
}

.tc-helps-hero-centered .eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: inline-block;
}

.tc-helps-hero-centered .hero-status {
  color: rgba(255, 255, 255, 0.6);
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 0, 0, 0.70),
    0 2px 6px rgba(0, 0, 0, 0.95);
}

.tc-simple__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 32px);
}

.tc-simple__access-links .cta {
  font-size: 0.95rem;
  padding: 12px 28px;
}

.tc-simple__access-links .cta.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.tc-simple__access-links .cta.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.3);
}

.tc-simple__access-links .cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.tc-simple__access-links .cta.secondary:hover {
  background: rgba(0, 113, 227, 0.08);
  transform: translateY(-2px);
}

.tc-simple__section--muted .tc-simple__access-links .cta.primary {
  background: var(--accent);
  color: #ffffff;
}

.tc-simple__section--muted .tc-simple__access-links .cta.secondary {
  color: var(--accent);
  border-color: var(--accent);
}

.tc-helps-page .tc-simple__section h2,
.tc-helps-page .tc-simple__section p {
  color: inherit;
}

/* Small trademark symbol in headings */
h1 .reg {
  font-size: 0.35em;
  vertical-align: super;
  line-height: 0;
}

/* ========================================
   Site footer
   ======================================== */
.site-footer {
  background-color: #1d1d1f;
  margin-top: 10px;
  padding: 3rem clamp(24px, 4vw, 64px) 1.75rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.footer-brand-row img {
  width: 34px;
  height: auto;
  object-fit: contain;
}

.footer-brand-row span {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

.footer-brand-project {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-brand-uw {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: inline;
  transition: color 0.2s;
}

.footer-brand-uw:hover,
.footer-brand-uw:focus-visible {
  color: var(--accent);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 200ms ease;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.footer-col ul li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.25rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  margin: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .tc-simple__hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tc-simple__hero-figure {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }
  .tc-simple__hero .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tc-simple__grid { grid-template-columns: 1fr; gap: 20px; }
  .tc-simple__grid--two { grid-template-columns: 1fr; }
  .tc-simple__hero { padding-block: clamp(60px, 15vw, 100px); }
  .tc-simple__hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .tc-simple__section h2 { font-size: clamp(2rem, 6vw, 3rem); }
  .tc-helps-hero-centered h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  /* Reduce stacked hero-pair height so 4 cards don't require endless scrolling */
  .hero-pair .hero { min-height: clamp(300px, 50vh, 480px); }
}

@media (max-width: 480px) {
  /* Footer collapses to single column on narrow phones */
  .footer-columns { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .tc-simple__steps li { padding: 72px 24px 24px 24px; }
  .tc-simple__steps li::before { top: 24px; left: 24px; }
  .tc-simple__card { padding: 24px; }
  .tc-simple__cta { padding: 40px 24px; }
}

@media (max-width: 540px) {
  /* Let hero headings reflow naturally — desktop <br> breaks look bad full-width */
  .hero h2 br { display: none; }
  .tc-simple__hero .eyebrow { font-size: 0.7rem; padding: 6px 12px; }
  .tc-simple__hero .hero-actions { flex-direction: column; align-items: center; gap: 16px; }
  .tc-simple__hero-figure { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
  .tc-simple__cta .hero-actions { flex-direction: column; gap: 16px; }
  .tc-simple__container { padding-inline: 20px; }
  .tc-simple__main { gap: clamp(40px, 10vw, 80px); padding-top: 0; padding-bottom: clamp(40px, 10vw, 80px); }
  .hero-actions { flex-direction: column; align-items: center; }

  /* Unify hero scrims to centered radial at mobile — directional scrims
     designed for desktop layouts don't match single-column stacking */
  .hero::after,
  .hero-pair .hero::after,
  .hero.hero-translationcore::after,
  .hero.hero-helps::after {
    background: radial-gradient(
      ellipse at 50% 60%,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.48) 50%,
      rgba(0, 0, 0, 0.22) 100%
    );
  }

  /* CTAs full-width when stacked, with minimum tap target height */
  .hero .cta {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }
}
