:root,
html[data-theme="light"] {
  color-scheme: light;
  --page: #f4f2ed;
  --page-soft: #ebe8e1;
  --surface: #fbfaf7;
  --surface-raised: #ffffff;
  --ink: #17191f;
  --ink-soft: #343841;
  --muted: #686b72;
  --muted-strong: #50545c;
  --line: #d8d4cb;
  --line-strong: #bdb8ae;
  --brand-orange: #ff7900;
  --accent: #b64b00;
  --accent-soft: #ffe2bf;
  --cyan: #0a6f7e;
  --blue: #1855b6;
  --violet: #5f36ae;
  --success: #207345;
  --shadow: 0 30px 80px rgba(35, 31, 50, 0.16), 0 5px 20px rgba(35, 31, 50, 0.08);
  --brand-mark-image: url("/assets/brand/graph-mark-128.png");
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d1017;
  --page-soft: #111620;
  --surface: #151a24;
  --surface-raised: #1c2230;
  --ink: #f5f2ea;
  --ink-soft: #d9dce3;
  --muted: #a5acb9;
  --muted-strong: #c0c5cf;
  --line: #2a3343;
  --line-strong: #3c485b;
  --brand-orange: #ff8514;
  --accent: #ff8a1f;
  --accent-soft: #44270d;
  --cyan: #50c6d7;
  --blue: #70a3ff;
  --violet: #a582f1;
  --success: #66c892;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.44), 0 8px 28px rgba(0, 0, 0, 0.3);
  --brand-mark-image: url("/assets/brand/graph-mark-128.png");
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --page: #0d1017;
    --page-soft: #111620;
    --surface: #151a24;
    --surface-raised: #1c2230;
    --ink: #f5f2ea;
    --ink-soft: #d9dce3;
    --muted: #a5acb9;
    --muted-strong: #c0c5cf;
    --line: #2a3343;
    --line-strong: #3c485b;
    --brand-orange: #ff8514;
    --accent: #ff8a1f;
    --accent-soft: #44270d;
    --cyan: #50c6d7;
    --blue: #70a3ff;
    --violet: #a582f1;
    --success: #66c892;
    --shadow: 0 34px 90px rgba(0, 0, 0, 0.44), 0 8px 28px rgba(0, 0, 0, 0.3);
    --brand-mark-image: url("/assets/brand/graph-mark-128.png");
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--brand-orange) 9%, transparent) 0, transparent 24rem),
    radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--cyan) 9%, transparent) 0, transparent 29rem),
    radial-gradient(circle at 12% 35%, color-mix(in srgb, var(--violet) 7%, transparent) 0, transparent 27rem),
    var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
select {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 700;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background-image: var(--brand-mark-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 4px 7px rgba(24, 24, 35, 0.16));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-wordmark strong {
  font-size: 20px;
  font-weight: 760;
}

.brand-wordmark small {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.trademark-mark {
  margin-left: 1px;
  font-size: 0.65em;
  vertical-align: super;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-control select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.language-control::after {
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.theme-option {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.theme-option:hover {
  color: var(--ink);
}

.theme-option[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 12%, transparent);
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.hero {
  min-height: auto;
  padding-block: 68px 84px;
}

.hero-copy {
  display: block;
}

.hero-heading {
  max-width: none;
  text-align: center;
}

.hero-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
  min-width: 0;
  margin: 40px auto 0;
  gap: 26px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(64px, 7.8vw, 104px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.hero h1::after {
  display: block;
  width: 0.67em;
  height: 0.095em;
  margin: 0.16em auto 0;
  border-radius: 999px;
  background: var(--brand-orange);
  content: "";
}

.hero-description {
  max-width: 900px;
  margin-top: 0;
  text-align: center;
}

.hero-description p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.55vw, 21px);
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.hero-description p + p {
  margin-top: 10px;
}

.hero-description strong {
  color: var(--ink);
  font-weight: 760;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  gap: 9px;
}

.price-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  text-align: center;
}

.price-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  gap: 4px 6px;
  line-height: 1.2;
}

.price-primary strong {
  color: var(--muted-strong);
  font-size: 12px;
  letter-spacing: -0.015em;
}

.price-primary strong sup {
  margin-left: 1px;
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: super;
}

.price-primary > span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 640;
}

.price-region {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.price-region > span {
  margin-right: 2px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--page);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.store-button:hover {
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 23%, transparent);
  transform: translateY(-2px);
}

.store-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 52%, transparent);
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}

