:root {
  --bg: #f5efe3;
  --ink: #1f1b16;
  --muted: #64584c;
  --panel: rgba(255, 250, 241, 0.74);
  --panel-dark: rgba(24, 28, 36, 0.86);
  --line: rgba(31, 27, 22, 0.12);
  --accent: #c25f2f;
  --accent-2: #135c56;
  --shadow: 0 22px 48px rgba(31, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 95, 47, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(19, 92, 86, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f3e8, #efe4d3);
}

body.theme-ink {
  color: #eef0eb;
  background:
    radial-gradient(circle at top left, rgba(194, 95, 47, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(19, 92, 86, 0.2), transparent 22%),
    linear-gradient(180deg, #0f1116, #181d23);
}

.site-shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

body.theme-ink .topbar {
  background: rgba(24, 28, 36, 0.76);
  border-color: rgba(255, 255, 255, 0.08);
}

.brand {
  color: inherit;
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.brand span {
  color: var(--accent);
}

.topnav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

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

.nav-cta,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.button-primary,
.nav-cta {
  background: var(--accent);
  color: #fff7f0;
}

.button-secondary {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}

body.theme-ink .button-secondary {
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-panel,
.workflow-panel,
.form-band,
.feature-card,
.token-card,
.panel-form,
.hero-card,
.data-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.theme-ink .workflow-panel,
body.theme-ink .form-band,
body.theme-ink .feature-card,
body.theme-ink .token-card,
body.theme-ink .panel-form,
body.theme-ink .data-card {
  background: var(--panel-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  margin-top: 24px;
  padding: 34px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.hero-copy h1,
.dashboard-head h1,
.section-heading h2 {
  font-family: "Fraunces", serif;
  line-height: 1;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 12ch;
}

.dashboard-head h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-ink .eyebrow,
body.theme-ink .card-kicker {
  color: #7fd6ca;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

body.theme-ink .lede,
body.theme-ink .workflow-list,
body.theme-ink .status-bar,
body.theme-ink .code-panel {
  color: #cad0d8;
}

.tight {
  max-width: 64ch;
}

.hero-actions,
.hero-metrics,
.grid-three,
.form-grid,
.dashboard-layout,
.signup-grid,
.signup-inline-grid {
  display: grid;
  gap: 16px;
}

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

.hero-offer {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

body.theme-ink .hero-offer {
  color: #cad0d8;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics div,
.stack-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(31, 27, 22, 0.08);
}

body.theme-ink .hero-metrics div,
body.theme-ink .stack-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
}

.hero-stage {
  display: grid;
  gap: 16px;
  align-content: start;
}

.document-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-chip,
.tool-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  font: inherit;
}

body.theme-ink .tool-chip,
body.theme-ink .tool-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.tool-chip.is-active,
.tool-toggle.is-active {
  background: var(--accent);
  color: #fff7f0;
  border-color: transparent;
}

.page-sheet,
.canvas-page {
  position: relative;
  min-height: 420px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 246, 237, 0.92));
  border: 1px solid rgba(31, 27, 22, 0.08);
  overflow: hidden;
}

.page-sheet-header,
.canvas-page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-sheet-body,
.canvas-page-body {
  position: relative;
  min-height: 320px;
  color: #46382b;
  line-height: 1.7;
}

.doc-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 27, 22, 0.12);
}

.doc-tag-signature {
  background: rgba(194, 95, 47, 0.14);
  color: #8f3f1a;
  border-color: rgba(194, 95, 47, 0.2);
}

.doc-tag-initials {
  background: rgba(19, 92, 86, 0.14);
  color: #135c56;
  border-color: rgba(19, 92, 86, 0.2);
}

.doc-tag-date {
  background: rgba(43, 95, 170, 0.14);
  color: #204e91;
  border-color: rgba(43, 95, 170, 0.2);
}

.doc-tag-time {
  background: rgba(123, 91, 163, 0.14);
  color: #5c4390;
  border-color: rgba(123, 91, 163, 0.2);
}

.hero-doc-signature {
  top: 38%;
  left: 11%;
}

.hero-doc-initials {
  top: 54%;
  left: 58%;
}

.hero-doc-date {
  top: 70%;
  left: 14%;
}

.hero-doc-time {
  top: 70%;
  left: 56%;
}

.setup-doc-signature {
  top: 44%;
  left: 12%;
}

.setup-doc-initials {
  top: 57%;
  left: 62%;
}

.setup-doc-date {
  top: 76%;
  left: 16%;
}

.setup-doc-time {
  top: 76%;
  left: 58%;
}

.hero-stage-note {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(31, 27, 22, 0.08);
}

.hero-stage-note span {
  color: var(--muted);
  line-height: 1.5;
}

.setup-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.process-list,
.recipient-stack,
.field-list {
  display: grid;
  gap: 12px;
}

.process-step,
.recipient-stack div,
.trial-banner div,
.field-list li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(31, 27, 22, 0.08);
}

body.theme-ink .process-step,
body.theme-ink .recipient-stack div,
body.theme-ink .trial-banner div,
body.theme-ink .field-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.process-step {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.process-step span:first-child {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(194, 95, 47, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.process-step h3,
.recipient-stack strong,
.trial-banner strong,
.setup-sidebar h2,
.document-canvas h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.process-step p,
.recipient-stack span,
.trial-banner p,
.hero-stage-note span,
.setup-intro,
.canvas-help,
.field-list li span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

body.theme-ink .process-step p,
body.theme-ink .recipient-stack span,
body.theme-ink .trial-banner p,
body.theme-ink .setup-intro,
body.theme-ink .canvas-help,
body.theme-ink .field-list li span {
  color: #cad0d8;
}

.setup-board {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(194, 95, 47, 0.08), rgba(19, 92, 86, 0.08));
  border: 1px solid rgba(31, 27, 22, 0.08);
}

.setup-actions-inline,
.workspace-toolbar,
.button-cluster {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.setup-shell {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.setup-sidebar,
.document-canvas {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.theme-ink .setup-sidebar,
body.theme-ink .document-canvas {
  background: var(--panel-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.setup-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.setup-sidebar form,
.field-list {
  margin: 0;
}

.field-list {
  list-style: none;
  padding: 0;
}

.field-list li {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 92, 86, 0.16);
  color: #8ce0d3;
  font-size: 0.8rem;
  font-weight: 700;
}

.canvas-help {
  margin-bottom: 14px;
}

.canvas-page {
  cursor: crosshair;
}

.doc-tag-live {
  transform: translate(-10%, -20%);
}

.setup-summary {
  margin-top: 18px;
}

.signal-list,
.workflow-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.content-band,
.workflow-panel,
.form-band {
  margin-top: 24px;
  padding: 28px;
}

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

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

.feature-card,
.data-card,
.panel-form,
.token-card {
  padding: 20px;
}

.dashboard-layout {
  margin-top: 24px;
}

.signup-band {
  background:
    linear-gradient(135deg, rgba(194, 95, 47, 0.1), rgba(19, 92, 86, 0.08)),
    var(--panel);
}

body.theme-ink .signup-band {
  background:
    linear-gradient(135deg, rgba(194, 95, 47, 0.12), rgba(19, 92, 86, 0.12)),
    var(--panel-dark);
}

.signup-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.signup-copy {
  margin-bottom: 0;
}

.signup-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.signup-points div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(31, 27, 22, 0.08);
}

body.theme-ink .signup-points div {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.signup-points strong {
  display: block;
  margin-bottom: 6px;
}

.signup-points span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

body.theme-ink .signup-points span {
  color: #cad0d8;
}

.signup-form h3,
.signup-inline-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}

.signup-form,
.signup-inline-form {
  gap: 12px;
}

.signup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.signup-helper {
  margin: 0;
}

.signup-status {
  margin: 0;
}

.signup-inline-card {
  padding: 24px;
}

.signup-inline-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.signup-inline-form {
  display: grid;
}

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

.step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.step-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.step-pill.is-active {
  background: var(--accent);
  color: #fff7f0;
  border-color: transparent;
}

.step-pill.is-done {
  background: rgba(19, 92, 86, 0.22);
  border-color: rgba(127, 214, 202, 0.36);
}

.story-card {
  padding: 24px;
}

.big-status {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.story-text {
  margin-top: 10px;
  color: #cad0d8;
  font-size: 1rem;
  line-height: 1.6;
}

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

.story-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-grid p {
  margin: 8px 0 0;
  color: #cad0d8;
}

.simple-band {
  padding-top: 22px;
}

.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 760px;
}

.form-help,
.microcopy {
  margin: 0;
  color: #cad0d8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.advanced-shell {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 18px 22px;
  background: rgba(24, 28, 36, 0.52);
}

.advanced-shell summary {
  cursor: pointer;
  font-weight: 700;
}

.advanced-grid {
  margin-top: 18px;
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.token-card,
.panel-form {
  display: grid;
  gap: 10px;
}

.panel-form h2 {
  margin: 0 0 6px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

label {
  font-size: 0.84rem;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
}

body.theme-ink input,
body.theme-ink textarea,
body.theme-ink select {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

textarea {
  resize: vertical;
}

.code-panel {
  margin: 0;
  min-height: 220px;
  padding: 14px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(15, 17, 22, 0.92);
  color: #d8e0e8;
}

.status-bar {
  margin: 18px 4px 0;
  font-size: 0.95rem;
}

.status-bar.compact {
  margin: 2px 0 0;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .hero-panel,
  .dashboard-head,
  .setup-overview,
  .setup-shell,
  .trial-banner,
  .signup-grid,
  .signup-inline-grid,
  .grid-three,
  .grid-four,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .signup-inline-head {
    flex-direction: column;
  }
}
