/* ==========================================================================
   Capitan Editorial — light premium minimal
   Ink + rose accent (no purple). White-space heavy, convert-first.
   ========================================================================== */

:root {
  --ed-bg: #F4F5F7;
  --ed-surface: #FFFFFF;
  --ed-ink: #0B1220;
  --ed-muted: #5C6570;
  --ed-line: #E4E7EC;
  --ed-accent: #E11D48;
  --ed-accent-ink: #FFFFFF;
  --ed-accent-soft: #FFF1F3;
  --ed-soft: #EEF1F5;
  --ed-radius: 18px;
  --ed-radius-sm: 12px;
  --ed-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 18px 40px rgba(15, 23, 42, 0.06);
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-editorial="1"] {
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(225, 29, 72, 0.06), transparent 55%),
    radial-gradient(900px 420px at 0% 0%, rgba(15, 23, 42, 0.05), transparent 50%),
    var(--ed-bg);
  color: var(--ed-ink);
}

body[data-editorial="1"] .app-main {
  background: transparent;
}

/* ---- Shared editorial shells ---- */
.ed-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(28px, 5vw, 56px);
}

.ed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-accent);
}

.ed-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  font-weight: 800;
}

.ed-lead {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--ed-muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.75;
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 180ms var(--ed-ease), background 180ms var(--ed-ease), color 180ms var(--ed-ease), border-color 180ms var(--ed-ease);
  text-decoration: none;
  border: 1px solid transparent;
}

.ed-btn:focus-visible {
  outline: 3px solid rgba(225, 29, 72, 0.35);
  outline-offset: 2px;
}

.ed-btn--primary {
  background: var(--ed-ink);
  color: #fff;
}

.ed-btn--primary:hover {
  background: var(--ed-accent);
  transform: translateY(-1px);
}

.ed-btn--ghost {
  background: transparent;
  color: var(--ed-ink);
  border-color: var(--ed-line);
}

.ed-btn--ghost:hover {
  border-color: var(--ed-ink);
}

.ed-btn--accent {
  background: var(--ed-accent);
  color: var(--ed-accent-ink);
}

.ed-btn--accent:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.ed-panel {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow);
}

.ed-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ed-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .ed-grid-3 { grid-template-columns: 1fr; }
  .ed-grid-2 { grid-template-columns: 1fr; }
}

.ed-stat {
  padding: 18px 16px;
  border-radius: var(--ed-radius-sm);
  background: var(--ed-soft);
}

.ed-stat strong {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
}

.ed-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ed-muted);
  font-size: 13px;
}

.ed-section {
  margin-top: clamp(28px, 5vw, 48px);
}

.ed-section__head {
  margin-bottom: 16px;
}

.ed-section__head h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.ed-section__head p {
  margin: 8px 0 0;
  color: var(--ed-muted);
  max-width: 40rem;
  line-height: 1.7;
}

/* ---- Hero strip (shared) ---- */
.ed-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ed-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75), rgba(244,245,247,0.2)),
    var(--ed-bg);
}

