:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #17222a;
  --muted: #52616b;
  --line: #d8dfdc;
  --copper: #d66b16;
  --copper-dark: #994c12;
  --teal: #2c817d;
  --sage: #6f8f78;
  --focus: #0b6fba;
  --shadow: 0 18px 50px rgba(23, 34, 42, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper-dark);
}

:focus-visible {
  outline: 3px solid #72aee3;
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 40px;
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid rgba(216, 223, 220, 0.8);
  backdrop-filter: blur(14px);
}

.site-header.compact {
  position: sticky;
  min-height: 58px;
  padding: 8px 28px;
}

.site-header.compact .brand img {
  width: 128px;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 650;
}

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

.nav-links a:hover {
  color: var(--copper-dark);
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 56px;
  height: 32px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.language-picker:hover {
  color: var(--copper-dark);
  background: rgba(214, 107, 22, 0.07);
}

.language-picker:focus-within {
  outline: 3px solid #72aee3;
  outline-offset: 2px;
}

.language-picker img {
  width: 15px;
  height: 15px;
  opacity: 0.78;
}

.language-picker-code {
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

.language-picker select,
.language-picker select:focus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.standalone-language-picker {
  margin-bottom: 26px;
}

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

:lang(ja) body {
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

:lang(ja) .eyebrow {
  text-transform: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 124px 40px 84px;
  overflow: hidden;
  background: #e8ebe2 url("/assets/video/showcase-poster.jpg") 68% center / cover no-repeat;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-scrim {
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(247, 248, 245, 0.98) 0%,
    rgba(247, 248, 245, 0.94) 30%,
    rgba(247, 248, 245, 0.64) 50%,
    rgba(247, 248, 245, 0.08) 76%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--teal), var(--copper), var(--sage));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  max-width: 12ch;
  font-size: 4.1rem;
}

h2 {
  max-width: 16ch;
  font-size: 2.65rem;
}

h3 {
  font-size: 1.25rem;
}

.lede {
  width: 100%;
  max-width: 650px;
  margin: 24px 0 0;
  color: #263945;
  font-size: 1.35rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--copper);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(153, 76, 18, 0.22);
}

.button-primary:hover {
  background: var(--copper-dark);
  color: #ffffff;
}

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

.button-secondary:hover {
  border-color: var(--copper);
  color: var(--copper-dark);
}

.hero-status {
  position: absolute;
  z-index: 2;
  left: 40px;
  right: 40px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: calc(100% - 80px);
  max-width: 1040px;
  border: 1px solid rgba(216, 223, 220, 0.9);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-status span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #263945;
  font-weight: 700;
}

.section {
  padding: 96px 40px;
}

.section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.narrow {
  width: 100%;
  max-width: 740px;
}

.overview-grid,
.beta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.overview-grid > *,
.beta-layout > *,
.section-heading > *,
.feature-card,
.flow-list li {
  min-width: 0;
}

.section-overview {
  background: var(--surface-soft);
}

.section-scratch-process {
  background: var(--surface-soft);
}

.process-heading {
  align-items: start;
}

.process-lede {
  color: var(--ink) !important;
  font-size: 1.18rem;
  font-weight: 650;
}

.process-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-pillars article {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
}

.process-pillars strong,
.process-pillars span {
  display: block;
}

.process-pillars strong {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.process-pillars span {
  color: var(--muted);
}

.tool-family-photo {
  margin: 0 0 28px;
}

.tool-family-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(23, 34, 42, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 23, 27, 0.14);
}

.tool-family-photo figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.process-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.process-video,
.finished-board-photo {
  min-width: 0;
  margin: 0;
}

.process-video video,
.finished-board-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 34, 42, 0.18);
  border-radius: 8px;
  background: #10171b;
  box-shadow: 0 18px 48px rgba(16, 23, 27, 0.16);
}

.process-video video {
  aspect-ratio: 16 / 9;
}

.process-video figcaption,
.finished-board-photo figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.finished-board-stack {
  display: grid;
  gap: 20px;
}

.finished-board-photo a {
  display: block;
  border-radius: 8px;
  color: inherit;
  cursor: zoom-in;
}

.finished-board-photo a:hover img {
  border-color: var(--copper);
}

