/* ==========================================================================
   dwit.cash — verifiable invoicing
   Design language referenced from the Canvas HTML5 template:
   editorial serif display, Inter UI, mono ledger details, structured rhythm.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f4ed;
  --paper-2: #efeae0;
  --paper-3: #e3ded2;
  --white: #fffdf8;
  --ink: #111c18;
  --ink-2: #384a43;
  --muted: #687a72;
  --line: rgba(17, 28, 24, 0.13);
  --line-strong: rgba(17, 28, 24, 0.26);
  --forest: #175c4a;
  --forest-deep: #0c2e26;
  --forest-2: #2f6e5a;
  --mint: #deebe2;
  --sage: #a9c3b6;
  --amber: #b77e35;
  --amber-soft: #e6c894;
  --danger: #a23b2a;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(1rem, 3vw, 1.5rem);
  --header-h: 78px;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(17, 28, 24, 0.05), 0 10px 30px -22px rgba(17, 28, 24, 0.35);
  --shadow: 0 2px 4px rgba(17, 28, 24, 0.04), 0 30px 70px -40px rgba(17, 28, 24, 0.45);
  --shadow-forest: 0 24px 60px -34px rgba(12, 46, 38, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

::selection {
  background: var(--forest);
  color: var(--paper);
}

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

main {
  display: block;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--forest);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  font-size: clamp(2.9rem, 5.1vw, 4.7rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

h2 {
  font-size: clamp(2.05rem, 3.55vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--forest);
}

p {
  max-width: 68ch;
}

.lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 57ch;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  line-height: 1.4;
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.eyebrow-num {
  color: var(--amber);
  font-weight: 500;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::before {
  display: none;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7.25rem);
}

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

.section--tint {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section--flush {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  max-width: 15ch;
}

.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(2rem, 6vw, 5rem);
}

.section-head--split .section-intro {
  max-width: 44ch;
  padding-bottom: 0.35rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center h2 {
  margin-inline: auto;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn .arrow {
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -16px rgba(12, 46, 38, 0.85);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--forest-deep);
}

.btn--light:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -18px rgba(12, 46, 38, 0.8);
}

.btn--sm {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.8125rem;
  border-radius: 7px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  transition: gap 0.22s var(--ease), border-color 0.22s var(--ease);
}

.link-arrow:hover {
  gap: 0.7rem;
  border-color: var(--forest);
}

.link-arrow--light {
  color: var(--paper);
  border-color: rgba(247, 244, 237, 0.35);
}

.link-arrow--light:hover {
  border-color: var(--paper);
}

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 244, 237, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-stuck {
  background: rgba(247, 244, 237, 0.95);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand-logo {
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav-link {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--forest);
  transition: right 0.25s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  right: 0;
}

.nav-cta {
  margin-left: 0.4rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 58% at 82% 18%, rgba(23, 92, 74, 0.11), transparent 70%),
    radial-gradient(38% 48% at 6% 4%, rgba(183, 126, 53, 0.07), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 28, 24, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.035em;
  color: var(--muted);
}

.hero-note .sep {
  opacity: 0.45;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(47, 110, 90, 0.12);
  animation: dot-pulse 2.6s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(47, 110, 90, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(47, 110, 90, 0.04);
  }
}

/* Invoice artifact ------------------------------------------------------- */
.hero-visual {
  position: relative;
  z-index: 1;
}

.invoice-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  padding: 0.5rem 0 2rem;
}

.invoice-card {
  position: relative;
  z-index: 2;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: var(--white);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(17, 28, 24, 0.022) 27px,
    rgba(17, 28, 24, 0.022) 28px
  );
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, var(--shadow);
  transform: rotate(-1.35deg);
}

.invoice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 38%);
  pointer-events: none;
}

.invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.invoice-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.invoice-no {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--ink);
}

.invoice-studio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.studio-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.75rem;
  line-height: 1;
}

.invoice-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.invoice-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.invoice-parties strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.invoice-parties span:not(.invoice-label) {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.invoice-lines {
  padding: 0.45rem 0;
}

.invoice-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.75rem;
}

.invoice-line:last-child {
  border-bottom: 0;
}

.invoice-line .mono {
  font-size: 0.7rem;
}

.invoice-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-strong);
  margin-top: 0.35rem;
}

.invoice-total span {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.invoice-total strong {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.invoice-proof {
  margin-top: 1.1rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, #ecf3ee, #e7f0ea);
  border: 1px solid rgba(23, 92, 74, 0.16);
  border-radius: var(--r-sm);
}

.proof-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--forest);
}

.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(47, 110, 90, 0.14);
}

