.g-hero {
  position: relative;
  padding: 36px 0 24px;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(124, 58, 237, 0.26), transparent 60%),
    radial-gradient(800px 520px at 0% 20%, rgba(236, 72, 153, 0.14), transparent 60%),
    var(--bg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .g-hero { padding: 56px 0 40px; }
}
.g-hero-inner {
  max-width: 920px;
}
.g-hero h1 {
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.g-lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 0 16px;
}
.g-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--text-mute);
  margin: 0 0 26px;
}
.g-meta span { color: var(--text-mute); }
.g-hero--hub .g-lead { margin-bottom: 28px; }

.g-crumbs { margin-bottom: 22px; }
.g-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mute);
}
.g-crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--text-mute);
  opacity: 0.6;
}
.g-crumbs a { color: var(--text-dim); }
.g-crumbs a:hover { color: var(--text); }
.g-crumbs li[aria-current='page'] { color: var(--text-mute); }

.g-figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.g-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 72px;
}
@media (min-width: 1024px) {
  .g-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    max-width: 1120px;
  }
}

.g-article {
  min-width: 0;
  max-width: 760px;
  font-size: 17px;
}
.g-article p,
.g-article li {
  color: var(--text-dim);
  line-height: 1.75;
}
.g-article p { margin: 0 0 1.1em; }
.g-article strong { color: var(--text); }
.g-article a { color: var(--primary-3); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, 0.4); text-underline-offset: 3px; }
.g-article a:hover { color: #C4B5FD; text-decoration-color: currentColor; }
.g-article .btn { text-decoration: none; }
.g-article .btn-primary,
.g-article .btn-primary:hover,
.g-article .btn-apple,
.g-article .btn-apple:hover { color: #fff; }

.g-block {
  padding: 0;
  margin: 44px 0 0;
  scroll-margin-top: 90px;
}
@media (min-width: 768px) {
  .g-block { padding: 0; }
}
.g-block h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.g-block h3 { font-size: 18px; margin: 0 0 6px; }
.g-block ul,
.g-block ol { padding-left: 22px; margin: 0 0 1.2em; }
.g-block li { margin-bottom: 8px; }
.g-block li::marker { color: var(--primary-3); }

.g-answer {
  background: var(--grad-soft);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 24px 8px;
  margin: 0 0 24px;
}
.g-answer-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-3);
  margin-bottom: 8px;
}
.g-answer p { font-size: 18px; color: var(--text); line-height: 1.65; }

.g-cta-inline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0 0 28px;
}
.g-cta-inline-text { display: flex; flex-direction: column; gap: 2px; }
.g-cta-inline-text strong { font-size: 17px; }
.g-cta-inline-text span { color: var(--text-dim); font-size: 15px; }
.g-cta-inline .store-ctas { gap: 10px; }
.g-cta-inline .btn-store { width: 100%; max-width: 320px; }
@media (min-width: 1024px) {
  .g-cta-inline { display: none; }
}

.g-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
}
.g-toc strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.g-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px 24px;
}
@media (min-width: 640px) {
  .g-toc ol { grid-template-columns: 1fr 1fr; }
}
.g-toc li { counter-increment: toc; margin: 0; line-height: 1.4; padding: 5px 0; }
.g-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-3);
  margin-right: 10px;
}
.g-toc a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.g-toc a:hover { color: var(--text); }

.g-steps {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0 0 !important;
  display: grid;
  gap: 14px;
}
.g-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0;
}
.g-steps li p { margin: 0; }
.g-step-n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(167, 139, 250, 0.6);
}

.g-note {
  border-left: 3px solid var(--primary-3);
  background: rgba(167, 139, 250, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px 4px;
  margin: 0 0 1.2em;
}
.g-note strong { display: block; margin-bottom: 4px; color: var(--text); }
.g-note p { margin-bottom: 10px; }

.g-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.g-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
.g-table th,
.g-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  line-height: 1.55;
}
.g-table thead th {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}
.g-table tbody th { color: var(--text); font-weight: 600; width: 26%; }
.g-table tr:last-child th,
.g-table tr:last-child td { border-bottom: 0; }

.g-help {
  background: rgba(244, 63, 94, 0.07);
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 24px 8px;
}
.g-help h2 { font-size: 22px; }
.g-help li::marker { color: var(--red); }

