/* ==========================================================================
   TDH Software, Design System
   Light, warm, friendly. Palette sampled from the TDH brand sheet
   (brand/tdh-brand-sheet.png): navy #224466, steel blue #447799,
   sky #a8daea, orange #ff9955, paper #f7f3ee.
   ========================================================================== */

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Surfaces */
  --paper: #f7f3ee;
  --surface: #ffffff;
  --surface-alt: #fdfbf8;
  --navy: #21405f;

  /* Text, all checked against their backgrounds for WCAG AA */
  --ink: #21405f;
  --body: #4a6377;
  --muted: #6b8296;
  --on-navy: #e8eef4;
  --on-navy-muted: #a9bccd;

  /* Brand */
  --brand: #336f93;
  --brand-dark: #275a78;
  --brand-tint: #e4f0f7;
  --sky: #a8daea;

  /* Accent */
  --accent: #ef8f4f;
  --accent-ink: #b3611f;
  --accent-tint: #fdeadb;

  /* Lines & shadows */
  --line: rgba(33, 64, 95, 0.12);
  --line-strong: rgba(33, 64, 95, 0.22);
  --shadow-sm: 0 2px 8px rgba(33, 64, 95, 0.06);
  --shadow: 0 12px 32px rgba(33, 64, 95, 0.09);
  --shadow-lg: 0 26px 60px rgba(33, 64, 95, 0.14);

  /* Type */
  --font-heading: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 84px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  background-color: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* --- Layout helpers --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

.section {
  position: relative;
  padding: 96px 0;
  /* Contains the decorative .glow-bg blooms, which are positioned past the
     section edges. Without this they inflate the document width and rely on
     body{overflow-x:hidden} to stay invisible. */
  overflow: hidden;
}

.section--tight {
  padding: 64px 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.section-sub {
  font-size: 17px;
  color: var(--body);
  line-height: 1.75;
}

.highlight {
  color: var(--accent-ink);
}

/* --- Top bar --- */
.top-bar {
  background-color: var(--navy);
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--on-navy-muted);
}

.top-bar__note {
  display: flex;
  align-items: center;
  gap: 9px;
}

.top-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 143, 79, 0.22);
  flex: none;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar__links a {
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar__links a:hover {
  color: #fff;
}

/* --- Header --- */
.main-header {
  background-color: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 30px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand-logo img {
  width: 46px;
  height: auto;
  flex: none;
}

.brand-logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.brand-logo__text small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.btn-buy-nav {
  background: var(--brand);
  color: #ffffff !important;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.btn-buy-nav:hover {
  background: var(--brand-dark);
  color: #ffffff !important;
}

/* --- Language switcher --- */
.lang {
  position: relative;
  flex: none;
}

.lang__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang__toggle:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.lang__toggle svg {
  flex: none;
  color: var(--brand);
}

.lang__caret {
  transition: transform 0.2s;
}

.lang__toggle[aria-expanded='true'] .lang__caret {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 195px;
  list-style: none;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 120;
}

.lang__menu.open {
  display: block;
}

.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.lang__menu button:hover {
  background: var(--brand-tint);
  color: var(--ink);
}

.lang__menu button[aria-current='true'] {
  color: var(--brand);
  font-weight: 800;
}

.lang__code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex: none;
}

/* --- Soft background blooms --- */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}

.glow-green {
  width: 520px;
  height: 520px;
  background: rgba(168, 218, 234, 0.5);
  top: -120px;
  left: 18%;
}

.glow-blue {
  width: 420px;
  height: 420px;
  background: rgba(51, 111, 147, 0.16);
  bottom: -40px;
  left: -60px;
}

.glow-lime {
  width: 460px;
  height: 460px;
  background: rgba(239, 143, 79, 0.22);
  top: 8%;
  right: -120px;
}

/* --- Hero --- */
.hero-section {
  position: relative;
  padding: 80px 0 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 405px);
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
}

