/* ==========================================================================
   Vuka — Website Styles
   Redesigned to visually match the team's calculator styling while keeping
   the existing Vuka HTML structure and class names intact.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --dark: #064846;
  --teal: #0a7672;
  --green: #319966;
  --lightgreen: #1fc652;
  --lime: #b7d64a;
  --background: #f2eeeb;
  --white: #ffffff;
  --grey: #5f5f5f;
  --grey-light: #ddd8d4;
  --orange: #f09c3a;
  --blue: #1daec6;

  --font-display: "Sora", "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Open Sans", "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-pill: 40px;

  --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
}




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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--dark);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* Keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

html {
  scroll-padding-top: 90px;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--dark);
  color: var(--white);
  border-radius: 0 0 10px 0;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--dark);
  box-shadow: 0 8px 18px rgba(6, 72, 70, 0.18);
}

.btn-accent {
  background: var(--orange);
  color: var(--dark);
}

.btn-accent:hover {
  background: #f2a655;
  box-shadow: 0 8px 18px rgba(240, 156, 58, 0.2);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: rgba(29, 175, 197, 0.3);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--grey-light);
  color: var(--dark);
}

.btn-ghost:hover {
  border-color: var(--dark);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.75rem;
}

    

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.ribbon {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--dark);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.ribbon-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  /*added for logo*/
  display: inline-flex;
  align-items: center;
}

/*added for logo*/
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--lightgreen);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--lightgreen);
  border-bottom-color: var(--lightgreen);
}

.lang-select {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.burger {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 70px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6em;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lightgreen);
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero .slogan {
  margin-bottom: 0.7em;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green);
}

.hero p.lead {
  max-width: 48ch;
  font-size: 1.125rem;
  color: var(--grey);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card {
  padding: 32px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero-card .eyebrow {
  color: var(--lime);
}

.hero-card h3 {
  color: var(--white);
}

.hero-card p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-stats {
 display: grid;
  grid-template-columns: repeat(6
  , 1fr);
  gap: 14px;
  margin-top: 24px;
}

.hero-stat {
  grid-column: span 3;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 0;
}

.hero-stat:nth-child(4) strong,
.hero-stat:nth-child(5) strong {
  font-size: 1rem;
}

.hero-stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--lime);
}

.hero-stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.about-grid p {
  color: var(--grey);
}

.about ul {
  margin: 1em 0 0;
  padding-left: 1.2em;
  color: var(--grey);
}

.about li {
  margin-bottom: 0.6em;
}

/* --------------------------------------------------------------------------
   Modules
   -------------------------------------------------------------------------- */
.modules-section {
  padding: 70px 0;
}

.section-heading {
  max-width: 60ch;
  margin-bottom: 36px;
}

.section-heading p {
  color: var(--grey);
  font-size: 1.125rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border-left: 5px solid var(--lightgreen);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  border-left-color: var(--teal);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.11);
}

.module-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(183, 214, 74, 0.25);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.module-card h3 {
  margin-bottom: 2px;
  font-size: 1.125rem;
}

.module-card p {
  margin-bottom: 0;
  color: var(--grey);
  font-size: 0.9375rem;
}

.module-card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   Module pager
   -------------------------------------------------------------------------- */

.module-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--grey-light);
}

.module-pager .btn {
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-pill);
}

/* Previous module */
.module-pager .btn-outline {
  background: var(--white);
  border-color: var(--green);
  color: var(--dark);
}

.module-pager .btn-outline:hover {
  background: rgba(31, 198, 82, 0.08);
  border-color: var(--teal);
}

/* Next module */
.module-pager .btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.module-pager .btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* Small label above the module name */
.module-pager .pager-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.module-pager .btn-outline .pager-label {
  color: var(--grey);
}

.module-pager .btn-primary .pager-label {
  color: rgba(255, 255, 255, 0.78);
}

/*--------------------------------------------------------------------------
   Calculate Your Capital — separate tool callout
   -------------------------------------------------------------------------- */

.calculator-section {
  padding: 10px 0 70px;
}

/* Main calculator callout */
.calculator-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 40px;
  background: rgba(240, 156, 58, 0.12);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
}

/* Left side */
.calculator-card .eyebrow {
  color: var(--orange);
}

