:root {
  --brand: #003b1e;
  --teal: #429692;
  --ivory: #faf9f6;
  --mint: #e7f3f1;
  --mint-teal: #6B9088;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

.page-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(66, 150, 146, 0.08), transparent 45%),
    radial-gradient(circle at 85% 6%, rgba(0, 59, 30, 0.07), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(231, 243, 241, 0.5), transparent 55%);
}

.hero-grad {
  background: linear-gradient(to bottom, #faf9f6, #ffffff);
}

  /* Mobile-only: lift boxes one-by-one on scroll (small screens) */
  @media (max-width: 600px) {
    .lift-on-scroll {
      opacity: 0;
      transform: translateY(12px);
      transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease, box-shadow 320ms ease;
      will-change: transform, opacity;
    }

    .lift-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
      box-shadow: 0 18px 36px rgba(12, 74, 44, 0.08);
    }

    /* Slight stagger helper when many items are in one viewport (keeps layout smooth) */
    .lift-on-scroll[data-delay='1'] { transition-delay: 0.08s; }
    .lift-on-scroll[data-delay='2'] { transition-delay: 0.14s; }
    .lift-on-scroll[data-delay='3'] { transition-delay: 0.22s; }
  }

.hero-pro {
  background:
    radial-gradient(circle at 20% 18%, rgba(197, 234, 223, 0.3), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(183, 224, 212, 0.24), transparent 36%),
    linear-gradient(160deg, #f4fbf8 0%, #f9fdfa 45%, #ffffff 100%);
}

.hero-orb {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.hero-orb-left {
  left: -7rem;
  top: 3rem;
  height: 15rem;
  width: 15rem;
  background: radial-gradient(circle, rgba(66, 150, 146, 0.16), rgba(66, 150, 146, 0));
}

.hero-orb-right {
  right: -8rem;
  bottom: 0;
  height: 17rem;
  width: 17rem;
  background: radial-gradient(circle, rgba(0, 59, 30, 0.12), rgba(0, 59, 30, 0));
}

.hero-metric-card {
  border: 1px solid rgba(193, 222, 214, 0.7);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(245, 252, 249, 0.96));
  box-shadow: 0 16px 36px rgba(12, 74, 44, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.header-glass {
  background:
    linear-gradient(120deg, rgba(217, 239, 233, 0.78), rgba(246, 253, 250, 0.76)),
    rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 8px 24px rgba(0, 59, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.header-shell {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
  min-height: 4.6rem;
  border: 1px solid rgba(66, 150, 146, 0.2);
  border-radius: 1.15rem;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.88), rgba(236, 247, 243, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(0, 59, 30, 0.08);
}

.logo-badge {
  border: 1px solid rgba(66, 150, 146, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(229, 245, 240, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 16px rgba(0, 59, 30, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.logo-img {
  height: 2.1rem;
  width: auto;
  max-width: 10.2rem;
  object-fit: contain;
}

/* Footer logo sizing */
.footer-logo {
  height: 1.85rem;
  width: auto;
  object-fit: contain;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(66, 150, 146, 0.45);
  background: rgba(231, 243, 241, 0.95);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.52rem;
  line-height: 1;
}

.logo-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 150, 146, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 14px 24px rgba(0, 59, 30, 0.14);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  position: relative;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-pill::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(66, 150, 146, 0.85);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-pill:hover {
  color: var(--brand);
  background-color: rgba(231, 243, 241, 0.88);
  border-color: rgba(66, 150, 146, 0.36);
  transform: translateY(-1px);
}

.nav-pill:hover::after {
  transform: scaleX(1);
}

.mobile-nav-link {
  display: block;
  border-radius: 0.8rem;
  padding: 0.65rem 0.75rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 180ms ease, color 180ms ease;
}

.mobile-nav-link:hover {
  background: rgba(231, 243, 241, 0.9);
  color: var(--brand);
}

.timer-section {
  background:
    radial-gradient(circle at 14% 40%, rgba(213, 236, 228, 0.44), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(230, 243, 238, 0.75), transparent 38%),
    linear-gradient(180deg, rgba(250, 249, 246, 0.96), #ffffff);
}

.timer-tool-card {
  border: 1px solid rgba(210, 229, 223, 0.95);
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(249, 253, 251, 0.96));
  box-shadow: 0 14px 34px rgba(8, 63, 37, 0.1);
  overflow: hidden;
}

.timer-layout > * {
  min-width: 0;
}

.timer-display {
  font-size: clamp(4.5rem, 8vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.focus-profile-select {
  min-width: 10.8rem;
  max-width: 100%;
}

.timer-presets-row {
  align-items: center;
}

.timer-profile-row {
  justify-content: flex-start;
}

.timer-actions-row {
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.timer-status-row {
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  position: relative;
  z-index: 1;
}

.timer-status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.timer-mini-card {
  line-height: 1.35;
}

.timer-history-scroll {
  max-height: 8.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.timer-history-scroll::-webkit-scrollbar {
  width: 6px;
}

.timer-history-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.35);
}

.benefits-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 250, 247, 0.7), transparent 50%),
    linear-gradient(180deg, rgba(250, 249, 246, 0.7), rgba(255, 255, 255, 0.95));
}

.benefit-card {
  border-top: 2px solid rgba(66, 150, 146, 0.42);
  border-color: rgba(229, 231, 235, 0.78);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.benefit-card-featured {
  transform: scale(1.02);
  border-top-color: rgba(0, 59, 30, 0.62);
}

.benefit-icon-wrap {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(231, 243, 241, 0.95);
  color: var(--teal);
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.benefit-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.benefit-proof {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(31, 41, 55, 0.14);
  border-color: rgba(66, 150, 146, 0.28);
}

.benefit-card:hover .benefit-icon-wrap {
  background: rgba(66, 150, 146, 0.14);
  color: var(--brand);
  box-shadow: 0 0 0 4px rgba(66, 150, 146, 0.08);
}

.tool-card {
  border-top: 2px solid rgba(66, 150, 146, 0.3);
  border-color: rgba(229, 231, 235, 0.78);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(31, 41, 55, 0.14);
  border-color: rgba(66, 150, 146, 0.22);
}

.tool-card-featured {
  transform: scale(1.02);
  border-top-color: rgba(0, 59, 30, 0.58);
}

.tool-icon-wrap {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(231, 243, 241, 0.95);
  color: var(--teal);
  transition: background-color 200ms ease, color 200ms ease;
}

.tool-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.tool-card:hover .tool-icon-wrap {
  background: rgba(66, 150, 146, 0.14);
  color: var(--brand);
}

.tool-cta {
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 0.9rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tool-cta:hover {
  transform: translateY(-1px);
}

.tool-cta-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 59, 30, 0.2);
}

.tool-cta-primary:hover {
  background: #0e5a3b;
}

.tool-cta-secondary {
  background: var(--teal);
  color: #ffffff;
}

.tool-cta-secondary:hover {
  background: #337f7c;
}

.tool-cta-neutral {
  background: #ffffff;
  border-color: rgba(66, 150, 146, 0.32);
  color: var(--brand);
}

.tool-cta-neutral:hover {
  border-color: rgba(66, 150, 146, 0.5);
  background: rgba(231, 243, 241, 0.6);
}

.dashboard-launch {
  background:
    radial-gradient(circle at 12% 8%, rgba(210, 236, 227, 0.6), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(0, 59, 30, 0.12), transparent 38%),
    linear-gradient(165deg, #e8f4f1 0%, #f4faf8 48%, #ffffff 100%);
}

.dashboard-kicker {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(66, 150, 146, 0.36);
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.32rem 0.7rem;
  text-transform: uppercase;
}

.dashboard-metric {
  border-color: rgba(229, 231, 235, 0.75);
}

.dashboard-shots {
  min-height: 24rem;
  position: relative;
  display: block;
}

.dashboard-shot {
  border: 1px solid rgba(66, 150, 146, 0.2);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 250, 0.98));
  box-shadow: 0 16px 46px rgba(0, 59, 30, 0.16);
  overflow: hidden;
  position: absolute;
  transform: translateY(0) scale(0.995) rotate(0deg);
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms ease, border-color 220ms ease, opacity 320ms ease;
  will-change: transform, opacity;
  width: min(100%, 28rem);
}

.dashboard-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dashboard-shot-a {
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 59, 30, 0.12);
}

.dashboard-shot-b {
  top: 8.5rem;
  left: 9rem;
  z-index: 3;
  transform: translateY(0) rotate(-1.8deg) scale(0.995);
  box-shadow: 0 30px 60px rgba(0, 59, 30, 0.16);
}


.dashboard-shot img {
  display: block;
  width: 100%;
}

.dashboard-shot:hover {
  border-color: rgba(66, 150, 146, 0.34);
  box-shadow: 0 34px 72px rgba(0, 59, 30, 0.22);
  transform: translateY(-8px) scale(1.02) rotate(0deg);
}

/* When a shot is explicitly raised (e.g. tapped on mobile) bring it fully forward */
.dashboard-shot.raised {
  z-index: 99 !important;
  transform: translateY(-12px) scale(1.04) rotate(0deg) !important;
  box-shadow: 0 44px 88px rgba(0, 59, 30, 0.26) !important;
  border-color: rgba(66,150,146,0.42) !important;
}

/* Entrance + layered reveal for desktop */
.dashboard-shots.fade-up .dashboard-shot {
  opacity: 0;
  transform: translateY(18px) scale(0.995) rotate(0deg);
}

.dashboard-shots.fade-up.is-visible .dashboard-shot-a {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  transition-delay: 120ms;
}

.dashboard-shots.fade-up.is-visible .dashboard-shot-b {
  opacity: 1;
  transform: translateY(6px) rotate(-1.8deg) scale(0.995);
  transition-delay: 220ms;
}

.timer-preset {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #ffffff;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  transition: all 180ms ease;
}

.timer-preset:hover {
  border-color: rgba(66, 150, 146, 0.45);
  color: var(--brand);
  background: rgba(231, 243, 241, 0.65);
}

.timer-preset.is-active {
  border-color: rgba(0, 59, 30, 0.45);
  background: rgba(0, 59, 30, 0.08);
  color: var(--brand);
}

.timer-action {
  border-radius: 0.8rem;
  height: 2.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 1rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.timer-action:hover {
  transform: translateY(-1px);
}

.timer-action-start {
  border: 1px solid transparent;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 59, 30, 0.24);
}

.timer-action-start:hover {
  background: #0e5a3b;
}

.timer-action-pause {
  border: 1px solid rgba(66, 150, 146, 0.34);
  background: rgba(66, 150, 146, 0.84);
  color: #ffffff;
}

.timer-action-pause:hover {
  background: rgba(51, 127, 124, 0.9);
}

.timer-action-reset {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.timer-action-reset:hover {
  border-color: #cfd6de;
  background: #f9fafb;
}

.timer-visual-panel {
  min-width: 0;
  border-color: rgba(0, 0, 0, 0.06);
}

.timer-insights {
  max-width: 100%;
}

.timer-insights-top {
  align-items: center;
}

.tool-ring {
  --tool-progress: 100%;
  margin: 0 auto;
  position: relative;
  width: 8.4rem;
  height: 8.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--teal) var(--tool-progress), #d9ece8 0);
  transition: background 320ms ease, box-shadow 260ms ease;
}

.tool-ring::before {
  content: "";
  position: absolute;
  inset: 0.68rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(66, 150, 146, 0.16);
}

.tool-ring-value {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--teal);
}

.tool-ring-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.tool-ring-label {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-ring.is-running {
  box-shadow: 0 0 0 8px rgba(66, 150, 146, 0.08);
  animation: tool-ring-pulse 1.8s ease-in-out infinite;
}

@keyframes tool-ring-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(66, 150, 146, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(66, 150, 146, 0.05);
  }
}

@media (max-width: 767px) {
  .header-shell {
    border-radius: 0.95rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: 4.4rem;
  }

  .logo-badge {
    padding: 0.35rem 0.5rem;
  }

  .logo-img {
    height: 1.8rem;
    max-width: 8.6rem;
  }

  .beta-badge {
    font-size: 0.56rem;
    padding: 0.2rem 0.45rem;
  }

  .hero-orb-left {
    left: -8.5rem;
    top: 2rem;
    height: 13rem;
    width: 13rem;
  }

  .hero-orb-right {
    right: -9rem;
    height: 14rem;
    width: 14rem;
  }

  .timer-visual-panel {
    min-width: 0;
  }

  .timer-display {
    font-size: clamp(3.8rem, 16vw, 4.6rem);
  }

  .timer-insights-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .timer-profile-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .focus-profile-select {
    width: 100%;
    min-width: 0;
  }

  .timer-status-row {
    gap: 0.55rem 0.75rem;
  }

  .dashboard-shots {
    display: grid;
    gap: 1rem;
    justify-items: center;
    min-height: auto; /* avoid fixed tall min-height on small screens */
    padding-bottom: 0;
  }

  .dashboard-shot,
  .dashboard-shot-a,
  .dashboard-shot-b {
    position: relative;
    width: min(92%, 28rem);
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    box-shadow: 0 14px 32px rgba(0,0,0,0.06);
    margin: 0 auto;
  }

  /* Ensure figures don't add default bottom margin */
  .dashboard-shot {
    margin-bottom: 0;
  }

  /* Vertical overlapping stack for small screens to keep the premium look */
  .dashboard-shot-a {
    z-index: 3;
    margin-top: 0;
    transform: translateY(0) rotate(0deg) scale(1);
  }

  .dashboard-shot-b {
    z-index: 2;
    margin-top: -5.5rem;
    transform: rotate(-1.8deg) scale(0.995);
  }

  /* Mobile-only smooth auto-slide and improved tap animation */
  @media (max-width: 600px) {
    #dashboardShots {
      position: relative;
      display: block;
      height: auto;
      padding: 0;
    }

    .dashboard-shot {
      position: relative;
      margin: 0 auto 0.6rem;
      width: min(92%, 28rem);
      transform-origin: center center;
      transition: transform 680ms cubic-bezier(.2,.9,.25,1), box-shadow 520ms ease, opacity 520ms ease;
      will-change: transform, opacity;
    }

    /* Two visual states: a-forward (A prominent) and b-forward (B prominent) */
    #dashboardShots.state-a .dashboard-shot-a {
      transform: translateY(0) translateX(-4%) scale(1.02) rotate(0deg);
      z-index: 4;
      box-shadow: 0 30px 60px rgba(0,59,30,0.12);
      opacity: 1;
    }

    #dashboardShots.state-a .dashboard-shot-b {
      transform: translateY(8px) translateX(6%) scale(0.96) rotate(-2deg);
      z-index: 2;
      opacity: 0.9;
      filter: saturate(.92) brightness(.98);
    }

    #dashboardShots.state-b .dashboard-shot-b {
      transform: translateY(0) translateX(4%) scale(1.02) rotate(0deg);
      z-index: 4;
      box-shadow: 0 30px 60px rgba(0,59,30,0.12);
      opacity: 1;
    }

    #dashboardShots.state-b .dashboard-shot-a {
      transform: translateY(8px) translateX(-6%) scale(0.96) rotate(2deg);
      z-index: 2;
      opacity: 0.9;
      filter: saturate(.92) brightness(.98);
    }

    /* Make tapping raise fully (preserve raised class behavior) */
    .dashboard-shot.raised {
      transform: translateY(-8px) scale(1.06) !important;
      z-index: 99 !important;
      box-shadow: 0 44px 88px rgba(0, 59, 30, 0.22) !important;
    }
  }

  /* Compact punchline on mobile */
  .dashboard-punchline {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }


/* Compact punchline styling for desktop */
.dashboard-punchline {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
}

/* Prevent left metric card from stretching to match taller screenshot column */
.dashboard-preview-grid > .card-base {
  align-self: start;
}
  .benefit-card-featured {
    transform: none;
  }

  .tool-card-featured {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .timer-layout {
    grid-template-columns: 1fr;
  }
}

.card-base {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(31, 41, 55, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Polished cards for the "Built For Your Workflow" section */
.workflow-section .card-base {
  background: linear-gradient(180deg, #ffffff, #fbfffb);
  border: 1px solid rgba(229, 235, 231, 0.9);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 10px 26px rgba(17, 24, 22, 0.06);
  transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms ease, background 320ms ease;
  overflow: hidden;
}

/* Mobile-only micro-adjustments for screens <= 600px */
.mini-hero-card {
  display: none;
}

@media (max-width: 600px) {
  /* Headline: slightly increase line-height for breathing space */
  .hero-pro h1,
  .hero-grad h1 {
    line-height: 1.08 !important;
    /* Allow the headline to expand naturally on narrow viewports */
    max-width: none !important;
    white-space: normal !important;
  }

  /* Ensure hero content has a bit more horizontal padding on small screens (24px) */
  .hero-pro .mx-auto,
  .hero-grad .mx-auto {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Secondary (Explore Tools) — stronger border, subtle tint, arrow affordance */
  .hero-pro a[href="#tools"] {
    border-color: rgba(0, 59, 30, 0.22) !important;
    background: rgba(66, 150, 146, 0.06) !important;
    color: var(--text) !important;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  }

  .hero-pro a[href="#tools"]::after {
    content: '→';
    margin-left: 0.45rem;
    display: inline-block;
    transform: translateX(0);
    transition: transform 220ms ease;
    color: var(--text);
    opacity: 0.95;
  }

  .hero-pro a[href="#tools"]:hover::after {
    transform: translateX(4px);
  }

  /* Trust row: slightly larger, more vertical breathing so items can wrap into clearer two-line layout */
  .hero-pro .mt-5.flex.flex-wrap {
    font-size: 16px;
    line-height: 1.25;
    gap: 0.5rem 0.75rem;
  }

  /* Mobile hamburger: subtle shadow, press animation */
  #mobileMenuToggle {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  #mobileMenuToggle:active {
    transform: scale(0.98);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  }

  /* Mini analytics card shown only on mobile, below trust row */
  .mini-hero-card {
    display: block;
    margin-top: 0.75rem;
    border-radius: 1rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,252,250,0.98));
    border: 1px solid rgba(193, 222, 214, 0.7);
    box-shadow: 0 10px 28px rgba(0, 59, 30, 0.06);
  }
}
.workflow-section .card-base h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.workflow-section .card-base p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.workflow-section .card-base::before {
  /* subtle top accent stripe that inherits the border-top color */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(66,150,146,0.12), rgba(0,59,30,0.06));
  pointer-events: none;
}

.workflow-section .card-base:hover,
.workflow-section .card-base:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 26px 56px rgba(17,24,22,0.12);
}

/* Workflow-specific accents and chips */
.workflow-card {
  position: relative;
  cursor: pointer;
  border-top: 2px solid transparent;
}

.workflow-card.students { border-top-color: var(--teal); }
.workflow-card.developers { border-top-color: var(--brand); }
.workflow-card.professionals { border-top-color: var(--mint-teal); }

.workflow-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(66,150,146,0.08), rgba(231,243,241,0.05));
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.workflow-card.developers .workflow-icon { background: linear-gradient(180deg, rgba(0,59,30,0.06), rgba(231,243,241,0.02)); color: var(--brand); }
.workflow-card.professionals .workflow-icon { background: linear-gradient(180deg, rgba(107,144,136,0.08), rgba(107,144,136,0.03)); color: var(--mint-teal); }

