/* ─────────────────────────────────────────
   HARMONY — Service / Platform landing pages
   Built on the Harmony design system: flat colors, no shadows,
   depth via surface contrast + 1px borders.
   ───────────────────────────────────────── */


.sd {
  --sd-bg: #0A0A0A;
  --sd-surface: #111111;
  --sd-surface-2: #161616;
  --sd-border: #1E1E1E;
  --sd-border-h: #2E2E2E;
  --sd-text: #FFFFFF;
  --sd-muted: #888888;
  --sd-body: rgba(255,255,255,.72);
  --sd-green: #24C76A;
  --sd-green-t: rgba(36,199,106,.10);
  --sd-green-b: rgba(36,199,106,.28);
  --sd-purple: #7A4FE0;
  --sd-purple-t: rgba(122,79,224,.12);
  --sd-ease: cubic-bezier(.22,1,.36,1);

  font-family: 'IRANSansX', 'IRANSans', sans-serif;
  color: var(--sd-text);
  background: var(--sd-bg);
  direction: rtl;
}
.sd *, .sd *::before, .sd *::after { box-sizing: border-box; }
.sd button, .sd input { font-family: inherit; }
.sd .en { font-family: 'Inter', 'IRANSansX', sans-serif; }
.sd img { max-width: 100%; display: block; }

.sd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sd-section { padding: 96px 0; position: relative; }
.sd-section--alt { background: var(--sd-surface); border-top: 1px solid var(--sd-border); border-bottom: 1px solid var(--sd-border); }

/* ── Typography ── */
.sd-label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1.5 'Inter', 'IRANSansX', sans-serif;
  color: var(--sd-green); letter-spacing: .08em; text-transform: uppercase;
}
.sd-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sd-green); flex-shrink: 0; }
.sd-label--muted { color: var(--sd-muted); }
.sd-label--muted::before { background: var(--sd-muted); }

.sd-h1 { font-size: 56px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin: 20px 0 24px; }
.sd-h1 .accent { display: block; color: var(--sd-green); font-weight: 700; }
.sd-h2 { font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 16px 0; }
.sd-h3 { font-size: 28px; font-weight: 600; line-height: 1.4; }
.sd-h4 { font-size: 20px; font-weight: 600; line-height: 1.5; }
.sd-lead { font-size: 18px; line-height: 1.9; color: var(--sd-muted); }
.sd-sub { font-size: 18px; line-height: 1.8; color: var(--sd-muted); max-width: 640px; }

.sd-head { margin-bottom: 64px; }
.sd-head--center { text-align: center; }
.sd-head--center .sd-sub { margin-inline: auto; }
.sd-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ── Buttons ── */
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none;
  cursor: pointer; transition: opacity .15s ease, border-color .2s ease;
  white-space: nowrap;
}
.sd-btn:hover { opacity: .85; }
.sd-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sd-btn--primary { background: var(--sd-green); color: #0A0A0A; }
.sd-btn--ghost { background: transparent; border-color: #333; color: var(--sd-text); }
.sd-btn--ghost:hover { opacity: 1; border-color: #555; }
.sd-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sd-green); font-size: 15px; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.sd-link:hover { opacity: .85; }
.sd-link svg { width: 16px; height: 16px; }

/* ── Icon box ── */
.sd-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: var(--sd-green-t); color: var(--sd-green);
  display: grid; place-items: center;
}
.sd-icon svg { width: 22px; height: 22px; }
.sd-icon--sm { width: 36px; height: 36px; }
.sd-icon--sm svg { width: 18px; height: 18px; }
.sd-icon--purple { background: var(--sd-purple-t); color: var(--sd-purple); }

/* ══════════════ HERO ══════════════ */
.sd-hero { position: relative; padding: 150px 0 0; overflow: hidden; border-bottom: 1px solid var(--sd-border); }
.sd-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%231E1E1E'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.sd-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

.sd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--sd-muted); }
.sd-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.sd-crumbs li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #333; }
.sd-crumbs a { color: var(--sd-muted); text-decoration: none; transition: color .15s; }
.sd-crumbs a:hover { color: var(--sd-text); }
.sd-crumbs [aria-current] { color: var(--sd-text); }

