:root {
  --paper: #f3efe6;
  --paper-deep: #e5ded1;
  --ink: #1f271f;
  --muted: #60665e;
  --line: #c6bfb2;
  --white: #fcfaf4;
  --sage: #6b7e5f;
  --sage-dark: #344535;
  --coral: #b54a32;
  --ochre: #c38f2b;
  --blue: #3f647a;
  --shadow: 7px 7px 0 rgba(31, 39, 31, .1);
  --radius: 3px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 10px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(94, 93, 75, .14);
  background: rgba(247, 241, 231, .92);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 650; }
.site-header nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; padding: 10px 18px; border-radius: 999px; color: var(--white); background: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 750; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  max-width: 1380px;
  min-height: 700px;
  margin: 0 auto;
  padding: 70px clamp(22px, 5vw, 76px) 105px;
  overflow: hidden;
}

.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: .74rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .section-intro h2, .studio-promo h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero h1 { max-width: 670px; font-size: clamp(3.8rem, 7vw, 7.3rem); }
.hero h1 em { color: var(--sage); font-weight: 500; }
.hero-lede { max-width: 600px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 780;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--sage-dark); box-shadow: 0 10px 24px rgba(67, 89, 67, .18); }
.button-primary:hover { background: #344936; }
.button-quiet { border-color: var(--line); background: transparent; }
.button-secondary { border-color: var(--line); background: var(--white); }
.button-light { color: var(--ink); background: var(--white); }
.button-wide { width: 100%; margin-top: 18px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 32px 0 0; list-style: none; color: var(--muted); font-size: .78rem; }
.trust-list li::before { content: "✓"; margin-right: 6px; color: var(--sage-dark); font-weight: 900; }

.hero-art { position: relative; min-height: 540px; }
.hero-photo { position: absolute; inset: 0 4% 5% 3%; overflow: hidden; border-radius: 48% 48% 30% 30% / 24% 24% 18% 18%; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(36,48,40,.14)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.target-pin { position: absolute; top: 33%; left: 57%; z-index: 2; width: 28px; height: 28px; border: 5px solid white; border-radius: 50%; background: #98a879; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.target-pin::after { content: ""; position: absolute; left: 7px; top: 21px; width: 5px; height: 28px; border-radius: 4px; background: white; transform: rotate(22deg); transform-origin: top; }
.floating-recipe { position: absolute; right: -1%; bottom: -1%; z-index: 3; width: min(350px, 78%); padding: 22px; border: 1px solid rgba(81, 82, 67, .12); border-radius: 20px; background: rgba(255, 253, 248, .96); box-shadow: var(--shadow); transform: rotate(-2deg); }
.floating-heading { display: flex; align-items: center; gap: 12px; }
.swatch { display: block; width: 48px; height: 48px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch-sage { background: #9baa78; }
.floating-heading small, .target-summary small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.floating-heading strong { font-family: Georgia, serif; font-size: 1.25rem; }
.floating-recipe ol { display: grid; gap: 8px; padding: 14px 0 12px; margin: 14px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; font-size: .84rem; font-weight: 680; }
.floating-recipe li { display: flex; align-items: center; gap: 8px; }
.paint-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-yellow { background: #f4d31b; } .dot-blue { background: #2844a0; } .dot-white { background: #f7f4ea; border: 1px solid #ccc; }
.floating-recipe > p { margin: 12px 0 0; color: var(--muted); font-size: .77rem; }

.mixer-section { padding: 95px clamp(18px, 3vw, 48px) 110px; background: #e9e1d5; }
.section-intro { max-width: 730px; margin: 0 auto 42px; text-align: center; }
.section-intro h2, .studio-promo h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.section-intro > p:last-child { max-width: 630px; margin: 18px auto 0; color: var(--muted); line-height: 1.65; }
.section-intro.compact { margin-bottom: 38px; }

.mixer-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(300px, 1fr) minmax(340px, 1.15fr);
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
  align-items: start;
}
.tool-panel { padding: clamp(20px, 2.2vw, 30px); border: 1px solid rgba(98, 94, 79, .16); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 26px rgba(59, 56, 42, .06); }
.panel-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.step-number { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--coral); font-size: .78rem; font-weight: 850; }
.panel-heading h3 { margin: 1px 0 4px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 550; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }

.target-controls { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
.target-controls label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.color-field input { width: 100%; height: 46px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.hex-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.upload-zone { display: grid; place-items: center; min-height: 170px; padding: 24px; margin-top: 18px; border: 1.5px dashed #bdb4a4; border-radius: 16px; text-align: center; cursor: pointer; transition: border .18s ease, background .18s ease; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--sage); background: #f3f5ed; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 50%; color: var(--sage-dark); background: #e8eee2; font-size: 1.35rem; }
.upload-zone strong { font-size: .88rem; }
.upload-zone small { margin-top: 5px; color: var(--muted); font-size: .69rem; }
.photo-workspace { margin-top: 18px; }
.canvas-stage { position: relative; overflow: hidden; border-radius: 14px; }
#photoCanvas { display: block; width: 100%; max-height: 360px; border-radius: 14px; object-fit: contain; background: #eee; cursor: crosshair; touch-action: manipulation; }
.sample-marker { position: absolute; z-index: 3; width: 28px; height: 28px; border: 3px solid white; border-radius: 50%; box-shadow: 0 1px 0 1px rgba(36,48,40,.6), 0 3px 12px rgba(0,0,0,.28); pointer-events: none; transform: translate(-50%, -50%); }
.sample-marker::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--coral); }
.paint-sample-marker::after { background: var(--coral); }
.white-sample-marker { border-style: dashed; }
.white-sample-marker::after { background: white; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.sample-readout { display: flex; align-items: center; gap: 11px; margin: 10px 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #f8f5ef; }
#samplePreview { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 9px; background: #ded8ce; image-rendering: pixelated; }
.sample-readout strong, .sample-readout span { display: block; }
.sample-readout strong { font-size: .8rem; }
.sample-readout span { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.sample-size-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin: 10px 0 12px; color: var(--muted); font-size: .67rem; font-weight: 750; }
.sample-size-control input { width: 100%; accent-color: var(--sage-dark); }
.sample-size-control output { min-width: 43px; color: var(--ink); text-align: right; }
.photo-actions, .paint-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.text-button { padding: 4px 0; border: 0; color: var(--sage-dark); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; }
.text-button.muted { color: var(--muted); }
.extracted-palette { display: flex; gap: 7px; margin-top: 10px; }
.palette-chip { flex: 1; height: 36px; border: 3px solid white; border-radius: 9px; outline: 1px solid var(--line); cursor: pointer; transition: transform .16s ease; }
.palette-chip:hover { transform: translateY(-2px); }

.paint-view-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; padding: 4px; border-radius: 11px; background: #eee9e0; }
.paint-view-tabs button { min-height: 36px; padding: 7px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: .68rem; font-weight: 800; }
.paint-view-tabs button[aria-selected="true"] { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(50,50,36,.08); }
.paint-view-tabs span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 3px; border-radius: 999px; color: var(--sage-dark); background: #e5ebdf; font-size: .58rem; }
.paint-filters, .batch-controls { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-bottom: 12px; }
.paint-filters label > span, .batch-controls label > span { display: block; margin: 0 0 5px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.paint-filters select, .paint-filters input, .batch-controls select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: .68rem; }
.paint-toolbar { margin-bottom: 12px; color: var(--muted); font-size: .72rem; }
.paint-toolbar > div { display: flex; gap: 10px; }
.paint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 430px; overflow: auto; padding-right: 2px; }
.paint-choice { position: relative; }
.paint-choice input { position: absolute; opacity: 0; pointer-events: none; }
.paint-choice label { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .71rem; font-weight: 700; transition: border .16s ease, background .16s ease; }
.paint-choice input:checked + label { border-color: var(--sage); background: #f0f4eb; }
.paint-choice input:focus-visible + label { outline: 3px solid rgba(73,110,136,.22); outline-offset: 2px; }
.paint-choice .paint-swatch { flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid rgba(0,0,0,.11); border-radius: 7px; }
.paint-choice label span:last-child { min-width: 0; line-height: 1.18; }
.paint-choice label strong, .paint-choice label small { display: block; }
.paint-choice label strong { overflow: hidden; text-overflow: ellipsis; }
.paint-choice label small { margin-top: 4px; color: var(--muted); font-size: .56rem; font-weight: 600; line-height: 1.25; }
.no-paints { grid-column: 1 / -1; padding: 24px; color: var(--muted); text-align: center; font-size: .75rem; }
.tool-disclaimer { margin: 12px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; text-align: center; }

.empty-results { display: grid; place-items: center; min-height: 420px; text-align: center; color: var(--muted); }
.empty-results strong { margin-top: -70px; color: var(--ink); }
.empty-results p { max-width: 240px; margin: -110px 0 0; font-size: .78rem; line-height: 1.5; }
.empty-palette { position: relative; width: 140px; height: 90px; margin-top: 50px; }
.empty-palette span { position: absolute; width: 70px; height: 70px; border-radius: 50%; opacity: .78; }
.empty-palette span:nth-child(1) { left: 0; background: #e5a454; }
.empty-palette span:nth-child(2) { left: 35px; top: -24px; background: #718b6b; }
.empty-palette span:nth-child(3) { right: 0; background: #7089a1; }
.target-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border-radius: 14px; background: #f3eee5; }
.large-target { width: 48px; height: 48px; border: 3px solid white; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); }
.target-summary strong { font-size: 1.05rem; letter-spacing: .04em; }
.estimate-badge { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: #76552b; background: #f5e6c5; font-size: .62rem; font-weight: 820; }
.batch-controls { grid-template-columns: 1fr 1fr; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; }
.batch-controls select { height: 36px; }
.recipe-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.recipe-tab { padding: 9px 5px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: .68rem; font-weight: 780; }
.recipe-tab[aria-selected="true"] { color: white; border-color: var(--sage-dark); background: var(--sage-dark); }
.recipe-card { min-height: 245px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.recipe-preview { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.predicted-swatch { width: 66px; height: 66px; border: 4px solid white; border-radius: 17px; box-shadow: 0 0 0 1px var(--line); }
.recipe-preview small { display: block; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }
.recipe-preview h4 { margin: 3px 0; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 550; }
.recipe-preview p { margin: 0; color: var(--muted); font-size: .71rem; }
.recipe-paints { display: grid; gap: 8px; padding: 14px 0; margin: 0; list-style: none; }
.recipe-paints li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: .77rem; font-weight: 720; }
.recipe-paints .mini-swatch { width: 20px; height: 20px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; }
.recipe-paints li > span:nth-child(2) small { display: block; margin-top: 2px; color: var(--muted); font-size: .56rem; font-weight: 600; }
.recipe-paints b { color: var(--coral); font-size: .72rem; }
.recipe-instructions { margin: 0; padding: 11px 12px; border-radius: 10px; color: #4e594d; background: #edf1e8; font-size: .71rem; line-height: 1.5; }
.recipe-actions { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 7px; margin-top: 12px; }
.recipe-actions .button { min-height: 42px; padding: 9px; font-size: .7rem; }
.adjustment-box { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.adjustment-box > strong { font-size: .75rem; }
#adjustmentButtons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
#adjustmentButtons button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: .66rem; font-weight: 700; }
#adjustmentButtons button:hover { border-color: var(--sage); }
#adjustmentTip { min-height: 34px; margin: 10px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.mix-check { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.mix-check-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.mix-check-heading > div { display: flex; align-items: center; gap: 8px; }
.mix-check-heading h4 { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 550; }
.mix-check-heading > span { color: var(--muted); font-size: .58rem; }
.feature-badge { padding: 4px 7px; border-radius: 999px; color: white; background: var(--coral); font-size: .55rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.mix-check > p { margin: 9px 0 13px; color: var(--muted); font-size: .69rem; line-height: 1.5; }
.paint-state-control { display: flex; align-items: center; gap: 12px; padding: 9px 11px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf6; }
.paint-state-control > span { margin-right: auto; color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.paint-state-control label { display: flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 750; cursor: pointer; }
.paint-state-control input { accent-color: var(--sage-dark); }
.wet-paint-note { padding: 8px 10px; border-radius: 9px; color: #76552b !important; background: #f8e9ca; }
.mix-upload { display: grid; place-items: center; min-height: 90px; padding: 15px; border: 1.5px dashed #bdb4a4; border-radius: 13px; background: #faf8f2; cursor: pointer; text-align: center; }
.mix-upload:hover { border-color: var(--sage); background: #f3f5ed; }
.mix-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mix-upload strong { font-size: .76rem; }
.mix-upload span { margin-top: 4px; color: var(--muted); font-size: .61rem; }
#mixCanvas { display: block; width: 100%; max-height: 330px; border-radius: 13px; object-fit: contain; background: #eee; cursor: crosshair; touch-action: manipulation; }
.mix-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 0 0 10px; list-style: none; }
.mix-progress li { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: .56rem; font-weight: 750; }
.mix-progress li span { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); background: #eee9e0; }
.mix-progress li.active { color: var(--ink); }
.mix-progress li.active span { color: white; background: var(--sage-dark); }
.mix-progress li.complete span { color: white; background: var(--sage); }
.mix-mode-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.mix-mode-controls button { min-height: 34px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; cursor: pointer; font-size: .63rem; font-weight: 750; }
.mix-mode-controls button small { display: block; margin-top: 2px; font-size: .5rem; font-weight: 600; }
.mix-mode-controls button.active { color: white; border-color: var(--sage-dark); background: var(--sage-dark); }
#mixCheckInstruction { margin: 8px 0; color: var(--muted); text-align: center; font-size: .64rem; }
.mix-check-result { display: grid; grid-template-columns: 104px 1fr; gap: 13px; padding: 13px; margin: 10px 0; border: 1px solid var(--line); border-radius: 13px; background: #f7f5ef; }
.comparison-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.comparison-swatches span { min-width: 0; }
.comparison-swatches i { display: block; height: 58px; border: 3px solid white; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.comparison-swatches small, .comparison-swatches b { display: block; overflow: hidden; margin-top: 4px; font-size: .52rem; text-overflow: ellipsis; }
.comparison-swatches small { color: var(--muted); }
.mix-check-result > div:nth-child(2) > strong { font-family: Georgia, serif; font-size: 1rem; }
.mix-check-result p { margin: 5px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.mix-check-result .correction-callout { padding: 8px; border-radius: 8px; color: #415040; background: #e8eee2; font-weight: 700; }
.mix-check-result .button { grid-column: 1 / -1; min-height: 38px; font-size: .68rem; }
.mix-result-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 7px; }
.mix-result-actions .button { grid-column: auto; }
.mix-history { padding: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.mix-history > strong { font-size: .72rem; }
.mix-history ol { display: grid; gap: 7px; padding: 0; margin: 9px 0 0; list-style: none; counter-reset: mix-history; }
.mix-history li { counter-increment: mix-history; padding: 8px 9px; border-radius: 8px; color: var(--muted); background: #f7f5ef; font-size: .62rem; line-height: 1.4; }
.mix-history li::before { content: "Check " counter(mix-history); display: block; margin-bottom: 2px; color: var(--ink); font-weight: 800; }
.mix-check-workspace > .text-button { display: block; margin: 8px auto 0; }

.saved-section { padding: 100px clamp(22px, 6vw, 90px); background: var(--white); }
.studio-dashboard { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; max-width: 1180px; margin: 0 auto 28px; }
.studio-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fffdf8; box-shadow: 0 8px 24px rgba(59, 56, 42, .045); }
.studio-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.studio-card-heading h3 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 550; }
.studio-card-heading > strong { color: var(--sage-dark); font-size: .72rem; }
.studio-field { display: block; margin-top: 11px; }
.studio-field > span, .notebook-toolbar label > span { display: block; margin: 0 0 5px; color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.studio-field input, .studio-field select, .studio-field textarea, .notebook-toolbar input, .notebook-toolbar select {
  width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: .73rem;
}
.studio-field textarea { resize: vertical; line-height: 1.45; }
.studio-field-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9px; }
.studio-card-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.studio-card-actions .button { min-height: 40px; padding: 8px 14px; font-size: .7rem; }
.studio-card-actions .text-button { margin-left: auto; }
.calibration-card > p, .account-card > p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.calibration-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 16px; }
.calibration-stats span { min-width: 0; padding: 10px 7px; border-radius: 10px; background: #f3eee5; text-align: center; }
.calibration-stats strong, .calibration-stats small { display: block; overflow: hidden; text-overflow: ellipsis; }
.calibration-stats strong { font-family: Georgia, serif; font-size: 1.05rem; }
.calibration-stats small { margin-top: 4px; color: var(--muted); font-size: .52rem; line-height: 1.3; }
.privacy-note { margin-top: 14px !important; font-size: .61rem !important; }
.account-profile { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 13px; border-radius: 11px; background: #f3eee5; }
.account-profile img { flex: 0 0 auto; border-radius: 50%; background: white; object-fit: cover; }
.account-profile strong, .account-profile small { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-profile small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.sync-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #c8c1b5; box-shadow: 0 0 0 4px #f3eee5; }
.sync-dot.online { background: #6f946d; }
.sync-dot.working { animation: sync-pulse .9s infinite alternate; }
@keyframes sync-pulse { to { opacity: .35; transform: scale(.75); } }
.notebook-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .35fr) auto; align-items: end; gap: 10px; max-width: 1180px; padding: 13px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7f3eb; }
.notebook-toolbar strong { padding: 11px 4px; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.saved-recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; }
.saved-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.saved-empty strong { font-family: Georgia, serif; font-size: 1.35rem; }
.saved-empty p { margin: 8px 0 20px; color: var(--muted); font-size: .82rem; }
.saved-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fffdf8; }
.saved-card-heading { display: flex; align-items: center; gap: 12px; }
.saved-swatch-pair { position: relative; flex: 0 0 66px; height: 58px; }
.saved-swatch-pair i { position: absolute; display: block; width: 46px; height: 46px; border: 3px solid white; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.saved-swatch-pair i:last-child { right: 0; bottom: 0; }
.saved-card h3 { margin: 4px 0 2px; font-family: Georgia, serif; font-weight: 550; }
.saved-card-heading small { color: var(--muted); font-size: .62rem; }
.status-badge { padding: 4px 7px; border-radius: 999px; color: #76552b; background: #f5e6c5; font-size: .54rem; font-weight: 800; text-transform: uppercase; }
.status-badge.verified { color: #315236; background: #dfeade; }
.saved-card ul { display: grid; gap: 7px; padding: 14px 0; margin: 14px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.saved-card li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .68rem; }
.saved-card li b { color: var(--coral); }
.saved-card li small { grid-column: 1 / -1; color: var(--muted); font-size: .56rem; }
.saved-card .project-label { display: block; margin-top: 4px; color: var(--sage-dark); font-size: .58rem; font-weight: 750; }
.saved-actions { max-width: 1180px; margin: 18px auto 0; text-align: right; }

.pricing-section { padding: 100px clamp(22px, 6vw, 90px); background: #e9e1d5; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.pricing-grid article { padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(98, 94, 79, .16); border-radius: 22px; background: var(--white); }
.pricing-grid article.featured { color: white; border-color: var(--sage-dark); background: var(--sage-dark); box-shadow: 0 18px 40px rgba(52,73,54,.18); }
.pricing-grid h3 { margin: 18px 0; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 500; }
.pricing-grid h3 small { font-family: inherit; font-size: .85rem; }
.pricing-grid ul { display: grid; gap: 11px; min-height: 170px; padding: 0; margin: 0 0 24px; list-style: none; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.pricing-grid li::before { content: "✓"; margin-right: 8px; color: var(--sage-dark); font-weight: 900; }
.pricing-grid .featured ul { color: rgba(255,255,255,.76); }
.pricing-grid .featured li::before { color: #eecf9e; }

.how-section, .popular-section, .products-section { padding: 100px clamp(22px, 6vw, 90px); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid article { padding: 38px clamp(24px, 3vw, 44px); }
.how-grid article + article { border-left: 1px solid var(--line); }
.how-grid span { color: var(--coral); font-family: Georgia, serif; font-size: 1.1rem; }
.how-grid h3 { margin: 50px 0 12px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 550; }
.how-grid p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.popular-section { background: var(--white); }
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.popular-card { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: white; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.popular-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(50,50,36,.08); }
.popular-swatch { width: 68px; height: 68px; border-radius: 13px; }
.popular-swatch.sage { background: #9baa78; } .popular-swatch.rose { background: #c98282; } .popular-swatch.sunset { background: #d56c3b; }
.popular-card strong, .popular-card small { display: block; }
.popular-card strong { font-family: Georgia, serif; font-size: 1.15rem; }
.popular-card small { margin-top: 5px; color: var(--muted); }

.studio-promo { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: 1260px; padding: clamp(38px, 6vw, 74px); margin: 40px auto 80px; border-radius: 28px; color: white; background: var(--sage-dark); }
.studio-promo .eyebrow { color: #eecf9e; }
.studio-promo h2 { max-width: 700px; }
.studio-promo p:last-child { max-width: 640px; margin: 18px 0 0; color: rgba(255,255,255,.72); line-height: 1.6; }
.products-section { background: #e9e1d5; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1050px; margin: 0 auto; }
.product-grid a { display: flex; align-items: center; gap: 15px; padding: 12px; border: 1px solid rgba(0,0,0,.08); border-radius: 17px; background: var(--white); text-decoration: none; transition: transform .18s ease; }
.product-grid a:hover { transform: translateY(-3px); }
.product-grid img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.product-grid strong, .product-grid small { display: block; }
.product-grid strong { font-size: .88rem; }
.product-grid small { margin-top: 5px; color: var(--muted); font-size: .72rem; }
.affiliate-note { margin: 20px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 30px clamp(22px, 6vw, 90px); color: var(--muted); background: var(--ink); }
.footer-brand { color: white; }
footer p { font-size: .78rem; text-align: center; }
footer > div:last-child { display: flex; justify-content: flex-end; gap: 20px; }
footer > div:last-child a { color: rgba(255,255,255,.76); font-size: .76rem; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: min(92vw, 440px); padding: 11px 16px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .78rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 32px; padding-left: 36px; padding-right: 36px; }
  .hero h1 { font-size: clamp(3.7rem, 7vw, 5.4rem); }
  .mixer-layout { grid-template-columns: 1fr 1fr; }
  .results-panel { grid-column: 1 / -1; }
  .empty-results { min-height: 260px; }
  .empty-results strong, .empty-results p { margin: 0; }
  .saved-recipes { grid-template-columns: 1fr 1fr; }
  .studio-dashboard { grid-template-columns: 1fr 1fr; }
  .project-card { grid-row: span 2; }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 8px 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: .9rem; }
  .header-cta { padding: 9px 14px; font-size: .78rem; }
  .hero { display: block; min-height: auto; padding: 58px 20px 70px; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5.5rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-wrap: wrap; }
  .trust-list { display: grid; gap: 8px; }
  .hero-art { min-height: 390px; margin-top: 50px; }
  .hero-photo { inset: 0 0 8% 0; border-radius: 110px 110px 55px 55px; }
  .floating-recipe { right: 0; bottom: -5%; width: 84%; }
  .mixer-section { padding: 70px 12px 80px; }
  .mixer-layout { grid-template-columns: 1fr; }
  .results-panel { grid-column: auto; }
  .tool-panel { padding: 20px; }
  .paint-grid { max-height: none; }
  .paint-filters { grid-template-columns: 1fr; }
  .recipe-actions { grid-template-columns: 1fr 1fr; }
  .recipe-actions .button:first-child { grid-column: 1 / -1; }
  .mix-check-result { grid-template-columns: 1fr; }
  .comparison-swatches { max-width: 150px; }
  .mix-result-actions { grid-template-columns: 1fr; }
  .paint-state-control { flex-wrap: wrap; }
  .how-section, .popular-section, .products-section, .saved-section, .pricing-section { padding: 75px 18px; }
  .how-grid, .popular-grid, .product-grid, .saved-recipes, .studio-dashboard, .pricing-grid { grid-template-columns: 1fr; }
  .project-card { grid-row: auto; }
  .studio-field-grid, .notebook-toolbar { grid-template-columns: 1fr; }
  .notebook-toolbar strong { padding: 2px 0; }
  .how-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .how-grid h3 { margin-top: 22px; }
  .studio-promo { display: block; margin: 20px 14px 60px; border-radius: 22px; }
  .studio-promo .button { margin-top: 28px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, footer > div:last-child { justify-content: center; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Human-made design pass
   Direction: artist field notes, editorial utility, imperfect print. */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 13% 18%, rgba(181, 74, 50, .035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 64%, rgba(52, 69, 53, .04) 0 1px, transparent 1.5px);
  background-size: 23px 23px, 29px 29px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

::selection { color: var(--white); background: var(--coral); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
section[id] { scroll-margin-top: 90px; }

.site-header {
  min-height: 76px;
  padding-block: 9px;
  border-top: 4px solid var(--ink);
  border-bottom-color: var(--line);
  background: rgba(243, 239, 230, .97);
  backdrop-filter: none;
}

.site-header::after {
  content: "";
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: -2px;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral) 0 33%, var(--ochre) 33% 66%, var(--blue) 66%);
}

.header-brand > span { display: grid; gap: 1px; }
.header-brand { min-height: 44px; }
.header-brand strong { font-family: Newsreader, Georgia, serif; font-size: 1.08rem; font-weight: 600; letter-spacing: -.025em; }
.header-brand small { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .48rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.brand img { border: 1px solid var(--line); border-radius: 2px; transform: rotate(-2deg); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 3px 8px; border-bottom: 2px solid transparent; font-family: "JetBrains Mono", monospace; font-size: .7rem; font-weight: 500; letter-spacing: .04em; }
.site-header nav a:hover { border-color: var(--coral); }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--ink); border-radius: 2px; box-shadow: 3px 3px 0 var(--coral); }
.header-cta:hover { box-shadow: 1px 1px 0 var(--coral); transform: translate(2px, 2px); }

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(50px, 8vw, 118px);
  min-height: 670px;
  padding-top: 76px;
  padding-bottom: 92px;
  overflow: visible;
}

.eyebrow {
  margin-bottom: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .13em;
}

.hero h1,
.section-intro h2,
.studio-promo h2,
.panel-heading h3,
.studio-card-heading h3,
.saved-empty strong,
.saved-card h3,
.pricing-grid h3,
.how-grid h3,
.popular-card strong,
.recipe-preview h4,
.mix-check-heading h4,
.mix-check-result > div:nth-child(2) > strong {
  font-family: Newsreader, Georgia, serif;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.3rem, 7.4vw, 7rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .86;
}

.hero h1 em {
  display: block;
  margin-top: .09em;
  margin-left: clamp(18px, 4vw, 64px);
  color: var(--sage);
  font-weight: 400;
}

.hero-lede {
  max-width: 550px;
  margin-top: 34px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.button {
  min-height: 46px;
  border-radius: 2px;
  font-size: .83rem;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translate(-1px, -1px); }
.button-primary { border-color: var(--sage-dark); box-shadow: 4px 4px 0 rgba(181, 74, 50, .72); }
.button-primary:hover { box-shadow: 2px 2px 0 rgba(181, 74, 50, .72); transform: translate(2px, 2px); }
.button-quiet { background: rgba(252, 250, 244, .42); }
.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  transform: none;
}
.button:disabled:hover,
button:disabled:hover { box-shadow: none; transform: none; }

.trust-list {
  gap: 10px 26px;
  padding-top: 17px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: .64rem;
}
.trust-list li::before { content: "•"; margin-right: 8px; color: var(--coral); }

.hero-art {
  min-height: 530px;
  isolation: isolate;
}

.mix-note {
  position: absolute;
  inset: 3% 8% 8% 2%;
  padding: clamp(25px, 3vw, 42px);
  border: 1px solid #aaa395;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(63, 100, 122, .08) 31px 32px),
    #f9f6ed;
  box-shadow: 13px 13px 0 rgba(52, 69, 53, .16);
  clip-path: polygon(1.4% 0, 100% 1.2%, 98.8% 99%, 0 97.8%);
  transform: rotate(1.5deg);
}

.mix-note::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 43%;
  width: 92px;
  height: 28px;
  background: rgba(216, 196, 146, .68);
  transform: rotate(-3deg);
}

.mix-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: .58rem;
  letter-spacing: .08em;
}
.mix-note-meta span:last-child { color: var(--coral); }

.mix-note-target { display: flex; align-items: center; gap: 18px; margin-top: 42px; }
.mix-note-swatch {
  display: block;
  width: 112px;
  height: 112px;
  border: 7px solid #f5f0e5;
  border-radius: 50%;
  background: #9baa78;
  box-shadow: 0 0 0 1px #777b6d, inset 16px -9px 20px rgba(52, 69, 53, .12);
}
.mix-note-target p { margin: 0; }
.mix-note-target small,
.mix-note-target strong,
.mix-note-target em { display: block; }
.mix-note-target small { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.mix-note-target strong { margin-top: 5px; font-family: Newsreader, Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 500; letter-spacing: -.035em; }
.mix-note-target em { margin-top: 5px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .65rem; font-style: normal; }

.mix-note-stripes { display: grid; gap: 9px; margin: 54px 9% 0 5%; transform: rotate(-1.8deg); }
.mix-note-stripes span { display: block; height: 17px; border-radius: 48% 6px 43% 5px; filter: saturate(.92); }
.stripe-yellow { width: 72%; background: #e7c82d; }
.stripe-blue { width: 39%; margin-left: 17%; background: #304a9a; }
.stripe-white { width: 90%; height: 22px !important; margin-left: 4%; border: 1px solid #ddd4c4; background: #f4efe3; }
.mix-note-hand { margin: 36px 0 0 19%; color: var(--blue); font-family: Newsreader, Georgia, serif; font-size: 1.25rem; font-style: italic; transform: rotate(-2deg); }

.floating-recipe {
  right: -3%;
  bottom: -2%;
  width: min(335px, 76%);
  padding: 20px;
  border-color: var(--ink);
  border-radius: 2px;
  background: #fffdf7;
  box-shadow: 8px 8px 0 var(--ochre);
  transform: rotate(-2.2deg);
}
.swatch { border-radius: 50%; }

.mixer-section {
  padding-top: 84px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.section-intro {
  max-width: 1180px;
  margin-bottom: 44px;
  text-align: left;
}
.section-intro h2,
.studio-promo h2 {
  max-width: 900px;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .96;
}
.section-intro > p:last-child { max-width: 620px; margin-right: 0; margin-left: 0; }

.mixer-layout {
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(31, 39, 31, .09);
}
.tool-panel {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  border: 0;
  border-top: 5px solid var(--coral);
  border-radius: 0;
  background: rgba(252, 250, 244, .9);
  box-shadow: none;
}
.tool-panel + .tool-panel { border-left: 1px solid var(--line); }
.paints-panel { border-top-color: var(--ochre); }
.results-panel { border-top-color: var(--blue); }
.panel-heading { min-height: 72px; margin-bottom: 24px; }
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 500;
  transform: rotate(-3deg);
}
.panel-heading h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -.025em; }
.panel-heading p { font-size: .72rem; }

.target-controls label > span,
.paint-filters label > span,
.batch-controls label > span,
.studio-field > span,
.notebook-toolbar label > span,
.recipe-preview small,
.floating-heading small,
.target-summary small {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}

.color-field input,
.hex-field input,
.paint-filters select,
.paint-filters input,
.batch-controls select,
.studio-field input,
.studio-field select,
.studio-field textarea,
.notebook-toolbar input,
.notebook-toolbar select {
  min-height: 44px;
  border-radius: 2px;
}

.upload-zone,
.mix-upload {
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(195, 143, 43, .05) 25%, transparent 25%) 0 0 / 14px 14px,
    #faf7ef;
}
.upload-icon { border-radius: 2px; font-family: Newsreader, serif; }
.canvas-stage,
#photoCanvas,
#mixCanvas { border-radius: 2px; }
.sample-readout,
.paint-view-tabs,
.target-summary,
.batch-controls,
.recipe-card,
.recipe-instructions,
.paint-state-control,
.mix-check-result,
.mix-history,
.account-profile,
.notebook-toolbar { border-radius: 2px; }

.paint-view-tabs { padding: 0; border: 1px solid var(--line); background: transparent; }
.paint-view-tabs button,
.recipe-tab,
.mix-mode-controls button {
  min-height: 44px;
  border-radius: 0;
}
.paint-view-tabs button + button { border-left: 1px solid var(--line); }
.paint-view-tabs button[aria-selected="true"] { color: var(--white); background: var(--ink); box-shadow: none; }

.paint-grid { gap: 6px; }
.paint-choice label {
  min-height: 62px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .5);
}
.paint-choice input:checked + label {
  border-color: var(--ink);
  background: #edf0e7;
  box-shadow: inset 4px 0 0 var(--sage);
}
.text-button { min-height: 44px; padding-block: 10px; }
.paint-choice .paint-swatch,
.large-target,
.predicted-swatch,
.recipe-paints .mini-swatch,
.comparison-swatches i,
.saved-swatch-pair i,
.popular-swatch { border-radius: 50%; }

.recipe-tabs { gap: 0; }
.recipe-tab + .recipe-tab { border-left: 0; }
.recipe-tab[aria-selected="true"] { background: var(--ink); }
.recipe-card { border-color: var(--ink); }
.estimate-badge,
.feature-badge,
.status-badge { border-radius: 2px; font-family: "JetBrains Mono", monospace; font-weight: 500; }
#adjustmentButtons button { min-height: 40px; border-radius: 2px; }

.saved-section { background: var(--white); }
.studio-dashboard {
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--white);
}
.studio-card {
  padding: 22px;
  border: 0;
  border-top: 5px solid var(--coral);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.studio-card + .studio-card { border-left: 1px solid var(--line); }
.calibration-card { border-top-color: var(--ochre); }
.account-card { border-top-color: var(--blue); }
.studio-card-heading h3 { font-weight: 500; }
.calibration-stats span { border: 1px solid var(--line); border-radius: 2px; background: #f5f0e7; }
.notebook-toolbar { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; }
.saved-recipes { gap: 10px; }
.saved-empty,
.saved-card { border-radius: 2px; }
.saved-card { border-top: 4px solid var(--sage); }
.saved-swatch-pair i { border-radius: 50%; }

.pricing-section { background: var(--paper-deep); }
.pricing-grid { gap: 0; }
.pricing-grid article { border-radius: 0; }
.pricing-grid article.featured {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 9px 9px 0 var(--coral);
  transform: translate(-1px, -9px);
}
.pricing-grid h3 { font-weight: 500; }

.how-grid span {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
}
.how-grid h3 { font-weight: 500; }
.popular-grid { gap: 0; border: 1px solid var(--ink); }
.popular-card {
  min-height: 104px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.popular-card + .popular-card { border-left: 1px solid var(--line); }
.popular-card:hover { color: var(--white); background: var(--ink); box-shadow: none; transform: none; }
.popular-card:hover small { color: rgba(255,255,255,.7); }

.studio-promo {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--sage-dark);
  box-shadow: 11px 11px 0 var(--ochre);
}
.studio-promo::before {
  content: "MIX → DRY → CHECK → ADJUST";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255,255,255,.52);
  font-family: "JetBrains Mono", monospace;
  font-size: .56rem;
  letter-spacing: .1em;
}

.product-grid { gap: 0; border: 1px solid var(--ink); }
.product-grid a {
  min-height: 108px;
  border: 0;
  border-radius: 0;
  background: var(--white);
}
.product-grid a + a { border-left: 1px solid var(--line); }
.product-grid a:hover { color: var(--white); background: var(--ink); transform: none; }
.product-grid a:hover small { color: rgba(255,255,255,.7); }
.product-mark {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #eee8dd;
}
.product-mark-paint {
  background:
    linear-gradient(110deg, transparent 0 17%, #b54a32 17% 31%, transparent 31% 42%, #c38f2b 42% 56%, transparent 56% 67%, #3f647a 67% 81%, transparent 81%),
    #eee8dd;
}
.product-mark-knife::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 34px;
  width: 62px;
  height: 8px;
  border: 1px solid #575b55;
  background: #b9beb8;
  transform: rotate(-24deg);
}
.product-mark-knife::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 47px;
  width: 27px;
  height: 10px;
  background: #7c5639;
  transform: rotate(-24deg);
}
.product-mark-canvas {
  background:
    linear-gradient(24deg, transparent 44%, rgba(184,75,51,.58) 45% 52%, transparent 53%),
    linear-gradient(-31deg, transparent 39%, rgba(63,100,122,.58) 40% 48%, transparent 49%),
    #f7f3e8;
}

footer { border-top: 5px solid var(--coral); }
.footer-brand img { border-color: rgba(255,255,255,.3); }
footer > div:last-child a { display: inline-flex; align-items: center; min-height: 44px; }
.toast { border: 1px solid var(--white); border-radius: 2px; box-shadow: 5px 5px 0 var(--coral); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); }
  .mixer-layout { gap: 12px; border: 0; background: transparent; box-shadow: none; }
  .tool-panel { border: 1px solid var(--ink); border-top-width: 5px; }
  .tool-panel + .tool-panel { border-left: 1px solid var(--ink); }
  .results-panel { grid-column: 1 / -1; }
  .studio-dashboard { grid-template-columns: 1fr 1fr; }
  .account-card { border-left: 0 !important; border-top-color: var(--blue); }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; border-top-width: 3px; }
  .header-brand small { display: none; }
  .header-cta { box-shadow: 2px 2px 0 var(--coral); }
  .hero { padding-top: 48px; padding-bottom: 76px; }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 5.4rem); line-height: .88; }
  .hero h1 em { margin-left: 15px; }
  .trust-list { font-size: .6rem; }
  .hero-art { min-height: 440px; margin-top: 48px; }
  .mix-note { inset: 0 3% 9% 0; padding: 25px 22px; }
  .mix-note-target { margin-top: 33px; }
  .mix-note-swatch { width: 86px; height: 86px; }
  .mix-note-target strong { font-size: 1.8rem; }
  .mix-note-stripes { margin-top: 39px; }
  .mix-note-hand { margin-top: 27px; font-size: 1.05rem; }
  .floating-recipe { right: -1%; bottom: -2%; width: 82%; }
  .section-intro { text-align: left; }
  .mixer-layout { gap: 12px; }
  .tool-panel + .tool-panel { border-left: 1px solid var(--ink); }
  .panel-heading { min-height: 0; }
  .studio-dashboard { grid-template-columns: 1fr; border: 0; background: transparent; }
  .studio-card { border: 1px solid var(--ink); border-top-width: 5px; }
  .studio-card + .studio-card { margin-top: 10px; border-left: 1px solid var(--ink); }
  .pricing-grid { gap: 14px; }
  .pricing-grid article.featured { transform: none; }
  .popular-grid,
  .product-grid { grid-template-columns: 1fr; }
  .popular-card + .popular-card,
  .product-grid a + a { border-top: 1px solid var(--line); border-left: 0; }
  .studio-promo { margin-right: 18px; margin-left: 8px; border-radius: 2px; }
  .studio-promo::before { display: none; }
  input,
  select,
  textarea { font-size: 16px !important; }
}

/* Measurable mobile activation flow */
.mobile-mixer-steps,
.mobile-mixer-dock,
.mobile-step-continue { display: none; }

.mix-check-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--coral);
  background: #f2eee3;
}

.mix-check-next span,
.mix-check-next strong { display: block; }
.mix-check-next span {
  margin-bottom: 4px;
  color: var(--coral);
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.mix-check-next strong { font-family: Newsreader, Georgia, serif; font-size: 1rem; line-height: 1.25; }
.mix-check-next .button { min-width: 150px; }
.early-access-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

@keyframes mobile-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .mobile-mixer-steps {
    position: sticky;
    top: 66px;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 12px;
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 0 5px 0 rgba(59, 56, 42, .12);
  }

  .mobile-mixer-steps button {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-content: center;
    min-height: 64px;
    padding: 8px 7px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
  }
  .mobile-mixer-steps button:last-child { border-right: 0; }
  .mobile-mixer-steps button > span {
    grid-row: 1 / 3;
    align-self: center;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: "JetBrains Mono", monospace;
    font-size: .62rem;
    font-weight: 700;
  }
  .mobile-mixer-steps strong,
  .mobile-mixer-steps small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-mixer-steps strong { font-size: .68rem; }
  .mobile-mixer-steps small { font-size: .56rem; }
  .mobile-mixer-steps button[aria-current="step"] {
    color: var(--ink);
    background: #fffdf8;
    box-shadow: inset 0 -4px 0 var(--coral);
  }
  .mobile-mixer-steps button.is-complete > span {
    color: var(--white);
    border-color: var(--sage-dark);
    background: var(--sage-dark);
  }

  .mixer-layout.is-mobile-flow .tool-panel:not(.is-mobile-active) { display: none; }
  .mixer-layout.is-mobile-flow .tool-panel.is-mobile-active {
    grid-column: 1 / -1;
    scroll-margin-top: 148px;
    animation: mobile-panel-in .18s ease-out;
  }
  .mobile-step-continue { display: inline-flex; }
  #solveRecipe { display: none; }
  .paint-grid { max-height: min(45vh, 420px); overscroll-behavior: contain; }

  .paint-view-tabs button,
  .paint-filters select,
  .paint-filters input,
  .batch-controls select,
  .recipe-actions .button,
  .text-button,
  .recipe-tab,
  #adjustmentButtons button,
  .mix-mode-controls button,
  .paint-state-control label,
  .studio-card-actions .button { min-height: 44px; }
  .text-button { display: inline-flex; align-items: center; padding: 8px 4px; }
  .photo-actions,
  .paint-toolbar > div,
  #adjustmentButtons,
  .mix-mode-controls { gap: 8px; }

  .mix-check-next {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .mix-check-next .button { width: 100%; min-width: 0; }

  .mixer-section.mobile-dock-active { padding-bottom: 104px; }
  .mixer-section.mobile-dock-active .mobile-mixer-dock {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    padding: 10px 10px 10px 14px;
    border: 1px solid var(--ink);
    background: #fffdf8;
    box-shadow: 5px 5px 0 var(--coral);
  }
  .mobile-mixer-dock small,
  .mobile-mixer-dock strong { display: block; }
  .mobile-mixer-dock small {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: .55rem;
    text-transform: uppercase;
  }
  .mobile-mixer-dock strong { margin-top: 2px; font-size: .74rem; }
  .mobile-mixer-dock .button { flex: 0 0 auto; min-height: 48px; padding: 11px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mixer-layout.is-mobile-flow .tool-panel.is-mobile-active { animation: none; }
}
