:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --ink: #1f1a12;
  --muted: #5c5447;
  --faint: #837b6a;
  --line: #e5e0d2;
  --line-strong: #d4cdb9;
  --maple: #e04e1a;
  --maple-dark: #b93e17;
  --forest: #20483a;
  --forest-soft: #e5f0ea;
  --blue: #205b91;
  --blue-soft: #e7f0f8;
  --gold-soft: #f7edd9;
  --shadow: 0 24px 72px rgba(31, 26, 18, 0.14);
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(251, 250, 246, 0)),
    var(--paper);
}

body.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(229, 224, 210, 0.82);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: #f1ede3;
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 700;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.86) 58%, rgba(251, 250, 246, 0.42) 100%),
    linear-gradient(135deg, var(--gold-soft), var(--forest-soft) 55%, var(--blue-soft));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  width: min(1560px, calc(100% - 96px));
  margin: 0 auto;
  padding: 92px 0 88px;
}

.hero-copy-block {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--maple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 520px;
  margin: 0;
  color: var(--ink);
  font-size: 4.75rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button.primary {
  border-color: var(--maple);
  background: var(--maple);
  color: #fffaf6;
}

.button.primary:hover {
  border-color: var(--maple-dark);
  background: var(--maple-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button.secondary:hover {
  background: #ffffff;
  border-color: var(--forest);
}

.release-note {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero-product-shot {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(103, 94, 78, 0.28);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.hero-product-shot img {
  width: 100%;
  height: auto;
}

.guide-section,
.privacy-section,
.workflow-section {
  scroll-margin-top: 84px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.guide-section h2,
.workflow-section h2,
.privacy-copy h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.privacy-copy p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.principles article,
.workflow-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.workflow-section {
  padding: 72px 0;
}

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

.section-intro {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-intro a {
  color: var(--maple-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.workflow-grid article {
  min-height: 230px;
  padding: 18px;
}

.workflow-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 800;
}

.workflow-grid h3,
.principles h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.workflow-grid p,
.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.guide-primer {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.guide-primer h3 {
  max-width: 460px;
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.guide-primer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
}

.guide-primer ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-primer li {
  min-width: 0;
  padding: 0;
}

.guide-primer li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-primer strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.25;
}

.guide-primer li p {
  margin-top: 8px;
  font-size: 0.9rem;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--forest);
  color: #fffaf6;
  font-weight: 700;
}

.guide-cta:hover {
  background: var(--maple-dark);
  border-color: var(--maple-dark);
}

.guide-created-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.guide-created-grid article {
  min-width: 0;
  min-height: 142px;
  padding: 18px;
  border-radius: 8px;
  background: #f7f3ea;
}

.guide-created-grid h3,
.guide-created-grid h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.guide-created-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.guide-doc-hero {
  max-width: 760px;
  padding: 26px 0 34px;
}

.guide-doc-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 3.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.guide-doc-hero p:not(.section-kicker) {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.guide-doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-doc-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.guide-doc-toc a:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.guide-doc-section {
  scroll-margin-top: 88px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.guide-doc-section:first-of-type {
  border-top: 0;
}

.guide-doc-section h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.guide-doc-section > p:not(.section-kicker) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.guide-layer-grid,
.maintain-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.guide-layer-grid article,
.maintain-guide-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.guide-layer-grid h3,
.guide-split h3,
.maintain-guide-grid h3,
.guide-step-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.guide-layer-grid p,
.guide-split p,
.maintain-guide-grid p,
.guide-step-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.guide-split > div {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background: #f7f3ea;
}

.guide-table {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-strong);
  text-align: left;
}

.guide-table th,
.guide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.guide-table th {
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.guide-table td {
  color: var(--muted);
  font-size: 0.94rem;
}

.guide-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-callout {
  max-width: 760px;
  margin-top: 22px;
  border-left: 4px solid var(--maple);
  padding: 16px 18px;
  background: var(--paper-strong);
}

.guide-callout strong {
  display: block;
  color: var(--ink);
}

.guide-callout p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.maintain-guide-grid article span {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.guide-step-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.guide-step-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.guide-step-list li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.privacy-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding: 72px 0 86px;
  border-top: 1px solid var(--line);
}

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

.principles article {
  min-height: 176px;
  padding: 18px;
}

.principles article:nth-child(1) {
  background: #ffffff;
}

.principles article:nth-child(2) {
  background: var(--forest-soft);
}

.principles article:nth-child(3) {
  background: var(--blue-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  background: #f4f1e9;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.download-redirect {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: var(--paper-strong);
  box-shadow: 0 16px 48px rgba(31, 26, 18, 0.1);
}

.download-redirect img {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
}

.download-redirect h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.download-redirect p:not(.section-kicker) {
  margin: 16px 0 22px;
  color: var(--muted);
}

.download-redirect a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr;
    width: min(920px, calc(100% - 48px));
    padding-top: 70px;
  }

  .hero-product-shot {
    max-width: 920px;
  }

  .privacy-section {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .guide-created-grid,
  .guide-layer-grid,
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-primer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

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

  .site-nav a {
    padding: 0 8px;
  }

  .hero-inner,
  .guide-page,
  .guide-section,
  .privacy-section,
  .workflow-section {
    scroll-margin-top: 126px;
    width: min(100% - 32px, 1120px);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.97), rgba(251, 250, 246, 0.82)),
      linear-gradient(135deg, var(--gold-soft), var(--forest-soft) 55%, var(--blue-soft));
  }

  .hero-inner {
    gap: 28px;
    padding: 58px 0 50px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .workflow-section,
  .guide-page,
  .guide-section,
  .privacy-section {
    padding: 48px 0;
  }

  .guide-doc-hero {
    padding: 8px 0 28px;
  }

  .guide-doc-hero h1 {
    font-size: 2.65rem;
  }

  .guide-doc-hero p:not(.section-kicker) {
    font-size: 1rem;
  }

  .guide-doc-toc {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guide-doc-toc a {
    width: 100%;
  }

  .guide-doc-section {
    scroll-margin-top: 126px;
    padding: 38px 0;
  }

  .guide-doc-section h2 {
    font-size: 1.85rem;
  }

  .guide-section h2,
  .workflow-section h2,
  .privacy-copy h2 {
    font-size: 1.85rem;
  }

  .workflow-grid,
  .guide-created-grid,
  .guide-layer-grid,
  .guide-split,
  .maintain-guide-grid,
  .guide-primer ol,
  .principles {
    grid-template-columns: 1fr;
  }

  .guide-table {
    display: block;
    overflow-x: auto;
  }

  .guide-primer {
    padding: 20px;
  }

  .workflow-grid article,
  .principles article {
    min-height: 0;
  }

  .site-footer {
    display: grid;
    gap: 4px;
    padding: 20px 18px;
  }
}