.calculator-card h2 {
  margin-bottom: 14px;
}

.calculator-card p.lead {
  max-width: 48ch;
  margin-bottom: 24px;
  color: var(--dark);
}

/* --------------------------------------------------------------------------
   Example result preview
   -------------------------------------------------------------------------- */

.calc-preview {
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Example result label */
.calc-preview .eyebrow {
  margin-bottom: 12px;
  color: var(--grey);
  font-size: 0.7rem;
}

/* Meal name + description */
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-heading span:first-child {
  color: var(--dark);
}

.preview-heading span:last-child {
  color: var(--grey);
  font-size: 0.7rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Mini product table
   -------------------------------------------------------------------------- */

.preview-table {
  overflow: hidden;
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  background: var(--white);
}

/* Every row */
/*.preview-row {
  display: grid;
  grid-template-columns: 1.5fr 0.45fr 0.7fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey);
  font-size: 0.7rem;
}*/

.preview-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 0.45fr)
    minmax(0, 0.7fr)
    minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey);
  font-size: 0.7rem;
}

/* Remove border from the final row */
.preview-row:last-child {
  border-bottom: 0;
}

/* Table heading */
.preview-header {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
}

/* Estimated total column */
.preview-row span:last-child {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
}

/* Keep the table heading white */
.preview-header span:last-child {
  color: var(--white);
}

/* More products indicator */
.preview-more {
  padding: 8px 10px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Total startup capital
   -------------------------------------------------------------------------- */

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 2px solid var(--dark);
  font-family: var(--font-display);
}

/* "Total startup capital" label */
.calc-total span:first-child {
  color: var(--grey);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Amount */
.calc-total strong {
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Calculator section — mobile/tablet
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .calculator-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   Calculator section — mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .calculator-section {
    padding-bottom: 50px;
  }

  .calculator-card {
    padding: 26px;
  }

  .calc-preview {
    padding: 16px;
  }

  /*.preview-row {
    grid-template-columns: 1.35fr 0.4fr 0.65fr 0.9fr;
    gap: 5px;
    padding: 8px 7px;
    font-size: 0.62rem;
  }
  */
.preview-row {
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, 0.4fr)
    minmax(0, 0.65fr)
    minmax(0, 0.9fr);
}

  .preview-header {
    font-size: 0.57rem;
  }

  .preview-heading {
    font-size: 0.75rem;
  }

  .preview-heading span:last-child {
    font-size: 0.62rem;
  }

  .calc-total span:first-child {
    font-size: 0.68rem;
  }

  .calc-total strong {
    font-size: 1.15rem;
  }
}



/*--------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 10px 0 70px;
  
}

.faq-list {
  max-width: 780px;
  
}

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.4em;
  line-height: 1;
}

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

.faq-item .faq-answer {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 18px 0 0;
  color: var(--grey);
  font-size: 0.75rem;
}

.breadcrumbs a {
  color: var(--grey);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--dark);
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Module pages
   -------------------------------------------------------------------------- */
.module-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding: 28px 0 72px;
}