.chips { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(66,150,146,0.06);
  color: var(--teal);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.workflow-card.developers .chip { background: rgba(0,59,30,0.06); color: var(--brand); }
.workflow-card.professionals .chip { background: rgba(107,144,136,0.09); color: var(--mint-teal); border: 1px solid rgba(107,144,136,0.12); }

.card-cta { position: absolute; right: 1rem; bottom: 1rem; display: inline-grid; place-items: center; color: rgba(31,41,55,0.6); }
.card-cta svg { transform: translateX(0); transition: transform 220ms ease, color 220ms ease; }
.workflow-card:hover .card-cta svg { transform: translateX(4px); color: var(--brand); }

/* Hover accent glow for active states */
.workflow-section .card-base:hover { box-shadow: 0 32px 80px rgba(17,24,22,0.14); }
.workflow-card.students:hover { box-shadow: 0 32px 80px rgba(66,150,146,0.08); }
.workflow-card.developers:hover { box-shadow: 0 32px 80px rgba(0,59,30,0.08); }
.workflow-card.professionals:hover { box-shadow: 0 32px 80px rgba(107,144,136,0.08); }

/* Make the existing border-t-4 accents pop more */
.workflow-section .border-teal {
  border-top-color: var(--teal) !important;
}
.workflow-section .border-brand {
  border-top-color: var(--brand) !important;
}
.workflow-section .border-\#6B9088 {
  border-top-color: #6B9088 !important;
}

/* small responsive adjustments */
@media (min-width: 768px) {
  .workflow-section .card-base {
    padding: 1.6rem;
  }
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(31, 41, 55, 0.14);
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timer-circle {
  position: relative;
  isolation: isolate;
}

.timer-circle::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: conic-gradient(var(--teal) 82%, #d9f2ef 0);
  z-index: 0;
}

.timer-circle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(66, 150, 146, 0.18);
  z-index: 1;
}

.timer-value {
  position: relative;
  z-index: 2;
  color: var(--teal);
}

.bar,
.bar-dashboard {
  display: block;
  height: var(--h);
  animation: chart-rise 850ms ease both;
}

.bar:nth-child(2),
.bar-dashboard:nth-child(2) {
  animation-delay: 90ms;
}

.bar:nth-child(3),
.bar-dashboard:nth-child(3) {
  animation-delay: 150ms;
}

.bar:nth-child(4),
.bar-dashboard:nth-child(4) {
  animation-delay: 210ms;
}

.bar:nth-child(5),
.bar-dashboard:nth-child(5) {
  animation-delay: 270ms;
}

@keyframes chart-rise {
  from {
    transform: scaleY(0.05);
    transform-origin: bottom;
    opacity: 0.45;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