.proof-hash {
  margin-top: 0.22rem;
  font-size: 0.52rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.invoice-stamp {
  position: absolute;
  z-index: 3;
  top: -1.15rem;
  right: -0.6rem;
  display: grid;
  place-content: center;
  width: 104px;
  height: 104px;
  border: 2px solid rgba(183, 126, 53, 0.55);
  border-radius: 50%;
  color: var(--amber);
  text-align: center;
  transform: rotate(11deg);
  background: rgba(247, 244, 237, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.invoice-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(183, 126, 53, 0.35);
  border-radius: 50%;
}

.invoice-stamp span {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.invoice-stamp small {
  margin-top: 0.1rem;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.float-chip {
  position: absolute;
  z-index: 4;
  left: -1.4rem;
  bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.float-chip svg {
  width: 24px;
  height: 24px;
  color: var(--forest);
  flex: none;
}

.float-chip strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.float-chip span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.55rem;
  color: var(--muted);
}

/* Fact bar --------------------------------------------------------------- */
.fact-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-bar > div {
  padding: 1.1rem 1.4rem;
  border-left: 1px solid var(--line);
}

.fact-bar > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact-bar dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.fact-bar dd {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* --------------------------------------------------------------------------
   7. Problem, statement, pillars, steps
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.problem-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.problem-num {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.problem-item h3 {
  margin: 0.8rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.problem-item p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.statement {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8rem);
  background: var(--forest-deep);
  color: var(--paper);
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0 139px,
    rgba(247, 244, 237, 0.055) 139px 140px
  );
  opacity: 0.65;
  pointer-events: none;
}

.statement .eyebrow {
  color: var(--sage);
  margin-bottom: 0;
}

.statement .eyebrow::before {
  display: none;
}

.statement-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.statement-text {
  max-width: 17ch;
  margin: 1.25rem auto 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.statement-text em {
  color: var(--amber-soft);
  font-style: italic;
}

.statement-sub {
  max-width: 49ch;
  margin-inline: auto;
  color: rgba(247, 244, 237, 0.68);
  font-size: 1rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 2.2rem;
  color: var(--forest);
  background: var(--mint);
  border-radius: 11px;
}

.pillar-icon svg {
  width: 25px;
  height: 25px;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}

.pillar p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.pillar-tag {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
}

.step-num {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.step h3 {
  margin: 0.55rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.step-tag {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.25rem 0.5rem;
  background: var(--mint);
  border-radius: 4px;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   8. Spec list (feature rows)
   -------------------------------------------------------------------------- */
.spec {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.spec-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.spec-head h2 {
  margin-bottom: 1.1rem;
}

.spec-head .section-intro {
  margin-bottom: 0.35rem;
}

.spec-list {
  border-top: 1px solid var(--line-strong);
}

.spec-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease), background 0.25s var(--ease);
}

.spec-item:hover {
  padding-left: 0.5rem;
}

.spec-item > .mono {
  padding-top: 0.15rem;
  font-size: 0.625rem;
  color: var(--amber);
}

.spec-item h3 {
  margin-bottom: 0.3rem;
}

.spec-item p {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 54ch;
}

/* --------------------------------------------------------------------------
   9. Price comparison teaser
   -------------------------------------------------------------------------- */
.compare-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding: clamp(2rem, 5vw, 3.6rem);
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--r-xl);
}

.compare-panel::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(247, 244, 237, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.compare-panel .eyebrow {
  color: var(--sage);
}

.compare-panel h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.compare-panel h2 em {
  color: var(--amber-soft);
}

.compare-panel p {
  margin-top: 1rem;
  max-width: 45ch;
  color: rgba(247, 244, 237, 0.72);
  font-size: 0.9375rem;
}

.compare-panel .link-arrow {
  margin-top: 1.6rem;
}

.compare-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 1.4rem;
  background: rgba(12, 46, 38, 0.42);
  border: 1px solid rgba(247, 244, 237, 0.14);
  border-radius: var(--r);
}

.compare-row {
  margin-bottom: 1.4rem;
}

.compare-row:last-of-type {
  margin-bottom: 0;
}

.compare-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: rgba(247, 244, 237, 0.72);
}

.compare-row-head .amount {
  font-size: 1.2rem;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.compare-track {
  height: 10px;
  overflow: hidden;
  background: rgba(247, 244, 237, 0.12);
  border-radius: 99px;
}

.compare-fill {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: inherit;
}

.compare-fill--dwit {
  background: var(--amber-soft);
}

.compare-fill--typical {
  background: rgba(247, 244, 237, 0.42);
}

.compare-foot {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 244, 237, 0.12);
  font-size: 0.625rem !important;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.48) !important;
}

/* --------------------------------------------------------------------------
   10. Token
   -------------------------------------------------------------------------- */
.token-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background: var(--mint);
  border: 1px solid rgba(23, 92, 74, 0.16);
  border-radius: var(--r-xl);
}

.token-panel::after {
  content: "$DWIT";
  position: absolute;
  right: -1rem;
  bottom: -2.6rem;
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(23, 92, 74, 0.06);
  pointer-events: none;
}

.token-panel h2 {
  margin-bottom: 1rem;
}

.token-panel p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  max-width: 46ch;
}

.token-panel .link-arrow {
  margin-top: 1.5rem;
}

.token-card {
  position: relative;
  z-index: 1;
  padding: 0.4rem 1.25rem 1rem;
  background: var(--white);
  border: 1px solid rgba(23, 92, 74, 0.18);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.token-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.token-row:last-child {
  border-bottom: 0;
}

.token-row dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.token-row dd {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copy-btn:hover {
  background: var(--mint);
  border-color: rgba(23, 92, 74, 0.25);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   11. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta::before {
  width: 760px;
  height: 760px;
}

.cta::after {
  width: 1080px;
  height: 1080px;
  opacity: 0.55;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta .eyebrow {
  justify-content: center;
}

.cta .eyebrow::before {
  display: none;
}

.cta h2 {
  max-width: 16ch;
  margin: 0 auto 1.1rem;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.03;
}

.cta-lead {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cta-note {
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 1.4rem;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero-aside {
  padding-bottom: 0.35rem;
}

.page-hero-aside p {
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 38ch;
}

.aside-rule {
  width: 42px;
  height: 1px;
  margin: 1.4rem 0;
  background: var(--line-strong);
}

.aside-note {
  font-size: 0.625rem !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted) !important;
  line-height: 1.8 !important;
}

.page-hero-aside > p + .aside-note {
  margin-top: 1.15rem;
}

/* --------------------------------------------------------------------------
   13. About
   -------------------------------------------------------------------------- */
.manifesto {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.manifesto-head {
  padding-top: 0.35rem;
}

.manifesto-body p {
  max-width: 64ch;
  margin-bottom: 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.66;
  color: var(--ink-2);
}

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

.manifesto-lead {
  color: var(--ink) !important;
}

.manifesto-lead::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font-size: 3.6em;
  line-height: 0.72;
  color: var(--forest);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.9vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.principles {
  border-top: 1px solid var(--line-strong);
}

.principle {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.25fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.principle .num {
  padding-top: 0.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.principle h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.principle p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.trust {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--forest-deep);
  color: var(--paper);
}

.trust .eyebrow {
  color: var(--sage);
}

.trust .eyebrow-num {
  color: var(--amber-soft);
}

.trust h2 em {
  color: var(--amber-soft);
}

.trust .section-intro {
  color: rgba(247, 244, 237, 0.66);
}

.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.chain-step {
  padding: 0 1.5rem;
  border-left: 1px solid rgba(247, 244, 237, 0.14);
}

.chain-step:first-child {
  padding-left: 0;
  border-left: 0;
}

.chain-num {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--amber-soft);
}

.chain-step h3 {
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--paper);
}

.chain-step p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(247, 244, 237, 0.6);
}

.trust-receipt {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  background: rgba(247, 244, 237, 0.04);
  border: 1px solid rgba(247, 244, 237, 0.14);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 2;
  color: rgba(247, 244, 237, 0.78);
}

.trust-receipt .k {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--sage);
}

.trust-receipt .v {
  color: rgba(247, 244, 237, 0.86);
}

.trust-receipt .v--ok {
  color: var(--amber-soft);
}

.trust-note {
  max-width: 72ch;
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--amber);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(247, 244, 237, 0.55);
}

.wont-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.wont-item {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}

.wont-mark {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--amber);
}

.wont-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.wont-item p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   14. Pricing page
   -------------------------------------------------------------------------- */
.hero-price-card {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.hero-price-card > span {
  display: block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-price-card strong {
  display: block;
  margin: 0.2rem 0 0.1rem;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--forest);
}

.hero-price-card > span:nth-of-type(2) {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.hero-price-card p {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 1020px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.plan--featured {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow-forest);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  padding: 0.3rem 0.65rem;
  background: var(--amber);
  color: var(--forest-deep);
  border-radius: 99px;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.plan--featured .plan-top {
  border-bottom-color: rgba(247, 244, 237, 0.16);
}

.plan-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan--featured .plan-kicker {
  color: var(--sage);
}

.plan h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.plan-price {
  flex: none;
  text-align: right;
}

.plan-price strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan-price span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.plan--featured .plan-price span {
  color: rgba(247, 244, 237, 0.58);
}

.plan-desc {
  margin: 1.1rem 0 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
}

.plan--featured .plan-desc {
  color: rgba(247, 244, 237, 0.76);
}

.plan-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.plan-list li.is-muted {
  opacity: 0.55;
}

.tick,
.cross {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
}

.cross {
  background: transparent;
  color: var(--muted);
}

.tick svg,
.cross svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan--featured .tick {
  background: rgba(247, 244, 237, 0.14);
  color: var(--amber-soft);
}

.plan-btn {
  width: 100%;
  margin-top: auto;
}

.plan-note {
  margin-top: 0.7rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.plan--featured .plan-note {
  color: rgba(247, 244, 237, 0.55);
}

.pricing-fineprint {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Calculator ------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: 5fr 6fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.calc-controls {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-right: 1px solid var(--line);
}

.calc-result {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: var(--paper-2);
}

.calc-controls .field {
  margin-bottom: 1.75rem;
}

.calc-controls .field:last-of-type {
  margin-bottom: 1.5rem;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.field-head label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field-head output {
  padding: 0.1rem 0.45rem;
  background: var(--mint);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--forest);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--paper-3);
  border-radius: 99px;
  outline-offset: 8px;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--forest);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--forest);
  cursor: grab;
}

.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--forest);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--forest);
  cursor: grab;
}

.range:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.calc-note {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.calc-label {
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc-total {
  margin-top: 0.35rem;
  font-size: clamp(2.3rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.calc-sub {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.calc-bars {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.calc-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--ink-2);
}

.calc-bar {
  height: 10px;
  overflow: hidden;
  background: rgba(17, 28, 24, 0.08);
  border-radius: 99px;
}

.calc-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s var(--ease);
}

.calc-bar-fill--dwit {
  background: var(--forest);
}

.calc-bar-fill--typical {
  background: var(--amber);
}

.calc-saving {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.calc-saving span {
  font-size: 0.75rem;
  color: var(--muted);
}

.calc-saving strong {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--forest);
}

.calc-disclaimer {
  margin-top: 0.8rem;
  font-size: 0.625rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Comparison table ------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table thead th {
  padding: 0.9rem 1.25rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.compare-table thead th:not(:first-child),
.compare-table tbody td {
  text-align: center;
}

.compare-table thead th:nth-child(2),
.compare-table thead th:nth-child(3) {
  width: 22%;
}

.compare-table tbody th,
.compare-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table tbody td {
  text-align: center;
  color: var(--ink-2);
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover {
  background: rgba(222, 235, 226, 0.22);
}

.compare-table .col-featured {
  background: rgba(222, 235, 226, 0.42);
}

.compare-table thead .col-featured {
  background: var(--mint);
  color: var(--forest);
}

.compare-table strong {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.yes {
  font-weight: 600;
  color: var(--forest);
}

.no {
  color: var(--muted);
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  max-width: 840px;
  margin-inline: auto;
  border-top: 1px solid var(--line-strong);
}

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

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  transition: color 0.2s var(--ease);
}

.faq-q:hover {
  color: var(--forest);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--forest);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.faq-icon::before {
  left: 2px;
  right: 2px;
  top: 7.25px;
  height: 1.5px;
}

.faq-icon::after {
  top: 2px;
  bottom: 2px;
  left: 7.25px;
  width: 1.5px;
}

.faq-item.is-open .faq-icon::after {
  transform: scaleY(0);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  max-width: 68ch;
  padding-bottom: 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.66;
  color: var(--ink-2);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 4.5fr 6.5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-list {
  border-top: 1px solid var(--line-strong);
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item h3 {
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}

.contact-item a {
  color: var(--forest);
  border-bottom: 1px solid rgba(23, 92, 74, 0.3);
  transition: border-color 0.2s var(--ease);
}

.contact-item a:hover {
  border-color: var(--forest);
}

.next-steps {
  margin-top: 2.2rem;
}

.next-title {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-steps ol {
  margin-top: 0.5rem;
}

.next-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.next-steps .mono {
  padding-top: 0.1rem;
  font-size: 0.5625rem;
  color: var(--amber);
}

.form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.form-head h2 {
  font-size: clamp(1.7rem, 2.5vw, 2rem);
  margin-bottom: 0.3rem;
}

.form-head p {
  font-size: 0.75rem;
  color: var(--muted);
}

.req {
  color: var(--amber);
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.field-full {
  grid-column: 1 / -1;
}

.form-grid .field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.input {
  width: 100%;
  padding: 0.72rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.input:hover {
  border-color: var(--muted);
}

.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 92, 74, 0.1);
}

select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23384a43' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
}

textarea.input {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  color: var(--danger);
}

.field.is-invalid .input {
  border-color: var(--danger);
  background: #fdf5f2;
}

.field.is-invalid .field-error {
  display: block;
}

.form-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.form-note {
  max-width: 34ch;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-success {
  padding: 0.5rem 0;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--forest);
  background: var(--mint);
  border-radius: 50%;
}

.success-icon svg {
  width: 26px;
  height: 26px;
}

.form-success h3 {
  margin: 1rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.form-success p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.form-success a {
  color: var(--forest);
  border-bottom: 1px solid rgba(23, 92, 74, 0.3);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.quick-item {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}

.quick-item > .mono {
  font-size: 0.625rem;
  color: var(--amber);
}

.quick-item h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.quick-item p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.quick-item .link-arrow {
  margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.75rem;
  background: var(--forest-deep);
  color: rgba(247, 244, 237, 0.68);
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 244, 237, 0.14);
}

.site-footer .brand {
  margin-bottom: 1rem;
}

.site-footer .brand-logo {
  height: 28px;
}

.footer-brand > p {
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(247, 244, 237, 0.58);
}

.footer-token {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(247, 244, 237, 0.16);
  border-radius: 99px;
}

.token-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-soft);
}

.footer-token .mono {
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 237, 0.66);
}

.footer-col h3 {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(247, 244, 237, 0.66);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-col .external {
  font-size: 0.7em;
  opacity: 0.65;
}

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.6875rem;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.42);
}

.footer-fine {
  max-width: 48ch;
  text-align: right;
}

/* --------------------------------------------------------------------------
   17. Reveal motion
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 2.5rem;
  }

  .spec {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .spec-head {
    position: static;
    max-width: 640px;
  }

  .spec-head .section-intro {
    max-width: 58ch;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    max-width: 640px;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 460px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-visual {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .invoice-stage {
    margin-inline: auto;
  }

  .fact-bar {
    grid-template-columns: 1fr 1fr;
  }

  .fact-bar > div {
    padding: 1rem 1.25rem;
  }

  .fact-bar > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact-bar > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .compare-panel {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .compare-panel h2 {
    max-width: 14ch;
  }

  .compare-visual {
    max-width: 560px;
  }

  .token-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .token-card {
    max-width: 480px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    align-items: start;
  }

  .page-hero-aside {
    max-width: 600px;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-band {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

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

  .calc-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .chain {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .chain-step {
    padding: 0 1.5rem;
  }

  .chain-step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 79;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin: 1rem 0 0;
    width: 100%;
  }

  .pillar-grid,
  .steps,
  .wont-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: 0;
  }

  .pillar h3 {
    font-size: 1.55rem;
  }

  .pillar-icon {
    margin-bottom: 1.5rem;
  }

  .principle {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.4rem;
    gap: 0.5rem 1rem;
  }

  .principle p {
    grid-column: 2;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-head--split {
    display: block;
  }

  .section-head--split .section-intro {
    margin-top: 1.2rem;
    max-width: 58ch;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-fine {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 2rem);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .invoice-stamp {
    top: -0.9rem;
    right: 0;
    width: 88px;
    height: 88px;
  }

  .invoice-stamp span {
    font-size: 0.55rem;
  }

  .invoice-stamp small {
    font-size: 0.44rem;
  }

  .float-chip {
    left: 0;
    bottom: -0.2rem;
  }

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

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

  .form-foot .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(3) {
    padding: 1.3rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }

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

  .chain-step {
    padding: 1.2rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(247, 244, 237, 0.14);
  }

  .chain-step:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .invoice-parties {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .plan-top {
    flex-direction: column;
    gap: 0.8rem;
  }

  .plan-price {
    text-align: left;
  }

  .plan-badge {
    left: 1.5rem;
  }

  .calc-saving {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .fact-bar {
    grid-template-columns: 1fr;
  }

  .fact-bar > div,
  .fact-bar > div:nth-child(3),
  .fact-bar > div:nth-child(4) {
    padding: 0.9rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact-bar > div:first-child {
    border-top: 0;
  }

  .float-chip {
    position: static;
    width: fit-content;
    margin: 1rem auto 0;
  }

  .invoice-card {
    transform: none;
  }

  .invoice-stamp {
    top: -1.1rem;
    right: 0.2rem;
  }

  .trust-receipt {
    font-size: 0.625rem;
  }

  .trust-receipt .k {
    display: block;
    min-width: 0;
  }

  .trust-receipt > div {
    padding-bottom: 0.35rem;
  }

  .footer-token .mono {
    font-size: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