.topic-nav {
  position: sticky;
  top: 94px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.topic-nav h2 {
  margin: 0;
  padding: 10px 12px 4px;
  color: var(--grey);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topic-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-nav a.topic-link,
.topic-nav button.topic-link {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.topic-nav a.topic-link:hover,
.topic-nav button.topic-link:hover {
  background: #f7f5f3;
}

.topic-nav a.topic-link.active,
.topic-nav button.topic-link[aria-current="true"] {
  background: rgba(31, 198, 82, 0.12);
  border-left-color: var(--lightgreen);
  font-weight: 700;
}

.module-main {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.module-header .eyebrow {
  margin-bottom: 6px;
}

.module-why {
  max-width: 60ch;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey);
  font-size: 1.125rem;
}

.topic-section {
  scroll-margin-top: 100px;
  padding: 8px 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--grey-light);
}

.topic-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.topic-section h3 {
  margin-bottom: 6px;
}

.topic-summary {
  margin-bottom: 18px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.topic-body p,
.topic-body ul {
  color: var(--dark);
}

.topic-body ul {
  padding-left: 1.2em;
}

.topic-body li {
  margin-bottom: 0.5em;
}

.module-footer-actions,
.module-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--grey-light);
}

.module-footer-actions {
  justify-content: space-between;
}

.module-pager {
  justify-content: space-between;
}

.module-pager a {
  flex: 1 1 auto;
  text-decoration: none;
}

.module-pager .pager-label {
  display: block;
  margin-bottom: 2px;
  color: var(--grey);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Success Story
   -------------------------------------------------------------------------- */

.success-section {
  padding: 0 0 70px;
}

.success-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.success-content {
  padding: 36px;
}

.success-content .eyebrow {
  color: var(--green);
}

.success-content h2 {
  max-width: 18ch;
  margin-bottom: 14px;
}

.success-content p:not(.eyebrow) {
  max-width: 55ch;
  margin-bottom: 24px;
  color: var(--grey);
}

/* Placeholder area for the entrepreneur's photo */
.success-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  background: rgba(31, 198, 82, 0.10);
  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.8rem;
  box-shadow: var(--shadow-card);
}

.success-placeholder span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-placeholder strong {
  max-width: 15ch;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.success-placeholder small {
  margin-top: 4px;
  color: var(--grey);
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Success Story — responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .success-card {
    grid-template-columns: 1fr;
  }

  .success-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .success-section {
    padding-bottom: 50px;
  }

  .success-content {
    padding: 26px;
  }

  .success-content h2 {
    max-width: none;
  }

  .success-placeholder {
    min-height: 200px;
    padding: 26px;
  }
}

/*==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 60px;
  padding: 32px 0 18px;
  background: var(--dark);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Main footer
   -------------------------------------------------------------------------- */

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 28px;
}

/* --------------------------------------------------------------------------
   VUKA branding
   -------------------------------------------------------------------------- */

.footer-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: none;
}

.footer-logo-vuka {
  display: block;
  width: 125px;
  height: auto;
  flex-shrink: 0;
}

.footer-note {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer links
   -------------------------------------------------------------------------- */

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Bottom section
   -------------------------------------------------------------------------- */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Ubuntu Nexus */

.footer-creator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-ubuntu {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
}

.footer-credit-title {
  margin: 0 0 3px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-credit-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .site-footer {
    margin-top: 50px;
    padding: 30px 0 18px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }

  .footer-branding {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-copyright {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
  .site-footer {
    margin-top: 40px;
    padding: 28px 0 18px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-branding {
    grid-column: auto;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-logo-vuka {
    width: 100px;
  }

  .footer-note {
    font-size: 0.8rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom {
    gap: 16px;
  }

  .footer-logo-ubuntu {
    width: 52px;
    height: 52px;
  }
}

/* --------------------------------------------------------------------------
   Module PDF download
   -------------------------------------------------------------------------- */

.module-footer-actions {
  margin-top: 32px;
}

.module-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.module-download-note {
  margin: 8px 0 0;
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .module-download {
    width: 100%;
  }

  .module-download-note {
    max-width: 40ch;
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .calculator-card {
    grid-template-columns: 1fr;
  }

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

  .module-layout {
    grid-template-columns: 1fr;
  }

  .topic-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .ribbon-inner {
    min-height: 64px;
  }

  .nav-links,
  .nav-right .lang-select {
    display: none;
  }

  .nav-right.open {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 24px;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .nav-right.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nav-right.open .lang-select {
    display: inline-block;
  }

  .burger {
    display: block;
  }

  .hero {
    padding: 50px 0 44px;
  }

  .hero-card,
  .calculator-card,
  .module-main {
    padding: 26px;
  }

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

  .hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-stat {
  grid-column: auto;
}

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

  .module-card {
    min-height: 0;
  }

  .calculator-section,
  .modules-section,
  .faq-section {
    padding-bottom: 50px;
  }

  .calc-total strong {
    font-size: 1.15rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

    .module-pager {
    flex-direction: column;
  }

  .module-pager a,
  .module-pager .btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}

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

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

/* ==========================================================================
   Checklist section
   ========================================================================== */

.checklist-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.checklist-intro .lead {
  margin: 0 0 24px;
  color: var(--grey);
  max-width: 60ch;
}

.checklist-progress-wrap { margin-bottom: 22px; }

.checklist-progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 8px;
}

.checklist-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--background);
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  overflow: hidden;
}

.checklist-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--lime));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.checklist-list,
.checklist-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.checklist-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.checklist-item label:hover { background: var(--background); }

.checklist-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checklist-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--grey-light);
  border-radius: 6px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checklist-input:checked + .checklist-box {
  background: var(--green);
  border-color: var(--green);
}

.checklist-input:checked + .checklist-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-input:focus-visible + .checklist-box {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.checklist-text {
  font-size: 1rem;
  color: var(--dark);
}

.checklist-input:checked ~ .checklist-text {
  color: var(--grey);
  text-decoration: line-through;
}

.checklist-message {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(31, 198, 82, 0.12);
  border: 1px solid var(--green);
  color: #1a6b32;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.checklist-message.is-visible { display: flex; }

/* Reflection textbox */
.reflection-field { margin-bottom: 18px; }

.reflection-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 8px;
}

.reflection-textarea {
  display: block !important;
  width: 100% !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: var(--dark) !important;
  background: var(--white) !important;
  border: 1.5px solid var(--grey-light) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  resize: vertical !important;
  min-height: 90px !important;
}

.reflection-textarea:focus-visible {
  outline: 3px solid var(--blue) !important;
  outline-offset: 2px !important;
  border-color: var(--dark) !important;
}

.tip-box {
  background: var(--background);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
  color: var(--grey);
}

.challenge-box {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 30px 0;
  box-shadow: var(--shadow-card);
}

.challenge-box .eyebrow {
  color: var(--green);
}

.challenge-box h2 {
  margin-bottom: 14px;
}

.challenge-box .lead {
  max-width: 60ch;
  margin-bottom: 24px;
  color: var(--grey);
}

#profit-calculator label {
  display: block;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
}

#profit-calculator input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
}

#profit-calculator input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--dark);
}

.result {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(31, 198, 82, 0.12);
  border: 1px solid var(--green);
  color: var(--dark);
  font-weight: 600;
}

.hidden {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(240, 156, 58, 0.15);
  border: 1px solid var(--orange);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}

.small {
  font-size: 0.85rem;
  color: var(--grey);
}

/* Journey 02 — forms inside challenge boxes */
.challenge-box form label {
  display: block;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
}

.challenge-box form input[type="text"],
.challenge-box form input[type="number"],
.challenge-box form input[type="date"],
.challenge-box form select,
.challenge-box form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
}

