/* Shared public content pages; the storefront owns styles.css. */
body.content-page {
  --cp-bg: #f5f7fb;
  --cp-surface: #ffffff;
  --cp-ink: #17233b;
  --cp-muted: #65718a;
  --cp-accent: #3659e3;
  --cp-line: #e1e6ef;
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color-scheme: light;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content-page main { flex: 1; }
.content-page .container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.content-page a { color: var(--cp-accent); text-underline-offset: 4px; }
.content-page a:hover { color: #2544be; }
.content-page :is(a, button, [tabindex]):focus-visible { outline: 3px solid #3659e3; outline-offset: 4px; }
.content-page :is(a, button) { touch-action: manipulation; }
.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4 { color: var(--cp-ink); font-family: inherit; text-wrap: balance; }
.content-page p { overflow-wrap: anywhere; }
.cp-skip { position: fixed; z-index: 100; top: 10px; left: 16px; padding: 10px 16px; background: #fff; border-radius: 10px; transform: translateY(-150%); }
.cp-skip:focus { transform: translateY(0); }
.content-page .cp-header { background: rgba(245, 247, 251, .96); border-bottom: 1px solid var(--cp-line); backdrop-filter: blur(12px); }
.content-page .cp-header .header-inner { height: auto; min-height: 80px; gap: 24px; }
.content-page .brand { color: var(--cp-ink); text-decoration: none; align-items: center; }
.content-page .brand-copy { gap: 6px; }
.content-page .brand-copy strong { font: 800 17px/1.1 "Manrope", system-ui, sans-serif; letter-spacing: -.04em; }
.content-page .brand-copy small { color: var(--cp-muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.content-page .brand-mark { flex: 0 0 38px; width: 38px; height: 38px; }
.content-page .brand-mark img { display: block; width: 38px; height: 38px; box-shadow: none; }
.cp-nav { display: flex; align-items: center; gap: 24px; }
.cp-nav a { color: var(--cp-muted); text-decoration: none; font-size: 13px; font-weight: 600; padding-block: 10px; }
.cp-nav a:hover { color: var(--cp-ink); }
.content-page .btn { min-height: 48px; padding: 12px 20px; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; gap: 12px; text-decoration: none; box-shadow: none; letter-spacing: 0; }
.content-page .btn-primary { color: #fff; background: var(--cp-accent); border: 1px solid var(--cp-accent); }
.content-page .btn-primary:hover { background: #2848c8; color: #fff; }
.content-page .btn-secondary { color: var(--cp-ink); background: #fff; border: 1px solid #d7deea; }
.content-page .btn-secondary:hover { background: #eef2fa; color: var(--cp-ink); }
.cp-hero { padding-block: 64px 42px; }
.cp-eyebrow { color: var(--cp-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.cp-hero h1 { margin: 0; max-width: 850px; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.cp-lead { color: var(--cp-muted); max-width: 650px; font-size: 16px; line-height: 1.8; margin: 18px 0 0; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cp-product-note { display: flex; gap: 12px; align-items: flex-start; max-width: 800px; padding: 16px 20px; margin-top: 26px; border: 1px solid #dce4f7; border-radius: 16px; background: #edf2ff; }
.cp-product-note p { margin: 0; font-size: 13px; line-height: 1.7; color: #44536e; }
.cp-note-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: var(--cp-accent); border: 1px solid #aebdee; border-radius: 50%; font-size: 12px; font-weight: 800; }
.cp-surface { background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: 24px; box-shadow: 0 6px 24px rgba(23,35,59,.025); }
.content-page .cp-footer { margin-top: 40px; padding-block: 28px; border-top: 1px solid var(--cp-line); }
.content-page .cp-footer .footer-inner { color: var(--cp-muted); font-size: 12px; gap: 20px; }
.cp-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.cp-footer a { color: var(--cp-muted); text-decoration: none; }
.cp-footer a:hover { text-decoration: underline; }

/* Product documentation */
.docs-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.lang-sw { display: inline-flex; gap: 3px; flex: 0 0 auto; padding: 4px; background: #e9eef7; border-radius: 11px; }
.lang-sw button { border: 0; border-radius: 8px; min-width: 42px; min-height: 36px; padding: 6px 11px; font-family: inherit; font-size: 12px; line-height: 1; font-weight: 700; color: var(--cp-muted); background: transparent; cursor: pointer; }
.lang-sw button.active { color: var(--cp-accent); background: #fff; box-shadow: 0 1px 4px #17233b0d; }
.docs-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 36px; padding-bottom: 40px; }
.sidebar { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; padding: 14px 0; }
.sidebar ul { padding: 0; margin: 0; list-style: none; }
.sidebar li { margin: 2px 0; }
.sidebar a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 12px; line-height: 1.45; color: var(--cp-muted); text-decoration: none; transition: background-color .15s, color .15s; }
.sidebar a:hover { color: var(--cp-ink); background: #e9eef7; }
.sidebar a.active { color: var(--cp-accent); background: #e9efff; font-weight: 700; }
.sidebar .cat { padding: 17px 12px 7px; font-size: 10px; color: #65718a; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.sidebar .cat:first-child { padding-top: 0; }
.docs-content { min-width: 0; padding: 34px 40px; background: #fff; border: 1px solid var(--cp-line); border-radius: 24px; }
.docs-content .section { scroll-margin-top: 106px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid #e7ebf2; }
.docs-content .section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.docs-content h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 18px; }
.docs-content h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.015em; margin: 26px 0 10px; }
.docs-content p,
.docs-content li { color: #52607a; font-size: 13px; line-height: 1.85; }
.docs-content p { margin: 12px 0; }
.docs-content li + li { margin-top: 6px; }
.docs-content ul,
.docs-content ol { padding-left: 21px; margin: 12px 0 18px; }
.docs-content strong { color: #24334f; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 22px 0; }
.step { padding: 16px; background: #f7f9fd; border: 1px solid #e7ebf2; border-radius: 14px; }
.step .num { color: var(--cp-accent); font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.step :is(h3,h4) { font-size: 13px; line-height: 1.45; margin: 0 0 8px; }
.step p { font-size: 12px; margin: 0; line-height: 1.75; }
.docs-content code { padding: 3px 6px; color: #3455c3; background: #eef2fa; border-radius: 5px; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.docs-content pre { overflow-x: auto; padding: 18px; border: 1px solid var(--cp-line); border-radius: 14px; background: #f7f9fc; font-size: 12px; }
.docs-content pre code { padding: 0; background: none; }
.callout { margin: 20px 0; padding: 16px 18px; color: #52607a; background: #f0f4ff; border: 1px solid #dee6fc; border-radius: 14px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.callout strong { color: #2f4fab; }
.callout-green { background: #f0f8f5; border-color: #daebe3; }
.callout-green strong { color: #2f6552; }
.badge { display: inline-block; border-radius: 6px; padding: 3px 7px; font-size: 10px; font-weight: 800; line-height: 1.5; }
.badge-plus { color: #3455c3; background: #eaf0ff; }
.badge-pro { color: #7051b2; background: #f1edfa; }
.badge-free { color: #65718a; background: #eef1f6; }
.table-scroll { width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--cp-line); border-radius: 14px; }
.feat-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #52607a; text-align: left; }
.feat-table th { background: #f7f9fc; color: #65718a; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--cp-line); }
.feat-table td { padding: 12px 14px; border-bottom: 1px solid #edf0f5; line-height: 1.7; }
.feat-table tr:last-child td { border-bottom: 0; }
.feat-table tbody tr:hover { background: #f8faff; }

/* Four-step macOS guide */
.gs-steps { padding-bottom: 48px; }
.gs-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gs-step { padding: 26px 22px; border-radius: 18px; }
.gs-step-num { color: var(--cp-accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; display: block; margin-bottom: 32px; }
.gs-step h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.03em; line-height: 1.3; }
.gs-step p { margin: 0; color: var(--cp-muted); font-size: 13px; line-height: 1.85; }
.gs-step strong { color: #34435f; font-weight: 700; }

/* Privacy and service data information. */
.cp-document-wrap { padding-block: 56px 24px; }
.cp-document { max-width: 850px; margin: 0 auto; padding: 48px 56px; }
.cp-document h1 { font-size: clamp(30px,4vw,44px); line-height: 1.2; letter-spacing: -.045em; margin: 0 0 12px; }
.cp-document h2 { margin: 34px 0 12px; font-size: 19px; line-height: 1.4; letter-spacing: -.025em; scroll-margin-top: 104px; }
.cp-document p,
.cp-document li { color: #52607a; font-size: 14px; line-height: 1.9; }
.cp-document p { margin: 14px 0; }
.cp-document ul { padding-left: 22px; }
.cp-document li + li { margin-top: 10px; }
.cp-document strong { color: var(--cp-ink); }

/* Missing page and the existing macOS licence result. */
.cp-status-wrap { display: flex; align-items: center; justify-content: center; padding-block: 64px; min-height: min(680px, calc(100vh - 190px)); }
.cp-status-card,
.cp-status-shell { width: 100%; max-width: 640px; padding: 48px; text-align: center; }
.cp-status-card h1,
.license-card h1 { margin: 0; font-size: clamp(26px, 3.2vw,36px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.cp-status-card .cp-lead { max-width: 440px; margin-inline: auto; font-size: 14px; }
.cp-status-card .cp-actions { justify-content: center; }
.cp-error-code { font-size: clamp(76px, 12vw,128px); font-weight: 800; line-height: 1; letter-spacing: -.075em; color: #dfe6fb; margin-bottom: 26px; }
.cp-status-shell > .cp-eyebrow { margin-bottom: 30px; }
.license-card .sub { margin: 16px 0 24px; color: var(--cp-muted); font-size: 14px; line-height: 1.8; }
.license-card .note { color: var(--cp-muted); font-size: 12px; line-height: 1.8; margin: 20px 0 0; }
.cp-status-symbol { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; border-radius: 18px; color: #35745a; background: #edf7f1; font-size: 26px; font-weight: 600; }
.cp-status-symbol--pending { color: var(--cp-accent); background: #edf2ff; }
.key-box { background: #f4f7fc; border: 1px solid var(--cp-line); border-radius: 16px; padding: 20px; margin: 24px 0 20px; }
.key-label { color: var(--cp-muted); font-size: 11px; margin-bottom: 10px; }
.key-value { display: block; font: 600 16px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--cp-accent); overflow-wrap: anywhere; user-select: all; }
.cp-status-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; border-top: 1px solid var(--cp-line); padding-top: 24px; margin-top: 30px; font-size: 12px; }
.cp-status-foot a { text-decoration: none; }
.cp-status-foot a:hover { text-decoration: underline; }
.spinner { display: block; width: 28px; height: 28px; border: 2px solid #e1e7f7; border-top-color: var(--cp-accent); border-radius: 50%; animation: cp-spin .8s linear infinite; margin: 0 auto 24px; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .cp-nav { gap: 16px; }
  .docs-layout { grid-template-columns: 188px minmax(0, 1fr); gap: 24px; }
  .docs-content { padding: 28px; }
  .step-grid { grid-template-columns: 1fr; }
  .gs-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .content-page .container { width: calc(100% - 32px); }
  .content-page .cp-header .header-inner { min-height: 76px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 14px; }
  .cp-nav { width: 100%; gap: 18px; overflow-x: auto; white-space: nowrap; }
  .cp-nav a { font-size: 11px; }
  .cp-hero { padding-block: 40px 28px; }
  .cp-hero h1 { font-size: clamp(30px, 7vw,40px); }
  .cp-lead { font-size: 14px; line-height: 1.8; }
  .docs-title-row { flex-direction: column; gap: 20px; }
  .cp-product-note { padding: 14px; border-radius: 12px; }
  .cp-product-note p { font-size: 12px; }
  .docs-layout { display: block; }
  .sidebar { position: static; max-height: none; padding: 0 0 18px; overflow: visible; }
  .sidebar ul { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; }
  .sidebar li { flex: 0 0 auto; }
  .sidebar .cat { display: none; }
  .sidebar a { border: 1px solid var(--cp-line); background: #fff; padding: 8px 10px; }
  .docs-content { border-radius: 18px; padding: 24px 20px; }
  .docs-content h2 { font-size: 22px; }
  .docs-content .section { scroll-margin-top: 140px; padding-bottom: 28px; margin-bottom: 28px; }
  .feat-table { min-width: 380px; }
  .content-page .cp-footer .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cp-footer nav { gap: 10px 20px; }
  .cp-document-wrap { padding-top: 28px; }
  .cp-document { padding: 28px 22px; border-radius: 18px; }
  .cp-document p,
  .cp-document li { font-size: 13px; }
  .cp-status-wrap { padding-block: 36px; min-height: 520px; }
  .cp-status-card,
  .cp-status-shell { padding: 32px 22px; border-radius: 20px; }
}
@media (max-width: 440px) {
  .gs-step-grid { grid-template-columns: 1fr; }
  .gs-step { padding: 24px; }
  .gs-step-num { margin-bottom: 18px; }
  .cp-actions { flex-direction: column; }
  .cp-actions .btn { width: 100%; }
  .cp-status-card .cp-actions { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .content-page *, .content-page *::before, .content-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Subscription support URL used by Happ/v2RayTun. */
.routing-hero { padding-bottom: 34px; }
.routing-clients { display: flex; gap: 8px; margin-top: 22px; }
.routing-clients span { padding: 6px 12px; background: #fff; border: 1px solid var(--cp-line); border-radius: 8px; color: #52607a; font-size: 12px; font-weight: 700; }
.routing-content { padding-bottom: 32px; }
.routing-apply { padding: 32px; }
.routing-apply .cp-eyebrow { display: block; margin-bottom: 12px; }
.routing-content h2 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw,28px); letter-spacing: -.035em; line-height: 1.3; }
.routing-content p { margin: 0; color: var(--cp-muted); font-size: 14px; line-height: 1.85; }
.routing-content strong { color: #34435f; }
.routing-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--cp-line); }
.routing-steps li { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.routing-steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #edf2ff; color: var(--cp-accent); font-size: 11px; font-weight: 800; }
.routing-steps p { font-size: 12px; line-height: 1.65; }
.routing-rules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.routing-rule { padding: 32px; display: flex; flex-direction: column; }
.routing-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #65718a; font-weight: 700; margin-bottom: 24px; }
.routing-dot { width: 7px; height: 7px; border-radius: 50%; background: #7890a9; }
.routing-dot--vpn { background: var(--cp-accent); }
.routing-rule h2 { max-width: 340px; font-size: 25px; }
.routing-rule .routing-services { color: #34435f; margin-top: 16px; font-size: 13px; }
.routing-rule-note { color: #65718a; font-size: 12px; line-height: 1.8; margin-top: auto; padding-top: 22px; }
.routing-note { max-width: none; }
.routing-note p { font-size: 13px; }
.routing-actions { margin-top: 24px; }
@media (max-width: 720px) {
  .routing-apply, .routing-rule { padding: 24px; border-radius: 18px; }
  .routing-steps { grid-template-columns: 1fr; gap: 18px; }
  .routing-steps li { align-items: center; }
  .routing-rules { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .routing-rule h2 { font-size: 23px; }
  .routing-rule p { font-size: 13px; }
}