.sd-hero-kicker { margin-top: 32px; }
.sd-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.sd-hero-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding: 0; list-style: none; }
.sd-hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sd-muted); }
.sd-hero-trust svg { width: 16px; height: 16px; color: var(--sd-green); flex-shrink: 0; }

/* Visual (core services) */
.sd-visual { position: relative; }
.sd-frame { position: relative; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px; padding: 12px; }
.sd-frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #EDEDED; }
.sd-frame-tag {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--sd-bg); border: 1px solid var(--sd-border);
  font: 600 12px/1.5 'Inter', sans-serif; color: var(--sd-text); letter-spacing: .06em;
}
.sd-frame-tag b { color: var(--sd-green); font-weight: 700; }

.sd-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px;
  background: var(--sd-surface); border: 1px solid var(--sd-border-h);
}
.sd-float b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.sd-float b span { color: var(--sd-green); }
.sd-float small { display: block; font-size: 13px; color: var(--sd-muted); margin-top: 2px; }
.sd-float--a { bottom: -28px; right: -28px; }
.sd-float--b { top: 40%; left: -32px; }

/* Stats strip */
.sd-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-top: 1px solid var(--sd-border); }
.sd-stat { padding: 40px 24px; text-align: center; }
.sd-stat + .sd-stat { border-right: 1px solid var(--sd-border); }
.sd-stat b { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.sd-stat b span { color: var(--sd-green); }
.sd-stat small { display: block; margin-top: 8px; font-size: 14px; color: var(--sd-muted); }

/* ── Phone mockup (platform pages) ── */
.sd-phone-wrap { position: relative; display: flex; justify-content: center; padding: 24px 0 40px; }
.sd-phone {
  position: relative; z-index: 2; width: 300px;
  background: var(--sd-bg); border: 1px solid var(--sd-border-h);
  border-radius: 44px; padding: 10px;
}
.sd-phone-screen { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 34px; overflow: hidden; height: 580px; display: flex; flex-direction: column; }
.sd-phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 6px; font: 600 11px 'Inter', sans-serif; color: var(--sd-text); }
.sd-phone-status i { width: 80px; height: 20px; background: var(--sd-bg); border-radius: 100px; }
.sd-phone-status span:last-child { display: inline-flex; gap: 4px; }
.sd-phone-status span:last-child em { display: block; width: 14px; height: 8px; border-radius: 2px; background: var(--sd-text); opacity: .8; }

.sd-phone-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--sd-border); }
.sd-phone-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sd-green); color: #0A0A0A; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.sd-phone-bar b { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.sd-phone-bar small { display: block; font-size: 11px; color: var(--sd-muted); }
.sd-phone-bar .dots { margin-right: auto; color: var(--sd-muted); letter-spacing: 2px; font-weight: 800; }

.sd-phone-body { flex: 1; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: var(--sd-bg); overflow: hidden; }
.sd-bubble { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px; padding: 8px; }
.sd-bubble--ghost { opacity: .45; padding: 12px; }
.sd-bubble--ghost span { display: block; height: 7px; border-radius: 4px; background: #262626; }
.sd-bubble--ghost span + span { margin-top: 7px; width: 70%; }
.sd-bubble img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #EDEDED; }
.sd-bubble p { font-size: 12px; line-height: 1.8; color: var(--sd-text); margin: 8px 4px 0; }
.sd-bubble-meta { display: flex; justify-content: space-between; align-items: center; margin: 6px 4px 2px; font: 500 10.5px 'Inter', 'IRANSansX', sans-serif; color: var(--sd-muted); }
.sd-bubble-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sd-bubble-meta svg { width: 12px; height: 12px; }
.sd-bubble-cta { display: block; margin-top: 8px; padding: 9px; border-radius: 10px; border: 1px solid var(--sd-green-b); color: var(--sd-green); font-size: 12px; font-weight: 700; text-align: center; }
.sd-ad-pill { display: inline-block; padding: 2px 8px; border-radius: 100px; background: var(--sd-green-t); color: var(--sd-green); font-size: 10px; font-weight: 700; }

.sd-phone-input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--sd-border); background: var(--sd-surface); }
.sd-phone-input span { flex: 1; height: 32px; border-radius: 100px; background: var(--sd-bg); border: 1px solid var(--sd-border); font-size: 11px; color: var(--sd-muted); display: flex; align-items: center; padding: 0 14px; }
.sd-phone-input i { width: 32px; height: 32px; border-radius: 50%; background: var(--sd-green); flex-shrink: 0; }

