:root {
  --bg: #f5f3ee;
  --bg-soft: #f9f8f4;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: rgba(250, 248, 242, 0.92);
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --text: #121826;
  --muted: #647084;
  --dim: #8a93a4;
  --shadow-lg: 0 32px 90px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 20px 44px rgba(17, 24, 39, 0.07);
  --shadow-sm: 0 12px 28px rgba(17, 24, 39, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(231, 228, 216, 0.7) 0%, transparent 28%),
    radial-gradient(circle at left 78%, rgba(249, 236, 222, 0.78) 0%, transparent 34%),
    linear-gradient(180deg, #f8f6f2 0%, #f3f1eb 100%);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.85);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.88em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.03em;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--muted);
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 18px 0;
}

.guide-nav {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.guide-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #0e1521;
  border: 1px solid var(--line);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.guide-brand-copy {
  display: grid;
  gap: 2px;
}

.guide-brand-copy strong {
  font-size: 1.05rem;
  line-height: 1;
}

.guide-brand-copy small {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.guide-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.guide-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.guide-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page {
  width: min(1240px, 92vw);
  margin: 24px auto 60px;
  display: grid;
  gap: 22px;
}

.hero-shell,
.panel,
.summary-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 26px;
  padding: 30px;
  border-radius: 34px;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--dim);
  font-size: 0.77rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-lead {
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: #0e1521;
  box-shadow: 0 18px 38px rgba(14, 21, 33, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.btn-compact {
  padding: 12px 18px;
}

.btn-inline {
  padding: 12px 18px;
}

.apple-logo {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.apple-logo svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-meta {
  color: var(--dim);
  font-size: 0.92rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span,
.screen-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-checklist {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.mini-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.4;
}

.hero-visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.screen-frame {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #0e1521;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.14);
}

.screen-frame-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.screen-frame-inner {
  padding: 48px 36px;
  text-align: center;
  max-width: 380px;
}

.screen-frame-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.screen-frame-inner h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.screen-frame-inner p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.98rem;
}

.screen-note {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.screen-note strong {
  font-size: 1rem;
  line-height: 1.45;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card {
  padding: 20px 22px;
  border-radius: 24px;
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.45;
}

.panel {
  padding: 28px;
  border-radius: 30px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0e1521;
  color: #ffffff;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.step-copy {
  display: grid;
  gap: 6px;
}

.step-copy h3 {
  font-size: 1rem;
}

.detail-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 10px;
}

.tips {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.tips li + li {
  margin-top: 10px;
}

.support-box {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 243, 236, 0.98));
}

.support-box span {
  color: var(--text);
  font-weight: 700;
}

.guide-footer {
  padding: 0 18px 42px;
}

.guide-footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.guide-footer-inner p {
  margin: 6px 0;
  color: var(--dim);
}

.guide-footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 1120px) {
  .guide-nav {
    border-radius: 28px;
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .guide-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .hero-checklist,
  .summary-grid,
  .steps-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guide-header {
    padding: 12px 12px 0;
  }

  .page {
    width: min(100%, calc(100vw - 24px));
    margin-top: 18px;
  }

  .hero-shell,
  .panel,
  .summary-card {
    border-radius: 24px;
  }

  .hero-shell,
  .panel {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .hero-actions,
  .guide-actions {
    width: 100%;
  }

  .guide-actions {
    justify-content: stretch;
  }

  .guide-actions .btn,
  .hero-actions .btn,
  .support-box .btn {
    width: 100%;
  }

  .guide-brand {
    width: 100%;
    justify-content: center;
  }

  .guide-links {
    display: none;
  }
}
