:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --tint: #f4ebe3;
  --ink: #2a1d22;
  --muted: #6b5a60;
  --line: #e7dbd1;
  --wine: #7a2e4d;
  --wine-dark: #5b1f38;
  --gold: #e0a43a;
  --green: #2f8f5b;
  --dark: #2a1d22;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(42, 29, 34, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--wine); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--wine); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: .85rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--wine); margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--gold); color: #2a1d22; padding: 14px 26px;
  border-radius: 999px; box-shadow: 0 6px 0 #b9832a;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #b9832a; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--wine); color: var(--wine); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--wine); background: rgba(122,46,77,.06); }
.btn--small { padding: 9px 18px; font-size: .9rem; box-shadow: 0 4px 0 #b9832a; }
.btn--big { font-size: 1.1rem; padding: 18px 34px; margin-bottom: 14px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 247, 242, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Fraunces", serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--wine); margin-left: 4px; }
.logo svg { width: 28px; height: 28px; fill: none; stroke-width: 6; }
.logo circle { stroke: var(--wine); }
.logo path { stroke: var(--gold); stroke-dasharray: 5 4; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--wine); }

/* Hero */
.hero { padding: 64px 0 80px; background: radial-gradient(1000px 500px at 85% 20%, #f3dfe6 0%, transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hoop { margin: 0; position: relative; }
.hoop svg { width: 100%; max-width: 420px; display: block; margin: auto; filter: drop-shadow(0 20px 30px rgba(42,29,34,.15)); }
.hoop__fabric { fill: #fffaf4; }
.hoop__ring { fill: none; stroke: #c99a6b; stroke-width: 10; }
.hoop__ring--outer { stroke: #b5875a; stroke-width: 6; }
.hoop__screw { fill: #9a9a9a; }
.stitch path, .stitch circle { fill: none; stroke-width: 3; stroke-dasharray: 6 3; stroke-linecap: round; }
.stitch--rose path { stroke: var(--wine); }
.stitch--leaf path { stroke: var(--green); }
.stitch--gold circle { stroke: var(--gold); }
.stitch path { animation: sew 5s ease-out both; stroke-dashoffset: 400; }
@keyframes sew { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.hoop__tag {
  position: absolute; bottom: 8%; right: 4%; background: var(--wine); color: #fff;
  font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; transform: rotate(-4deg);
}

/* Sections */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #f6eee8; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark p { color: #d9cbc4; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.wrap:not(.narrow) > .cards { max-width: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f3dfe6; color: var(--wine); font-weight: 700; margin-bottom: 12px; }

.stitch-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 24px; }
.stitch-types article { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stitch-types svg { width: 100%; height: 70px; background: #fffaf4; border-radius: 10px; margin-bottom: 14px; }
.stitch-types p { color: var(--muted); margin: 0; }
.demo { fill: none; stroke-linecap: round; stroke-width: 3; }
.demo--run { stroke: var(--wine); stroke-dasharray: 7 4; }
.demo--satin { stroke: var(--gold); stroke-width: 4; }
.demo--fill { stroke: var(--green); stroke-width: 3; }
.note { background: var(--surface); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 8px; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 32px; }
.format { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.format header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ext { font-family: "Fraunces", serif; font-weight: 800; font-size: 1.5rem; color: var(--wine); }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #e6f3ec; color: var(--green); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tag--ind { background: #fbefd9; color: #8a5d12; }
.brand { font-weight: 600; margin-bottom: 8px; }
.format p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.callout { margin-top: 32px; background: var(--wine); color: #fff; border-radius: var(--radius); padding: 28px 32px; }
.callout p { margin: 0; color: #f6e4ea; }

/* Picker */
.picker { display: block; margin-top: 20px; }
.picker span { display: block; font-weight: 600; margin-bottom: 8px; }
.picker select {
  width: 100%; font: inherit; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #5a4249; background: #3a2a30; color: #fff;
}
.answer { margin-top: 20px; background: #3a2a30; border: 1px solid #5a4249; border-radius: var(--radius); padding: 20px 24px; }
.answer .exts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.answer .exts span { background: var(--gold); color: #2a1d22; font-weight: 800; padding: 4px 12px; border-radius: 8px; }
.answer p { margin: 0; }

/* Offer */
.offer {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f8ece4 100%); border: 1px solid var(--line);
  border-radius: 24px; padding: 48px; box-shadow: var(--shadow);
}
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700; }
.fit-title { font-weight: 700; margin-bottom: .6em; }
.offer__cover { display: block; justify-self: center; max-width: 340px; transform: rotate(2deg); transition: transform .2s; }
.offer__cover:hover { transform: rotate(0) scale(1.02); }
.offer__cover img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 24px 50px rgba(91, 31, 56, .3); }
.final__cover { width: 180px; height: auto; border-radius: 6px; box-shadow: 0 16px 36px rgba(91, 31, 56, .25); margin-bottom: 24px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 800;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; border-left: 2px dashed #c9a9b5; }

/* Table */
.table-wrap { overflow-x: auto; margin-top: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: #fff5ee; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Pitfalls */
.pitfalls { list-style: none; padding: 0; margin: 24px 0 0; }
.pitfalls li { position: relative; padding: 16px 20px 16px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.pitfalls li::before { content: "!"; position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: #fbe3e3; color: #b23b3b; font-weight: 800; display: grid; place-items: center; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--wine); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Final + footer */
.final { background: radial-gradient(700px 300px at 50% 0%, #f3dfe6 0%, transparent 70%); }
.final .btn { margin: 12px 0 14px; }
.footer { background: var(--dark); color: #d9cbc4; padding: 40px 0 100px; font-size: .95rem; }
.footer .small { color: #a8979e; }

.float-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: none;
  text-align: center; text-decoration: none; font-weight: 700; padding: 15px; border-radius: 999px;
  background: var(--gold); color: #2a1d22; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (max-width: 900px) {
  .hero__grid, .offer { grid-template-columns: 1fr; }
  .hoop { order: -1; }
  .offer__cover { max-width: 260px; order: -1; }
  .hoop svg { max-width: 300px; }
  .cards, .stitch-types { grid-template-columns: 1fr; }
  .offer { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .nav, .topbar .btn { display: none; }
  .float-cta { display: block; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 56px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stitch path { animation: none; stroke-dashoffset: 0; }
}
.pitfalls--ok li::before { content: "✓"; background: #e6f3ec; color: var(--green); }
.steps + .note { margin-top: 8px; }