/* Feed style (Instagram / Rubino) */
.sd-feed { flex: 1; background: var(--sd-bg); display: flex; flex-direction: column; overflow: hidden; }
.sd-feed-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.sd-feed-head .sd-phone-av { width: 32px; height: 32px; font-size: 13px; outline: 2px solid var(--sd-green); outline-offset: 2px; }
.sd-feed-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #EDEDED; }
.sd-feed-actions { display: flex; align-items: center; gap: 14px; padding: 10px 14px 4px; color: var(--sd-text); }
.sd-feed-actions svg { width: 20px; height: 20px; }
.sd-feed-actions svg:last-child { margin-right: auto; }
.sd-feed-cta { display: flex; justify-content: space-between; align-items: center; margin: 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--sd-green); color: #0A0A0A; font-size: 12px; font-weight: 700; }
.sd-feed-cap { padding: 8px 14px; font-size: 11.5px; line-height: 1.8; color: var(--sd-body); }
.sd-feed-cap b { color: var(--sd-text); }

/* Pro style (LinkedIn) */
.sd-pro { flex: 1; background: var(--sd-bg); padding: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.sd-pro-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px; overflow: hidden; }
.sd-pro-head { display: flex; gap: 10px; align-items: center; padding: 12px; }
.sd-pro-head .sd-phone-av { border-radius: 10px; }
.sd-pro-card p { padding: 0 12px 10px; font-size: 11.5px; line-height: 1.8; color: var(--sd-body); }
.sd-pro-card img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #EDEDED; }
.sd-pro-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-top: 1px solid var(--sd-border); }
.sd-pro-foot b { font-size: 11.5px; }
.sd-pro-foot span { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--sd-green); color: var(--sd-green); font-size: 11px; font-weight: 700; }
.sd-pro-react { display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid var(--sd-border); font-size: 11px; color: var(--sd-muted); }

.sd-chip-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--sd-surface); border: 1px solid var(--sd-border-h);
  max-width: 240px;
}
.sd-chip-float b { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; }
.sd-chip-float small { display: block; font-size: 12px; color: var(--sd-muted); line-height: 1.5; }
.sd-chip-float--a { top: 270px; right: 0; }
.sd-chip-float--b { bottom: 130px; left: 0; }

