:root {
  --petal: #FBE7EC;
  --milk: #FFF7F9;
  --berry: #B0245A;
  --berry-deep: #8A1846;
  --plum: #3A1028;
  --plum-soft: #6E4459;
  --cheek: #F4A3BA;
  --line: #EBC3CF;
  --display: "Gloock", "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.6rem, 6vw, 4.6rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--petal);
  color: var(--plum);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--berry); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  max-width: 1240px; margin: 0 auto;
}
.logo {
  font-family: var(--display); font-size: 2rem; color: var(--berry);
  text-decoration: none; letter-spacing: -0.03em; line-height: 1;
}
.logo.small { font-size: 1.5rem; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a { color: var(--plum); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--berry); }
.top nav .nav-cta {
  color: var(--milk); background: var(--plum); padding: .55rem 1rem; border-radius: 999px;
}
.top nav .nav-cta:hover { background: var(--berry); color: var(--milk); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 var(--step-0)/1 var(--body);
  background: var(--berry); color: #fff; text-decoration: none;
  border: 2px solid var(--berry); border-radius: 999px;
  padding: .95rem 1.5rem; cursor: pointer;
}
.btn:hover { background: var(--berry-deep); border-color: var(--berry-deep); }
.btn.ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn.ghost:hover { background: var(--plum); color: var(--milk); }
.btn.small { padding: .7rem 1.1rem; font-size: var(--step--1); }

