/* Feature rows: copy on one side, a card that shows the app on the other. */

.feature {
  border-top: 1px solid var(--border);
}

.feature-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: center;
  gap: 40px 64px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.feature-title {
  font: 600 clamp(2rem, 3.6vw, 2.625rem) / 1.08 var(--serif);
}

.feature-text {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.feature-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.demo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 28px;
}

.demo-hint {
  padding-left: 6px;
  color: var(--text-secondary);
  font-size: 0.90625rem;
}

.demo-hint[hidden] {
  display: none;
}

/* Hunger scale */

.scale-demo {
  gap: 24px;
}

.scale-readout {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 96px;
}

.scale-digit {
  min-width: 56px;
  font: 700 5.75rem / 0.85 var(--serif);
  font-variant-numeric: tabular-nums;
}

.zone-very,
.zone-hungry { color: var(--warm-ink); }
.zone-not { color: var(--text-primary); }
.zone-full { color: var(--primary-deep); }
.zone-over { color: var(--lilac-ink); }

.scale-meaning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
}

.scale-label {
  font: 600 1.3125rem / 1.2 var(--sans);
}

.scale-desc {
  color: var(--text-secondary);
  font-size: 0.96875rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.scale-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scale-steps {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 84px;
}

.scale-step {
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--text-primary);
  font: 600 1rem var(--sans);
  cursor: pointer;
  appearance: none;
  transition: height 180ms ease, box-shadow 180ms ease;
}

.scale-step.level-7 {
  height: 62px;
  color: var(--surface);
}

.scale-step[aria-checked="true"] {
  height: 84px;
  box-shadow: 0 0 0 2.5px var(--text-primary);
}

.scale-legend {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.scale-legend span:first-child {
  grid-column: 1 / span 3;
}

.scale-legend-enough {
  grid-column: 6 / span 3;
  color: var(--primary-deep);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.scale-legend span:last-child {
  grid-column: 9 / span 2;
  text-align: right;
}

.scale-zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.scale-zone-title {
  font: 600 1.0625rem var(--sans);
}

.scale-zone-text {
  color: var(--text-secondary);
  font-size: 0.96875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.scale-zone-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 20px;
  border-radius: 26px;
  background: var(--primary);
  color: var(--surface);
  font: 600 1.03125rem var(--sans);
  text-align: center;
}

/* After eating */

.after-demo {
  gap: 18px;
}

.meal-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.meal-summary .icon {
  font-size: 13px;
}

.level-chip {
  padding: 4px 11px;
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.demo-question {
  font: 600 1.625rem / 1.15 var(--serif);
}

.feelings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.feeling {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.96875rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.feeling.is-selected {
  border-color: var(--primary);
  background: var(--surface-selected);
}

.feeling-emoji {
  flex: none;
  font-size: 1.1875rem;
}

/* Craving tools */

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.tool {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tool-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-title {
  font: 600 1.0625rem var(--sans);
}

.tool-text {
  color: var(--text-secondary);
  font-size: 0.96875rem;
  line-height: 1.45;
}

.wave-demo {
  gap: 10px;
}

.wave-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.wave-title {
  font: 600 1.75rem / 1.1 var(--serif);
}

.wave-elapsed {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.wave-chart {
  position: relative;
  height: 200px;
  margin-top: 16px;
}

.wave-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wave-area {
  fill: var(--surface-selected);
}

.wave-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Sits on the falling slope of the curve (x = 241 of 400, y = 110 of 200). */
.wave-marker {
  position: absolute;
  top: 55.1%;
  left: 60.3%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wave-phases {
  display: flex;
  justify-content: space-between;
  padding: 4px 4px 0;
  color: var(--text-secondary);
  font-size: 0.84375rem;
}

.wave-phases .is-current {
  color: var(--primary-deep);
  font-weight: 600;
}

/* Observation week */

.week-demo {
  gap: 16px;
}

.week-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.03125rem;
}

.week-title {
  font-weight: 600;
}

.week-day {
  color: var(--text-secondary);
}

.week-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week-progress span {
  height: 10px;
  border-radius: 5px;
  background: var(--outline);
}

.week-progress .is-done {
  background: var(--primary);
}

.week-progress .is-current {
  background: var(--primary-soft);
}

.week-hint {
  color: var(--text-secondary);
  font-size: 0.96875rem;
  line-height: 1.45;
}

.neutral-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.neutral-scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  background: var(--border);
  font: 600 0.875rem var(--sans);
}

.neutral-scale .is-selected {
  height: 56px;
  background: var(--text-primary);
  color: var(--surface);
}

/* Skills */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.practices {
  padding: 8px clamp(20px, 3vw, 28px) 12px;
}

.practices-group {
  padding: 18px 0 6px;
  font: 600 1.1875rem var(--serif);
}

.practice-list {
  padding: 0;
  list-style: none;
}

.practice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.practice + .practice {
  border-top: 1px solid var(--divider);
}

.practice-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.practice-title {
  font-size: 1.03125rem;
  font-weight: 500;
}

.practice-subtitle {
  color: var(--text-tertiary);
  font-size: 0.84375rem;
}

.practice-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
}

.page-how .cta-section {
  padding-top: clamp(24px, 4vw, 48px);
}