/* ══════════════ PROBLEM → SOLUTION ══════════════ */
.sd-ps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd-ps-card { border-radius: 14px; padding: 40px; border: 1px solid var(--sd-border); background: var(--sd-bg); }
.sd-ps-card--solve { background: var(--sd-surface); border-color: var(--sd-green-b); }
.sd-ps-card .sd-h4 { margin: 16px 0 28px; }
.sd-ps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.sd-ps-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.8; color: var(--sd-body); }
.sd-ps-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.sd-ps-mark svg { width: 14px; height: 14px; }
.sd-ps-mark--x { background: #1A1A1A; color: var(--sd-muted); }
.sd-ps-mark--ok { background: var(--sd-green); color: #0A0A0A; }

/* ══════════════ BENEFIT CARDS ══════════════ */
.sd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sd-cards--3 { grid-template-columns: repeat(3, 1fr); }
.sd-cards--2 { grid-template-columns: repeat(2, 1fr); }
.sd-card {
  position: relative; background: var(--sd-surface); border: 1px solid var(--sd-border);
  border-radius: 14px; padding: 32px; transition: border-color .2s ease;
}
.sd-card:hover { border-color: var(--sd-border-h); }
.sd-card-num { position: absolute; top: 32px; left: 32px; font: 600 13px 'Inter', sans-serif; color: #3A3A3A; }
.sd-card .sd-h4 { margin: 24px 0 12px; }
.sd-card p { font-size: 15px; line-height: 1.85; color: var(--sd-muted); margin: 0; }

/* ══════════════ FORMATS (split with image) ══════════════ */
.sd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sd-split--top { align-items: start; }
.sd-groups { display: flex; flex-direction: column; gap: 24px; }
.sd-group { background: var(--sd-bg); border: 1px solid var(--sd-border); border-radius: 14px; padding: 28px 32px; }
.sd-section--alt .sd-group { background: var(--sd-bg); }
.sd-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sd-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.sd-group li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.7; color: var(--sd-body); }
.sd-group li svg { width: 16px; height: 16px; color: var(--sd-green); flex-shrink: 0; margin-top: 5px; }
.sd-split-media { position: sticky; top: 110px; }

/* ══════════════ PROCESS ══════════════ */
.sd-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.sd-steps::before { content: ''; position: absolute; top: 24px; right: 12.5%; left: 12.5%; height: 1px; background: var(--sd-border-h); }
.sd-step { position: relative; text-align: center; padding: 0 8px; }
.sd-step-num {
  position: relative; z-index: 1; width: 48px; height: 48px; margin: 0 auto 28px;
  border-radius: 50%; border: 1px solid var(--sd-green); background: var(--sd-bg);
  display: grid; place-items: center; font: 600 15px 'Inter', sans-serif; color: var(--sd-green);
}
.sd-section--alt .sd-step-num { background: var(--sd-surface); }
.sd-step:first-child .sd-step-num { background: var(--sd-green); color: #0A0A0A; }
.sd-step .sd-h4 { margin-bottom: 12px; }
.sd-step p { font-size: 15px; line-height: 1.85; color: var(--sd-muted); margin: 0; }

/* ══════════════ ARTICLE + TOC ══════════════ */
.sd-article-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.sd-toc { position: sticky; top: 110px; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px; padding: 24px; }
.sd-toc-title { font-size: 13px; font-weight: 600; color: var(--sd-muted); margin-bottom: 12px; }
.sd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.sd-toc li { counter-increment: toc; }
.sd-toc a {
  display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--sd-border);
  color: var(--sd-muted); font-size: 14px; line-height: 1.6; text-decoration: none; transition: color .15s;
}
.sd-toc a::before { content: counter(toc, persian) '.'; color: #444; font-weight: 600; }
.sd-toc a:hover, .sd-toc a.is-active { color: var(--sd-text); }
.sd-toc a.is-active::before { color: var(--sd-green); }
.sd-toc .sd-btn { width: 100%; margin-top: 16px; }

.sd-prose { max-width: 760px; }
.sd-prose-block + .sd-prose-block { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--sd-border); }
.sd-prose h3 { font-size: 28px; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; margin: 0 0 20px; scroll-margin-top: 110px; }
.sd-prose p { font-size: 17px; line-height: 2.05; color: var(--sd-body); margin: 0 0 18px; }
.sd-prose p:last-child { margin-bottom: 0; }
.sd-prose ul { list-style: none; margin: 8px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sd-prose li { position: relative; padding-right: 26px; font-size: 16.5px; line-height: 1.9; color: var(--sd-body); }
.sd-prose li::before { content: ''; position: absolute; right: 4px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--sd-green); }
.sd-prose a { color: var(--sd-green); text-decoration: none; border-bottom: 1px solid var(--sd-green-b); }

/* ══════════════ PORTFOLIO ══════════════ */
.sd-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sd-work {
  display: flex; flex-direction: column; background: var(--sd-surface); border: 1px solid var(--sd-border);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--sd-text); transition: border-color .2s ease;
}
.sd-work:hover { border-color: var(--sd-border-h); }
.sd-work-img { aspect-ratio: 16 / 10; background: #151515; overflow: hidden; border-bottom: 1px solid var(--sd-border); }
.sd-work-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-work-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sd-work-cat { font-size: 12px; font-weight: 600; color: var(--sd-green); }
.sd-work-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.sd-work-client { font-size: 14px; color: var(--sd-muted); margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.sd-work-client svg { width: 16px; height: 16px; color: var(--sd-muted); transition: color .2s; }
.sd-work:hover .sd-work-client svg { color: var(--sd-green); }

/* ══════════════ LOGOS ══════════════ */
.sd-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--sd-border); border: 1px solid var(--sd-border); border-radius: 14px; overflow: hidden; }
.sd-logo { background: var(--sd-bg); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 20px; }
.sd-section--alt .sd-logo { background: var(--sd-surface); }
.sd-logo img { max-width: 96px; max-height: 60px; width: auto; height: auto; object-fit: contain; opacity: .55; transition: opacity .2s ease; }
.sd-logo:hover img { opacity: 1; }

/* ══════════════ FAQ ══════════════ */
.sd-faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.sd-faq-aside { position: sticky; top: 110px; }
.sd-help { margin-top: 40px; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px; padding: 32px; }
.sd-help .sd-h4 { margin: 20px 0 8px; }
.sd-help p { font-size: 15px; line-height: 1.8; color: var(--sd-muted); margin: 0 0 24px; }
.sd-faq { border-top: 1px solid var(--sd-border); }
.sd-faq details { border-bottom: 1px solid var(--sd-border); }
.sd-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; line-height: 1.6; color: var(--sd-text);
}
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq-ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--sd-border-h); display: grid; place-items: center; flex-shrink: 0; color: var(--sd-text); transition: background .2s, border-color .2s, color .2s; }
.sd-faq-ic svg { width: 16px; height: 16px; transition: transform .25s var(--sd-ease); }
.sd-faq details[open] .sd-faq-ic { background: var(--sd-green); border-color: var(--sd-green); color: #0A0A0A; }
.sd-faq details[open] .sd-faq-ic svg { transform: rotate(45deg); }
.sd-faq-a { padding: 0 0 28px; font-size: 16px; line-height: 2; color: var(--sd-muted); max-width: 680px; }

/* ══════════════ RELATED ══════════════ */
.sd-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sd-rel-card {
  display: flex; flex-direction: column; background: var(--sd-bg); border: 1px solid var(--sd-border);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--sd-text); transition: border-color .2s ease;
}
.sd-rel-card:hover { border-color: var(--sd-border-h); }
.sd-rel-img { aspect-ratio: 16 / 9; background: #EDEDED; overflow: hidden; }
.sd-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-rel-body { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; }
.sd-rel-body small { display: block; font: 600 12px 'Inter', sans-serif; color: var(--sd-muted); letter-spacing: .06em; margin-bottom: 4px; }
.sd-rel-body b { font-size: 18px; font-weight: 700; }
.sd-arrow { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sd-border-h); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, border-color .2s, color .2s; }
.sd-arrow svg { width: 16px; height: 16px; }
.sd-rel-card:hover .sd-arrow, .sd-plat:hover .sd-arrow { background: var(--sd-green); border-color: var(--sd-green); color: #0A0A0A; }

.sd-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sd-plat {
  display: flex; align-items: center; gap: 16px; padding: 24px;
  background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px;
  text-decoration: none; color: var(--sd-text); transition: border-color .2s ease;
}
.sd-section--alt .sd-plat { background: var(--sd-bg); }
.sd-plat:hover { border-color: var(--sd-border-h); }
.sd-plat-txt { flex: 1; min-width: 0; }
.sd-plat-txt small { display: block; font-size: 12px; color: var(--sd-muted); }
.sd-plat-txt b { display: block; font-size: 17px; font-weight: 700; margin: 2px 0; }
.sd-plat-txt span { display: block; font-size: 13px; color: var(--sd-muted); line-height: 1.6; }

/* ══════════════ FINAL CTA ══════════════ */
.sd-cta { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: 14px; padding: 56px; position: relative; overflow: hidden; }
.sd-cta::after { content: ''; position: absolute; left: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--sd-green-b); pointer-events: none; }
.sd-cta::before { content: ''; position: absolute; left: -20px; bottom: -20px; width: 140px; height: 140px; border-radius: 50%; background: var(--sd-green-t); pointer-events: none; }
.sd-cta .sd-h2 { margin-top: 12px; }
.sd-cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.sd-cta-actions .sd-btn { width: 100%; }

