/* Likeness launch site. Palette, type and logo from docs/site/BRIEF.md. */

:root {
  /* Light */
  --paper: #faf6ef; /* page ground */
  --surface: #fffdf9; /* cards, browser frame */
  --sunken: #f2ece2; /* quiet bands, footer */
  --ink: #2a211c; /* text */
  --ink-muted: #6b5d53; /* secondary text */
  --line: #e4dacb; /* hairlines */
  --accent: #b0502a; /* terracotta: primary button, highlights */
  --accent-strong: #8f3f1f; /* links, hover */
  --accent-soft: #f4e2d6; /* tinted fills, chat bubble from the artist */
  --on-accent: #ffffff;
  --wall: #2f3833; /* the peak section: a deep green-grey gallery wall */
  --wall-ink: #f2ede4; /* text on the wall */
  --wall-muted: #b7beb6; /* secondary text on the wall */
  --rail: #c9a46a; /* brass picture rail and hanging wire */
  --focus: #b0502a;
  --tick: #5f7a52;

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --framed: 0 1px 0 rgb(0 0 0 / 0.06), 0 18px 32px -12px rgb(42 33 28 / 0.35);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1714;
    --surface: #28201c;
    --sunken: #171210;
    --ink: #f2eae1;
    --ink-muted: #b9a99b;
    --line: #3e332d;
    --accent: #e48c64;
    --accent-strong: #f0a582;
    --accent-soft: #3b2a22;
    --on-accent: #1d1714;
    --wall: #222925;
    --wall-ink: #f2ede4;
    --wall-muted: #a9b1a8;
    --rail: #b8935a;
    --focus: #f0a582;
    --tick: #7fb069;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem / 1.6 var(--text);
  overflow-x: clip;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--accent-strong);
}
button {
  font: inherit;
  color: inherit;
}
code,
pre {
  font-family: var(--mono);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.defs {
  position: absolute;
}
.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.band {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero > *,
.inbox > *,
.yours > *,
.close-inner > * {
  min-width: 0;
}
.band-sunken {
  background: var(--sunken);
}
.small {
  font-size: 0.875rem;
}
.muted {
  color: var(--ink-muted);
}
.right {
  text-align: right;
}
.measure {
  max-width: 40rem;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 999px;
}
.skip:focus {
  top: 0.5rem;
}
.sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent-soft);
}
.btn-small {
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9375rem;
}
.text-link,
.rail-link,
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0 0.25rem;
  color: var(--accent-strong);
  text-decoration: underline;
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-top {
  border-bottom-color: transparent;
}
.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 44px;
  padding-bottom: 8px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.mark-head {
  fill: var(--accent);
}
.mark-eye {
  fill: var(--paper);
}
.wordmark {
  font: 600 1.375rem / 1 var(--display);
  letter-spacing: -0.01em;
  position: relative;
  top: -1px;
}
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 719.98px) {
  .nav {
    display: none;
  }
}