/* Mascot, with a soft brand-coloured bloom behind it so it sits on the
   paper rather than floating loose. */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(circle at 50% 45%,
    rgba(168, 218, 234, 0.55),
    rgba(239, 143, 79, 0.16) 55%,
    transparent 72%);
  filter: blur(12px);
  z-index: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 405px;
  height: auto;
  animation: mascot-float 6s ease-in-out infinite;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--brand);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 42px;
  max-width: 620px;
}

/* --- Buttons --- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

.link-arrow svg {
  transition: transform 0.2s;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: 76px 0 52px;
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.page-hero p {
  font-size: 18px;
  color: var(--body);
  line-height: 1.75;
}

/* --- Card grids --- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 111, 147, 0.35);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__text {
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

.card__list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--body);
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Numbered process steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step {
  border-top: 3px solid var(--line);
  padding-top: 22px;
  transition: border-color 0.25s;
}

.step:hover {
  border-top-color: var(--accent);
}

.step__num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 10px;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step__text {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.65;
}

/* --- Product block --- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Product screenshot in a browser-chrome frame. */
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.shot__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(33, 64, 95, 0.18);
  flex: none;
}

.shot__url {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.tag {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
}

/* --- Tech strip --- */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-strip span {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* --- CTA band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(168, 218, 234, 0.35), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(239, 143, 79, 0.3), transparent 55%),
    var(--navy);
  padding: 66px 50px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.cta-band p {
  color: var(--on-navy);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-band .cta-group {
  justify-content: center;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* --- Split / value rows --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.value-list {
  list-style: none;
  display: grid;
  gap: 24px;
}

.value-list__item {
  display: flex;
  gap: 18px;
}

.value-list__mark {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
}

.value-list__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.value-list__text {
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

/* --- FAQ --- */
.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq__q svg {
  flex: none;
  color: var(--accent-ink);
  transition: transform 0.25s;
}

.faq__q[aria-expanded='true'] svg {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
}

.faq__a.open {
  max-height: 420px;
  padding: 0 24px 22px;
}

/* --- Contact / forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 52px;
  align-items: start;
}

.form {
  display: grid;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field > span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  background: var(--surface-alt);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form__note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Submission result. Colour alone never carries the meaning, the message
   text says what happened, and the region is aria-live. */
.form__status {
  font-size: 14.5px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
}

.form__status strong {
  display: block;
  margin-bottom: 3px;
}

.form__status.is-ok {
  color: #1d6b4f;
  border-color: rgba(29, 107, 79, 0.35);
  background: #e6f4ee;
}

.form__status.is-error {
  color: #a3341f;
  border-color: rgba(163, 52, 31, 0.35);
  background: #fbeae6;
}

.captcha {
  min-height: 65px;
}

.captcha iframe {
  max-width: 100%;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-card__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--brand);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  word-break: break-word;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding: 66px 0 28px;
  margin-top: 40px;
}

.footer .brand-logo__text {
  color: #fff;
}

.footer .brand-logo__text small {
  color: var(--sky);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.footer__about {
  color: var(--on-navy-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 18px 0 20px;
  max-width: 340px;
}

/* Registered name, office, and phone. Sits on every page on purpose: banks,
   payment providers, and business registries check these against the
   certificate of business registration, and they land on whichever page the
   search engine gave them, not necessarily on About or Contact. */
.footer__address {
  color: var(--on-navy-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 340px;
}

.footer__address strong {
  color: #fff;
  font-weight: 700;
}

.footer__address a {
  color: var(--on-navy-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__address a:hover {
  color: var(--sky);
}

.footer__col h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer__col a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--sky);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.footer__bottom a {
  color: var(--on-navy-muted);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--sky);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-navy-muted);
  transition: all 0.2s;
}

.socials a:hover {
  color: var(--navy);
  background: var(--sky);
  border-color: var(--sky);
}

/* --- Blog --- */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.crumbs a:hover {
  text-decoration: underline;
}

.post {
  max-width: 760px;
  margin: 0 auto;
}

.post__title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.post__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 22px;
}

.post__lede {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Long-form typography. Generous spacing, capped measure. */
.post__body {
  font-size: 17.5px;
  line-height: 1.8;
}

.post__body h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin: 44px 0 14px;
  letter-spacing: -0.3px;
}

.post__body h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 10px;
}

.post__body p {
  margin-bottom: 20px;
}

.post__body ul,
.post__body ol {
  margin: 0 0 22px 22px;
}

.post__body li {
  margin-bottom: 9px;
}

.post__body a {
  color: var(--brand);
  font-weight: 600;
}

.post__body strong {
  color: var(--ink);
}

.post__body blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

.post__body blockquote p:last-child {
  margin-bottom: 0;
}

.post__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--brand-tint);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Code blocks scroll inside their own box so the page never does. */
.post__body pre {
  background: var(--navy);
  color: #e8eef4;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 24px;
  line-height: 1.6;
}

.post__body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 14.5px;
  white-space: pre;
}

.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 16px;
}