.store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-action .store-button,
.hero-action .store-status,
.final-cta .store-button,
.final-cta .store-status {
  min-height: 50px;
  padding-inline: 22px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--page);
  font-family: inherit;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.hero-action .store-dot,
.final-cta .store-dot {
  background: var(--brand-orange);
  box-shadow: none;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin-top: 52px;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 11% 7% 2%;
  border-radius: 50%;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cyan) 25%, transparent), color-mix(in srgb, var(--violet) 20%, transparent), color-mix(in srgb, var(--accent) 20%, transparent));
  filter: blur(60px);
  content: "";
}

.product-gallery {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1320 / 820;
  border-radius: clamp(8px, 1.2vw, 14px);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.gallery-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.gallery-slide picture,
.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-slide picture {
  position: absolute;
  top: -1px;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
}

.gallery-slide img {
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  z-index: 2;
  bottom: clamp(10px, 1.4vw, 18px);
  left: clamp(10px, 1.4vw, 18px);
  display: grid;
  visibility: visible;
  max-width: min(520px, calc(100% - 32px));
  margin: 0;
  padding: 10px 13px 11px;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  box-shadow: 0 8px 28px rgb(0 0 0 / 16%);
  color: var(--ink);
  opacity: 1;
  pointer-events: none;
  transform: translateY(0);
  backdrop-filter: blur(16px) saturate(125%);
}

.gallery-caption strong {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-caption span {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 3px;
}

.gallery-dot {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 52%, transparent);
  color: var(--muted);
  cursor: pointer;
}

.gallery-tab-label {
  overflow: hidden;
  font-size: 9px;
  font-weight: 710;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-dot:hover {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
  color: var(--muted-strong);
}

.gallery-dot[aria-current="true"] {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 54%, transparent);
  color: var(--accent);
}

.capabilities {
  padding-block: 24px 72px;
  scroll-margin-top: 30px;
}

.feature-row {
  --feature-color: var(--cyan);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding-block: 44px;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-review { --feature-color: var(--accent); }
.feature-work { --feature-color: var(--violet); }
.feature-copy { min-width: 0; }
.feature-copy h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}
.feature-points {
  display: grid;
  gap: 15px;
  max-width: 47ch;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.feature-points li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.feature-points li::before {
  position: absolute;
  inset-inline-start: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--feature-color);
  content: "";
}
.feature-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 7%, transparent);
}
.feature-review .feature-copy { order: 2; }
.feature-review .feature-visual { order: 1; }
.feature-graph {
  border-color: #2d384e;
  background: radial-gradient(ellipse at 48% 70%, #202b48 0, #141c2c 55%, #111826 100%);
}
.worktree-map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 28px;
}
.worktree-heads {
  display: grid;
  width: 100%;
  max-width: 480px;
  align-self: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}