/* hero */
.hero {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { font-size: var(--step-4); max-width: 11ch; }
.lede { font-size: var(--step-1); color: var(--plum-soft); max-width: 34ch; margin-top: 1.5rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* the arm: swatches on skin */
.arm {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 42% 58% 46% 54% / 30% 34% 66% 70%;
  background:
    radial-gradient(120% 70% at 30% 20%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(160deg, #F1D2C0 0%, #E6BBA4 55%, #D9A78E 100%);
  padding: 2.5rem 1.5rem 2rem;
  display: flex; flex-direction: column;
  box-shadow: inset 0 -30px 60px rgba(120, 50, 40, .12);
}
.arm-label {
  font-size: var(--step--1); color: #6B3A2C; text-align: center; font-weight: 500;
}
.strokes {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(.6rem, 1.6vw, 1rem);
  transform: rotate(-9deg);
  padding: 0 4%;
}
.stroke {
  appearance: none; border: 0; cursor: pointer; padding: 0;
  height: clamp(34px, 5.2vw, 52px);
  border-radius: 40px 60px 50px 30px / 30px 50px 40px 60px;
  background: var(--c);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,.08) 100%);
  position: relative;
  width: var(--w, 88%);
  margin-left: var(--x, 0);
  clip-path: inset(0 0 0 0 round 40px);
  transition: transform .2s ease;
}
.stroke:hover { transform: scaleY(1.08); }
.stroke[aria-pressed="true"] { outline: 3px solid var(--milk); outline-offset: 4px; }
.stroke .tag {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  font: 600 .75rem/1 var(--body); color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

@media (prefers-reduced-motion: no-preference) {
  .stroke { animation: draw .7s cubic-bezier(.6,.1,.3,1) both; animation-delay: calc(var(--i) * 110ms + 250ms); }
  @keyframes draw { from { clip-path: inset(0 100% 0 0 round 40px); } to { clip-path: inset(0 0 0 0 round 40px); } }
}

/* sections */
.compare, .how, .promise, .join { max-width: 1240px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); }
.section-head { max-width: 60ch; }
.section-head h2, .how h2, .promise h2, .join h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1rem; color: var(--plum-soft); font-size: var(--step-1); }

.compare { background: var(--milk); border-radius: 36px; }

.controls { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.5rem; align-items: flex-end; }
.control { display: flex; flex-direction: column; gap: .6rem; }
.control-name { font-weight: 600; font-size: var(--step--1); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 500 var(--step--1)/1 var(--body); color: var(--plum);
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .6rem 1rem .6rem .7rem; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
}
.chip .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.chip[aria-checked="true"] { border-color: var(--plum); background: var(--plum); color: var(--milk); }
.tones { display: flex; gap: .45rem; }
.tone {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.tone[aria-checked="true"] { box-shadow: 0 0 0 3px var(--milk), 0 0 0 5px var(--plum); }
select {
  font: 500 var(--step--1) var(--body); color: var(--plum); background: var(--milk);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .8rem; min-width: 12rem;
}

.demo-note { margin-top: 2rem; font-size: var(--step--1); color: var(--plum-soft); }

.results { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.result {
  display: grid; grid-template-columns: 88px 1.4fr 1fr 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1rem 0; border-bottom: 1.5px solid var(--line);
}
.preview {
  width: 88px; height: 56px; border-radius: 14px; background: var(--skin); position: relative; overflow: hidden;
}
.preview::after {
  content: ""; position: absolute; left: 10px; right: 8px; top: 18px; height: 20px;
  border-radius: 20px 30px 26px 14px; background: var(--c);
  background-image: linear-gradient(180deg, rgba(255,255,255,.25), rgba(0,0,0,.06));
  transform: rotate(-6deg);
}
.r-name strong { display: block; font-weight: 600; }
.r-name span { color: var(--plum-soft); font-size: var(--step--1); }
.r-meta { font-size: var(--step--1); color: var(--plum-soft); }
.r-meta b { display: block; color: var(--plum); font-weight: 600; font-size: var(--step-0); }
.add {
  font: 600 var(--step--1)/1 var(--body); border-radius: 999px; padding: .65rem 1rem; cursor: pointer;
  border: 1.5px solid var(--berry); color: var(--berry); background: transparent; white-space: nowrap;
}
.add[aria-pressed="true"] { background: var(--berry); color: #fff; }
.add:disabled { opacity: .45; cursor: not-allowed; }

/* how */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--plum); padding-top: 1.25rem; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: var(--step-3); color: var(--berry); display: block; line-height: 1; margin-bottom: .75rem; }
.steps h3 { font-size: var(--step-2); }
.steps p { margin-top: .6rem; color: var(--plum-soft); max-width: 36ch; }

/* promise */
.promise { text-align: left; }
.promise h2 { max-width: 16ch; }
.promise p { margin-top: 1.25rem; font-size: var(--step-1); max-width: 52ch; color: var(--plum-soft); }

/* join */
.join {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
  background: var(--plum); color: var(--milk); border-radius: 36px; margin-bottom: 3rem;
}
.join h2 { color: var(--milk); }
.join-copy p { margin-top: 1rem; color: #E9CBD6; font-size: var(--step-1); max-width: 40ch; }
.join-form { display: flex; flex-direction: column; gap: .45rem; }
.join-form label { font-weight: 600; font-size: var(--step--1); margin-top: .6rem; }
.optional { font-weight: 400; color: #D9AFC0; }
.join-form input {
  font: 500 var(--step-0) var(--body); padding: .9rem 1rem; border-radius: 14px;
  border: 1.5px solid transparent; background: var(--milk); color: var(--plum);
}
.join-form input:focus-visible { outline-color: var(--cheek); }
.join-form .btn { margin-top: 1.1rem; background: var(--cheek); border-color: var(--cheek); color: var(--plum); }
.join-form .btn:hover { background: #fff; border-color: #fff; }
.hp { position: absolute; left: -9999px; }
.kit-summary { margin-top: .8rem; font-size: var(--step--1); color: #F6D6E1; }
.form-msg { min-height: 1.5em; font-weight: 600; margin-top: .6rem; }
.form-msg.error { color: #FFB4C6; }

/* kit drawer */
.kit {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 5;
  background: var(--milk); border: 1.5px solid var(--plum); border-radius: 22px;
  width: min(320px, calc(100vw - 2rem)); box-shadow: 0 18px 40px rgba(58, 16, 40, .18);
}
.kit-inner { padding: 1.1rem 1.2rem 1.2rem; }
.kit-title { font-size: var(--step-1); font-family: var(--display); }
.kit ul { list-style: none; padding: 0; margin: .8rem 0 1rem; display: grid; gap: .4rem; font-size: var(--step--1); }
.kit li { display: flex; align-items: center; gap: .55rem; }
.kit li i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }

/* footer */
.foot { max-width: 1240px; margin: 0 auto; padding: 1rem var(--gutter) 3rem; display: flex; justify-content: space-between; align-items: center; color: var(--plum-soft); font-size: var(--step--1); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .arm { max-width: 440px; width: 100%; justify-self: center; aspect-ratio: auto; padding: 2.5rem 1.25rem 3rem; border-radius: 40% 60% 44% 56% / 18% 22% 30% 34%; }
  .strokes { transform: rotate(-6deg); padding: 1.5rem 2% .5rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .join { grid-template-columns: 1fr; }
  .result { grid-template-columns: 72px 1fr auto; row-gap: .4rem; }
  .preview { width: 72px; }
  .r-meta { grid-column: 2 / 3; }
  .r-meta.price { grid-column: 2 / 3; }
  .add { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .top nav a:not(.nav-cta) { display: none; }
  .compare, .join { border-radius: 24px; }
  .tones { flex-wrap: wrap; }
}