.challenge-box form textarea {
  resize: vertical;
}

.challenge-box form input:focus-visible,
.challenge-box form select:focus-visible,
.challenge-box form textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--dark);
}

.challenge-box form button {
  margin-top: 8px;
}

/* Checkbox rows (bank tasks) */
.challenge-box form label > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-weight: 400;
  color: var(--dark);
}

.challenge-box form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

/* Transaction rows (Proof Keeper) */
.transaction-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .transaction-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Bank requirements list */
#bank-steps {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--grey-light);
}

#bank-steps p strong {
  color: var(--dark);
}

#bank-requirements {
  margin: 8px 0 16px;
  padding-left: 1.2em;
  color: var(--grey);
}

#bank-requirements li {
  margin-bottom: 6px;
}

/* Badge sections that appear after completing a challenge */
.badge-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--grey-light);
}

.badge-section p {
  margin-bottom: 10px;
  color: var(--grey);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Dropdowns — consistent custom arrow across the site
   ========================================================================== */

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23064846' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

/* Nav language switcher — white arrow to match its dark-on-white pill */
.lang-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23064846' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px;
}

/* Selects inside challenge boxes/forms */
.challenge-box form select,
#bank-choice,
#tax-action-select,
#compliance-where,
#compliance-what,
#compliance-setup,
.tx-type {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  padding-right: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--white);
}

.challenge-box form select:focus-visible,
#bank-choice:focus-visible,
.tx-type:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--dark);
}

select::-ms-expand {
  display: none;
}

/* ==========================================================================
   Journey 03 — "Tax Tracker": Build Your 12-Month Sales Picture
   ========================================================================== */

/* Actual-records / estimate toggle */
.records-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  background: var(--background);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-pill);
}

.records-toggle .toggle-option {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--grey);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.records-toggle .toggle-option.active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(49, 153, 102, 0.25);
}

.records-toggle .toggle-option:not(.active):hover {
  background: rgba(31, 198, 82, 0.12);
  color: var(--dark);
}