/* ══════════════ MOTION ══════════════ */
@keyframes sdFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sd-anim { opacity: 0; animation: sdFadeUp .5s var(--sd-ease) forwards; animation-delay: var(--d, 0ms); }
.sd-js .sd-rv { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--sd-ease), transform .5s var(--sd-ease); transition-delay: var(--d, 0ms); }
.sd-js .sd-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sd-anim, .sd-js .sd-rv { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1024px) {
  .sd-hero-grid, .sd-split, .sd-article-grid, .sd-faq-grid, .sd-cta { grid-template-columns: 1fr; }
  .sd-hero-grid { gap: 72px; }
  .sd-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .sd-float--b { left: -12px; }
  .sd-float--a { right: -12px; }
  .sd-cards, .sd-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .sd-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .sd-steps::before { display: none; }
  .sd-toc, .sd-faq-aside, .sd-split-media { position: static; }
  .sd-toc { order: -1; }
  .sd-works { grid-template-columns: repeat(2, 1fr); }
  .sd-logos { grid-template-columns: repeat(4, 1fr); }
  .sd-rel { grid-template-columns: repeat(2, 1fr); }
  .sd-cta { padding: 40px; }
}

@media (max-width: 767px) {
  .sd-wrap { padding: 0 20px; }
  .sd-section { padding: 64px 0; }
  .sd-hero { padding-top: 120px; }
  .sd-h1 { font-size: 36px; }
  .sd-h2 { font-size: 28px; }
  .sd-h3, .sd-prose h3 { font-size: 22px; }
  .sd-h4 { font-size: 18px; }
  .sd-lead, .sd-sub { font-size: 16px; }
  .sd-head { margin-bottom: 40px; }
  .sd-hero-actions .sd-btn { flex: 1 1 100%; }
  .sd-float { padding: 12px 14px; }
  .sd-float b { font-size: 18px; }
  .sd-float--a { right: 8px; bottom: -24px; }
  .sd-float--b { display: none; }
  .sd-stats { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
  .sd-stat:nth-child(3) { border-right: 0; }
  .sd-stat:nth-child(n+3) { border-top: 1px solid var(--sd-border); }
  .sd-stat b { font-size: 30px; }
  .sd-ps { grid-template-columns: 1fr; }
  .sd-ps-card { padding: 28px 24px; }
  .sd-cards, .sd-cards--3, .sd-cards--2 { grid-template-columns: 1fr; }
  .sd-group { padding: 24px 20px; }
  .sd-group ul { grid-template-columns: 1fr; }
  .sd-steps { grid-template-columns: 1fr; row-gap: 36px; }
  .sd-step { text-align: right; display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0; }
  .sd-step-num { margin: 0; grid-row: span 2; }
  .sd-prose p { font-size: 16px; }
  .sd-works, .sd-rel { grid-template-columns: 1fr; }
  .sd-logos { grid-template-columns: repeat(3, 1fr); }
  .sd-logo { padding: 14px; }
  .sd-faq summary { font-size: 16px; padding: 22px 0; }
  .sd-phone { width: 272px; }
  .sd-phone-screen { height: 540px; }
  .sd-chip-float { display: none; }
  .sd-cta { padding: 32px 24px; }
}

/* Brand logo instead of the check mark in format lists */
.sd-group li .plat-ic { margin-top: 1px; }