.process-safety {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-continuity {
  background: var(--surface);
}

.continuity-video {
  min-width: 0;
  margin: 32px 0 0;
}

.continuity-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 333;
  object-fit: cover;
  border: 1px solid rgba(23, 34, 42, 0.18);
  border-radius: 8px;
  background: #10171b;
  box-shadow: 0 18px 48px rgba(16, 23, 27, 0.16);
}

.continuity-video figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-product-window {
  background: #182128;
  color: #ffffff;
}

.section-product-window .section-heading p,
.section-product-window figcaption {
  color: #c8d4d5;
}

.section-product-window .eyebrow {
  color: #f0a35f;
}

.section-compatibility {
  background: #f2f1e9;
}

.section-tour-links {
  background: var(--paper);
}

.section-numeric {
  background: #eaf1ee;
}

.body-copy p,
.beta-copy p,
.simple-page p,
.section-heading p {
  margin: 0 0 18px;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.section-features {
  background: var(--paper);
}

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

.feature-card {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card h3 {
  margin-bottom: 14px;
}

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

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.requirement-grid article {
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
}

.requirement-grid h3 {
  margin-bottom: 14px;
}

.requirement-grid p {
  margin: 0;
  color: var(--muted);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(153, 76, 18, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.callout strong {
  font-size: 1.08rem;
}

.callout span {
  color: var(--muted);
}

.compatibility-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 22px;
}

.compatibility-proof .callout {
  grid-template-columns: 1fr;
  align-content: start;
  margin-top: 0;
}

.low-end-machine-video {
  min-width: 0;
  margin: 0;
}

.low-end-machine-video video {
  display: block;
  width: 100%;
  aspect-ratio: 960 / 684;
  object-fit: cover;
  border: 1px solid rgba(23, 34, 42, 0.18);
  border-radius: 8px;
  background: #10171b;
  box-shadow: 0 14px 34px rgba(16, 23, 27, 0.12);
}

.low-end-machine-video figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.link-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.link-card:hover {
  border-color: var(--copper);
  color: var(--ink);
}

.link-card span {
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.link-card strong {
  font-size: 1.35rem;
  line-height: 1.12;
}

.link-card em {
  color: var(--muted);
  font-style: normal;
}

.app-screenshot {
  min-width: 0;
  margin: 0;
}

.app-screenshot img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(216, 223, 220, 0.7);
  border-radius: 8px;
  background: #10171b;
  box-shadow: 0 18px 48px rgba(16, 23, 27, 0.18);
}

.screenshot-link {
  display: block;
  border-radius: 8px;
  color: inherit;
  cursor: zoom-in;
}

.screenshot-link:hover img {
  border-color: var(--copper);
}

.app-screenshot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-screenshot figcaption strong {
  color: var(--ink);
}

.app-screenshot-wide img {
  box-shadow: 0 24px 70px rgba(8, 13, 16, 0.28);
}

.software-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.section-flow {
  background: #eaf1ee;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.flow-list li {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
}

.flow-list strong,
.flow-list span {
  display: block;
}

.flow-list strong {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.flow-list span {
  color: var(--muted);
}

.section-beta {
  background: var(--surface);
}

.signup-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

label span {
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bcc8c3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 111, 186, 0.24);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.consent-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 4px;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  width: fit-content;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.form-status.is-error {
  color: #a33b22;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.download-copy p {
  margin: 24px 0 0;
  color: var(--muted);
}

.download-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.download-panel.is-hidden {
  display: none;
}

.download-panel h2 {
  max-width: none;
  font-size: 1.55rem;
}

.download-panel p {
  margin: 0;
  color: var(--muted);
}

.download-meta {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.download-meta div {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  background: #fbfcfa;
}

.download-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.download-meta dd {
  margin: 0;
  font-weight: 700;
}

.download-choice {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.download-choice label {
  color: var(--muted);
  font-weight: 700;
}

.download-choice select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.admin-page {
  background: #f4f6f2;
}

.admin-shell {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-heading h1 {
  max-width: none;
  font-size: 2.2rem;
}

.admin-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.admin-heading-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-heading-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-build-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  max-width: none;
  margin: 0;
  color: var(--teal);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-build-summary[hidden] {
  display: none;
}

.admin-build-summary.is-error {
  color: #a33b22;
}

.admin-build-summary time {
  color: var(--muted);
  font-weight: 600;
}

.admin-heading-buttons .button.is-building {
  cursor: progress;
}

.admin-sign-in {
  min-height: 38px;
  padding: 8px 14px;
}

.admin-auth-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 180px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 7px;
  background: var(--surface);
}

.admin-auth-gate[hidden] {
  display: none;
}

.admin-auth-gate h2 {
  max-width: none;
  margin-top: 4px;
  font-size: 1.55rem;
}

.admin-auth-gate p:not(.eyebrow) {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.admin-build-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(19, 31, 38, 0.28);
}

.admin-build-dialog::backdrop {
  background: rgba(18, 28, 34, 0.68);
}

.admin-build-dialog-body {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.admin-build-dialog header h2 {
  max-width: none;
  margin: 4px 0 6px;
  font-size: 1.65rem;
}

.admin-build-dialog header > p:last-child,
.admin-build-note {
  margin: 0;
  color: var(--muted);
}

.admin-build-release {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.admin-build-release div {
  min-width: 0;
  padding: 13px;
  background: #fbfcfa;
}

.admin-build-release dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-build-release dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-build-release-next dd {
  color: var(--teal);
  font-size: 1.24rem;
}

.admin-build-publish {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(44, 129, 125, 0.28);
  border-radius: 7px;
  background: rgba(44, 129, 125, 0.08);
}

.admin-build-publish input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
  opacity: 1;
}

.admin-build-publish span {
  display: grid;
  gap: 3px;
}

.admin-build-publish small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-build-note {
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-build-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.admin-invite-warning {
  margin: 0;
  border-left: 3px solid var(--copper);
  padding: 0.55rem 0.7rem;
  background: #fff7ed;
  color: #8b3518;
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-stats div {
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
}

.admin-stats span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.admin-stats small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-toolbar label,
.admin-field,
.admin-invite-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-toolbar select,
.admin-field select,
.admin-field textarea,
.admin-invite input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.admin-toolbar select,
.admin-field select,
.admin-invite input {
  min-height: 38px;
  padding: 0 10px;
}

.admin-notification-setting {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.admin-notification-setting > span {
  display: grid;
  gap: 1px;
}

.admin-notification-setting strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.admin-notification-setting small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.admin-toolbar .admin-notification-toggle {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
}

.admin-notification-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.admin-toggle-track {
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 1px solid #9aa4a1;
  border-radius: 10px;
  background: #dfe4e1;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-toggle-track span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(19, 31, 38, 0.25);
  transition: transform 120ms ease;
}

.admin-notification-toggle input:checked + .admin-toggle-track {
  border-color: var(--teal);
  background: var(--teal);
}

.admin-notification-toggle input:checked + .admin-toggle-track span {
  transform: translateX(16px);
}

.admin-notification-toggle input:focus-visible + .admin-toggle-track {
  outline: 3px solid rgba(44, 129, 125, 0.25);
  outline-offset: 2px;
}

.admin-notification-toggle input:disabled + .admin-toggle-track {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-field textarea {
  min-height: 58px;
  padding: 8px 10px;
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(23, 34, 42, 0.05);
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-header h2 {
  max-width: none;
  font-size: 1.12rem;
}

.admin-card-header p,
.admin-notes,
.admin-empty {
  margin: 3px 0 0;
  color: var(--muted);
}

.admin-notes {
  font-size: 0.94rem;
}

.admin-pill {
  min-width: 80px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.admin-pill.is-approved {
  background: rgba(44, 129, 125, 0.14);
  color: var(--teal);
}

.admin-pill.is-waitlist {
  background: rgba(214, 107, 22, 0.14);
  color: var(--copper-dark);
}

.admin-pill.is-rejected {
  background: rgba(156, 44, 30, 0.12);
  color: #9c2c1e;
}

.admin-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.admin-details div {
  min-width: 0;
  padding: 8px;
  background: #fbfcfa;
}

.admin-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-details dd {
  margin: 3px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-invite {
  display: grid;
  gap: 4px;
}

.admin-invite-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-invite-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
}

.admin-invite-copy {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.admin-invite-copy:hover {
  border-color: rgba(153, 76, 18, 0.35);
  color: var(--copper-dark);
}

.admin-invite-copy:focus-visible {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 111, 186, 0.24);
}

.admin-invite-copy.is-copied {
  border-color: rgba(44, 129, 125, 0.4);
  color: var(--teal);
}

.admin-invite-copy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-invite small {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions .button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(153, 76, 18, 0.35);
  color: var(--copper-dark);
}

.button:disabled,
.button.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  padding: 28px 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: #ffffff;
}

.simple-page {
  min-height: 80vh;
  padding-top: 40px;
}

.simple-page h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: 3.1rem;
}

.tour-intro {
  padding-bottom: 72px;
}

.tour-intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 38px;
}

.tour-intro-copy h1 {
  margin-bottom: 0;
}

.capture-note {
  font-size: 0.92rem;
}

.section-tour-chapters {
  padding-top: 0;
  background: var(--surface-soft);
}

.tour-chapters {
  display: grid;
}

.tour-chapter {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 58px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.tour-chapter:first-child {
  border-top: 0;
}

.tour-chapter:nth-child(even) .tour-chapter-copy {
  order: 2;
}

.tour-chapter:nth-child(even) {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
}

.tour-chapter:nth-child(even) .app-screenshot {
  order: 1;
}

.tour-chapter-copy h2 {
  max-width: 14ch;
  margin-bottom: 20px;
}

.tour-chapter-copy > p:last-child {
  margin: 0;
  color: var(--muted);
}

.tour-list,
.tips-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

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

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

.tour-list article,
.tips-list article {
  min-width: 0;
  padding: 26px;
  background: var(--surface);
}

.tour-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 18px;
}

.tour-list span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 129, 125, 0.25);
  border-radius: 50%;
  color: var(--teal);
  font-weight: 800;
}

.tour-list h2,
.tips-list h2 {
  max-width: none;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.tour-list p,
.tips-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.tips-list p {
  grid-column: auto;
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 20px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .header-menu {
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 110px 22px 138px;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-scrim {
    background: linear-gradient(
      90deg,
      rgba(247, 248, 245, 0.96) 0%,
      rgba(247, 248, 245, 0.88) 44%,
      rgba(247, 248, 245, 0.5) 72%,
      rgba(247, 248, 245, 0.22) 100%
    );
  }

  h1 {
    font-size: 3.15rem;
  }

  h2,
  .simple-page h1 {
    font-size: 2.25rem;
  }

  .lede {
    font-size: 1.16rem;
  }

  .hero-status {
    left: 22px;
    right: 22px;
    bottom: 22px;
    width: calc(100% - 44px);
    grid-template-columns: 1fr;
  }

  .hero-status span {
    min-height: 45px;
  }

  .section {
    padding: 72px 22px;
  }

  .overview-grid,
  .section-heading,
  .beta-layout,
  .download-layout,
  .process-media-grid,
  .compatibility-proof,
  .tour-intro-copy,
  .tour-chapter {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tour-chapter:nth-child(even) .tour-chapter-copy,
  .tour-chapter:nth-child(even) .app-screenshot {
    order: initial;
  }

  .tour-chapter:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .tour-chapter {
    padding: 58px 0;
  }

  .admin-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

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

  .finished-board-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list,
  .requirement-grid,
  .tour-list,
  .tips-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .callout,
  .link-card-grid,
  .software-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-menu {
    width: 100%;
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 22px;
    display: block;
  }

  .hero-media {
    object-position: 56% center;
  }

  .hero-scrim {
    background: rgba(247, 248, 245, 0.78);
  }

  h1 {
    font-size: 2.7rem;
  }

  h2,
  .simple-page h1 {
    max-width: 100%;
    font-size: 2rem;
  }

  .feature-grid,
  .flow-list,
  .requirement-grid,
  .tour-list,
  .tips-list,
  .form-grid,
  .process-pillars,
  .finished-board-stack,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 28px, 1380px);
    padding-top: 20px;
  }

  .admin-heading,
  .admin-auth-gate,
  .admin-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-auth-actions {
    width: 100%;
  }

  .admin-heading-actions {
    width: 100%;
    justify-items: start;
  }

  .admin-heading-buttons,
  .admin-build-summary {
    justify-content: flex-start;
  }

  .admin-notification-setting {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .admin-build-dialog-body {
    padding: 20px;
  }

  .admin-build-release {
    grid-template-columns: 1fr;
  }

  .admin-build-actions {
    flex-direction: column-reverse;
  }

  .admin-build-actions .button {
    width: 100%;
  }

  .admin-details {
    grid-template-columns: 1fr;
  }

  .tour-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tour-list p {
    grid-column: auto;
  }

  .hero-status {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 26px;
  }

  .feature-card,
  .flow-list li {
    min-height: auto;
  }

  .signup-panel {
    padding: 20px;
  }

  .submit-button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media {
    display: none;
  }
}