.g-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
  overflow: hidden;
}
.g-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  line-height: 1.4;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary-3);
  transition: transform 0.2s var(--ease);
}
.g-faq details[open] summary::after { content: '–'; }
.g-faq-a { padding: 0 20px 6px; }

.g-sources ul { font-size: 15px; }
.g-sources a { word-break: break-word; }

.g-disclaimer {
  margin-top: 44px;
  padding: 18px 22px 6px;
  border-top: 1px solid var(--line);
}
.g-disclaimer p { font-size: 14px; color: var(--text-mute); line-height: 1.7; }
.g-disclaimer strong { color: var(--text-dim); }
.g-disclaimer--hub { margin-top: 56px; padding-left: 0; padding-right: 0; }

.g-aside { display: none; }
@media (min-width: 1024px) {
  .g-aside { display: block; }
  .g-app-card { position: sticky; top: 96px; }
}
.g-app-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(236, 72, 153, 0.18), transparent 70%),
    radial-gradient(300px 200px at 0% 0%, rgba(124, 58, 237, 0.22), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
.g-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.5));
}
.g-app-card h2 { font-size: 22px; margin: 0 0 6px; }
.g-app-card p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.g-app-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.g-app-card li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}
.g-app-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}
.g-app-buttons { display: grid; gap: 10px; }
.g-app-buttons .btn-store { width: 100%; font-size: 15px; padding-left: 14px; padding-right: 14px; height: 52px; }


.g-related {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}
@media (min-width: 768px) {
  .g-related { padding: 72px 0 40px; }
}
.g-related h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 24px; }

.g-hub { padding-top: 24px; padding-bottom: 40px; }
.g-cat { padding: 0; margin-top: 56px; }
@media (min-width: 768px) {
  .g-cat { padding: 0; }
}
.g-cat:first-child { margin-top: 24px; }
.g-cat-head { margin-bottom: 24px; max-width: 64ch; }
.g-cat-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
.g-cat-head p { margin: 0; font-size: 16.5px; }

.g-cta {
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(124, 58, 237, 0.32), transparent 65%),
    radial-gradient(700px 400px at 90% 100%, rgba(236, 72, 153, 0.2), transparent 60%),
    var(--bg-2);
}
@media (min-width: 768px) {
  .g-cta { padding: 96px 0; }
}
.g-cta h2 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.03em; margin-bottom: 14px; }
.g-cta p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.g-cta .tiny { font-size: 13px; color: var(--text-mute); margin-top: 6px; }


@media (max-width: 540px) {
  .g-steps li { grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; }
  .g-step-n { width: 38px; height: 38px; font-size: 16px; }
  .g-answer { padding: 18px 18px 4px; }
  .g-answer p { font-size: 17px; }
  .g-help { padding: 18px 18px 4px; }
}

@media print {
  .site-header, .g-cta, .g-aside, .g-cta-inline, .site-footer, .g-related { display: none; }
}

.g-share {
  margin-top: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px 22px 28px;
  text-align: center;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.g-share .share-box { margin-top: 18px; }
.g-share h2 { font-size: clamp(20px, 2.6vw, 24px); margin: 0 0 6px; }
.g-share p { margin: 0 auto; max-width: 46ch; font-size: 15.5px; }
.g-share-top {
  display: inline-flex;
  margin: 0 0 22px;
}

.g-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 8, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.g-sticky.show { transform: translateY(0); }
.g-sticky-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.g-sticky-text { flex: 1; min-width: 0; line-height: 1.25; }
.g-sticky-text strong { display: block; font-size: 14.5px; }
.g-sticky-text span { font-size: 12.5px; color: var(--text-mute); }
.g-sticky .btn { height: 44px; padding: 0 18px; font-size: 14.5px; white-space: nowrap; }
.g-sticky-close {
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: 24px;
  line-height: 1;
  padding: 6px 4px;
  cursor: pointer;
}
html[data-os] .g-sticky { display: block; }
html[data-os="ios"] .g-sticky .g-sticky-play,
html[data-os="android"] .g-sticky .g-sticky-apple { display: none; }
@media (min-width: 1024px) {
  html[data-os] .g-sticky { display: none; }
}

.g-article .share-btn,
.g-article .share-btn:hover {
  color: var(--text);
  text-decoration: none;
}
.g-article .share-btn--primary,
.g-article .share-btn--primary:hover { color: #fff; }