/* Twelve-month input grid */
.months-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin-bottom: 22px;
}

.month-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--background);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
}

.month-row label[for^="month-"] {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
}

.month-row .month-input {
  margin: 0;
}

.month-row .not-trading-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--dark);
}

.month-row .not-trading-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.month-row.is-not-trading .month-input {
  opacity: 0.5;
}

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

/* Running totals */
.sales-total-wrap {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--background);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
}

.sales-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
}

.sales-total-row + .sales-total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--grey-light);
}

.sales-total-row span {
  color: var(--grey);
  font-size: 0.8125rem;
  font-weight: 600;
}

.sales-total-row strong {
  color: var(--dark);
  font-size: 1.05rem;
}

/* VAT threshold progress bar re-uses .checklist-progress-bar/.checklist-progress-fill */
#vat-progress-fill.near-limit {
  background: linear-gradient(90deg, var(--orange), #f2a655);
}

#vat-progress-fill.over-limit {
  background: linear-gradient(90deg, #d64a4a, #f2793a);
}

.result.result-warning {
  background: rgba(240, 156, 58, 0.15);
  border-color: var(--orange);
}

.result.result-alert {
  background: rgba(214, 74, 74, 0.12);
  border-color: #d64a4a;
}

/* ==========================================================================
   Journey 03 — "Tax Smart": Pick Your Tax Next Step
   ========================================================================== */

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 18px;
}

.radio-row label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: var(--dark) !important;
}

.radio-row input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.confirm-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: var(--grey) !important;
}

.confirm-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}

/* ==========================================================================
   Journey 03 — "Compliance Mapped": Make Your Compliance Map
   ========================================================================== */

.compliance-map-summary {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(6, 72, 70, 0.2);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
}

.compliance-map-list {
  margin: 0;
  padding-left: 1.2em;
  font-weight: 400;
}

.compliance-map-list li {
  margin-bottom: 8px;
  color: var(--dark);
}

.compliance-map-list li:last-child {
  margin-bottom: 0;
}

/* Colour picker (Journey 07 — Look Locked In) */
.color-picker-field {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

.color-picker-item {
  flex: 1 1 200px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.color-picker-row input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 2px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-picker-row input[type="color"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.color-swatch-value {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
}

/* Multi-select quiz (Journey 08 — Yoco Sign-Up Checklist) */
.quiz-question {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
}

.quiz-instruction {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--grey);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.quiz-option {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 400 !important;
  color: var(--dark) !important;
  transition: background 0.2s ease;
}

.quiz-option:hover {
  background: var(--background);
}

.quiz-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.quiz-option.correct-answer {
  background: rgba(31, 198, 82, 0.1);
}

.quiz-option.incorrect-answer {
  background: rgba(214, 74, 74, 0.1);
}

.result.result-success {
  background: rgba(31, 198, 82, 0.12);
  border-color: var(--green);
}

.result.result-retry {
  background: rgba(214, 74, 74, 0.1);
  border-color: #d64a4a;
}

/* ==========================================================================
   Journey 09 — "Find Your Funding Contact": example-answer table
   ========================================================================== */

.example-table {
  width: 100%;
  margin: 8px 0 4px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.example-table th,
.example-table td {
  padding: 10px 12px;
  border: 1px solid var(--grey-light);
  text-align: left;
  vertical-align: top;
}

.example-table th {
  background: var(--background);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark);
}

.funding-contact-form button {
  margin-top: 4px;
  margin-bottom: 20px;
}

.example-answer {
  margin-top: 20px;
}
/* ==========================================================================
   Shared form fields — any form inside .challenge-box or .checklist-card
   ========================================================================== */

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--dark);
}

.funding-contact-form button {
  margin-top: 4px;
}

/* ==========================================================================
   Journey 10 — requirement tables (Fair Employer, Deal Ready, Data Audit)
   ========================================================================== */

.requirement-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.requirement-table th,
.requirement-table td {
  padding: 10px 12px;
  border: 1px solid var(--grey-light);
  text-align: left;
  vertical-align: middle;
}

.requirement-table th {
  background: var(--background);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark);
  font-size: 0.8125rem;
}

.requirement-table td input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.requirement-table td input[type="text"],
.requirement-table td select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--dark);
}

