@charset "UTF-8";
/* LipsAI — warm "vanity mirror" look: cream, blush and berry, serif headlines. */
:root {
  --bg: #fbf5f0;
  --surface: #ffffff;
  --blush: #f6e6e1;
  --blush-2: #efd7d2;
  --ink: #2a1720;
  --ink-2: #5a4450;
  --muted: #8a7480;
  --line: #ead9d3;
  --accent: #a3214f;
  --accent-dark: #7f1239;
  --accent-soft: #f7dde5;
  --ring: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
  --shadow: 0 18px 50px -24px rgba(91, 26, 52, .35);
  --shadow-sm: 0 6px 20px -12px rgba(91, 26, 52, .35);
  --radius: 26px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.notice { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; margin-top: 16px; }

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(163, 33, 79, .8); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--light { background: rgba(255, 255, 255, .85); }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.link-btn {
  background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── header ──────────────────────────────────────── */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.logo em { color: var(--accent); font-style: italic; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600;
}
.site-nav a:hover { background: var(--blush); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; top: 64px; right: 20px; left: 20px; flex-direction: column;
    background: var(--surface); border-radius: 18px; padding: 8px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
}

/* ── hero ────────────────────────────────────────── */
.hero { text-align: center; padding-top: 10px; padding-bottom: 22px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.hero h1 em { font-style: italic; color: var(--accent); display: block; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 680px; margin: 0 auto; }

/* ── studio ──────────────────────────────────────── */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 40px; }
@media (min-width: 920px) {
  .studio { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; }
  .studio__stage { position: sticky; top: 16px; }
}

.stage {
  --lip: #c1121f;
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; max-height: min(74vh, 720px); width: 100%;
  background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--blush) 55%, var(--blush-2) 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.stage.is-drop { box-shadow: var(--shadow), inset 0 0 0 3px var(--accent); }
.stage__start {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px;
}
.stage__start h2 { margin-bottom: .25em; }
.stage__start > p { color: var(--ink-2); max-width: 320px; }
.stage__lips { width: min(56%, 230px); margin-bottom: 22px; filter: drop-shadow(0 14px 18px rgba(91, 26, 52, .25)); }
.stage__lips path { fill: var(--lip); transition: fill .25s ease; }
.stage__lips .lips-upper { filter: brightness(.92); }
.stage__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 16px; }
.stage__private { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-2); margin: 0; }
.stage__private svg { width: 14px; height: 14px; fill: var(--accent); }

.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: cover; transform: scaleX(-1); background: #1d1418; }
.stage__guide {
  position: absolute; left: 50%; top: 47%; width: 58%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%);
  border: 2px dashed rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 0 999px rgba(29, 20, 24, .28);
  pointer-events: none;
}
.stage__tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(42, 23, 32, .78); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.stage__busy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(251, 245, 240, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); text-align: center; padding: 24px;
}
.stage__busy p { margin: 0; font-weight: 600; }
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: min(260px, 80%); height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s ease; }
.stage__msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px; text-align: center;
}
.stage__msg p { max-width: 360px; font-weight: 600; color: var(--ink); }

.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.stage-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
#camera-bar { justify-content: center; }
#btn-compare[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* segmented controls */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--blush); gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); min-height: 36px;
}
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow-sm); }
.seg--wide { display: flex; }
.seg--wide button { flex: 1; }

/* panel */
.studio__panel {
  background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.current { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.current__swatch {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%), var(--c);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .18), 0 6px 14px -6px rgba(0, 0, 0, .35);
  transition: background-color .2s ease;
}
.current__info strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.current__codes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.code {
  border: 0; background: var(--blush); border-radius: 8px; padding: 2px 8px; font: 600 .8rem/1.6 var(--mono); color: var(--ink-2);
}
.code:hover { background: var(--accent-soft); color: var(--accent-dark); }
#code-hex { color: var(--ink); }
.current__actions { display: flex; gap: 8px; align-items: center; }
.heart {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.heart svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }
.heart[aria-pressed="true"] svg { fill: var(--accent); }
.heart:hover { border-color: var(--accent); }

.tabs { display: flex; gap: 6px; margin: 18px 0 14px; overflow-x: auto; }
.tabs [role="tab"] {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs .count:not(:empty) { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .75rem; }

.tabpanel { min-height: 120px; }
#panel-shades { max-height: 420px; overflow-y: auto; padding: 4px 4px 0; margin: -4px; }
.shade-group + .shade-group { margin-top: 14px; }
.shade-group h3 { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 44%), var(--c);
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, .18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 -5px 10px rgba(0, 0, 0, .18), var(--ring); }
.saved-item { position: relative; display: inline-block; }
.saved-item__remove {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; font-size: 14px; line-height: 20px; padding: 0; opacity: .8;
}
.saved-item__remove:hover { opacity: 1; background: var(--accent); }
#saved-list:not(:empty) + p { margin-top: 14px; }

