:root {
  --bg: #f7f7f2;
  --bg-soft: #eef3e9;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #122118;
  --muted: #59685f;
  --line: rgba(18, 33, 24, 0.1);
  --green-900: #102d1e;
  --green-800: #194b31;
  --green-700: #236640;
  --green-500: #2f8a52;
  --lime: #d8fb57;
  --lime-strong: #c7f130;
  --shadow: 0 24px 60px rgba(10, 22, 16, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 251, 87, 0.26), transparent 26%),
    linear-gradient(180deg, #f2f4eb 0%, #fbfbf8 20%, #f6f7f2 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--lime);
  color: #0d170f;
  border-radius: 999px;
}

.container {
  width: min(var(--container), calc(100% - clamp(1.5rem, 4vw, 4rem)));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.page-shell {
  padding-bottom: 5rem;
}

.section {
  padding: 5.5rem 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(17, 45, 30, 0.04), rgba(17, 45, 30, 0));
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-700);
}

h1,
h2,
h3 {
  line-height: 1.04;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.08rem, 1.3vw, 1.34rem);
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 0.95rem + 0.12vw, 1.06rem);
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.section-heading.left-aligned {
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

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

.hero-section {
  padding: 6rem 0 4rem;
}

.hero-grid,
.story-grid,
.split-layout,
.demo-split,
.jafbot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-grid > *,
.story-grid > *,
.split-layout > *,
.demo-split > *,
.jafbot-layout > * {
  min-width: 0;
}

.hero-copy {
  padding-right: 1rem;
}

.hero-copy h1 {
  max-width: 10.2ch;
}

.hero-text {
  font-size: clamp(1.02rem, 0.97rem + 0.4vw, 1.22rem);
  max-width: 640px;
}

.button-row,
.button-stack,
.centered-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button-row {
  margin-top: 2rem;
}

.hero-points,
.feature-list,
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-points li,
.quick-actions button,
.chip-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 45, 30, 0.06);
  color: var(--green-900);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.hero-visual,
.story-photo,
.demo-card,
.form-card,
.promo-panel,
.plan-card,
.service-card,
.mini-card,
.step-card,
.dashboard-panel,
.metric-card,
.testimonial-card,
.illustrated-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-visual {
  overflow: hidden;
  min-height: 520px;
}

.hero-visual img,
.story-photo img,
.story-image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual img {
  object-position: center 32%;
}

.auto-cards .mini-card,
.service-card,
.plan-card,
.promo-panel,
.dashboard-panel,
.illustrated-card {
  padding: 1.5rem;
}

.service-card,
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-card .btn,
.plan-card .btn {
  margin-top: auto;
  width: 100%;
  min-height: 3.45rem;
}

.mini-card p {
  color: var(--text);
  font-weight: 700;
  margin: 0;
}

.process-grid .step-card {
  padding: 1.5rem;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 800;
}

.demo-card,
.chat-window,
.chat-demo-shell,
.form-card,
.quick-actions-panel,
.dashboard-preview,
.final-cta-card,
.upload-placeholder {
  padding: 1.5rem;
}

.chat-window,
.chat-demo-shell,
.quick-actions-panel,
.dashboard-preview,
.final-cta-card,
.login-card,
.dashboard-page .metric-card,
.dashboard-page .dashboard-panel {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: #f5f9f4;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jafbot-eval-card {
  background: rgba(255, 255, 255, 0.9);
}

.jafbot-eval-shell {
  align-content: start;
}

.jafbot-eval-form {
  display: grid;
  gap: 1.15rem;
}

.jafbot-eval-form .button-row {
  margin-top: 0;
}

.jafbot-result-card {
  display: grid;
  gap: 1rem;
}

.jafbot-result-card[hidden] {
  display: none;
}

.jafbot-result-card .feature-list,
.jafbot-result-points {
  margin: 0;
}

