:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --ink: #172b4d;
  --muted: #44546f;
  --line: #e4ddd3;
  --card: #ffffff;
  --violet: #4527c9;
  --soft: #efeaff;
  --blue: #0c66e4;
  --focus: #0c66e4;
  --green-bg: #e7f6ee;
  --green-ink: #164b35;
  --shadow: 0 24px 60px rgba(23, 43, 77, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--violet); text-underline-offset: 0.18em; }

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  padding: 8px 12px;
  background: var(--card);
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 14px 24px;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid rgba(228, 221, 211, 0.9);
  backdrop-filter: blur(12px);
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover { background: rgba(69, 39, 201, 0.06); color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

main { padding-bottom: 72px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 40px;
  align-items: start;
  padding: 56px 0 28px;
}

.hero-single { grid-template-columns: 1fr; }

.kicker {
  margin: 0 0 10px;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 680;
}

.lede {
  margin: 18px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #0f2140; text-decoration: none; }

.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #c9c2b8;
}

.button-quiet:hover { background: rgba(255, 255, 255, 0.7); }

.mark-panel {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  margin-left: auto;
  aspect-ratio: 1;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(160deg, #f4f0ff, #e4dcff);
}

.mark-panel img { width: 58%; border-radius: 28px; }

.section { padding: 28px 0; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 { margin: 0 0 6px; font-size: 1.12rem; }

.prose { max-width: 42rem; }

.prose p, .panel p, .feature p, .faq p { margin: 0.7rem 0; }

.facts, .cards, .features, .steps, .preview-grid {
  display: grid;
  gap: 14px;
}

.facts { grid-template-columns: repeat(3, 1fr); margin: 8px 0 0; padding: 0; list-style: none; }

.facts li, .card, .feature, .step, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
}

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

.cards { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.card:hover { border-color: #c9baf8; text-decoration: none; }

.card p { color: var(--muted); }

.card span {
  margin-top: auto;
  padding-top: 14px;
  color: var(--violet);
  font-weight: 700;
}

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

.feature h3 { font-size: 1.02rem; }

.feature p { color: var(--muted); }

.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }

.step { position: relative; padding-top: 46px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--violet);
  font-weight: 750;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.preview-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }

figure { margin: 0; }

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.prompt-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.prompt-sheet ol { margin: 0; padding-left: 1.2rem; }

.prompt-sheet li { margin: 0.35rem 0; }

.listing {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #f4f6f8;
}

.listing a { color: #ffffff; }

.listing p { margin: 0; color: #d5dbe3; }

.mock {
  width: min(380px, 100%);
  margin-left: auto;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #172b4d;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mock-kicker {
  margin: 0;
  color: #626f86;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock h2 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.35;
}

.mock-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #626f86;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-switch i {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #c1c7d0;
  position: relative;
}

.mock-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.mock-tabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding: 3px;
  background: #f1f2f4;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #44546f;
}

.mock-tabs span {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-radius: 6px;
}

.mock-tabs .on {
  background: #fff;
  color: #172b4d;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.16);
}

.mock pre {
  height: 168px;
  margin: 12px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #f7f8f9;
  color: #172b4d;
  font: 11.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.mock-files {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mock-file {
  width: 92px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
}

.mock-file b {
  display: block;
  height: 48px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(160deg, #6d4aff, #4527c9);
}

.mock-file span, .mock-note span {
  display: block;
  padding: 4px 6px 6px;
}

.mock-note {
  width: 92px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #f7f8f9;
  font-size: 10px;
  font-weight: 650;
}

.mock-note b {
  display: grid;
  place-items: center;
  height: 48px;
  color: #44546f;
  font-size: 11px;
}

.mock-button {
  margin-top: 12px;
  border-radius: 6px;
  background: #0c66e4;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 8px 12px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}

.contact-card a.button { justify-self: start; }

.checklist { margin: 8px 0 0; padding-left: 1.15rem; }

.checklist li { margin: 0.35rem 0; }

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

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--violet);
  font-weight: 700;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin-top: 0; color: var(--muted); }

.policy { max-width: 42rem; }

.policy h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

.policy .meta { color: var(--muted); }

.policy h2 { margin-top: 2rem; font-size: 1.35rem; }

.policy h3 { margin-top: 1.2rem; font-size: 1.05rem; }

.policy p, .policy li { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.05rem; }

.policy h2, .policy h3, .toc, .summary { font-family: ui-sans-serif, system-ui, sans-serif; }

.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.policy .summary p { font-family: ui-sans-serif, system-ui, sans-serif; }

.summary p:first-child { margin-top: 0; }

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

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.toc a {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 650;
}

.policy code, .faq code, .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.policy h2, .policy h3 { scroll-margin-top: 84px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 8px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.footer-nav a { font-weight: 700; }

.fine { margin: 0; font-size: 0.88rem; }

@media (max-width: 860px) {
  .hero, .facts, .cards, .features, .steps, .preview-grid { grid-template-columns: 1fr; }
  .mark-panel, .mock { margin-left: 0; margin-right: auto; }
  .hero { padding-top: 32px; }
  h1 { font-size: 2.2rem; }
}

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

@media print {
  .site-header, .skip, .site-footer, .toc { display: none; }
  body { background: #fff; }
  .summary, .facts li, .card, .feature, .step, .panel { border-color: #ccc; }
}