.requirement-table-doc td:first-child,
.requirement-table-data td:first-child {
  font-weight: 600;
  color: var(--dark);
}

@media (max-width: 640px) {
  .requirement-table {
    font-size: 0.8rem;
  }
  .requirement-table th,
  .requirement-table td {
    padding: 8px;
  }
}

/* ==========================================================================
   Journey 04 — label, training, product-risk tables
   ========================================================================== */

.requirement-table-label td:first-child,
.requirement-table-training td:nth-child(1),
.requirement-table-product td:first-child {
  font-weight: 600;
  color: var(--dark);
}

.requirement-table td input[type="date"],
.requirement-table td input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--dark);
}

/* ==========================================================================
   Journey 05 — FIFO, par level, sell-out, and ordering tables
   ========================================================================== */

.requirement-table-fifo td:first-child,
.requirement-table-par td:first-child,
.requirement-table-sellout td:first-child,
.requirement-table-order td:first-child {
  font-weight: 600;
  color: var(--dark);
}

.requirement-table td input[type="time"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--dark);
}

/* ==========================================================================
   Journey 06 — checklist, catalogue, and idea-bank tables
   ========================================================================== */

.requirement-table-checklist td:first-child,
.requirement-table-catalogue td:first-child,
.requirement-table-ideas td:first-child {
  font-weight: 400;
}

.requirement-table-checklist td:first-child {
  color: var(--dark);
}

.module-pager .btn {
  justify-content: flex-start;
  text-align: left;
}

/* ==========================================================================
   Meet the Team page
   ========================================================================== */

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

.team-card {
  align-items: center;
  text-align: center;
}

.team-photo-placeholder {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--background);
  border: 2px dashed var(--grey-light);
  font-size: 2.5rem;
}

.team-card h3 {
  margin-bottom: 2px;
}