.jafbot-result-card .feature-list li,
.jafbot-result-points li {
  color: var(--muted);
}

.jafbot-result-actions {
  margin-top: 0;
}

.chat-window p,
.chat-demo-shell p,
.quick-actions-panel p,
.dashboard-preview p,
.promo-panel.dark p,
.dashboard-page .metric-card span,
.dashboard-page .dashboard-panel p {
  color: rgba(245, 249, 244, 0.82);
}

.chat-bubble {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  margin-bottom: 0.8rem;
  max-width: 88%;
}

.chat-bubble.user {
  background: rgba(216, 251, 87, 0.2);
  margin-left: auto;
  color: #f8ffe3;
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.08);
}

.upload-placeholder {
  display: grid;
  gap: 0.35rem;
  border: 1px dashed rgba(216, 251, 87, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.full-width {
  margin-top: 1.5rem;
}

.notice,
.disclaimer {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(216, 251, 87, 0.18);
  color: var(--green-900);
  font-weight: 600;
}

.chat-demo-shell {
  display: grid;
  gap: 1rem;
}

.chat-header,
.wizard-actions,
.site-footer-top,
.footer-meta,
.brand-mark,
.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-log {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
}

.dashboard-preview,
.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat,
.metric-card {
  padding: 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-stat strong,
.metric-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.9rem;
  color: #ffffff;
}

.dashboard-large {
  grid-column: span 2;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-section .story-grid {
  align-items: stretch;
}

.story-photo {
  overflow: hidden;
  min-height: 420px;
}

.plan-grid.wide {
  align-items: start;
}

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

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

.plan-card h2,
.plan-card h3 {
  font-size: clamp(1.2rem, 0.95rem + 0.58vw, 1.46rem);
  line-height: 1.14;
  margin-bottom: 0.85rem;
  min-height: 2.85em;
  text-wrap: balance;
}

.plan-card ul {
  margin-bottom: 1.3rem;
}

.plan-grid.wide {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.3rem;
}

.plan-grid.wide > .plan-card {
  grid-column: span 4;
}

.plan-grid.wide > .plan-card:nth-child(4),
.plan-grid.wide > .plan-card:nth-child(5) {
  grid-column: span 6;
}

.services-cta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.plan-card ul,
.feature-list li,
.schedule-list li,
.prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li,
.feature-list li,
.schedule-list li {
  padding: 0.55rem 0 0.55rem 1.25rem;
  position: relative;
  color: var(--muted);
}

.plan-card li::before,
.feature-list li::before,
.schedule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime-strong);
}

.promo-panel,
.promo-panel.dark {
  min-height: 100%;
}

.promo-panel.dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: #f5f9f4;
}

.testimonial-card span {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(35, 102, 64, 0.1);
  color: var(--green-700);
  font-weight: 700;
}

.final-cta {
  padding-top: 1rem;
}

.final-cta-card {
  border-radius: 32px;
  background: linear-gradient(135deg, var(--green-900), #1d5d3c);
  color: #f5f9f4;
}

.final-cta-card p,
.final-cta-card h2 {
  color: inherit;
}

.page-hero {
  padding: 4.5rem 0 1rem;
}

.page-hero.compact {
  padding-bottom: 0;
}

.image-hero {
  background:
    linear-gradient(180deg, rgba(16, 45, 30, 0.72), rgba(16, 45, 30, 0.38)),
    url("../images/hero-cycling-desert.jpg") center/cover no-repeat;
  color: #ffffff;
}

.image-hero p,
.image-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.progress-shell {
  margin-bottom: 2rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 33, 24, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--lime));
}

.onboarding-form,
.form-card {
  display: grid;
  gap: 1.25rem;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.form-grid,
.option-grid,
.checkbox-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(18, 33, 24, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(216, 251, 87, 0.6);
  outline-offset: 2px;
}

.result-card,
.faq-list details {
  padding: 1.4rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(18, 33, 24, 0.08);
}

.wizard-actions #submit-onboarding {
  display: none;
}