/* mixer */
#panel-mixer { --h: 356; --s: 83%; --l: 41%; }
.mixer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.mixer__picker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.mixer__picker input {
  width: 46px; height: 46px; padding: 0; border: 3px solid var(--surface); border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--line); background: none; cursor: pointer;
}
.mixer__picker input::-webkit-color-swatch-wrapper { padding: 0; }
.mixer__picker input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.mixer__picker input::-moz-color-swatch { border: 0; border-radius: 50%; }
.mixer__hex { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 700; font-size: .85rem; color: var(--muted); }
.mixer__hex input {
  width: 116px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line);
  font: 600 1rem var(--mono); text-transform: uppercase; color: var(--ink); background: var(--surface);
}
.mixer__hex input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.mixer__hex input.is-invalid { border-color: #c43c3c; }
.slider { display: grid; grid-template-columns: 88px minmax(0, 1fr) 46px; align-items: center; gap: 10px; margin-bottom: 10px; }
.slider label { font-weight: 600; font-size: .9rem; }
.slider output { font: 600 .82rem var(--mono); color: var(--ink-2); text-align: right; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 99px; margin: 8px 0;
  background: var(--blush-2); outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
input[type="range"]::-moz-range-track { background: transparent; }
#s-h { background: linear-gradient(to right, hsl(0 80% 50%), hsl(60 80% 50%), hsl(120 80% 45%), hsl(180 80% 45%), hsl(240 80% 55%), hsl(300 80% 50%), hsl(360 80% 50%)); }
#s-s { background: linear-gradient(to right, hsl(var(--h) 0% var(--l)), hsl(var(--h) 100% var(--l))); }
#s-l { background: linear-gradient(to right, #000, hsl(var(--h) var(--s) 50%), #fff); }
#intensity { background: linear-gradient(to right, var(--accent-soft), var(--accent)); }

.field { margin-top: 18px; }
.field__label { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.field__label output { font: 600 .85rem var(--mono); color: var(--ink-2); }
.studio__panel .link-btn { margin-top: 14px; }

/* ── content sections ───────────────────────────── */
.section { padding: 56px 0; }
.section--soft { background: var(--blush); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-sm); counter-increment: step; }
.step::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font: 700 1.1rem var(--serif);
}
.step p { color: var(--ink-2); margin: 0; }
.two-col { display: grid; gap: 36px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.tips { padding-left: 0; list-style: none; margin: 0; }
.tips li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-2); }
.tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 8px; border-radius: 6px 6px 8px 8px; background: var(--accent); }
.tips strong { color: var(--ink); }
.faq details { background: var(--surface); border-radius: 18px; padding: 4px 20px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--ink-2); }

/* ── ideas page ─────────────────────────────────── */
.ideas-group { padding: 34px 0 10px; }
.ideas-group > p { color: var(--ink-2); max-width: 720px; }
.shade-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shade-card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.shade-card__chip {
  height: 64px; border-radius: 14px; margin-bottom: 6px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%), var(--c);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .15);
}
.shade-card strong { font-family: var(--serif); font-size: 1.1rem; }
.shade-card .meta { font: 600 .8rem var(--mono); color: var(--muted); }
.shade-card a { margin-top: auto; font-weight: 700; text-decoration: none; }
.shade-card a::after { content: " \2192"; }
.tone-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 760px) { .tone-grid { grid-template-columns: repeat(2, 1fr); } }
.tone { background: var(--surface); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.tone p { color: var(--ink-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px;
  background: var(--blush); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600;
}
.chips a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.chips a:hover { background: var(--accent-soft); }

/* ── legal / prose pages ────────────────────────── */
.prose { max-width: 760px; padding-top: 10px; padding-bottom: 56px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* ── footer ─────────────────────────────────────── */
.site-footer { background: var(--ink); color: #e9dce1; padding: 44px 0 18px; margin-top: 10px; }
.site-footer a { color: #f3dde6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr 2fr; } }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col strong { font-family: var(--serif); font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.footer-col p { color: #cdb9c1; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #b9a3ad; }
.footer-bottom p { margin: 0; }

/* ── toast ──────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .studio__panel { padding: 16px; }
  .current { grid-template-columns: auto minmax(0, 1fr); }
  .current__actions { grid-column: 1 / -1; }
  .current__actions .btn { flex: 1; }
  .slider { grid-template-columns: 76px minmax(0, 1fr) 40px; }
  .mixer__hex { margin-left: 0; }
  .stage-bar { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 1.5s !important; scroll-behavior: auto !important; }
}
