/* ═══════════════════════════════════════════════
   HOW IT WORKS — how-it-works.css
   Inherits from style.css
═══════════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero {
  padding: calc(36px + 72px + 60px) 0 0;
  background: var(--navy-d);
  position: relative;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero__orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.ph-o1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(61,184,61,.15), transparent 65%); top: -200px; right: -100px; }
.ph-o2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,166,35,.1), transparent 65%); bottom: 100px; left: -100px; }

.page-hero__container {
  max-width: 900px; margin: 0 auto; padding: 0 24px 80px;
  position: relative; z-index: 1;
}
.page-hero__breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  color: rgba(255,255,255,.4); margin-bottom: 32px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.4); transition: color .2s; }
.page-hero__breadcrumb a:hover { color: rgba(255,255,255,.8); }
.page-hero__title {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.0;
  color: #fff; margin-bottom: 24px;
}
.page-hero__title em { font-style: italic; color: var(--green); }
.page-hero__sub {
  font-size: 18px; color: rgba(255,255,255,.6); line-height: 1.75;
  max-width: 640px; margin-bottom: 40px;
}
.page-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Step strip */
.step-strip {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.07);
}
.step-strip__item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0; flex: 1;
  cursor: pointer; transition: opacity .2s;
  border-bottom: 2px solid transparent;
  transition: border-color .3s;
}
.step-strip__item.active { border-color: var(--green); }
.step-strip__num {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: rgba(255,255,255,.25);
}
.step-strip__item.active .step-strip__num { color: var(--green); }
.step-strip__label {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.4);
  transition: color .2s;
}
.step-strip__item.active .step-strip__label { color: #fff; }
.step-strip__line {
  flex: 1; height: 1px; background: rgba(255,255,255,.07);
  max-width: 60px;
}

/* ── CYCLE SECTION ── */
.cycle-section { background: var(--white); padding: 100px 0; }
.cycle-section__container {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 0;
}
.cycle-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  padding-bottom: 80px;
}
.cycle-step:last-child { padding-bottom: 0; }
.cycle-step__left {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 8px;
}
.cycle-step__number {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(30,27,94,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: var(--navy);
  letter-spacing: -.02em; flex-shrink: 0;
  background: var(--white);
  position: relative; z-index: 1;
  transition: all .3s var(--ease);
}
.cycle-step__connector {
  flex: 1; width: 2px;
  background: linear-gradient(to bottom, rgba(30,27,94,.1), rgba(30,27,94,.05));
  margin: 16px 0;
}
.cycle-step:last-child .cycle-step__connector { display: none; }
.cycle-step__right { padding-left: 40px; }
.cycle-step__tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.cycle-step__title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900; letter-spacing: -.03em; color: var(--navy);
  line-height: 1; margin-bottom: 8px;
}
.cycle-step__subtitle {
  font-size: 18px; font-weight: 400; color: var(--muted);
  font-style: italic; margin-bottom: 20px;
}
.cycle-step__body {
  font-size: 16px; color: var(--muted); line-height: 1.8;
  max-width: 620px; margin-bottom: 32px;
}
.cycle-step__details {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 40px;
}
.detail-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.detail-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.detail-item > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.detail-item strong { font-size: 14px; font-weight: 700; color: var(--navy); }
.detail-item span { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Step mockups */
.step-mockup {
  background: var(--navy-d);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: 24px;
  max-width: 520px;
}
.mock-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mock-title { font-size: 14px; font-weight: 700; color: #fff; }
.mock-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); background: rgba(61,184,61,.15);
  padding: 4px 10px; border-radius: 20px;
}
.mock-tag--indigo { color: var(--indigo); background: rgba(108,92,231,.15); }
.mock-tasks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mock-task {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 10px 14px;
}
.mock-task-input {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
}
.mock-task.typing .mock-task-input { color: rgba(255,255,255,.6); }
.cursor-blink {
  display: inline-block; animation: blink .8s infinite;
  color: var(--green); font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.mock-add {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.35);
  padding: 8px 14px; cursor: pointer;
}
.mock-footer { display: flex; justify-content: flex-end; }
.mock-btn {
  font-family: var(--font); font-size: 13px; font-weight: 700;
  background: var(--green); color: #fff;
  border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer;
}

/* Execute mockup */
.step-mockup--execute { padding: 20px; }
.mock-week-view {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.week-day {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 8px; border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.week-day.active { background: rgba(255,255,255,.07); }
.week-day span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); }
.week-day.active span { color: rgba(255,255,255,.8); }
.day-dot { width: 8px; height: 8px; border-radius: 50%; }
.day-dot.green { background: var(--green); }
.day-dot.gold { background: var(--gold); }
.day-dot.empty { background: rgba(255,255,255,.1); }
.mock-progress { margin-bottom: 16px; }
.mock-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.mock-progress-bar {
  height: 4px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #6edca8);
  border-radius: 4px;
}
.mock-tasks-mini { display: flex; flex-direction: column; gap: 8px; }
.mini-task {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; padding: 8px 12px;
  border-radius: 6px; background: rgba(255,255,255,.04);
}
.mini-task.done { color: rgba(255,255,255,.7); }
.mini-task.prog { color: var(--gold); }
.mini-task.pending { color: rgba(255,255,255,.3); }