.team-role {
  margin-bottom: 10px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-card p:not(.team-role) {
  color: var(--grey);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.team-photo-placeholder {
  overflow: hidden; /* keeps the image clipped to the circle */
}

.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crops to fill the circle without distortion */
  object-position: center;
  border-radius: 50%;
  display: block;
}

/* ==========================================================================
   Page completion: congratulatory modal + download-responses button
   ========================================================================== */

.page-complete-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 72, 70, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-complete-overlay.is-visible {
  opacity: 1;
}

.page-complete-modal {
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s ease;
}

.page-complete-overlay.is-visible .page-complete-modal {
  transform: translateY(0) scale(1);
}

.page-complete-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.page-complete-modal h2 {
  margin-bottom: 10px;
  color: var(--dark);
}

.page-complete-modal p {
  margin-bottom: 24px;
  color: var(--grey);
  font-size: 1.0625rem;
}

.download-responses-wrap {
  margin-top: 36px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.download-responses-note {
  margin-bottom: 16px;
  color: var(--grey);
  font-size: 0.9375rem;
}

.page-complete-badge-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.page-complete-badge-list li {
  padding: 10px 16px;
  background: rgba(240, 156, 58, 0.12);
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}
/* error message styling */
.result-error {
  background: rgba(214, 74, 74, 0.12);
  border-color: #d64a4a;
  color: var(--dark);
}

.checklist-message.message-error {
  background: rgba(214, 74, 74, 0.12);
  border: 1px solid #d64a4a;
  color: var(--dark);
}

/* ==========================================================
   MOBILE OVERFLOW FIX
   Prevent content from extending beyond the viewport
   ========================================================== */

.module-main,
.topic-section,
.challenge-box,
.module-layout {
    min-width: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    max-width: 100%;
}

th,
td {
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {

    .module-main {
        padding: 20px;
    }

    .module-main .btn {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .challenge-box {
        padding: 20px;
    }

    .requirement-table,
    .example-table {
        table-layout: fixed;
        font-size: 0.8rem;
    }

    .requirement-table th,
    .requirement-table td,
    .example-table th,
    .example-table td {
        padding: 7px;
        overflow-wrap: anywhere;
    }
}

/* ==========================================================================
   FINAL MOBILE RESPONSIVENESS FIXES
   ========================================================================== */

/* Prevent grid/flex children from forcing their parent wider */
.hero-grid > *,
.about-grid > *,
.calculator-card > *,
.success-card > *,
.footer-main > *,
.footer-bottom > *,
.module-layout > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Mobile — general
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {

  /* Keep the page within the viewport */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  /* ------------------------------------------------------------------------
     Navigation
     ------------------------------------------------------------------------ */

  .ribbon-inner {
    gap: 12px;
  }

  .logo-img {
    height: 52px;
    max-width: 140px;
  }

  /* ------------------------------------------------------------------------
     Hero
     ------------------------------------------------------------------------ */

  .hero-grid {
    width: 100%;
    min-width: 0;
    padding-left: 15px;
    padding-right: 15px;
  
  }
  
  .hero h1 {
    font-size: 2.25rem;
    overflow-wrap: break-word;
    
  }

  .hero p.lead {
    max-width: 100%;
    
  }

  /* Stack hero buttons properly */
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* ------------------------------------------------------------------------
     Hero statistics
     ------------------------------------------------------------------------ */

  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stat {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-stat strong,
  .hero-stat span {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* ------------------------------------------------------------------------
     Module cards
     ------------------------------------------------------------------------ */

  .module-card {
    min-width: 0;
  }

  .module-card h3,
  .module-card p {
    overflow-wrap: anywhere;
  }

  /* ------------------------------------------------------------------------
     Calculator
     ------------------------------------------------------------------------ */

  .calculator-card {
    width: 100%;
    min-width: 0;
    padding: 20px;
  }

  .calc-preview {
    width: 100%;
    min-width: 0;
    padding: 14px;
  }

  /*
     Force the calculator table columns to actually shrink.
     minmax(0, ...) is important here.
  */
  .preview-row {
    width: 100%;
    min-width: 0;
    grid-template-columns:
      minmax(0, 1.35fr)
      minmax(0, 0.4fr)
      minmax(0, 0.65fr)
      minmax(0, 0.9fr);
    gap: 5px;
    padding: 8px 6px;
  }

  .preview-row span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .preview-header span {
    overflow-wrap: anywhere;
  }

  .preview-heading {
    min-width: 0;
  }

  .preview-heading span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .calc-total {
    min-width: 0;
    align-items: flex-start;
  }

  .calc-total span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .calc-total strong {
    flex-shrink: 0;
    font-size: 1.15rem;
  }

  /* ------------------------------------------------------------------------
     FAQ
     ------------------------------------------------------------------------ */

  .faq-item summary {
    min-width: 0;
    gap: 12px;
  }

  .faq-item summary {
    overflow-wrap: anywhere;
  }

  /* ------------------------------------------------------------------------
     Success story
     ------------------------------------------------------------------------ */

  .success-card {
    width: 100%;
    min-width: 0;
  }

  .success-content,
  .success-placeholder {
    min-width: 0;
  }

  .success-placeholder strong,
  .success-placeholder small {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* ------------------------------------------------------------------------
     Footer
     ------------------------------------------------------------------------ */

  .footer-branding {
    min-width: 0;
  }

  .footer-note {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-links a {
    overflow-wrap: anywhere;
  }

  /* ------------------------------------------------------------------------
     Tables
     ------------------------------------------------------------------------ */

  .example-table,
  .requirement-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .example-table th,
  .example-table td,
  .requirement-table th,
  .requirement-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ------------------------------------------------------------------------
     Forms
     ------------------------------------------------------------------------ */

  .challenge-box,
  .checklist-card,
  .module-main {
    min-width: 0;
    max-width: 100%;
  }

  .challenge-box input,
  .challenge-box select,
  .challenge-box textarea,
  .form-field input,
  .form-field select,
  .form-field textarea {
    max-width: 100%;
    min-width: 0;
  }

   /* ------------------------------------------------------------------------
     checklists
       ------------------------------------------------------------------------ */
       
  .checklist-section .checklist-intro h2 {
    font-size: 1.2rem;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .challenge-box h2{
    font-size: 1.2rem;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .module-header h1{
    font-size: 2rem;
  }

  .reflection-section h2{
    font-size: 1.2rem;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .badge-section .badge{
    font-size: 0.75rem;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-wrap:break-word;
    word-break: normal;
  }

 
}

/* Completion pop-up: a long badge list must scroll instead of running off small screens */
.page-complete-modal {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 480px) {
  .page-complete-modal {
    padding: 28px 20px;
  }
}
