@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bodoni-moda-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/albert-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #fbf7fa;
  --ink: #2b0d25;
  --berry: #c8106e;
  --berry-deep: #8e0b4f;
  --lilac: #ecdff2;
  --muted: #6e5468;
  --line: #e2d3df;
  --night-text: #fbf1f7;
  --night-muted: #d9bfd1;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--berry-deep); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1; }
.mark i { font-weight: 400; color: var(--berry); padding: 0 0.04em; }
.top-link { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.top-link:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { display: grid; gap: 32px; padding: 24px 0 64px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 11vw, 92px); line-height: 0.98; letter-spacing: -0.025em;
  margin: 0; max-width: 11ch;
}
.hero h1 span { display: block; font-style: italic; }
.lede { font-size: 19px; color: var(--muted); max-width: 34ch; margin: 20px 0 0; }

.search {
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 22px 20px 24px; box-shadow: 0 18px 50px -28px rgba(43, 13, 37, 0.45);
}
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input.look-input {
  width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent;
  font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.2;
  padding: 4px 0 8px; color: var(--ink); border-radius: 0;
}
input.look-input::placeholder { color: #b9a2b2; }
input.look-input:focus { outline: none; border-bottom-color: var(--berry); background: transparent; }
.looks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; padding: 0; list-style: none; }
.looks button {
  font: 600 14px/1 var(--sans); color: var(--ink); background: var(--lilac);
  border: 1.5px solid transparent; border-radius: 999px; padding: 9px 13px; cursor: pointer;
}
.looks button:hover { border-color: var(--ink); }
.looks button[aria-pressed="true"] { background: var(--berry); color: #fff; }

.row { display: grid; gap: 12px; }
input[type="text"]:not(.look-input), input[type="email"], input[type="url"] {
  width: 100%; font: 400 17px/1.3 var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
input[type="text"]:not(.look-input):focus, input[type="email"]:focus, input[type="url"]:focus { outline: none; border-color: var(--berry); background: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  font: 600 17px/1 var(--sans); color: #fff; background: var(--berry);
  border: 0; border-radius: 999px; padding: 17px 22px; cursor: pointer; margin-top: 6px;
}
.btn:hover { background: var(--berry-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.status { font-size: 15px; font-weight: 600; color: var(--berry-deep); min-height: 1.2em; margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 10px; }
.done p { margin: 0 0 18px; color: var(--muted); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* How it works */
.how { border-top: 1.5px solid var(--ink); padding: 56px 0 72px; }
.how h2, .pros h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 7vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 32px; max-width: 18ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--serif); font-style: italic; font-size: 48px; line-height: 0.9; color: var(--berry);
}
.steps h3 { font-size: 20px; font-weight: 600; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); max-width: 42ch; }

/* Stylists */
.pros { background: var(--ink); color: var(--night-text); padding: 64px 0 72px; border-radius: 28px 28px 0 0; }
.pros .lede-dark { color: var(--night-muted); font-size: 19px; max-width: 40ch; margin: -12px 0 28px; }
.perks { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; }
.perks li { padding-left: 26px; position: relative; max-width: 46ch; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--berry); }
.perks strong { color: #fff; }
.pros .search { background: #fff; color: var(--ink); }
.choice { border: 0; margin: 4px 0 14px; padding: 0; }
.choice legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice label { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; font-size: 16px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--berry); }

/* Footer */
.foot { background: var(--ink); color: var(--night-muted); padding: 0 0 40px; font-size: 14px; }
.foot .wrap { border-top: 1px solid rgba(251, 241, 247, 0.18); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.foot a { color: var(--night-text); }

/* Plain pages */
.page { max-width: 680px; padding: 24px 20px 80px; margin: 0 auto; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 8vw, 56px); line-height: 1.05; margin: 12px 0 8px; }
.page h2 { font-size: 20px; margin: 32px 0 8px; }
.page p, .page li { color: var(--ink); }
.page .meta { color: var(--muted); margin-bottom: 24px; }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; padding: 48px 0 96px; }
  .hero h1 { font-size: clamp(60px, 6.2vw, 84px); max-width: 12ch; }
  .search { padding: 30px 30px 32px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .pros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .done { animation: settle 0.35s ease-out; }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