.worktree-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
}
.worktree-head strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.worktree-head span {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.35;
  min-height: 3.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.worktree-head-main strong { color: #ffca7d; }
.worktree-head-main span { background: #352b1f; color: #ffe0af; }
.worktree-head-api strong { color: #7ddccb; }
.worktree-head-api span { background: #193c38; color: #9aebdd; }
.worktree-head-release strong { color: #aaafff; }
.worktree-head-release span { background: #2b2c4e; color: #c9cdff; }
.worktree-lines {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
  align-self: center;
  margin-top: 12px;
  overflow: visible;
}
.feature-diff,
.feature-remotes {
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(140deg, var(--surface), var(--page-soft));
}
.feature-remotes {
  display: grid;
  gap: 32px;
  padding-block: 40px;
}
.parallel-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
}
.parallel-shot picture { display: block; }
.parallel-shot img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
}
/* Viewports into the existing, unmodified Retina screenshots. */
.parallel-shot-diff { aspect-ratio: 1400 / 720; }
.parallel-shot-diff img { width: 188.5714%; left: -39.2857%; top: -66.6667%; }
.parallel-shot-remote { aspect-ratio: 820 / 80; border: 0; border-radius: 0; }
.parallel-shot-remote img { width: 321.9512%; left: -221.3415%; top: -197.5%; }
.parallel-shot-worktrees { aspect-ratio: 1250 / 286; }
.parallel-shot-worktrees img { width: 211.2%; left: -105.6%; top: -132.8671%; }

.purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  padding: clamp(30px, 4.5vw, 54px);
  border: 1px solid #2d384e;
  border-radius: 26px;
  color: #f5f7ff;
  background: radial-gradient(ellipse at 12% 0, #2a3450, #141c2c 72%);
}
.purchase-heading h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-wrap: balance;
}
.purchase-heading h2 span { display: block; color: #ffca7d; }
.purchase-panel .store-button,
.purchase-panel .store-status {
  width: fit-content;
  max-width: 100%;
  padding: 14px 20px;
  border-color: #f5f7ff;
  background: #f5f7ff;
  color: #141c2c;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}
.purchase-copy p {
  margin: 0 0 16px;
  color: #c1cadc;
  font-size: 16px;
  line-height: 1.6;
}
.purchase-copy .purchase-promise { color: #f5f7ff; font-size: 19px; font-weight: 600; }
.text-link, .inline-link { color: var(--blue); font-weight: 700; }
.text-link { text-decoration: none; }
.text-link:hover, .inline-link:hover { text-decoration: underline; }
.purchase-copy .text-link { color: #9ebcff; font-size: 14px; }

.compatibility { padding-block: 54px 64px; }
.compatibility h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -.025em;
}
.compatibility-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
}
.compatibility-grid > div { min-width: 0; }
.compatibility h3 { margin: 0 0 8px; color: var(--ink-soft); font-size: 16px; font-weight: 650; line-height: 1.4; }
.compatibility p { margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.6; }

@media (max-width: 800px) {
  .capabilities { padding-block: 12px 48px; }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px; }
  .feature-review .feature-copy, .feature-review .feature-visual { order: initial; }
  .feature-copy h2 { max-width: 22ch; }
  .feature-points { max-width: none; margin-top: 22px; }
  .feature-visual { width: 100%; max-width: 580px; justify-self: center; }
  .worktree-map { padding: 22px 18px; }
  .worktree-heads { gap: 8px; }
  .worktree-head span { padding-inline: 5px; }
  .purchase-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .purchase-heading h2 { margin-bottom: 22px; }
  .compatibility { padding-block: 40px 48px; }
  .compatibility-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (forced-colors: active) {
  .feature-graph, .purchase-panel { background: Canvas; color: CanvasText; }
  .worktree-head strong, .purchase-heading h2 span, .purchase-copy p,
  .purchase-copy .purchase-promise { color: CanvasText; }
  .worktree-head span { border: 1px solid CanvasText; color: CanvasText; }
  .worktree-lines path, .worktree-lines rect, .worktree-lines circle { stroke: CanvasText; }
  .feature-points li::before { background: CanvasText; }
  .purchase-copy .text-link { color: LinkText; }
  .purchase-panel .store-button, .purchase-panel .store-status { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}

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

.site-footer p {
  margin: 0;
}

.footer-signoff {
  max-width: 660px;
  line-height: 1.55;
}

.footer-signoff span {
  color: var(--muted-strong);
  font-weight: 680;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.document-shell {
  min-height: calc(100vh - 192px);
  padding-block: 56px 120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 68px;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.document {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

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

.document-header h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.document-header > p:not(.eyebrow) {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.document-header time {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

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

.document > section h2 {
  display: flex;
  align-items: baseline;
  margin: 0 0 18px;
  gap: 14px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.document > section h2 span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0;
}

.document > section p,
.document > section li {
  color: var(--muted-strong);
  font-size: 16px;
}

.document > section p {
  margin: 12px 0 0;
}

.document > section ul {
  margin: 0;
  padding-left: 21px;
}

.document > section li + li {
  margin-top: 9px;
}

.document .contact-card {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--cyan) 7%, var(--surface));
}

.document .contact-card h2 {
  margin-bottom: 8px;
}

.contact-card a,
.support-email {
  color: var(--blue);
  font-weight: 720;
}

.legal-identity {
  display: grid;
  margin: 18px 0;
  color: var(--muted-strong);
  font-style: normal;
  gap: 2px;
}

.support-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 42px 0 0;
  padding: 22px 24px;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
  text-decoration: none;
}

.support-email span {
  color: var(--muted-strong);
  font-size: 13px;
}

.support-email strong {
  font-size: 16px;
}

.support-email:hover strong {
  text-decoration: underline;
}

.document-link {
  margin-top: 38px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 192px);
  place-content: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 76px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.not-found > p:not(.eyebrow) {
  margin: 22px 0 28px;
  color: var(--muted-strong);
}

.not-found .store-button {
  justify-self: center;
}

@media (max-width: 1080px) {
  .hero {
    padding-block: 60px 76px;
  }

  .hero-support {
    max-width: 860px;
    margin: 38px auto 0;
    gap: 26px;
  }

  .hero-visual {
    width: 100%;
    margin-top: 48px;
  }
}

@media (max-width: 960px) {
  .hero-heading {
    max-width: none;
  }

}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 1160px);
  }

  .site-header {
    gap: 4px;
    min-height: 72px;
    padding-block: 12px;
  }

  .site-controls {
    flex: 0 0 auto;
    gap: 5px;
  }

  .brand {
    min-width: 0;
    gap: 6px;
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .language-control select {
    width: 112px;
    padding-inline: 9px 25px;
    font-size: 12px;
  }

  .language-control::after {
    right: 10px;
  }

  .theme-control {
    min-height: 34px;
    padding: 2px;
  }

  .theme-option {
    width: 29px;
    height: 28px;
    font-size: 17px;
  }

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

  .hero h1 {
    font-size: clamp(49px, 16vw, 70px);
  }

  .hero-description {
    margin-top: 0;
  }

  .hero-support {
    margin-top: 32px;
    gap: 24px;
  }

  .hero-description p {
    font-size: 18px;
    line-height: 1.5;
  }

  .hero-description p + p {
    margin-top: 10px;
  }

  .hero-action {
    align-items: center;
    width: 100%;
    margin-top: 0;
    gap: 10px;
  }

  .hero-description {
    text-align: left;
  }

  .hero-visual {
    margin-top: 48px;
  }

  .hero-action .store-button,
  .hero-action .store-status {
    width: 100%;
    min-height: 52px;
    padding-inline: 16px;
    border-radius: 12px;
    text-align: center;
  }

  .gallery-toolbar {
    justify-content: flex-start;
    padding-top: 14px;
  }

  .gallery-caption {
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 7px 9px 8px;
    gap: 2px;
    border-radius: 8px;
  }

  .gallery-caption strong {
    font-size: 7px;
  }

  .gallery-caption span {
    font-size: 9px;
    line-height: 1.25;
  }

  .gallery-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .gallery-pagination::-webkit-scrollbar {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 30px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .document-shell {
    padding-block: 30px 88px;
  }

  .back-link {
    margin-bottom: 48px;
  }

  .document-header {
    padding-bottom: 40px;
  }

  .document-header h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .document-header > p:not(.eyebrow) {
    font-size: 17px;
  }

  .document > section {
    padding-block: 34px;
  }

  .document > section h2 {
    align-items: flex-start;
  }

  .support-email {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
