/* Get Started - one card, three pressable sections */
.gs-layout {
  max-width: 1120px;
  margin: 0 auto;
  text-align: start;
}

.gs-steps {
  display: flex;
  align-items: stretch;
  height: 30rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gs-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 1.25rem 1.2rem 1.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: start;
  cursor: pointer;
  color: inherit;
  font: inherit;
  overflow: hidden;
  transition:
    flex-grow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.gs-step + .gs-step {
  border-inline-start: 1px solid var(--card-border);
}

.gs-step:not(.is-active) {
  opacity: 0.72;
}

.gs-step.is-active {
  flex-grow: 1.48;
  opacity: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.1), transparent 62%);
}

.gs-step:focus {
  outline: none;
}

.gs-step:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(13, 148, 136, 0.28);
}

.gs-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 16.25rem;
  height: 16.25rem;
  min-height: 16.25rem;
  max-height: 16.25rem;
  padding: 0.7rem 0.6rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(13, 148, 136, 0.12), transparent 52%),
    var(--bg-alt);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.gs-mock {
  width: min(100%, 260px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
}

.gs-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 0.1rem;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.gs-mock-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-color);
}

.gs-pill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gs-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.65rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 600;
}

.gs-pill span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gs-pill i {
  color: var(--accent-color);
  width: 1rem;
  text-align: center;
}

.gs-status {
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-color);
  text-transform: uppercase;
}

.gs-note,
.gs-plan-card,
.gs-meal-name {
  text-align: center;
}

.gs-note {
  margin: 0.05rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gs-plan-card {
  margin-top: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(13, 148, 136, 0.28);
}

.gs-plan-card span {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.15rem;
}

.gs-plan-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-color);
}

.gs-meal-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
}

.gs-step.is-active .gs-pill {
  animation: gs-pill-in 0.5s ease both;
}
.gs-step.is-active .gs-pill:nth-child(2) { animation-delay: 0.12s; }
.gs-step.is-active .gs-pill:nth-child(3) { animation-delay: 0.24s; }

@keyframes gs-pill-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gs-goal.is-picked {
  border-color: rgba(13, 148, 136, 0.45);
  background: var(--accent-light);
}

.gs-scan-frame {
  flex: 0 0 4.35rem;
  height: 4.35rem;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 14px;
  border: 1.5px dashed rgba(13, 148, 136, 0.45);
  background:
    radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.18), transparent 55%),
    var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.5rem;
  position: relative;
}

.gs-scan-frame::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--accent-color);
  opacity: 0.3;
}

.gs-step.is-active .gs-scan-frame::after {
  opacity: 0.55;
  animation: gs-scan-line 2.2s ease-in-out infinite;
}

@keyframes gs-scan-line {
  0%, 100% { top: 18%; }
  50% { top: 72%; }
}

.gs-macros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.gs-macro {
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-align: start;
}

.gs-macro b {
  display: block;
  font-size: 0.92rem;
  color: var(--text-color);
}

.gs-macro span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.gs-logged {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
}

.gs-step-index {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.gs-step.is-active .gs-step-index {
  color: var(--accent-color);
}

.gs-step-copy {
  flex: 0 0 auto;
}

.gs-step-copy h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-step.is-active .gs-step-copy h3 {
  color: var(--text-color);
}

.gs-step-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 3em;
  max-height: 3em;
  overflow: hidden;
  color: var(--text-muted);
}

.gs-step-progress {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 3px;
  background: var(--card-border);
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  opacity: 0;
}

.gs-step.is-active .gs-step-progress {
  opacity: 1;
}

.gs-step-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
}

.gs-layout.is-playing .gs-step.is-active .gs-step-progress > span {
  animation: gs-fill 5s linear forwards;
}

@keyframes gs-fill {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-step,
  .gs-pill,
  .gs-scan-frame::after,
  .gs-step-progress > span {
    animation: none !important;
    transition: none !important;
  }
  .gs-step.is-active .gs-scan-frame::after { top: 50%; }
  .gs-step.is-active .gs-step-progress > span { width: 100%; }
}

@media (max-width: 900px) {
  #get-started .section-subtitle br {
    display: none;
  }

  .gs-steps {
    flex-direction: column;
    height: auto;
  }

  .gs-step {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    grid-template-areas:
      "scene scene"
      "index copy";
    align-items: start;
    height: auto;
    flex: none;
    gap: 0.55rem 0.65rem;
    padding: 1rem 1.05rem 1.2rem;
  }

  .gs-step + .gs-step {
    border-inline-start: 0;
    border-top: 1px solid var(--card-border);
  }

  .gs-scene {
    grid-area: scene;
    flex: none;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0.85rem 0.7rem;
  }

  .gs-step:not(.is-active) .gs-scene,
  .gs-step:not(.is-active) .gs-step-copy p {
    display: none;
  }

  .gs-step:not(.is-active) {
    opacity: 1;
    min-height: 3.4rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .gs-step.is-active {
    flex-grow: 1;
  }

  .gs-step-index {
    grid-area: index;
    padding-top: 0.12rem;
  }

  .gs-step-copy {
    grid-area: copy;
    min-width: 0;
  }

  .gs-step-copy h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .gs-step-copy p {
    min-height: 0;
    max-height: none;
  }

  .gs-step-progress {
    left: 0;
    right: 0;
  }

  .gs-mock {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .gs-step {
    padding-inline: 0.9rem;
  }

  .gs-mock-title,
  .gs-step-copy h3 {
    font-size: 0.95rem;
  }

  .gs-pill,
  .gs-step-copy p {
    font-size: 0.8rem;
  }
}

[dir="rtl"] .gs-macro,
[dir="rtl"] .gs-step {
  text-align: start;
}
