:root {
  --guide-accent: #46d7e8;
  --guide-accent-soft: #dff8fb;
  --guide-ink: #14201f;
  --guide-muted: #5e6967;
  --guide-paper: #f4f1e8;
  --guide-card: #fffdf8;
  --guide-line: #d5d4cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: "Avenir Next", "Trebuchet MS", sans-serif; }
body { margin: 0; background: var(--guide-paper); color: var(--guide-ink); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--guide-accent); outline-offset: 4px; }

.guide-topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(20, 32, 31, .14); background: rgba(244, 241, 232, .94); backdrop-filter: blur(14px); }
.guide-topbar-inner { width: min(1160px, calc(100% - 48px)); min-height: 74px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.guide-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .11em; text-decoration: none; }
.guide-brand span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--guide-ink); color: white; }
.guide-home-link { min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--guide-ink); border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.guide-home-link:hover { background: var(--guide-ink); color: white; }

.guide-main { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.proton-device-picker { margin-top: 46px; padding: 28px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: center; border: 2px solid var(--guide-ink); border-radius: 22px; background: var(--guide-card); box-shadow: 6px 6px 0 var(--guide-accent); }
.proton-device-picker .guide-kicker { margin-bottom: 8px; }
.proton-device-picker h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -.035em; }
.proton-device-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proton-device-option { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 2px solid var(--guide-ink); border-radius: 16px; background: white; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.proton-device-option:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(20, 32, 31, .15); }
.proton-device-option.is-current { background: var(--guide-accent-soft); border-color: #6b9c20; }
.proton-device-option strong { font-size: 1.05rem; line-height: 1.2; }
.proton-device-option span { margin-top: 7px; color: var(--guide-muted); font-size: .88rem; line-height: 1.35; }
.guide-hero { padding: 88px 0 56px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 70px; align-items: end; }
.guide-kicker { margin: 0 0 18px; color: #3f5552; font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.guide-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .91; letter-spacing: -.06em; }
.guide-lead { max-width: 720px; margin: 28px 0 0; color: var(--guide-muted); font-size: 1.15rem; }
.guide-meta { padding: 24px; display: grid; gap: 16px; border: 2px solid var(--guide-ink); border-radius: 18px; background: var(--guide-card); box-shadow: 6px 6px 0 var(--guide-accent); }
.guide-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--guide-line); }
.guide-meta div:last-child { border-bottom: 0; }
.guide-meta span { color: var(--guide-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.guide-meta strong { text-align: right; }

.guide-intro-grid { padding: 0 0 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guide-intro-card { padding: 30px; border: 1px solid var(--guide-line); border-radius: 18px; background: var(--guide-card); }
.guide-intro-card h2 { margin: 0 0 12px; font-size: 1.35rem; }
.guide-intro-card p, .guide-intro-card ul { margin: 0; color: var(--guide-muted); }
.guide-intro-card ul { padding-left: 20px; }
.guide-privacy { border-color: var(--guide-accent); background: var(--guide-accent-soft); }

.guide-section-heading { padding: 70px 0 36px; border-top: 1px solid var(--guide-line); }
.guide-section-heading p { margin: 0 0 10px; color: var(--guide-muted); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.guide-section-heading h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.guide-steps { display: grid; gap: 28px; padding-bottom: 90px; }
.guide-step { padding: 28px; display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 32px; align-items: center; border: 1px solid var(--guide-line); border-radius: 22px; background: var(--guide-card); box-shadow: 0 14px 36px rgba(20, 32, 31, .06); }
.guide-step:nth-child(even) .step-media { grid-column: 1; grid-row: 1; }
.guide-step:nth-child(even) .step-copy { grid-column: 2; }
.step-copy { padding: 10px; }
.step-number { width: 48px; height: 48px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--guide-accent); color: var(--guide-ink); font-weight: 900; }
.step-copy h3 { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.025em; }
.step-copy p { margin: 0; color: var(--guide-muted); font-size: 1.03rem; }
.step-copy p + p { margin-top: 12px; }
.step-media { overflow: hidden; border: 1px solid #bcc4c2; border-radius: 14px; background: #101817; }
.step-media img { width: 100%; height: auto; display: block; }
.step-visual { min-height: 300px; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; border: 1px solid #2d3d3a; border-radius: 14px; background: radial-gradient(circle at 82% 18%, rgba(255, 200, 87, .25), transparent 34%), linear-gradient(145deg, #182724, #0c1312); color: white; }
.visual-label { margin-bottom: auto; color: #aab9b6; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.visual-symbol { width: 64px; height: 64px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: var(--guide-accent); color: var(--guide-ink); font-size: 2rem; font-weight: 900; }
.visual-status { width: 22px; height: 22px; margin-bottom: 22px; display: block; border: 5px solid rgba(255, 255, 255, .14); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }
.visual-status.is-alert { background: #ff5d55; }
.visual-status.is-ready { background: #5de67a; }
.step-visual strong { max-width: 420px; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.06; }
.step-visual small { margin-top: 10px; color: #aab9b6; font-size: .92rem; }
.guide-step.no-media { grid-template-columns: 1fr; }
.guide-step.no-media .step-copy { max-width: 760px; }
.guide-note { margin-top: 20px; padding: 15px 17px; border-left: 5px solid var(--guide-accent); border-radius: 0 10px 10px 0; background: var(--guide-accent-soft); color: var(--guide-ink); font-size: .93rem; }
.guide-note .proton-link { color: #5134c4; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-note .support-message { display: block; margin-top: 12px; }
.account-plan-media { width: min(100%, 360px); margin: 22px 0 0; }
.account-plan-media img { width: 100%; height: auto; display: block; border: 1px solid #c9c3e8; border-radius: 14px; }
.account-plan-media figcaption { margin-top: 9px; color: var(--guide-muted); font-size: .86rem; line-height: 1.45; }

.guide-optional { margin-bottom: 90px; padding: 38px; border-radius: 24px; background: #12201f; color: white; }
.guide-optional > span { color: var(--guide-accent); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.guide-optional h2 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.guide-optional > p { max-width: 760px; margin: 0 0 28px; color: #b9c6c3; }
.guide-optional .guide-step { color: var(--guide-ink); box-shadow: none; }

.guide-finish { margin-bottom: 70px; padding: 48px; border: 2px solid var(--guide-ink); border-radius: 26px; background: var(--guide-accent); color: var(--guide-ink); }
.guide-finish span { font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.guide-finish h2 { margin: 10px 0; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .96; letter-spacing: -.04em; }
.guide-finish p { max-width: 720px; margin: 0; }
.guide-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.guide-action { min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; border: 2px solid var(--guide-ink); border-radius: 999px; background: var(--guide-ink); color: white; font-weight: 900; text-decoration: none; }
.guide-action.secondary { background: transparent; color: var(--guide-ink); }
.guide-footer { padding: 28px 0 42px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--guide-line); color: var(--guide-muted); font-size: .78rem; }

@media (max-width: 850px) {
  .proton-device-picker { grid-template-columns: 1fr; }
  .guide-hero { grid-template-columns: 1fr; gap: 38px; }
  .guide-meta { max-width: 520px; }
  .guide-step, .guide-step:nth-child(even) { grid-template-columns: 1fr; }
  .guide-step:nth-child(even) .step-media, .guide-step:nth-child(even) .step-copy { grid-column: auto; grid-row: auto; }
  .guide-step .step-copy { grid-row: 1; }
}

@media (max-width: 600px) {
  .guide-topbar-inner, .guide-main { width: calc(100% - 28px); }
  .guide-topbar-inner { min-height: 66px; }
  .proton-device-picker { margin-top: 24px; padding: 19px; gap: 18px; border-radius: 18px; }
  .proton-device-options { grid-template-columns: 1fr; }
  .proton-device-option { min-height: 90px; }
  .guide-brand strong { display: none; }
  .guide-hero { padding: 54px 0 38px; }
  .guide-hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .guide-lead { font-size: 1rem; }
  .guide-intro-grid { grid-template-columns: 1fr; padding-bottom: 52px; }
  .guide-intro-card { padding: 22px; }
  .guide-section-heading { padding-top: 52px; }
  .guide-steps { gap: 18px; padding-bottom: 64px; }
  .guide-step { padding: 16px; gap: 20px; border-radius: 17px; }
  .step-copy { padding: 8px; }
  .step-number { margin-bottom: 18px; }
  .guide-optional { margin-bottom: 64px; padding: 22px 16px; }
  .guide-finish { margin-bottom: 48px; padding: 30px 22px; }
  .guide-footer { flex-direction: column; }
}
