
/* AdGuardDNS.org - Setup Guide Styles */

:root {
  --sg-ink: #1e1730;
  --sg-purple: #6721a5;
  --sg-purple-2: #542177;
  --sg-muted: #61566d;
  --sg-red: #cc351f;
  --sg-border: #e7def1;
  --sg-paper: #fff;
  --sg-pale: #faf7fd;
  --sg-lav: #f3e8fe;
  --sg-shadow: 0 14px 36px rgba(66,26,97,.07);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfafe;
  color: var(--sg-ink);
  font: 15px/1.65 Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.sg-wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sg-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sg-skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.sg-skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid #9748d4;
  outline-offset: 3px;
}

/* HEADER */

.sg-header {
  position: relative;
  z-index: 10;
  background: #faf9fc;
  padding: 14px 0 0;
  border-bottom: 0;
}

.sg-header__inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #e8dfef;
  border-radius: 23px;
  box-shadow: 0 8px 28px rgba(47,29,73,.045);
  padding: 0 26px;
}

.sg-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}

.sg-brand strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #542177;
  letter-spacing: -.06em;
}

.sg-brand strong span { color: #221b2b; }

.sg-brand small {
  font-size: 10px;
  color: #665d6e;
  margin-top: 4px;
}

.sg-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sg-nav > a {
  font-weight: 700;
  padding: 12px;
  white-space: nowrap;
  font-size: 12px;
  border-radius: 12px;
}

.sg-nav > a:hover,
.sg-nav > a[aria-current=page] {
  background: #f2e7fc;
  color: var(--sg-purple);
}

.sg-nav .sg-nav__cta {
  margin-left: 12px;
  background: var(--sg-red);
  color: #fff;
  border-radius: 40px;
  padding: 13px 23px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.sg-nav .sg-nav__cta:hover {
  background: #ae2a18;
  color: #fff;
}

.sg-menu {
  display: none;
  background: none;
  border: 0;
  font-size: 23px;
  color: var(--sg-purple);
}

/* HERO */

.sg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 35% 85% at 87% 30%,
      #e2bff8 0,
      transparent 100%
    ),
    linear-gradient(
      120deg,
      #fbf7ff 10%,
      #efd9ff 100%
    );
  border-bottom: 1px solid #eadbf5;
}

.sg-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(167,100,217,.11);
  right: -140px;
  top: -210px;
  pointer-events: none;
}

.sg-breadcrumb {
  position: relative;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #78668b;
  font-size: 11px;
}

.sg-breadcrumb a {
  color: #7427aa;
  font-weight: 700;
}

.sg-breadcrumb i { font-size: 9px; }

.sg-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr);
  align-items: center;
  gap: 28px;
  padding: 35px 0 40px;
}

.sg-eyebrow {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 12px;
  background: #e8ceff;
  color: #6a1da5;
  border-radius: 30px;
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 800;
}

.sg-hero h1 {
  font-size: clamp(31px,3.7vw,47px);
  margin: 17px 0 14px;
  font-weight: 800;
}

.sg-hero h1 span { color: #7f2db9; }

.sg-hero__copy > p {
  font-size: 15px;
  max-width: 630px;
  color: #4e415c;
  line-height: 1.7;
  margin: 0;
}

.sg-benefits {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 11px;
  font-weight: 700;
}

.sg-benefits li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sg-benefits i {
  color: #7425b2;
  font-size: 15px;
}

.sg-hero__media { text-align: right; }

.sg-hero__media img {
  width: 100%;
  max-width: 430px;
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(90,33,146,.12));
}

/* DEVICE SELECTOR */

.sg-main { padding-top: 38px; }

.sg-heading h2 {
  font-size: 23px;
  margin: 0 0 4px;
}

.sg-heading p {
  font-size: 13px;
  color: var(--sg-muted);
  margin: 0 0 17px;
}

