/* ==========================================================================
   Password Rotation feature page (.rot-*)
   Self-contained component styles built on design tokens. Reuses shared
   primitives only: msp-container, sa-section, sa-head, msp-btn.
   ========================================================================== */

/* --- Eyebrow badge -------------------------------------------------------- */
.rot-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: color-mix(in srgb, var(--brand-green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-green) 32%, transparent);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.rot-eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 22%, transparent);
}

/* --- Hero stat chips ------------------------------------------------------ */
.rot-hero__stats {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.rot-stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brand-green);
  border-radius: 12px; padding: 14px 16px;
}
.rot-stat__num {
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.55rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--heading);
}
.rot-stat__lbl {
  margin-top: 6px; font-size: 0.78rem; line-height: 1.35; color: var(--text-muted);
}
[data-theme="dark"] .rot-stat { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); border-left-color: var(--brand-green); }

/* --- Hero visual panel ---------------------------------------------------- */
.rot-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--heading) 30%, transparent);
}
.rot-panel__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.rot-panel__col { display: flex; flex-direction: column; gap: 8px; }
.rot-panel__chip {
  font-size: 0.8rem; font-weight: 600; color: var(--heading);
  background: color-mix(in srgb, var(--heading) 4%, transparent);
  border: 1px solid var(--hairline); border-radius: 9px; padding: 9px 11px;
}
.rot-panel__arrow { color: var(--brand-green); font-size: 1.4rem; line-height: 1; }
.rot-panel__cap {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--hairline);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
}
.rot-panel__pam { color: var(--brand-cyan); font-weight: 700; }
[data-theme="dark"] .rot-panel { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .rot-panel__chip { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); }

/* --- Scope: two feature cards (What rotates / Where it lands) ------------- */
.rot-scope {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: clamp(2rem, 4vw, 2.5rem);
}
.rot-scope__card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 26px 28px;
}
.rot-scope__card--green { border-top: 3px solid var(--brand-green); }
.rot-scope__card--cyan  { border-top: 3px solid var(--brand-cyan); }
.rot-scope__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.rot-scope__title { margin: 6px 0 16px; font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.rot-scope__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rot-scope__row { display: flex; align-items: center; gap: 11px; font-size: 0.98rem; color: var(--text); }
.rot-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; color: #fff;
  background: var(--brand-green);
}
.rot-scope__card--cyan .rot-check { background: var(--brand-cyan); }
.rot-soon {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #b85f00; background: rgba(255,160,40,0.14);
  border: 1px solid rgba(255,160,40,0.45); border-radius: 999px; padding: 2px 8px;
  margin-left: 6px;
}
[data-theme="dark"] .rot-scope__card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .rot-soon { color: rgb(255,160,40); background: rgba(255,160,40,0.12); border-color: rgba(255,160,40,0.32); }

/* --- Policy cards (4-up) -------------------------------------------------- */
.rot-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
  margin-top: clamp(2rem, 4vw, 2.5rem);
}
.rot-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 22px;
}
.rot-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-green);
  background: color-mix(in srgb, var(--brand-green) 10%, transparent);
  margin-bottom: 14px;
}
.rot-card__icon svg { width: 20px; height: 20px; }
.rot-card__title { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; color: var(--heading); }
.rot-card__body { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text); }
[data-theme="dark"] .rot-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }

/* --- Breach-response band ------------------------------------------------- */
.rot-breach { position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b1220 0%, #0f1b2e 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--brand-green);
  border-radius: 18px; padding: clamp(28px, 4vw, 40px);
}
.rot-breach__label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-green);
}
.rot-breach__title { margin: 12px 0 10px; font-size: clamp(1.4rem, 1rem + 1.6vw, 1.9rem); font-weight: 700; color: #fff; }
.rot-breach__body { margin: 0; max-width: 720px; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.72); }
.rot-breach__body strong { color: #fff; }

/* --- Pricing tiers (3-up) ------------------------------------------------- */
.rot-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: clamp(2rem, 4vw, 2.5rem);
}
.rot-tier {
  position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 28px 26px; text-align: center;
  display: flex; flex-direction: column;
}
.rot-tier--featured { border-color: color-mix(in srgb, var(--brand-green) 45%, transparent); box-shadow: 0 20px 50px -28px color-mix(in srgb, var(--brand-green) 55%, transparent); }
.rot-tier__pop {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--brand-green); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.rot-tier__name {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 12px;
}
.rot-tier__price { font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem); font-weight: 900; line-height: 1; color: var(--heading); letter-spacing: -0.02em; }
.rot-tier__price span { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.rot-tier__cap { margin: 12px 0 2px; font-size: 0.98rem; font-weight: 700; color: var(--heading); }
.rot-tier__per { margin: 0 0 20px; font-size: 0.86rem; color: var(--text-muted); }
.rot-tier__cta {
  margin-top: auto; display: inline-block; text-decoration: none;
  font-size: 0.9rem; font-weight: 700; padding: 11px 18px; border-radius: 10px;
  color: var(--heading); border: 1px solid var(--hairline);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.rot-tier__cta:hover { border-color: var(--brand-green); color: var(--brand-green); }
.rot-tier--featured .rot-tier__cta { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.rot-tier--featured .rot-tier__cta:hover { color: #fff; filter: brightness(1.05); }
[data-theme="dark"] .rot-tier { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }

/* --- Integration strip ---------------------------------------------------- */
.rot-int {
  margin-top: clamp(1.5rem, 3vw, 2rem); text-align: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 24px 26px;
}
.rot-int__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.rot-int__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rot-int__chip {
  font-size: 0.88rem; font-weight: 600; color: var(--heading);
  background: color-mix(in srgb, var(--heading) 4%, transparent);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 14px;
}
[data-theme="dark"] .rot-int { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .rot-int__chip { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .rot-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .rot-scope { grid-template-columns: 1fr; }
  .rot-pricing { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rot-hero__stats { grid-template-columns: 1fr; }
  .rot-panel__row { grid-template-columns: 1fr; }
  .rot-panel__arrow { transform: rotate(90deg); justify-self: center; }
}