.post__body th,
.post__body td {
  border: 1px solid var(--line);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}

.post__body th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 700;
}

/* Wide tables scroll inside their own box rather than the page. */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 24px;
}

.table-scroll table {
  margin-bottom: 0;
  min-width: 460px;
}

.post__cta {
  margin: 48px 0 8px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  border: 1px solid var(--line);
}

.post__cta h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.post__cta p {
  color: var(--body);
  margin-bottom: 22px;
}

.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.postnav__link {
  display: block;
  text-decoration: none;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.postnav__link:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.postnav__link--next {
  text-align: right;
}

.postnav__dir {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 6px;
}

.postnav__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.postcard__meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.postcard .card__title a {
  text-decoration: none;
  color: inherit;
}

.postcard .card__title a:hover {
  color: var(--brand);
}

/* The blog language menu is links, not buttons. */
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
}

.lang__menu a:hover {
  background: var(--brand-tint);
  color: var(--ink);
}

.lang__menu a[aria-current='true'] {
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 768px) {
  .post__title {
    font-size: 30px;
  }

  .post__lede {
    font-size: 18px;
  }

  .post__body {
    font-size: 17px;
  }

  .post__body h2 {
    font-size: 24px;
  }

  .postnav {
    grid-template-columns: 1fr;
  }

  .postnav__link--next {
    text-align: left;
  }

  .post__cta {
    padding: 24px;
  }
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* .reveal.visible and .card:hover have equal specificity, so the reveal rule
   would otherwise cancel the card lift. Restore it explicitly. */
.card.reveal.visible:hover {
  transform: translateY(-4px);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 40px;
  }

  .section-title,
  .page-hero h1 {
    font-size: 32px;
  }


  .grid--3,
  .grid--2,
  .product,
  .split,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* Mascot drops below the copy and shrinks rather than disappearing. */
  .hero-grid {
    gap: 8px;
  }

  .hero-art img {
    max-width: 300px;
  }

  .product,
  .split,
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    position: relative;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .lang {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    margin-left: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--brand-tint);
  }

  .btn-buy-nav {
    text-align: center;
    margin-top: 6px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-section {
    padding: 52px 0 68px;
  }

  .hero-art img {
    max-width: 230px;
  }

  .section {
    padding: 64px 0;
  }

  .top-bar__links a:not(.top-bar__mail) {
    display: none;
  }

  .cta-band {
    padding: 44px 24px;
  }

  .cta-band h2 {
    font-size: 28px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .container,
  .hero-container,
  .header-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form {
    padding: 24px;
  }

  .brand-logo img {
    width: 40px;
  }

  .brand-logo__text {
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cta-group .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* The blanket 0.01ms duration above would make an infinite loop strobe,
     so stop the float outright. */
  .hero-art img {
    animation: none !important;
  }
}