/* Review mockup */
.review-tasks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.review-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); flex: 1; }
.review-btns { display: flex; gap: 4px; }
.rev-btn {
  font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.3); cursor: pointer;
  transition: all .2s;
}
.rev-btn--done.active { background: rgba(61,184,61,.2); color: var(--green); border-color: rgba(61,184,61,.3); }
.rev-btn--prog.active { background: rgba(245,166,35,.2); color: var(--gold); border-color: rgba(245,166,35,.3); }
.rev-btn--ns.active  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.2); }
.review-remark {
  background: rgba(255,255,255,.04); border-radius: 8px; padding: 14px;
  margin-bottom: 16px;
}
.review-remark span { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.review-remark p { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.6; font-style: italic; }
.review-score {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
}
.review-score span:first-child { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); }
.review-score-num { font-size: 24px; font-weight: 900; color: var(--green); }

/* Continue mockup — trend chart */
.trend-chart {
  height: 100px; position: relative; margin-bottom: 16px;
}
.trend-bars {
  display: flex; align-items: flex-end; gap: 8px; height: 80px;
}
.trend-bar {
  flex: 1; height: var(--h);
  background: rgba(61,184,61,.25); border-radius: 4px 4px 0 0;
  position: relative; cursor: pointer; transition: background .2s;
}
.trend-bar:hover { background: rgba(61,184,61,.45); }
.trend-bar--current { background: var(--green); }
.trend-bar span {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.4);
  white-space: nowrap;
}
.trend-stats {
  display: flex; gap: 24px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.trend-stats > div { display: flex; flex-direction: column; gap: 3px; }
.trend-stats strong { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.trend-stats span { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

/* ── ROLES DEEP DIVE ── */
.roles-deep {
  background: var(--navy-d); padding: 110px 0;
  position: relative; overflow: hidden;
}
.roles-deep__bg { position: absolute; inset: 0; pointer-events: none; }
.roles-deep__orb {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,184,61,.08), transparent 60%);
  top: -200px; right: -200px;
}
.roles-deep__header { margin-bottom: 60px; }
.roles-deep__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.role-deep-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), background .35s;
}
.role-deep-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.role-deep-card--mid {
  background: rgba(61,184,61,.07);
  border-color: rgba(61,184,61,.18);
}
.rdc__num {
  position: absolute; top: 20px; right: 20px;
  font-size: 72px; font-weight: 900; color: rgba(255,255,255,.04);
  letter-spacing: -.05em; line-height: 1;
}
.rdc__accent {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 4px 0 0 4px;
}
.green-accent { background: var(--green); }
.gold-accent { background: var(--gold); }
.indigo-accent { background: var(--indigo); }
.rdc__icon {
  width: 52px; height: 52px; margin-bottom: 20px;
  color: rgba(255,255,255,.7); padding-left: 14px;
}
.rdc__icon--gold { color: var(--gold); }
.rdc__icon--indigo { color: var(--indigo); }
.role-deep-card h3 {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: -.02em; margin-bottom: 6px; padding-left: 14px;
}
.rdc__tag {
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 16px; display: block; padding-left: 14px;
}
.rdc__body {
  font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.75;
  margin-bottom: 24px; padding-left: 14px;
}
.rdc__flow {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 24px;
  padding: 14px; padding-left: 14px;
  background: rgba(255,255,255,.04); border-radius: 8px;
  margin-left: 14px;
}
.rdc__flow-step {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.6); white-space: nowrap;
}
.rdc__list {
  display: flex; flex-direction: column; gap: 10px; padding-left: 14px;
}
.rdc__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65);
}
.rdc__list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.role-deep-card--mid .rdc__list li::before { background: var(--gold); }

/* ── REPORTING DEEP ── */
.reporting-deep { padding: 110px 0; background: var(--off); }
.reporting-deep__header { margin-bottom: 60px; }
.reporting-deep__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 60px;
}
.rd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.rd-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.rd-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.rd-card h4 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.rd-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Questions block */
.questions-block {
  background: var(--navy);
  border-radius: var(--r-xl); padding: 48px;
}
.questions-block__header { margin-bottom: 32px; }
.questions-block__header h3 {
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.questions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.question-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.question-item svg { flex-shrink: 0; margin-top: 2px; }

/* ── RESPONSIVE ── */
@media(max-width: 1024px) {
  .roles-deep__grid { grid-template-columns: 1fr; }
  .reporting-deep__grid { grid-template-columns: repeat(2, 1fr); }
  .questions-grid { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
  .page-hero { padding: calc(32px + 60px + 40px) 0 0; }
  .page-hero__title { font-size: clamp(38px, 11vw, 56px); }
  .page-hero__sub { font-size: 16px; }
  .page-hero__actions { flex-direction: column; }
  .page-hero__actions a { width: 100%; justify-content: center; }
  .step-strip { overflow-x: auto; padding-bottom: 0; gap: 0; }
  .step-strip__item { padding: 16px 12px; flex-shrink: 0; }
  .step-strip__line { min-width: 20px; }
  .cycle-section { padding: 60px 0; }
  .cycle-step { grid-template-columns: 60px 1fr; gap: 0; padding-bottom: 56px; }
  .cycle-step__right { padding-left: 20px; }
  .cycle-step__number { width: 48px; height: 48px; font-size: 16px; }
  .cycle-step__title { font-size: clamp(28px, 8vw, 44px); }
  .step-mockup { max-width: 100%; }
  .review-task { flex-direction: column; align-items: flex-start; gap: 8px; }
  .reporting-deep__grid { grid-template-columns: 1fr; }
  .questions-block { padding: 28px 20px; }
  .roles-deep { padding: 72px 0; }
  .reporting-deep { padding: 72px 0; }
}

@media(max-width: 480px) {
  .rdc__flow { gap: 6px; }
  .rdc__flow svg { display: none; }
  .rdc__flow-step { font-size: 10px; }
  .week-day span { font-size: 10px; }
  .rev-btn { padding: 4px 6px; font-size: 9px; }
}
