:root {
  --paper: #f7f8f4;
  --surface: #ffffff;
  --ink: #152033;
  --muted: #5d6879;
  --line: #d9dee7;
  --blue: #2563eb;
  --blue-dark: #1748b5;
  --blue-soft: #eaf1ff;
  --coral: #db5a42;
  --code: #111827;
  --code-ink: #e5eefc;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: "Segoe UI Variable Text", "Aptos", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(21, 32, 51, 0.12);
  background: rgba(247, 248, 244, 0.94);
}

.nav-shell,
.section-inner,
.hero,
.article-shell,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--blue-soft);
}

.hero {
  min-height: min(690px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  align-items: center;
  gap: 52px;
  padding-block: 56px 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 4.25vw, 3.75rem);
  font-weight: 780;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.16rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.button:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

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

.availability {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-window {
  overflow: hidden;
  border: 1px solid #cbd3df;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 18px 22px 0 rgba(37, 99, 235, 0.11);
  transform: translateY(-28px) rotate(1deg);
}

.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #eef1f5;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #aab3c0;
}

.tool-preview {
  padding: 20px;
}

.tool-topbar,
.tool-brand,
.tool-toggle,
.tool-actions {
  display: flex;
  align-items: center;
}

.tool-topbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-brand {
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 750;
}

.tool-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.tool-toggle {
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.toggle-track {
  width: 36px;
  height: 19px;
  padding: 2px;
  display: flex;
  justify-content: flex-end;
  border-radius: 999px;
  background: var(--blue);
}

.toggle-knob {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
}

.tool-grid {
  display: grid;
  grid-template-columns: 26px 54px 62px 1.2fr 1.3fr 1.25fr;
  gap: 7px;
  align-items: center;
}

.tool-head {
  padding: 0 2px 7px;
  border-bottom: 1px solid var(--line);
  color: #707a89;
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-row {
  padding-top: 9px;
}

.fake-check {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.6rem;
}

.fake-field {
  min-width: 0;
  overflow: hidden;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #344054;
  background: #f9fafb;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-actions {
  gap: 7px;
  margin-top: 18px;
}

.fake-button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #43506a;
  font-size: 0.65rem;
  font-weight: 700;
}

.fake-button.primary {
  margin-right: auto;
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.band {
  border-block: 1px solid rgba(21, 32, 51, 0.1);
  background: var(--surface);
}

.section-inner {
  padding-block: 88px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  min-height: 200px;
  padding: 28px;
  background: var(--surface);
}

.feature-number {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.workflow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.code-block {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  border-radius: 7px;
  color: var(--code-ink);
  background: var(--code);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

.code-key {
  color: #8ab4ff;
}

.code-value {
  color: #f2bd77;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 0 0 26px 48px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  content: counter(steps);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 3px;
}

.steps span {
  color: var(--muted);
}

.cta-band {
  color: #ffffff;
  background: var(--ink);
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 58px;
}

.cta-band h2 {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.cta-band p {
  margin: 0;
  color: #b9c3d3;
}

.page-hero {
  border-bottom: 1px solid rgba(21, 32, 51, 0.12);
}

.page-hero .section-inner {
  padding-block: 72px 64px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.page-lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 68px;
  justify-content: center;
  padding-block: 64px 96px;
}

.article-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.article-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.article-nav a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.prose {
  min-width: 0;
}

.prose section + section {
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  scroll-margin-top: 28px;
  font-size: 1.7rem;
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  color: #465267;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose .code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding-left: 0;
  list-style: none;
}

.prose code,
.support-checklist code {
  padding: 2px 5px;
  border: 1px solid #d8e0ed;
  border-radius: 4px;
  color: #1e4fa7;
  background: #edf3fc;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
}

.permission-list,
.faq-list {
  display: grid;
  gap: 12px;
}

.permission-item,
.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.permission-item h3,
.faq-item h2,
.faq-item h3 {
  margin-bottom: 6px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
}

.permission-item p,
.faq-item p {
  margin: 0;
}

.prose.faq-list section + section {
  margin-top: 0;
  padding-top: 20px;
}

.support-section {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
  padding-block: 64px 96px;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 48px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.support-panel h2 {
  font-size: 1.7rem;
}

.email-fallback,
.support-links,
.support-checklist p {
  color: var(--muted);
}

.email-fallback {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.support-checklist {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.support-checklist h2 {
  margin-bottom: 14px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
}

.support-checklist ul {
  margin: 0;
  padding-left: 20px;
}

.support-checklist p {
  margin: 18px 0 0;
  font-size: 0.88rem;
}

.support-links {
  margin: 24px 0 0;
  text-align: center;
}

.not-found-hero {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 80px;
  margin-inline: auto;
  padding-block: 72px;
}

.not-found-copy .page-lead {
  margin-bottom: 30px;
}

.route-console {
  overflow: hidden;
  border: 1px solid #26344b;
  border-radius: 8px;
  color: #dce7f7;
  background: var(--code);
  box-shadow: 18px 22px 0 rgba(37, 99, 235, 0.11);
  transform: rotate(1deg);
}

.route-console-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #2f3c52;
  color: #9cabc0;
  background: #182235;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
}

.route-status {
  padding: 3px 8px;
  border: 1px solid #db5a42;
  border-radius: 4px;
  color: #ffad9d;
}

.route-console-body {
  padding: 26px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
}

.route-console-body p {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #253147;
}

.route-console-body p:last-child {
  border-bottom: 0;
}

.console-key {
  color: #8ab4ff;
}

.console-ok {
  color: #8fe0b0;
}

.recovery-links {
  width: min(100%, var(--max-width));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 96px;
  border-block: 1px solid var(--line);
}

.recovery-links a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 30px;
  color: var(--ink);
  text-decoration: none;
}

.recovery-links a + a {
  border-left: 1px solid var(--line);
}

.recovery-links a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.recovery-links a > span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.recovery-label {
  color: var(--coral);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(21, 32, 51, 0.12);
  background: var(--paper);
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 60px 78px;
  }

  .product-window {
    width: min(100%, 680px);
    transform: rotate(1deg);
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-nav {
    position: static;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .article-nav a {
    display: inline-block;
    margin-right: 14px;
  }

  .not-found-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .route-console {
    width: min(100%, 680px);
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-inner,
  .hero,
  .article-shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-shell {
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding: 6px 7px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero {
    padding-block: 48px 66px;
  }

  .tool-preview {
    padding: 14px;
  }

  .tool-grid {
    grid-template-columns: 22px 45px 50px 1fr;
  }

  .tool-grid > :nth-child(5),
  .tool-grid > :nth-child(6) {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding-block: 64px;
  }

  .cta-band .section-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band .section-inner {
    padding-block: 44px;
  }

  .page-hero .section-inner {
    padding-block: 52px 46px;
  }

  .article-shell {
    padding-block: 42px 72px;
  }

  .support-section {
    width: min(calc(100% - 28px), 920px);
    padding-block: 42px 72px;
  }

  .support-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }

  .support-checklist {
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .not-found-hero {
    width: min(calc(100% - 28px), var(--max-width));
    gap: 38px;
    padding-block: 50px 64px;
  }

  .route-console-body {
    padding: 18px;
    font-size: 0.8rem;
  }

  .route-console-body p {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }

  .recovery-links {
    width: min(calc(100% - 28px), var(--max-width));
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }

  .recovery-links a {
    padding: 22px 8px;
  }

  .recovery-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-inner {
    justify-content: center;
    padding-block: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
