:root {
  color-scheme: light dark;
  --bg: #f4f6f5;
  --surface: #e9eeec;
  --surface-strong: #dce5e2;
  --text: #19211f;
  --muted: #53615d;
  --line: #c6d0cd;
  --accent: #276b61;
  --accent-hover: #1f5a52;
  --accent-text: #f5fbf9;
  --focus: #0b806f;
  --radius: 14px;
  --max-width: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding-block: 56px 96px;
}

.hero {
  min-height: min(680px, calc(100dvh - 128px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: clamp(36px, 8vw, 96px);
  padding-block: 32px 72px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(45px, 6.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 760;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-icon {
  width: min(100%, 420px);
  height: auto;
  justify-self: end;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 16%, transparent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
}

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

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section h2,
.contact h2,
.policy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section > h2,
.section > p {
  max-width: 680px;
}

.steps {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}

.steps article {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.steps article:first-child {
  background: var(--surface-strong);
}

.steps h3,
.permission-list h3,
.note h3,
.policy-points h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.steps p,
.permission-list p,
.note p,
.policy-points p {
  color: var(--muted);
  font-size: 15px;
}

.keycap {
  display: inline-block;
  margin-bottom: 42px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 720;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(38px, 8vw, 100px);
}

.split > div:first-child p,
.migration-copy p,
.contact p,
.policy p,
.policy li {
  color: var(--muted);
}

.permission-list {
  display: grid;
  gap: 14px;
}

.permission-list article {
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.migration-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
  margin-top: 34px;
}

code {
  padding: 0.08em 0.35em;
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}

.note {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.troubleshooting details {
  max-width: 820px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.troubleshooting summary {
  cursor: pointer;
  font-weight: 720;
}

.troubleshooting details p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 72px;
  padding: 38px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.contact h2 {
  margin-bottom: 10px;
}

.contact p {
  max-width: 650px;
}

.contact p:last-child {
  margin-bottom: 0;
}

.contact > .actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 22px;
}

.policy {
  max-width: 860px;
}

.policy-header {
  padding-block: 54px 58px;
  border-bottom: 1px solid var(--line);
}

.policy-header h1 {
  max-width: 15ch;
}

.policy-header > p:last-child {
  color: var(--muted);
}

.policy section {
  padding-block: 42px;
  border-bottom: 1px solid var(--line);
}

.policy h2 {
  font-size: clamp(27px, 3.8vw, 36px);
}

.policy p,
.policy li {
  max-width: 720px;
}

.policy li + li {
  margin-top: 10px;
}

.policy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.policy-points article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
}

.policy section .button {
  margin-top: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141817;
    --surface: #202725;
    --surface-strong: #29322f;
    --text: #edf2f0;
    --muted: #aab7b3;
    --line: #3c4945;
    --accent: #65b7a8;
    --accent-hover: #7bc9ba;
    --accent-text: #10201d;
    --focus: #8bd5c7;
  }

  .hero-icon {
    box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  main {
    padding-block: 28px 70px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 30px 58px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-icon {
    width: min(76vw, 360px);
    justify-self: start;
  }

  .section {
    padding-block: 54px;
  }

  .steps,
  .split,
  .migration-grid,
  .policy-points {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .contact > .actions {
    justify-content: flex-start;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 26px;
  }
}

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

  .button,
  .skip-link {
    transition: none;
  }
}
