:root {
  --ink: #101827;
  --muted: #5a6472;
  --subtle: #f4f6f8;
  --line: #dfe4ea;
  --blue: #1769e0;
  --blue-dark: #0f4fb0;
  --green: #1f9d63;
  --green-soft: #e9f8f0;
  --red: #d53a36;
  --red-soft: #fff0ef;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(15, 23, 42, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(223, 228, 234, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 38px rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.card-actions,
.source-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
}

.top-nav {
  gap: 26px;
  color: #344051;
  font-size: 14px;
  font-weight: 650;
}

.top-nav a[aria-current="page"] {
  color: var(--blue);
}

.top-nav a:hover {
  color: var(--blue);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #142033;
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
}

.header-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 52px;
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 72px 0 54px;
  align-items: center;
}

.compact-hero {
  min-height: 500px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 72px 0 36px;
}

.page-hero h1 {
  max-width: 820px;
}

.service-line {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.18;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  color: #2d3748;
  font-size: 19px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.button,
.copy-button,
.filter-button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(23, 105, 224, .24);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary,
.copy-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.secondary:hover,
.copy-button:hover {
  border-color: #b9c3d0;
  background: #f9fafb;
}

.trust-note {
  max-width: 560px;
  margin-bottom: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.support-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-top,
.quick-choice,
.alert-band,
.safety-checks,
.footer {
  display: flex;
  align-items: center;
}

.panel-top {
  gap: 10px;
  margin-bottom: 18px;
  font-size: 15px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(31, 157, 99, .12);
}

.quick-choice {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quick-choice.recommended {
  border-color: rgba(31, 157, 99, .32);
  background: var(--green-soft);
}

.quick-choice span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.quick-choice strong {
  font-size: 22px;
}

.quick-choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.quick-choice a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.mini-steps {
  margin: 16px 0 0;
  padding-left: 22px;
  color: #334155;
}

.mini-steps li + li {
  margin-top: 8px;
}

.tool-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #334155;
  font-size: 14px;
}

.tool-summary strong,
.tool-summary span {
  display: block;
}

.tool-summary strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.alert-band {
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid #f3c9c6;
  border-radius: 8px;
  background: var(--red-soft);
}

.alert-band p {
  max-width: 820px;
  margin: 4px 0 0;
  color: #5b2c2a;
}

.text-action {
  color: var(--red);
  font-weight: 850;
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

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

.intro-grid article,
.guide-card,
.permission-list article,
.channel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid svg {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-grid h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.intro-grid p,
.section-heading p,
.permission-list span,
.contact-copy p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 850;
}

.legal-page {
  padding-bottom: 16px;
}

.legal-content {
  display: grid;
  gap: 22px;
  max-width: 900px;
  padding-top: 20px;
}

.legal-content article {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.legal-content p {
  max-width: 760px;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.narrow {
  max-width: 660px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #334155;
}

.filter-button.active {
  border-color: var(--blue);
  background: #edf5ff;
  color: var(--blue-dark);
}

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

.guide-grid.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  transition: opacity .16s ease, transform .16s ease;
}

.guide-card.highlight {
  border-color: rgba(31, 157, 99, .36);
  background: linear-gradient(180deg, #ffffff 0%, #f5fff9 100%);
}

.guide-card.is-hidden {
  display: none;
}

.card-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.card-head p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tool-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.tool-mark.rust {
  background: var(--green);
}

.tool-mark.any {
  background: var(--red);
}

.step-list {
  flex: 1;
  margin: 0;
  padding-left: 22px;
  color: #334155;
}

.step-list li {
  padding-left: 4px;
}

.step-list li + li {
  margin-top: 12px;
}

.card-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.copy-button.copied {
  border-color: var(--green);
  color: var(--green);
}

.permission-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.permission-list article {
  padding: 20px;
}

.permission-list strong,
.permission-list span {
  display: block;
}

.permission-list strong {
  margin-bottom: 8px;
}

.safety-checks {
  justify-content: space-between;
  gap: 36px;
  padding: 58px 0;
}

.safety-checks > div {
  min-width: 280px;
}

.safety-checks ul {
  display: grid;
  gap: 12px;
  width: min(650px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-checks li {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: var(--subtle);
  border-radius: 8px;
  color: #334155;
  font-weight: 650;
}

.contact-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding-top: 40px;
}

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

.channel {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 18px;
}

.channel span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.channel strong {
  overflow-wrap: anywhere;
}

.channel:hover {
  border-color: #b9c3d0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}

.mail-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #142033;
  color: var(--white) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.footer {
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

.footer p {
  margin: 4px 0 0;
}

.source-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
  font-weight: 750;
}

.source-links a:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .hero,
  .guide-grid,
  .contact-section,
  .safety-checks {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    margin-top: 36px;
    padding-top: 42px;
  }

  .page-hero {
    margin-top: 36px;
    padding-top: 42px;
  }

  .intro-grid,
  .permission-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .safety-checks {
    align-items: start;
    flex-direction: column;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .alert-band,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 10px;
    padding: 8px;
  }

  .top-nav {
    gap: 12px;
    font-size: 13px;
    justify-content: center;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0 0 0 0);
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .copy-button {
    width: 100%;
  }

  .alert-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }

  .guide-card,
  .intro-grid article {
    padding: 20px;
  }
}
