/* Aesthetics AI brand system: shared by index.html and setup.html. */
:root {
  --bg: #f7f2ea;
  --bg-alt: #efe6d8;
  --card: #fdfaf5;
  --ink: #1b1511;
  --ink-soft: #3a2f27;
  --muted: #6e6156;
  --line: rgba(27, 21, 17, 0.12);
  --gold: #b98a5e;
  --gold-light: #dcb98f;
  --rose: #b9715c;
  --deep: #1d1511;
  --deep-2: #2a1e17;
  --on-deep: #f3e9dc;
  --on-deep-muted: #b9a998;
  --good: #4f7a5a;
  --bad: #a4493f;
  --gradient: linear-gradient(135deg, #e3c29b 0%, #b98a5e 55%, #a4694f 100%);
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(60, 38, 22, 0.35);
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* so `hidden` wins over any display: grid/flex */
a { color: inherit; }
::selection { background: rgba(185, 138, 94, 0.3); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.7rem; }
em, .italic { font-style: italic; color: var(--rose); }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep h2, .section--deep h3 { color: #fff7ec; }
.section--deep em { color: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.section--deep .section-head p { color: var(--on-deep-muted); }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 0.95rem var(--body); letter-spacing: 0.01em;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn--primary { background: var(--ink); color: #fff7ec; box-shadow: 0 14px 30px -14px rgba(27,21,17,.6); }
.btn--primary:hover { background: #000; }
.btn--gold { background: var(--gradient); color: #1b1511; box-shadow: 0 14px 34px -12px rgba(164,105,79,.65); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,.6); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn--live-end { background: var(--bad) !important; color: #fff !important; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(247, 242, 234, 0.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 242, 234, 0.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--gold-light);
  display: grid; place-items: center; font: 600 1.45rem/1 var(--display); font-style: italic;
}
.brand__name { font: 600 1.5rem var(--display); letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 34px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav__links a:hover::after { width: 100%; }
.nav .btn { padding: 12px 22px; font-size: 0.88rem; }

/* Forms */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.input {
  width: 100%; font: 500 1rem var(--body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #a89b8e; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(185,138,94,.18); }
textarea.input { resize: vertical; min-height: 96px; }
.notice { padding: 14px 18px; border-radius: 14px; font-size: 0.95rem; font-weight: 600; margin-top: 18px; }
.notice[hidden] { display: none; }
.notice--ok { background: #e6efe5; color: #2f5a3a; border: 1px solid #c4d9c3; }
.notice--err { background: #f6e4e0; color: #8a3326; border: 1px solid #e6c1b9; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }

.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { color: inherit; text-decoration: none; }
.footer__links a:hover { color: var(--rose); text-decoration: underline; }
.legal-note { font-size: 0.8rem; color: var(--muted); }
.legal-note a { color: var(--rose); }

@media (max-width: 860px) { .nav__links { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
