/* ===== Home page: free-account feature showcase =====
   Three slides (progress tracking, Circles, Action Plan). The mock UI in
   each slide is styled by feature-visuals.css.

   No layout jump: every slide sits in the same grid cell (grid-area 1 / 1),
   so the stage always takes the height of the tallest slide and its full
   width. Switching only changes opacity and visibility. The tabs have equal
   fixed-width columns and the same font weight in every state.

   Its own file (not styles.css) with ?v= in the link, so a cached old
   styles.css can't leave it unstyled. Bump ?v= when this file changes. */

.fc { margin: 72px 0 8px; }
.fc-head { text-align: center; margin-bottom: 30px; }
.fc-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.8vw, 42px); font-weight: 600; letter-spacing: -0.8px; line-height: 1.12; }
.fc-head h2 em, .fc h3 em { font-style: italic; color: var(--accent); }

.fc-stage {
  display: grid;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card) 55%);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.fc-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 48px;
  align-items: center;
  padding: 52px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.fc-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.fc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.fc h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.6px; line-height: 1.12; margin-bottom: 14px; }
.fc-copy p { color: var(--ink-soft); font-size: 16px; }
.fc-points { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 9px; }
.fc-points li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink); }
.fc-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--m-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7a5f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
[data-theme="dark"] .fc-points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fb897' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .fc-points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fb897' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
}
.fc-ctas { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.fc-note { font-size: 13px; color: var(--ink-subtle); }
.fc-vis .fv { transform: rotate(-1.2deg); }

/* ---- controls: arrows, fixed-width tabs, pause ---- */
.fc-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.fc-arrow { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .15s; }
.fc-arrow:hover { border-color: var(--ink-faint); }
.fc-pause { width: 34px; height: 34px; color: var(--ink-soft); }
.fc-pause[hidden] { display: none; }
.fc-pause .fc-ico-play, .fc-pause[aria-pressed="true"] .fc-ico-pause { display: none; }
.fc-pause[aria-pressed="true"] .fc-ico-play { display: block; }
.fc-tabs { display: grid; grid-template-columns: repeat(3, 170px); gap: 10px; }
.fc-tab { border: 0; background: none; cursor: pointer; padding: 8px 4px; display: grid; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-subtle); text-align: left; border-radius: var(--r-sm); }
.fc-tab:hover, .fc-tab[aria-selected="true"] { color: var(--ink); }
.fc-tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-tab i { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fc-tab b { display: block; height: 100%; width: 0; background: var(--accent); }
.fc-tab[aria-selected="true"] b { width: 100%; }
.fc.is-playing .fc-tab[aria-selected="true"] b { animation: fcFill var(--fc-ms, 7000ms) linear both; }
@keyframes fcFill { from { width: 0; } to { width: 100%; } }
.fc-tab:focus-visible, .fc-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1000px) {
  .fc-slide { grid-template-columns: 1fr; gap: 34px; padding: 40px 36px; }
  .fc-vis .fv { transform: none; }
  .fc-tabs { grid-template-columns: repeat(3, 150px); }
}
@media (max-width: 640px) {
  .fc { margin-top: 52px; }
  .fc-head { text-align: left; }
  .fc-slide { padding: 28px 20px 30px; }
  .fc-nav { gap: 8px; }
  .fc-tabs { grid-template-columns: repeat(3, 44px); gap: 6px; }
  .fc-tab { padding: 14px 0; }
  .fc-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-slide, .fc-slide.is-active { transition: none; transform: none; }
  .fc.is-playing .fc-tab[aria-selected="true"] b { animation: none; }
}
