:root {
  color-scheme: light;
  --ink: #181716;
  --muted: #69625f;
  --surface: #fffdfc;
  --soft: #f8f3f1;
  --line: #ded7d3;
  --pink: #e99ac4;
  --pink-strong: #c8528d;
  --yellow: #ffb12b;
  --focus: #176b62;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--pink-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.header-inner,
.page,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

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

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

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 8px;
}

.brand-name {
  letter-spacing: 0;
}

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

.nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

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

.page {
  padding: 54px 0 72px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 56px;
  align-items: center;
  padding-bottom: 50px;
}

.intro-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink-strong);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 52px;
}

h2 {
  margin-bottom: 14px;
  font-size: 27px;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

p {
  margin-top: 0;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.app-icon {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(49, 28, 38, 0.12);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.link-card {
  min-height: 180px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  border-color: var(--pink-strong);
  box-shadow: 0 12px 28px rgba(49, 28, 38, 0.08);
  transform: translateY(-2px);
}

.link-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.card-action {
  color: var(--pink-strong);
  font-weight: 750;
}

.notice {
  margin: 34px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--yellow);
  border-radius: 4px;
  background: #fff6df;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 58px;
}

.side-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 4px;
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--pink-strong);
}

.content-section {
  padding: 6px 0 26px;
  scroll-margin-top: 20px;
}

.content-section + .content-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
}

.content-section li + li {
  margin-top: 8px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

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

.steps li {
  position: relative;
  min-height: 48px;
  padding: 0 0 22px 58px;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 850;
  counter-increment: steps;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 20px 30px 20px 0;
  cursor: pointer;
  font-weight: 750;
}

details p {
  margin-bottom: 22px;
  color: var(--muted);
}

.contact-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.email-placeholder {
  padding: 2px 5px;
  border-radius: 3px;
  background: #fff0b7;
  color: #5b3c00;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    display: none;
  }

  .nav {
    gap: 16px;
  }

  .page {
    padding-top: 36px;
  }

  h1 {
    font-size: 38px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 22px;
    align-items: start;
  }

  .lead {
    font-size: 18px;
  }

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

  .content-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .side-nav {
    position: static;
    display: flex;
    gap: 8px 16px;
    overflow-x: auto;
    padding: 0 0 14px;
    white-space: nowrap;
  }

  .side-nav strong {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav a {
    font-size: 14px;
  }

  .intro {
    grid-template-columns: 1fr 82px;
  }

  .link-card {
    min-height: 0;
    padding: 22px;
  }
}

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

  .link-card {
    transition: none;
  }
}