.sg-devices {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.sg-device {
  min-height: 60px;
  border: 1px solid #e6deef;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #21192f;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(46,22,86,.025);
  transition: border-color .2s, background .2s, transform .2s;
}

.sg-device:hover {
  border-color: #ba91e3;
  transform: translateY(-2px);
}

.sg-device i {
  font-size: 21px;
  color: #63219d;
}

.sg-device[data-device=android] i { color: #48b135; }

.sg-device[data-device=iphone] i,
.sg-device[data-device=macos] i { color: #242330; }

.sg-device[data-device=windows] i { color: #0078d4; }

.sg-device.is-active {
  border-color: #8b37d4;
  color: #6721a5;
  background: #f5eaff;
  box-shadow: 0 0 0 1px rgba(129,49,196,.09);
}

/* MAIN CONTENT */

.sg-panel {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6d9ef;
  border-radius: 17px;
  box-shadow: var(--sg-shadow);
}

.sg-steps {
  padding: 30px 28px;
  border-right: 1px solid #ede4f2;
}

.sg-section-label {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.sg-section-label > i {
  font-size: 34px;
  color: #0078d4;
  width: 42px;
  flex-shrink: 0;
  text-align: center;
}

.sg-section-label h2 {
  font-size: 21px;
  margin: 0 0 4px;
}

.sg-section-label p {
  font-size: 12px;
  color: var(--sg-muted);
  margin: 0;
}

.sg-step-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.sg-step-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.sg-step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 18px;
  height: calc(100% - 22px);
  border-left: 1px dashed #dac6ea;
}

.sg-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
  background: #f1e2fd;
  color: #7722b6;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.sg-step-list strong {
  display: block;
  font-size: 13px;
  margin: 1px 0 3px;
}

.sg-step-list p {
  font-size: 12px;
  color: #574b64;
  line-height: 1.65;
  margin: 0;
}

.sg-steps__note {
  margin: 22px 0 0;
  padding: 11px 13px;
  background: #fbf8fe;
  border-radius: 9px;
  color: #685b74;
  font-size: 11px;
  border-left: 3px solid #b98de0;
}

/* DNS OPTIONS */

.sg-options {
  padding: 24px;
  background: linear-gradient(180deg,#fcf9ff,#fff);
}

.sg-options__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}

.sg-options__title > i {
  font-size: 22px;
  color: #6827a5;
}

.sg-options__title h2 {
  font-size: 17px;
  margin: 0 0 3px;
}

.sg-options__title p {
  margin: 0;
  font-size: 11px;
  color: var(--sg-muted);
}

.sg-modes {
  padding: 0;
  border: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.sg-mode {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e7dff0;
  background: #fff;
  cursor: pointer;
}

.sg-mode:has(input:checked) {
  border-color: #bb90e9;
  background: #f1e5fd;
}

.sg-mode input {
  accent-color: #7421a8;
  margin: 0;
}

.sg-mode span {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  align-items: baseline;
}

.sg-mode b { font-size: 12px; }

.sg-mode small {
  color: #74667e;
  font-size: 10px;
}

/* DNS VALUES */

.sg-values {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  padding: 14px 14px 12px;
}

.sg-values__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.sg-values__heading h3 {
  font-size: 13px;
  margin: 0;
}

.sg-values__heading span {
  font-size: 10px;
  color: #86738e;
}

.sg-value, .sg-other-row {
  display: grid;
  grid-template-columns: 73px minmax(0,1fr) 30px;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid #f0eaf5;
}

.sg-value > span,
.sg-other-row > span {
  font-size: 11px;
  color: #766985;
}

.sg-value code, .sg-other-row code {
  color: #502078;
  font: 700 12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
  overflow-wrap: anywhere;
}

.sg-copy {
  width: 29px;
  height: 29px;
  border: 1px solid #e4d7ef;
  border-radius: 8px;
  background: #fcf8ff;
  color: #7024a8;
}

.sg-copy:hover { background: #f1e2fc; }

.sg-values__explain {
  font-size: 11px;
  color: var(--sg-muted);
  margin: 8px 0 0;
}

.sg-other-protocols {
  border-top: 1px solid #f0eaf5;
  margin-top: 12px;
  padding-top: 8px;
}

.sg-other-protocols summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #7423a5;
}

.sg-other-row {
  grid-template-columns: 87px minmax(0,1fr) 30px;
}

.sg-device-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin: 16px auto 10px;
  border-radius: 12px;
  background: linear-gradient(120deg,#f9f2fe,#faf8ff);
}

.sg-source {
  font-size: 10px;
  color: #71657d;
  margin: 0;
}

.sg-source a {
  color: #6c239f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* VERIFY SECTION */

.sg-verify {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 17px;
  padding: 18px 22px;
  background: #f5ebfc;
  border: 1px solid #e8d7f5;
  border-radius: 15px;
}

.sg-verify__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #e5cefa;
  color: #792ab2;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.sg-verify h2 {
  font-size: 16px;
  margin: 0 0 3px;
}

.sg-verify p {
  font-size: 12px;
  color: #61536b;
  margin: 0;
}

.sg-verify__button {
  white-space: nowrap;
  background: var(--sg-red);
  color: #fff;
  border-radius: 30px;
  font-weight: 800;
  font-size: 12px;
  padding: 13px 22px;
}

.sg-verify__button:hover { background: #a92a1b; }
.sg-verify__button i { margin-left: 7px; }

/* FAQ */

.sg-faq { padding-top: 35px; }

.sg-faq > h2 {
  font-size: 23px;
  margin: 0 0 14px;
}

.sg-faq details {
  background: #fff;
  border: 1px solid #e7dfed;
  border-bottom: 0;
}

.sg-faq details:first-of-type { border-radius: 12px 12px 0 0; }

.sg-faq details:last-of-type {
  border-bottom: 1px solid #e7dfed;
  border-radius: 0 0 12px 12px;
}

.sg-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 19px;
  font-size: 13px;
  font-weight: 750;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.sg-faq summary::-webkit-details-marker { display: none; }

.sg-faq summary::after {
  content: '+';
  color: #7528ad;
  font-size: 19px;
  font-weight: 500;
}

.sg-faq details[open] summary::after { content: '−'; }

.sg-faq details p {
  padding: 0 19px 17px;
  margin: 0;
  font-size: 12px;
  color: #65566d;
}

.sg-footnote {
  font-size: 11px;
  color: #766c7d;
  padding-top: 22px;
  padding-bottom: 42px;
}

/* FOOTER */

.sg-footer {
  background: #2e1250;
  color: #ede5f6;
  padding-top: 37px;
}

.sg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 31px;
}

.sg-footer__brand {
  font: bold 21px 'Plus Jakarta Sans',sans-serif;
  color: #fff;
}

.sg-footer p {
  max-width: 310px;
  margin: 12px 0;
  font-size: 12px;
  color: #d2c3e3;
}

.sg-footer__grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sg-footer strong {
  font-size: 13px;
  margin-bottom: 4px;
}

.sg-footer__grid > div:not(:first-child) a {
  color: #d2c3e3;
  font-size: 12px;
}

.sg-footer__grid a:hover { text-decoration: underline; }

.sg-footer__bottom {
  border-top: 1px solid #54356f;
  padding: 14px 0 20px;
  color: #c5b1d9;
  font-size: 11px;
}

/* TABLET */

@media (max-width: 1100px) {
  .sg-nav > a { padding: 10px 7px; }

  .sg-nav .sg-nav__cta {
    padding: 11px 15px;
    margin-left: 4px;
  }

  .sg-wrap {
    width: min(1180px, calc(100% - 36px));
  }

  .sg-benefits { gap: 10px; }
}

@media (max-width: 880px) {
  .sg-menu { display: block; }
  .sg-header__inner { min-height: 70px; }

  .sg-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 15px 22px rgba(55,25,81,.12);
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .sg-nav.is-open { display: flex; }

  .sg-nav > a {
    font-size: 14px;
    padding: 10px 12px;
  }

  .sg-nav .sg-nav__cta {
    margin: 5px 0 0;
    justify-content: center;
  }

  .sg-hero__grid { grid-template-columns: 1.2fr .8fr; }
  .sg-panel { grid-template-columns: 1fr; }

  .sg-steps {
    border-right: 0;
    border-bottom: 1px solid #e8e1f0;
  }

  .sg-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 22px;
  }

  .sg-options__title {
    grid-column: 1/-1;
    margin: 0;
  }

  .sg-modes { align-self: start; }

  .sg-device-image {
    grid-column: 2;
    max-height: 200px;
    margin: 0;
  }

  .sg-source { grid-column: 1/-1; }
}

/* MOBILE */

@media (max-width: 620px) {
  .sg-wrap { width: calc(100% - 30px); }

  .sg-header { padding-top: 8px; }

  .sg-header__inner {
    width: calc(100% - 20px);
    min-height: 66px;
    padding: 0 15px;
    border-radius: 17px;
  }

  .sg-brand strong { font-size: 21px; }

  .sg-hero__grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 28px 0;
  }

  .sg-hero__media { text-align: center; }

  .sg-hero__media img {
    max-height: 145px;
    max-width: 260px;
  }

  .sg-hero h1 { font-size: 32px; }
  .sg-hero__copy > p { font-size: 13px; }

  .sg-benefits {
    gap: 10px 13px;
    font-size: 10px;
  }

  .sg-main { padding-top: 26px; }
  .sg-heading h2 { font-size: 21px; }

  .sg-devices {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  .sg-device {
    min-height: 51px;
    font-size: 12px;
  }

  .sg-device:last-child { grid-column: 1/-1; }
  .sg-panel { border-radius: 14px; }

  .sg-steps, .sg-options { padding: 20px 17px; }

  .sg-section-label {
    gap: 10px;
    margin-bottom: 22px;
  }

  .sg-section-label h2 { font-size: 18px; }

  .sg-section-label > i {
    font-size: 27px;
    width: 30px;
  }

  .sg-step-list { gap: 17px; }
  .sg-step-list li { gap: 11px; }

  .sg-step-num {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 12px;
  }

  .sg-step-list li:not(:last-child)::after {
    left: 16px;
    top: 36px;
  }

  .sg-options { display: block; }
  .sg-options__title { margin-bottom: 14px; }
  .sg-mode { margin-bottom: 8px; }
  .sg-values { margin-bottom: 14px; }
  .sg-device-image { margin: 12px auto; }

  .sg-verify {
    grid-template-columns: 45px 1fr;
    gap: 11px;
    padding: 15px;
  }

  .sg-verify__icon {
    width: 42px;
    height: 42px;
  }

  .sg-verify__button {
    grid-column: 1/-1;
    text-align: center;
  }

  .sg-faq { padding-top: 28px; }
  .sg-faq > h2 { font-size: 21px; }

  .sg-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .sg-footer__grid > div:first-child {
    grid-column: 1/-1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

[hidden] { display: none !important; }