.ed-hero__inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(40px, 8vw, 88px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.ed-hero__media {
  border-radius: calc(var(--ed-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--ed-line);
  min-height: 280px;
  background: #0B1220;
  box-shadow: var(--ed-shadow);
}

.ed-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

@media (max-width: 900px) {
  .ed-hero__inner {
    grid-template-columns: 1fr;
    padding-block: clamp(28px, 8vw, 48px);
  }
  .ed-hero__media { order: -1; min-height: 220px; }
  .ed-hero__media img { min-height: 220px; }
}

/* ---- Pricing cards (PSN) ---- */
.ed-plan {
  position: relative;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: transform 200ms var(--ed-ease), border-color 200ms var(--ed-ease), box-shadow 200ms var(--ed-ease);
  overflow: hidden;
}

.ed-plan:hover {
  transform: translateY(-3px);
}

.ed-plan--royal {
  border-color: rgba(59, 91, 219, 0.28);
  background:
    linear-gradient(165deg, rgba(59, 91, 219, 0.14), rgba(255, 255, 255, 0.96) 46%),
    #fff;
}

.ed-plan--gold {
  border-color: rgba(184, 134, 11, 0.32);
  background:
    linear-gradient(165deg, rgba(212, 175, 55, 0.22), rgba(255, 255, 255, 0.96) 48%),
    #fff;
}

.ed-plan--emerald {
  border-color: rgba(16, 145, 108, 0.3);
  background:
    linear-gradient(165deg, rgba(16, 145, 108, 0.16), rgba(255, 255, 255, 0.96) 48%),
    #fff;
}

.ed-plan--featured {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ed-plan--royal.ed-plan--featured { border-color: rgba(59, 91, 219, 0.42); }
.ed-plan--gold.ed-plan--featured { border-color: rgba(184, 134, 11, 0.48); }
.ed-plan--emerald.ed-plan--featured { border-color: rgba(16, 145, 108, 0.45); }

.ed-plan__badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ed-accent);
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.ed-plan__tier {
  font-size: 12px;
  font-weight: 800;
  color: var(--ed-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ed-plan--royal .ed-plan__tier { color: #3B5BDB; }
.ed-plan--gold .ed-plan__tier { color: #9A7B0A; }
.ed-plan--emerald .ed-plan__tier { color: #0F766E; }

.ed-plan h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.ed-plan__blurb {
  margin: 0;
  color: var(--ed-muted);
  font-size: 13px;
  line-height: 1.65;
}

.ed-plan__price {
  display: grid;
  gap: 6px;
  padding: 12px 0 4px;
}

.ed-plan__toman {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ed-plan__toman strong {
  font-size: clamp(26px, 4.2vw, 34px);
  letter-spacing: -0.03em;
  color: var(--ed-ink);
  font-weight: 800;
}

.ed-plan__toman span {
  color: var(--ed-ink);
  font-size: 14px;
  font-weight: 700;
  opacity: 0.75;
}

.ed-plan__usd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ed-muted);
  opacity: 0.72;
}

.ed-plan__usd span {
  font-size: 15px;
  font-weight: 600;
}

.ed-plan__usd small {
  font-size: 12px;
}

.ed-plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ed-plan__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-block: 6px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
  color: var(--ed-muted);
}

.ed-plan__list li strong {
  color: var(--ed-ink);
  font-weight: 700;
  text-align: end;
}

.ed-plan__games {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.ed-plan__games-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--ed-ink);
  letter-spacing: 0.02em;
}

.ed-plan__games ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ed-plan__games li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ed-plan__games img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--ed-soft);
}

.ed-plan__games span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ed-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-plan__games-note {
  margin: 0;
  font-size: 11px;
  color: var(--ed-muted);
  line-height: 1.5;
}

.ed-plan .ed-btn {
  margin-top: auto;
}

.ed-guide {
  padding: 18px;
}

.ed-guide h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.ed-guide p {
  margin: 0;
  color: var(--ed-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ed-guide--royal { border-color: rgba(59, 91, 219, 0.28); background: linear-gradient(180deg, rgba(59, 91, 219, 0.08), #fff 55%); }
.ed-guide--gold { border-color: rgba(184, 134, 11, 0.3); background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), #fff 55%); }
.ed-guide--emerald { border-color: rgba(16, 145, 108, 0.28); background: linear-gradient(180deg, rgba(16, 145, 108, 0.1), #fff 55%); }

.ed-rules {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 12px;
}

.ed-rules h3 {
  margin: 10px 0 0;
  font-size: 17px;
}

.ed-rules p,
.ed-rules li {
  margin: 0;
  color: var(--ed-muted);
  font-size: 14px;
  line-height: 1.85;
}

.ed-rules ol {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: grid;
  gap: 10px;
}

.ed-rules strong {
  color: var(--ed-ink);
}

/* ---- FAQ editorial ---- */
.ed-faq details {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-sm);
  padding: 0;
  overflow: hidden;
}

.ed-faq details + details {
  margin-top: 10px;
}

.ed-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-faq summary::-webkit-details-marker { display: none; }

.ed-faq summary:hover {
  background: var(--ed-soft);
}

.ed-faq details[open] summary {
  border-bottom: 1px solid var(--ed-line);
}

.ed-faq__body {
  padding: 14px 18px 18px;
  color: var(--ed-muted);
  line-height: 1.8;
  font-size: 14px;
}

/* ---- Prose (about / warranty) ---- */
.ed-prose {
  padding: clamp(20px, 3vw, 32px);
  line-height: 1.85;
  color: var(--ed-ink);
}

.ed-prose h2 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.02em;
}

.ed-prose h2:first-child { margin-top: 0; }

.ed-prose p,
.ed-prose li {
  color: var(--ed-muted);
}

.ed-prose ul {
  padding-inline-start: 1.2rem;
}

.ed-prose a {
  color: var(--ed-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Repair cards ---- */
.ed-repair-card {
  padding: 18px;
  display: grid;
  gap: 8px;
  height: 100%;
}

.ed-repair-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ed-soft);
  color: var(--ed-ink);
}

.ed-repair-card h3 {
  margin: 0;
  font-size: 17px;
}

.ed-repair-card p {
  margin: 0;
  color: var(--ed-muted);
  font-size: 13px;
  line-height: 1.65;
}

.ed-repair-card__price {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--ed-ink);
}

/* Home editorial tightening */
body[data-page="home"][data-editorial="1"] .home-hero__title {
  letter-spacing: -0.03em;
}

body[data-page="home"][data-editorial="1"] .home-trust__bar {
  border: 1px solid var(--ed-line);
  background: var(--ed-surface);
  box-shadow: none;
}

body[data-page="home"][data-editorial="1"] .section__title::before {
  background: var(--ed-accent);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .ed-btn,
  .ed-plan {
    transition: none;
  }
  .ed-btn:hover,
  .ed-plan:hover {
    transform: none;
  }
}