.wizard-actions.is-final #next-step {
  display: none;
}

.wizard-actions.is-final #submit-onboarding {
  display: inline-flex;
}

.quick-actions-panel,
.quick-actions,
.faq-list,
.button-stack,
.story-image-stack,
.timeline-list {
  display: grid;
  gap: 1rem;
}

.quick-actions button {
  text-align: left;
  color: #f5f9f4;
  background: rgba(255, 255, 255, 0.08);
}

.story-timeline {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.story-image-stack img {
  border-radius: 28px;
  min-height: 280px;
  object-fit: cover;
}

.story-image-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-image-stack img:first-child {
  grid-column: span 2;
  min-height: 360px;
}

.timeline-list article h2 {
  font-size: clamp(1.25rem, 0.95rem + 0.7vw, 1.6rem);
}

.timeline-intro {
  margin-bottom: 2rem;
}

.timeline-list article {
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.timeline-list article:last-child {
  border-bottom: 0;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.login-shell {
  padding-top: 4rem;
}

.login-card {
  max-width: 520px;
  margin: 0 auto;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inline-check input {
  width: auto;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.dashboard-page .dashboard-panel {
  grid-column: span 2;
}

.dashboard-page .metric-card {
  min-height: 150px;
}

.dashboard-page .metric-card span {
  display: block;
}

.dashboard-page .dashboard-panel h2,
.chat-demo-shell h2,
.quick-actions-panel h2,
.promo-panel.dark h2 {
  color: #ffffff;
}

.form-message {
  min-height: 1.4rem;
  color: var(--green-700);
  font-weight: 700;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.72rem 0;
  background: linear-gradient(135deg, rgba(13, 36, 24, 0.96), rgba(27, 79, 49, 0.94));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem 2.35rem;
}

.brand-mark {
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark img {
  width: clamp(92px, 7.4vw, 108px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
}

.site-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 1.6vw, 2rem);
  min-width: 0;
}

.site-nav {
  min-width: 0;
}

.site-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-nav a,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 0.88rem;
  border-radius: 999px;
  color: rgba(245, 249, 244, 0.84);
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(0.84rem, 0.78rem + 0.18vw, 0.94rem);
  line-height: 1;
}

.site-nav a.active,
.site-nav a:hover,
.nav-dropdown-trigger.active,
.nav-item-services:hover > .nav-dropdown-trigger,
.nav-item-services:focus-within > .nav-dropdown-trigger {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.header-actions .btn {
  min-height: 3rem;
  font-size: 0.9rem;
  padding-inline: 1.15rem;
}

.nav-item-services {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  padding: 0.6rem;
  border-radius: 22px;
  background: rgba(12, 31, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  display: grid;
  gap: 0.3rem;
}

.nav-item-services:hover .nav-dropdown,
.nav-item-services:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown a {
  justify-content: flex-start;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  color: rgba(245, 249, 244, 0.86);
}

.nav-dropdown a.active,
.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.service-lines {
  display: grid;
  gap: 1.3rem;
}

.service-line {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.service-line h2 {
  font-size: clamp(1.45rem, 1.1rem + 0.9vw, 2rem);
  margin-bottom: 0.8rem;
}

.service-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.service-pill-list span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(18, 33, 24, 0.05);
  color: var(--green-900);
  font-weight: 700;
}

.mentoria-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.mentoria-panel {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  min-width: 0;
}

.history-hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.history-hero-card .story-photo {
  min-height: 360px;
}

.story-highlight-note {
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 4rem 0 2.5rem;
  background: #0f261a;
  color: #eff7ef;
}

.site-footer a,
.site-footer p {
  color: rgba(239, 247, 239, 0.78);
}

.site-footer-top {
  align-items: start;
  margin-bottom: 2rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.6rem 1.2rem;
}

.footer-meta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