/* Hanging canvases, shared by the hero and the close */
.rail {
  height: 3px;
  background: var(--rail);
  border-radius: 2px;
}
.hangers {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(var(--hu) * 1.6);
}
.hanger {
  position: relative;
  transform-origin: 50% 0;
  padding-top: var(--drop);
}
.drop {
  position: relative;
  margin-top: calc(-1 * var(--drop));
  padding-top: var(--drop);
  transform-origin: 50% 0;
}
.wire,
.hanger > .wire {
  display: block;
  position: relative;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.6px), var(--rail) 50%, transparent calc(50% + 0.6px))
      left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 0.6px), var(--rail) 50%, transparent calc(50% + 0.6px))
      right / 50% 100% no-repeat;
}
.wire::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--rail);
}
.hanger .wire {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: var(--drop);
}
.art {
  position: relative;
  width: calc(var(--w) * var(--hu));
  height: calc(var(--h) * var(--hu));
  border: 6px solid var(--surface);
  background: linear-gradient(145deg, var(--a), var(--b));
  box-shadow: var(--framed);
}
.art-name {
  position: absolute;
  left: 0.5rem;
  bottom: 0.35rem;
  color: #fff;
  font: italic 400 1rem / 1.2 var(--display);
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.45);
}
.art-card {
  width: calc(var(--w) * var(--hu));
  margin: 0.6rem 0 0;
  padding: 0.2rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

/* 1. Hero */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 5fr 6fr;
    min-height: min(88vh, 54rem);
  }
}
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);
  line-height: 1.05;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.lede {
  font-size: 1.1875rem;
  color: var(--ink-muted);
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}
.hero-art {
  --hu: clamp(7px, 2.2vw, 13px);
  position: relative;
}
.chat {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  max-width: min(17rem, 88%);
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.bubble {
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 8px 20px -10px rgb(42 33 28 / 0.35);
}
.bubble-in {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  justify-self: start;
}
.bubble-out {
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 3px;
  justify-self: end;
  margin-left: 2.5rem;
}

/* 2. The inbox */
.inbox {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .inbox {
    grid-template-columns: 4fr 5fr;
    align-items: center;
  }
}
.inbox-copy p {
  max-width: 40rem;
}
.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  --dy: 8px;
  --stag: 140ms;
}
.msg {
  max-width: 82%;
  padding: 0.55rem 0.85rem 0.4rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.msg p {
  margin: 0;
}
.msg-in {
  justify-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}
.msg-out {
  justify-self: end;
  background: var(--accent-soft);
  border-bottom-right-radius: 3px;
}
.time {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}
.msg-out .time {
  text-align: right;
}
.blurry {
  display: block;
  width: 7rem;
  height: 5rem;
  margin-top: 0.4rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #9a9a94, #33322f);
  filter: blur(3px);
}
.thread-note {
  text-align: right;
  margin: 1rem 0 0;
}

/* 3. Price it on the wall */
.wall-band {
  --focus: var(--wall-ink);
  background: var(--wall);
  color: var(--wall-ink);
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow-x: clip;
}
.wall-copy {
  max-width: 40rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.wall-copy p {
  color: var(--wall-muted);
}
.wall {
  --in: min(1.15vw, 14px);
  --gap: clamp(12px, 3vw, 40px);
}
@media (max-width: 719.98px) {
  .wall {
    --in: calc((100vw - 2 * clamp(1rem, 4vw, 2.5rem) - 36px) / 53);
    --gap: 12px;
  }
}
.sizes {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: auto auto;
  justify-content: center;
  column-gap: var(--gap);
}
.size {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  width: calc(var(--w) * var(--in));
  cursor: pointer;
}
.hang {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
}
.hang .wire {
  flex: 1;
  min-height: calc(var(--in) * 3);
  width: 64%;
}
.frame {
  position: relative;
  display: block;
  width: calc(var(--w) * var(--in));
  height: calc(var(--h) * var(--in));
  padding: max(3px, calc(var(--in) * 0.45));
  background: var(--surface);
  box-shadow: var(--framed);
  transition: transform 260ms var(--ease);
}
.frame::before,
.fill {
  position: absolute;
  inset: max(3px, calc(var(--in) * 0.45));
}
.frame::before {
  content: "";
  background: #e9e1d3;
  box-shadow: inset 0 0 0 2px rgb(42 33 28 / 0.12);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 30px 40px -14px rgb(0 0 0 / 0.55);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.fill {
  background: linear-gradient(145deg, #8a5a3c, #c2703d);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  opacity: 0;
  transition:
    transform 260ms var(--ease),
    opacity 260ms var(--ease);
}
.size:has(:checked) .frame {
  transform: translateY(-6px);
  box-shadow:
    var(--framed),
    0 0 0 2px var(--rail);
}
.size:has(:checked) .frame::after,
.size:has(:checked) .fill {
  opacity: 1;
  transform: none;
}
.size:has(:focus-visible) .frame {
  outline: 3px solid var(--wall-ink);
  outline-offset: 4px;
}
.heads {
  --n: 0;
  --k: max(min(var(--n), var(--max)), 2.6);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  display: flex;
  justify-content: center;
  gap: 3%;
}
.head {
  flex: none;
  width: calc(var(--w) * var(--in) * 0.8 / var(--k));
  aspect-ratio: 14 / 20;
  fill: var(--wall-ink);
  opacity: 0.8;
  animation: pop 200ms var(--ease) both;
}
.head.extra {
  fill: none;
  stroke: var(--wall-ink);
  stroke-width: 0.8;
  stroke-dasharray: 1.4 1;
}
.head.out {
  animation: pop-out 200ms var(--ease) forwards;
}
.size-text {
  display: block;
  padding-top: 0.9rem;
  text-align: center;
  line-height: 1.35;
}
.size-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}
.size-meta {
  display: block;
  color: var(--wall-muted);
  font-size: 0.8125rem;
}
.size-detail,
.caption-phone {
  display: none;
}
@media (max-width: 719.98px) {
  .size-name {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .size-unit,
  .size-meta,
  .caption-wide {
    display: none;
  }
  .size-detail,
  .caption-phone {
    display: block;
  }
  .sofa svg {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
}
.size-detail {
  font-weight: 600;
}
.sofa {
  width: calc(84 * var(--in));
  margin: 2.5rem 0 0 calc(50% - 42 * var(--in));
  text-align: center;
}
.sofa-link {
  margin-top: 0.5rem;
}
.sofa svg {
  display: block;
  width: 100%;
  height: calc(34 * var(--in));
  overflow: visible;
  fill: none;
  stroke: var(--wall-muted);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.sofa path {
  vector-effect: non-scaling-stroke;
}
.sofa figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--wall-muted);
}
.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}
@media (min-width: 960px) {
  .quote {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    text-align: left;
  }
}
.stepper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stepper[hidden] {
  display: none;
}
.step {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--wall-ink);
  background: transparent;
  color: var(--wall-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.step[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}
.count {
  min-width: 6.5rem;
  text-align: center;
  font: 600 2rem / 1 var(--display);
}
.answer p {
  margin-bottom: 0.4rem;
}
.total {
  font: 600 clamp(3rem, 2rem + 3vw, 4rem) / 1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.total.over {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.15;
}
.breakdown,
.answer .small {
  color: var(--wall-muted);
}
.rail-link {
  color: var(--rail);
}

/* 4. How it works */
.steps {
  position: relative;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: var(--line);
  transform-origin: 50% 0;
  transition: transform 700ms var(--ease);
}
.step-item {
  position: relative;
  padding-left: 60px;
  max-width: 40rem;
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease);
}
.step-item p {
  color: var(--ink-muted);
}
.num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--accent);
  font: 600 1.25rem / 1 var(--display);
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  .steps::before {
    top: 20px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform-origin: 0 50%;
  }
  .step-item {
    padding: 64px 0 0;
  }
}

/* 5. Features */
.cards {
  --dy: 12px;
  --stag: 80ms;
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(12, 1fr);
  }
  .card {
    grid-column: span 6;
  }
  .card-big {
    grid-column: 1 / span 7;
    grid-row: span 2;
  }
  .card:nth-child(2),
  .card:nth-child(3) {
    grid-column: 8 / span 5;
  }
}
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.card > p {
  color: var(--ink-muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.chip {
  min-height: 44px;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease);
}
.chip:hover {
  background: var(--accent-soft);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  .chip:active,
  .btn:active,
  .step:active {
    transform: scale(0.97);
  }
}
.tiles {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tile {
  font-size: 0.75rem;
  color: var(--ink-muted);
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease);
}
.tile.fade {
  opacity: 0;
  transform: scale(0.96);
}
.tile-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.3rem;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  background: linear-gradient(145deg, var(--a), var(--b));
}
.tile-art .art-name {
  left: 0.4rem;
  bottom: 0.2rem;
  font-size: 0.9375rem;
}
.empty {
  margin-top: 1rem;
  color: var(--ink-muted);
}
.tip {
  background: var(--sunken);
  border-radius: 12px;
  padding: 1rem 1.15rem 0.4rem;
  margin-bottom: 1rem;
  transition: opacity 200ms var(--ease);
}
.tip.swap {
  opacity: 0;
}
.tip h4 {
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
}
.tip p {
  font-size: 0.9375rem;
  margin-bottom: 0.6rem;
}
.tip-do > span:first-child {
  color: var(--tick);
  font-weight: 700;
}
.tip-avoid > span:first-child {
  color: var(--accent);
  font-weight: 700;
}
.btn[hidden] {
  display: none;
}
.summary {
  position: relative;
  overflow-x: auto;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--sunken);
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
@media (max-width: 719.98px) {
  .summary {
    white-space: pre;
  }
}
.pull {
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font: italic 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem) / 1.25 var(--display);
  letter-spacing: -0.01em;
}
.swatch {
  position: relative;
  height: 8.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.swatch-half {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #faf6ef;
}
.swatch-dark {
  background: #1d1714;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.mini-tile {
  width: 4rem;
  height: 5rem;
  border: 4px solid #fffdf9;
  background: linear-gradient(145deg, #8a5a3c, #c2703d);
  box-shadow: var(--framed);
}
.swatch-dark .mini-tile {
  border-color: #28201c;
}
.mini-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #b0502a;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}
.swatch-dark .mini-btn {
  background: #e48c64;
  color: #1d1714;
}

/* 6. See it live */
.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.tabs {
  position: relative;
  display: flex;
  gap: 0.25rem;
  max-width: 72rem;
  margin: 2rem auto 1rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs[hidden] {
  display: none;
}
[role="tab"] {
  flex: none;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-weight: 500;
  cursor: pointer;
}
[role="tab"][aria-selected="true"] {
  color: var(--ink);
}
[role="tab"]:focus-visible {
  outline-offset: -3px;
}
.tab-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: translateX(var(--x, 0)) scaleX(var(--s, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .tab-bar {
    transition: transform 250ms var(--ease);
  }
}
.browser {
  max-width: 72rem;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(42 33 28 / 0.35);
}
.tabs:not([hidden]) + .browser {
  margin-top: 0;
}
.browser-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-bottom: 1px solid var(--line);
}
.dots {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.address {
  padding: 0.15rem 1rem;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}
.browser iframe {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: var(--paper);
}
@media (max-width: 719.98px) {
  .browser iframe {
    height: 70vh;
  }
  .tld {
    display: none;
  }
}

/* 7. Make it yours */
.yours {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .yours {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}
.yours-copy p {
  max-width: 40rem;
}
.file-list {
  --dx: 16px;
  --dy: 0px;
  --stag: 70ms;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.file {
  min-width: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.file code {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.file p {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}
.excerpt {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  background: var(--sunken);
  border-radius: 8px;
  font-size: 0.8125rem;
}

/* 8. Close */
.close {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.close-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.close-copy p {
  max-width: 40rem;
  color: var(--ink-muted);
}
.close-title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.05;
}
.close-art {
  --hu: 7px;
  display: none;
}
@media (min-width: 960px) {
  .close-inner {
    grid-template-columns: 1fr auto;
  }
  .close-art {
    display: block;
    width: 22rem;
  }
}

/* 9. Footer */
.site-footer {
  background: var(--sunken);
  color: var(--ink-muted);
  font-size: 0.875rem;
  padding-block: 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-inner p {
  margin: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-mark {
  width: 20px;
  height: 20px;
  color: var(--ink);
  flex: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
}
.footer-nav a:hover {
  color: var(--ink);
}
.footer-note {
  flex-basis: 100%;
}

/* Motion. Everything below is off under reduced motion. */
@keyframes hang {
  from {
    opacity: 0;
    transform: translateY(-14px) rotate(1.5deg);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes pop-out {
  to {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes bubble {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .drop {
    animation: hang 600ms var(--ease) both;
    animation-delay: calc(var(--i) * 90ms);
  }
  .bubble {
    animation: bubble 240ms var(--ease) both;
    animation-delay: 900ms;
  }
  .bubble-in {
    transform-origin: 0 100%;
  }
  .bubble-out {
    transform-origin: 100% 100%;
    animation-delay: 1400ms;
  }
  .wall.in .hang {
    animation: hang 600ms var(--ease) both;
  }
  .wall.in .size:nth-child(3) .hang {
    animation-delay: 90ms;
  }
  .wall.in .size:nth-child(4) .hang {
    animation-delay: 180ms;
  }
  .wall.in .size:nth-child(5) .hang {
    animation-delay: 270ms;
  }
  .js .reveal-list > * {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 0));
    transition:
      opacity 450ms var(--ease),
      transform 450ms var(--ease);
    transition-delay: calc(var(--k, 0) * var(--stag, 80ms));
  }
  .js .reveal-list.in > * {
    opacity: 1;
    transform: none;
  }
  .js .steps:not(.in)::before {
    transform: scale(0);
  }
  .js .steps:not(.in) .step-item {
    opacity: 0;
    transform: translateY(10px);
  }
  .js .step-item:nth-child(1) {
    transition-delay: 100ms;
  }
  .js .step-item:nth-child(2) {
    transition-delay: 330ms;
  }
  .js .step-item:nth-child(3) {
    transition-delay: 560ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  .head,
  .head.out {
    animation: none;
  }
  .frame,
  .frame::after,
  .fill,
  .tile,
  .tip,
  .nav a::after {
    transition: none;
  }
}
