/* /iphone «نصب ناویرو روی آیفون» (2026-11-29). Uses the site's theme variables (site.css: --gold, --card, --line, --text …),
   so the dark gold and the light themes both work. No inline styles (CSP style-src 'self'); no endless animations
   (phones heat up — memory «phone heat»). */
.ip { --ip-r: 22px; }
.ip h3 svg, .ip p svg, .ip b svg { vertical-align: -3px; color: var(--gold); }
.ip-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.ip-hero-txt h1 { margin: 10px 0 12px; line-height: 1.5; }
.ip-badges { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.ip-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .88rem;
  background: var(--card); border: 1px solid var(--line); }
.ip-badges svg { color: var(--gold); }
.ip .btn svg { vertical-align: -4px; margin-inline-end: 4px; }

/* notes chosen by iphone.js for this device */
.ip-notes { display: grid; gap: 12px; margin-top: 8px; }
.ip-note { padding: 16px 18px; border-radius: var(--ip-r); background: var(--card); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.ip-note[hidden] { display: none; }
.ip-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.9; }
.ip-warn { border-color: #e7a33e; background: color-mix(in srgb, #e7a33e 10%, var(--card)); }
.ip-ok { border-color: var(--green); }
.ip-copied { color: var(--green); font-size: .9rem; align-self: center; }

/* the two ways */
.ip-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ip-way { padding: 22px; border-radius: var(--ip-r); background: var(--card); border: 1px solid var(--line); scroll-margin-top: 90px; }
.ip-way.is-you { border-color: color-mix(in srgb, var(--gold) 65%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent); }
.ip-way-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ip-way-head h2 { margin: 0; font-size: 1.3rem; }
.ip-way-head p { margin: 2px 0 0; }
.ip-way-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
.ip-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ip-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 16px; border-radius: 18px;
  background: var(--card-2); border: 1px solid var(--line); }
.ip-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-1), var(--gold), var(--gold-3)); box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.ip-step h3 { margin: 4px 0 4px; font-size: 1.05rem; line-height: 1.7; }
.ip-step p { margin: 0; color: var(--muted); line-height: 1.9; }
.ip-step-art { grid-column: 2; margin-top: 8px; }

/* small iOS pictures (left-to-right like the real screens) */
.ip-mock { direction: ltr; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; font-size: 13px; color: #e9e9ee;
  background: #1c1c1e; border: 1px solid #38383a; border-radius: 16px; max-width: 300px; overflow: hidden; }
.ip-hot { color: #0a84ff; position: relative; }
.ip-hot::after { content: ""; position: absolute; inset: -7px; border-radius: 12px; border: 2px solid var(--gold);
  box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 70%, transparent); }
.ip-phone .ip-screen { display: grid; justify-items: center; gap: 4px; padding: 18px 10px 14px; background: linear-gradient(#0d0d10, #16161a); }
.ip-phone .ip-screen img { border-radius: 14px; }
.ip-phone .ip-screen b { color: var(--gold); letter-spacing: 1px; }
.ip-phone .ip-screen small { color: #8e8e93; }
.ip-bar { display: flex; justify-content: space-around; align-items: center; padding: 12px 6px; background: #2c2c2e; color: #0a84ff; font-size: 18px; }
.ip-sheet .ip-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid #38383a; }
.ip-sheet .ip-row:first-child { border-top: 0; }
.ip-sheet .ip-row i { font-style: normal; color: #aeaeb2; display: inline-grid; }
.ip-hot-row { background: color-mix(in srgb, var(--gold) 18%, #1c1c1e); outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 10px; }
.ip-hot-row span, .ip-hot-row i { color: #fff !important; font-weight: 600; }
.ip-dlg-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #2c2c2e; }
.ip-dlg-top span { color: #0a84ff; }
.ip-dlg-top b { font-size: 12px; }
.ip-hot-txt { font-weight: 700; padding: 2px 8px; border-radius: 8px; outline: 2px solid var(--gold); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent); }
.ip-dlg-body { display: flex; gap: 10px; align-items: center; padding: 12px; }
.ip-dlg-body img { border-radius: 10px; }
.ip-dlg-body small { display: block; color: #8e8e93; }
.ip-dlg-opt { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-top: 1px solid #38383a; }
.ip-switch { width: 36px; height: 22px; border-radius: 11px; background: #30d158; position: relative; }
.ip-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.ip-home { max-width: 280px; margin-inline: auto; padding: 22px 18px; border-radius: 34px; border: 6px solid #2c2c2e;
  background: radial-gradient(120% 80% at 30% 0%, #3a2a0a, #0d0d10 60%); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; justify-items: center; }
.ip-app { width: 46px; height: 46px; border-radius: 12px; display: block; opacity: .75; }
.ip-app1 { background: linear-gradient(135deg, #34c759, #248a3d); } .ip-app2 { background: linear-gradient(135deg, #0a84ff, #0040dd); }
.ip-app3 { background: linear-gradient(135deg, #ff9f0a, #c93400); } .ip-app4 { background: linear-gradient(135deg, #bf5af2, #8944ab); }
.ip-app5 { background: linear-gradient(135deg, #64d2ff, #0071a4); } .ip-app6 { background: linear-gradient(135deg, #ff375f, #a20025); }
.ip-app7 { background: linear-gradient(135deg, #8e8e93, #48484a); }
.ip-app-naviru { display: grid; justify-items: center; gap: 4px; }
.ip-app-naviru img { border-radius: 12px; outline: 2px solid var(--gold); box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 70%, transparent); }
.ip-app-naviru small { color: #fff; font-size: 10px; }

/* after install + closing card */
.ip-after { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--ip-r); background: var(--card); border: 1px solid var(--line); }
.ip-after h2 { margin: 2px 0 8px; }
.ip-after-list { margin: 0 0 14px; padding-inline-start: 20px; color: var(--muted); line-height: 2; }
.ip-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; border-radius: var(--ip-r);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.ip-cta h2 { margin: 0 0 4px; }
.ip-cta p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .ip-hero-grid, .ip-ways { grid-template-columns: 1fr; }
  .ip-hero-art { order: -1; }
  .ip-home { max-width: 230px; padding: 16px 12px; }
  .ip-app, .ip-app-naviru img { width: 38px; height: 38px; }
  .ip-step { padding: 14px; }
  .ip-step-art { grid-column: 1 / -1; }
  .ip-after { flex-direction: column; }
}
