/* =========================================================
   Chunky Patterns marketing site
   Warm handmade editorial: linen, espresso ink, terracotta,
   blush and sage (from the From My Hands palette).
   ========================================================= */

:root {
  --linen: #f7f1e8;
  --linen-deep: #efe5d6;
  --paper: #fffaf3;
  --ink: #2b211b;
  --ink-soft: #5e5047;
  --ink-faint: #8f8075;
  --line: #e4d8c7;
  --line-strong: #cdbca6;

  --terracotta: #b9583f;
  --terracotta-deep: #9b4532;
  --blush: #f2cfc4;
  --blush-soft: #f9e6df;
  --rose: #d39792;
  --sage: #7e987a;
  --forest: #3f5446;
  --butter: #e9c97e;

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --shadow-soft: 0 1px 2px rgba(43, 33, 27, 0.05), 0 10px 30px -12px rgba(43, 33, 27, 0.18);
  --shadow-lift: 0 2px 4px rgba(43, 33, 27, 0.06), 0 28px 60px -24px rgba(43, 33, 27, 0.35);
  --wrap: 1180px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Linen grain over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 2l4 6 4-6 4 6 4-6 4 6' fill='none' stroke='%23b9583f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

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

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

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

.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(185, 88, 63, 0.7);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

.btn-quiet {
  border-color: var(--line-strong);
  background: rgba(255, 250, 243, 0.6);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(43, 33, 27, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.logo svg {
  width: 36px;
  height: 36px;
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.logo:hover svg {
  transform: rotate(-10deg) scale(1.06);
}

.logo-word {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(43, 33, 27, 0.05);
}

.nav-links a[aria-current='page'] {
  color: var(--ink);
  background: var(--blush-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Sections ---------- */
section {
  position: relative;
}

.section {
  padding: 120px 0;
}

.section-tight {
  padding: 80px 0;
}

.knit-rule {
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M2 3l6 8 6-8M14 3l6 8 6-8' fill='none' stroke='%23cdbca6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/28px 14px repeat-x;
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 820px;
  height: 820px;
  right: -260px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(242, 207, 196, 0.85), rgba(242, 207, 196, 0) 65%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(126, 152, 122, 0.22);
}

/* Hero transformation art */
.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
}

.morph {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg);
  outline: 10px solid var(--paper);
}

.morph canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.morph canvas.layer-top {
  z-index: 3;
  animation: wipeIn 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.morph canvas.layer-under {
  z-index: 2;
}

.morph canvas.layer-off {
  z-index: 1;
  visibility: hidden;
}

@keyframes wipeIn {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.morph-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 4;
  background: var(--paper);
  box-shadow: 0 0 18px 4px rgba(255, 250, 243, 0.8);
  left: -10px;
  opacity: 0;
}

.morph-seam.run {
  animation: seam 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes seam {
  0% {
    left: 0;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.morph-tabs {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.morph-tabs button {
  border: none;
  background: none;
  color: #cbbcaa;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.25s, color 0.25s;
}

.morph-tabs button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
}

.morph-tabs .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0.7;
}

.float-chip {
  position: absolute;
  z-index: 7;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 12px 14px;
  font-size: 0.78rem;
  animation: bob 6s ease-in-out infinite;
}

.float-chip .k {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.chip-row-guide {
  left: -70px;
  top: 16%;
  width: 230px;
}

.chip-skeins {
  right: -44px;
  bottom: 18%;
  animation-delay: -3s;
}

.chip-skeins strong {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}

.chip-skeins .yarns {
  display: flex;
  margin-top: 8px;
}

.chip-skeins .yarns i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -5px;
}

.chip-skeins .yarns i:first-child {
  margin-left: 0;
}

.runs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.run {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 7px 3px 4px;
  border-radius: 999px;
  background: var(--linen);
}

.run i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(43, 33, 27, 0.15);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- Craft strip ---------- */
.craft-strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 0;
}

.craft-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.craft-strip li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.craft-strip li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

.craft-strip .label {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.craft-strip .label::before {
  display: none;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 14px 14px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.step:nth-child(even) {
  margin-top: 36px;
}

.step-art {
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  background: var(--linen-deep);
  margin-bottom: 20px;
  position: relative;
}

.step-art canvas {
  width: 100%;
  height: 100%;
}

.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--terracotta);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  padding-inline: 8px;
}

.step h3 {
  padding: 8px 8px 6px;
}

.step p {
  padding-inline: 8px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.step-rows {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  background: var(--paper);
}

.step-rows .row-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
}

.step-rows .row-line b {
  min-width: 40px;
  white-space: nowrap;
  text-align: right;
  font-weight: 500;
}

.step-rows .bar {
  flex: 1;
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.step-rows .row-line.done {
  opacity: 0.45;
}

.step-rows .row-line.done b::after {
  content: ' ✓';
  color: var(--sage);
}

.step-cursor {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(43, 33, 27, 0.35));
  animation: paintPath 5.5s ease-in-out infinite;
}

@keyframes paintPath {
  0%,
  100% {
    left: 22%;
    top: 30%;
  }
  33% {
    left: 64%;
    top: 40%;
  }
  66% {
    left: 40%;
    top: 68%;
  }
}

/* ---------- Colorway feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.feature-copy {
  display: grid;
  gap: 22px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blush-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%23b9583f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.check-list strong {
  color: var(--ink);
}

.studio-card {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lift);
  color: #e9dccd;
}

.studio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4d3f35;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #3b2f27;
}

.seg button {
  border: none;
  background: none;
  color: #bfae9b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.seg button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
}

.studio-canvas {
  aspect-ratio: 1.15;
  border-radius: 14px;
  overflow: hidden;
  background: #3b2f27;
}

.studio-canvas canvas {
  width: 100%;
  height: 100%;
}

.colorways {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.colorway {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid #4d3f35;
  background: none;
  color: #e9dccd;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.colorway:hover {
  border-color: #8a7765;
}

.colorway[aria-pressed='true'] {
  border-color: var(--blush);
  background: rgba(242, 207, 196, 0.12);
}

.colorway .sw {
  display: flex;
}

.colorway .sw i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: -4px;
  border: 1.5px solid var(--ink);
}

.colorway .sw i:first-child {
  margin-left: 0;
}

.studio-caption {
  font-size: 0.75rem;
  color: #a8978a;
  margin-top: 12px;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  transition: border-color 0.25s, transform 0.25s;
}

.feature:hover {
  border-color: var(--terracotta);
  transform: translateY(-3px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blush-soft);
  color: var(--terracotta);
  margin-bottom: 18px;
}

.feature:nth-child(3n + 2) .feature-icon {
  background: #e6ede4;
  color: var(--forest);
}

.feature:nth-child(3n) .feature-icon {
  background: #f7ecd2;
  color: #92692a;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.billing-toggle button {
  border: none;
  background: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}

.billing-toggle .save {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--terracotta-deep);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px 30px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.plan.featured {
  background: var(--ink);
  color: #efe3d4;
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-10px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--terracotta-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
}

.plan-tag {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.plan.featured .plan-tag,
.plan.featured .plan-billing {
  color: #bfae9b;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

.plan-price span {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.plan.featured .plan-price span {
  color: #bfae9b;
}

.plan-billing {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: -10px;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  flex: 1;
  align-content: start;
}

.plan.featured ul {
  border-color: #54453a;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
}

.plan li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3L12.5 5' fill='none' stroke='%23b9583f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.plan.featured li::before {
  filter: brightness(1.6) saturate(0.7);
}

.plan.featured .btn-quiet {
  background: var(--paper);
  border-color: var(--paper);
}

.plan-msg {
  font-size: 0.82rem;
  color: var(--terracotta);
  font-weight: 600;
  text-align: center;
  min-height: 1.3em;
}

.plan.featured .plan-msg {
  color: var(--blush);
}

.plans-foot {
  text-align: center;
  margin-top: 40px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.plans-foot a {
  color: var(--terracotta);
  font-weight: 700;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 0.93rem;
}

.compare th,
.compare td {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare thead th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  background: var(--linen-deep);
}

.compare thead th.hl {
  background: var(--ink);
  color: var(--paper);
}

.compare td.hl {
  background: rgba(242, 207, 196, 0.22);
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare .yes {
  color: var(--terracotta);
  font-weight: 800;
}

.compare .no {
  color: var(--line-strong);
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
}

/* ---------- Maker note ---------- */
.maker {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.maker-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.maker-logo {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.maker-logo img {
  width: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
}

.maker-logo::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.maker-copy {
  display: grid;
  gap: 20px;
}

.maker-copy blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  font-variation-settings: 'SOFT' 100;
}

.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.signature::before {
  content: '';
  width: 36px;
  height: 1.5px;
  background: var(--terracotta);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--linen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%232b211b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.25s, background-color 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--blush);
}

.faq .answer {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.faq .answer a {
  color: var(--terracotta);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--terracotta);
  color: var(--paper);
  padding: 84px 64px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 40px;
  align-items: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='30' viewBox='0 0 36 30'%3E%3Cpath d='M3 4c3 4 6 10 15 22M33 4c-3 4-6 10-15 22' fill='none' stroke='%23fffaf3' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0/36px 30px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 em {
  color: var(--blush);
}

.cta-band p {
  margin-top: 14px;
  color: #f9e2d8;
  font-size: 1.08rem;
  max-width: 30em;
}

.cta-band .btn-primary {
  background: var(--paper);
  color: var(--terracotta-deep);
  box-shadow: 0 16px 30px -14px rgba(43, 33, 27, 0.6);
}

.cta-band .btn-primary:hover {
  background: #fff;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
}

.page-hero .wrap {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.page-hero .lede {
  margin-inline: auto;
}

/* ---------- About ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 20px;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.story-copy h2 {
  color: var(--ink);
  margin-bottom: 6px;
}

.story-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.story-aside img {
  width: min(100%, 360px);
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
}

.story-aside p {
  font-size: 0.9rem;
  color: var(--ink-faint);
  max-width: 22em;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value {
  padding: 28px 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.value-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 18px;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.value h3 {
  margin-bottom: 8px;
}

.value p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.roadmap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: phase;
}

.roadmap li {
  padding: 28px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-strong);
  display: grid;
  gap: 10px;
  align-content: start;
}

.roadmap li.now {
  border-style: solid;
  border-color: var(--terracotta);
  background: var(--paper);
}

.phase {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.roadmap li.now .phase {
  color: var(--terracotta);
}

.roadmap p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.name-note {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.name-note .word {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.name-note .word span {
  color: var(--terracotta);
  font-style: italic;
}

.name-note p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 120px;
  background: var(--ink);
  color: #cdbfb0;
  padding: 72px 0 36px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #44372e;
}

.site-footer .logo-word {
  color: var(--paper);
}

.footer-about p {
  margin-top: 14px;
  max-width: 26em;
}

.site-footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f8075;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-owner {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-owner img {
  width: 64px;
  height: 64px !important;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-owner small {
  display: block;
  color: #8f8075;
  font-size: 0.78rem;
}

.footer-owner strong {
  color: var(--paper);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #8f8075;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

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

.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid,
  .feature-split,
  .maker-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .hero-art {
    width: min(100%, 420px);
    margin-top: 10px;
  }
  .chip-row-guide {
    left: -30px;
  }
  .chip-skeins {
    right: -20px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(even) {
    margin-top: 0;
  }
  .features,
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .plan.featured {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .story-aside {
    position: static;
  }
  .cta-band {
    grid-template-columns: 1fr;
    padding: 64px 40px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 22px;
    background: var(--linen);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(43, 33, 27, 0.35);
    display: none;
  }
  .nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }
  .nav-actions .btn-quiet {
    display: none;
  }
  .roadmap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(var(--wrap), 100% - 36px);
  }
  .section {
    padding: 84px 0;
  }
  .steps,
  .features,
  .values {
    grid-template-columns: 1fr;
  }
  .chip-row-guide {
    left: -8px;
    top: -30px;
    width: 210px;
  }
  .chip-skeins {
    right: -6px;
    bottom: 12%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .cta-band {
    padding: 52px 28px;
    border-radius: 26px;
  }
  .compare th,
  .compare td {
    padding: 12px 12px;
  }
}

.compare th:not(:first-child),
.compare td:not(:first-child) {
  width: 19%;
}

.nav-mobile-only {
  display: none;
}

@media (max-width: 860px) {
  .nav-mobile-only {
    display: block;
  }
}

/* ---------- Footer: 5 columns + button-as-link ---------- */
.footer-grid {
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr 1.4fr;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

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

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-bottom: 40px;
}

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.legal-toc strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.legal-toc ol {
  list-style: none;
  display: grid;
  gap: 6px;
}

.legal-toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--terracotta);
}

.legal-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 52px);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body h2 {
  color: var(--ink);
  font-size: 1.55rem;
  margin: 40px 0 12px;
  scroll-margin-top: 100px;
}

.legal-body h2:first-child,
.legal-body .legal-summary + h2 {
  margin-top: 8px;
}

.legal-body h3 {
  color: var(--ink);
  font-size: 1.12rem;
  margin: 24px 0 8px;
}

.legal-body p,
.legal-body ul {
  margin-bottom: 14px;
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--terracotta);
  font-weight: 600;
}

.legal-body code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--linen);
  padding: 1px 6px;
  border-radius: 5px;
  word-break: break-all;
}

.legal-summary {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--blush-soft);
  color: var(--terracotta-deep);
  margin-bottom: 28px !important;
}

.legal-summary strong {
  color: inherit;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 6px 0 18px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--linen);
}

.legal-owner {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.88rem;
  color: var(--ink-faint);
}

@media (max-width: 960px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: static;
  }
}
