/* RADIANT BEAUTY 彩姿美容中心 — shared stylesheet for all four pages.
   Linked rather than inlined so the pages cannot drift apart. Served
   same-origin, which is what the demo host CSP (`style-src 'self'`) allows.

   PALETTE NOTE: these values are sampled from the client's own logo
   (assets-src/logo-s150x150.jpg), not invented. The mark is a cerise
   #C21D5C — an earlier draft guessed a dusty rose and was wrong. The real
   colour also happens to clear 8:1 on the porcelain ground, so it can carry
   small text, which the guessed rose could not.

   NO WEBFONTS. The demo host CSP is `font-src 'self'` and kills them
   silently, so this is a system CJK stack throughout. */

:root {
  /* ---- surfaces ---- */
  --porcelain:   #FDF6F8;
  --shell:       #F8E9EE;
  --blush:       #F2D6DF;

  /* ---- ink ---- */
  --ink:         #2B1220;
  --ink-muted:   #6B4A57;

  /* ---- brand, sampled from the logo ---- */
  --brand:       #C21D5C;
  --brand-deep:  #8E1442;
  --brand-soft:  #E9A6BE;
  --price:       #C21D5C;

  --rule:        color-mix(in srgb, var(--brand-soft) 52%, transparent);
  --rule-strong: color-mix(in srgb, var(--brand-soft) 100%, transparent);

  /* ---- type ---- */
  --font-display: 'Songti TC', 'Source Han Serif TC', 'Noto Serif CJK TC', 'MS Mincho', Georgia, serif;
  --font-body:    'PingFang TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-latin:   Georgia, 'Times New Roman', serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.15rem);
  --step-3:  clamp(1.95rem, 1.55rem + 2vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.4vw, 4.4rem);

  --measure: 62ch;
  --gutter:  clamp(1.25rem, 4vw, 3rem);

  --dur-fast: 180ms;
  --dur:      420ms;
  --dur-slow: 900ms;
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);

  --r-sm: 2px;
  --r:    4px;
  --r-lg: 10px;

  --nav-clearance: 108px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur: 1ms; --dur-slow: 1ms; }
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: var(--step-0);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .01em;
}

/* 16px floor on form controls — anything smaller makes iOS Safari zoom the
   viewport on focus, and it never zooms back out. */
input, select, textarea, button { font-size: max(16px, var(--step-0)); }
:where(a, button, [role="button"], input, select, textarea) { min-block-size: 44px; }
.safe-b { padding-block-end: max(1rem, env(safe-area-inset-bottom)); }

:where(a, button, [role="button"], input):focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
}

/* ---- demo ribbon — house style, verbatim ---- */
.ds-demo-ribbon{position:relative;z-index:60;display:flex;align-items:center;
  gap:.6rem;justify-content:center;flex-wrap:wrap;
  background:#111827;color:#F9FAFB;font-size:.78rem;letter-spacing:.02em;
  padding:.45rem 1rem;text-align:center;line-height:1.4}
.ds-demo-chip{background:#FCBA02;color:#111827;font-weight:700;
  border-radius:6px;padding:.1rem .5rem;letter-spacing:.08em}

/* ---- layout helpers ---- */
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.section { padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.section-alt { background: var(--shell); }
.section-head { margin-block-end: clamp(1.75rem, 3.5vw, 2.75rem); }
.eyebrow { display: block; font-size: var(--step--1); letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-block-end: .6rem; font-family: var(--font-latin); }
.h2 { font-size: var(--step-3); line-height: 1.25; }
.h3 { font-size: var(--step-1); line-height: 1.35; }
.lede { font-size: var(--step-1); color: var(--ink-muted); margin-block-start: .9rem; max-width: var(--measure); }
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--step--1); }

[id] { scroll-margin-top: var(--nav-clearance); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- buttons — square-ish, never pills ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--r);
  font-size: var(--step-0); font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--brand-soft); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink); }
  .btn-secondary:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.75rem; }

/* ---- nav ---- */
.site-nav { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--porcelain) 92%, transparent);
  backdrop-filter: blur(10px); border-block-end: 1px solid var(--rule); }
.nav-pillars { display: flex; align-items: center; justify-content: center; gap: .45rem;
  flex-wrap: wrap; background: var(--brand-deep); color: #fff;
  font-size: .74rem; letter-spacing: .06em; padding: .38rem 1rem; }
.nav-pillars .dot { opacity: .5; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .55rem; }
.wordmark { display: flex; align-items: center; gap: .65rem; text-decoration: none;
  min-block-size: 44px; }
/* The client's own emblem, lifted from their profile mark and keyed to
   transparent. Raster because no vector original exists — see CONTEXT.md,
   open question 7. Only ever shown small, where 576px of source is ample. */
.brand-mark { inline-size: 38px; block-size: auto; flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-en { font-family: var(--font-latin); font-size: .8rem; letter-spacing: .2em; color: var(--brand-deep); }
.wordmark-zh { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: .06em; }
.nav-links { display: none; gap: 1.6rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: var(--step--1); letter-spacing: .04em;
  display: inline-flex; align-items: center; min-block-size: 44px; }
.nav-cta { display: none; }
@media (min-width: 940px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--brand-deep); } }

/* ---- grain overlay ---- */
.grain { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply; }

/* ---- closing CTA ---- */
.cta-band { background: var(--brand-deep); color: #fff; }
.cta-band .eyebrow { color: var(--brand-soft); }
.cta-band h2, .cta-band .band-title { color: #fff; }
.cta-band p, .cta-band .lede { color: color-mix(in srgb, #fff 82%, transparent); }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-secondary { border-color: color-mix(in srgb, #fff 45%, transparent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .cta-band .btn-primary:hover { background: var(--porcelain); }
  .cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }
}

/* ---- footer ---- */
.site-footer { background: var(--ink); color: color-mix(in srgb, #fff 78%, transparent);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; font-size: var(--step--1); }
.site-footer h3 { color: #fff; font-size: var(--step-0); margin-block-end: .85rem; letter-spacing: .05em; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; text-decoration: underline; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  margin-block-start: 2.5rem; padding-block-start: 1.25rem;
  border-block-start: 1px solid color-mix(in srgb, #fff 15%, transparent); font-size: .74rem; }

/* ---- legal ---- */
.legal { background: var(--shell); font-size: .78rem; color: var(--ink-muted); }
.legal p { max-width: 80ch; }
.legal p + p { margin-block-start: .6rem; }

/* ---- included-steps chips (pricing.html) ---- */
.incl { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); align-items: center; }
@media (min-width: 880px) { .incl { grid-template-columns: .85fr 1.15fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--brand-soft); border-radius: var(--r);
  padding: .45rem .85rem; font-size: var(--step--1); background: var(--porcelain); }

/* ---- scroll reveal — fail-safe: content stays visible unless JS opts it in ---- */
.reveal { opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ================= brand film band =================
   A 5s Higgsfield-generated silk clip, ping-ponged to ~10s so it loops
   seamlessly. The logo is NOT baked into the footage — it sits over it as a
   transparent PNG of the client's own mark. The poster carries the band until
   the video is fetched. */
.film { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.film-media { position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  object-fit: cover; z-index: 0; }
.film::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 70% at 50% 50%, rgba(43,18,32,.18) 0%, rgba(43,18,32,.56) 100%),
    linear-gradient(0deg, rgba(43,18,32,.28), rgba(43,18,32,.28));
}
.film-inner { position: relative; z-index: 2;
  min-block-size: min(62svh, 540px);
  display: grid; place-items: center; align-content: center; gap: 1.1rem;
  text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.film-mark { inline-size: clamp(74px, 9vw, 108px); block-size: auto; color: #fff; }
.film-wordmark { display: grid; gap: .3rem; color: #fff; }
.film-wordmark .en { font-family: var(--font-latin); font-size: clamp(.86rem, 1.5vw, 1.05rem);
  letter-spacing: .38em; text-indent: .38em; }
.film-wordmark .zh { font-family: var(--font-display); font-size: var(--step-2);
  letter-spacing: .16em; text-indent: .16em; font-weight: 600; }
.film-tag { color: rgba(255,255,255,.86); font-size: var(--step-0); letter-spacing: .1em; }
.film-rule { inline-size: 52px; block-size: 1px; background: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { .film-media { display: none; } }

/* ================= tap targets =================
   `:where(a, button, …) { min-block-size: 44px }` cannot bite on an element
   whose computed display is `inline` — min-block-size does not apply to
   inline boxes. Fine for a link inside a sentence (WCAG 2.5.8 exempts inline
   targets in a block of text) but NOT for real controls, which a Playwright
   pass measured at 17–42px. Each is promoted so the floor applies. */
.jump-row a,
.prow .book,
.hero-note a { display: inline-flex; align-items: center; min-block-size: 44px; }
.check input { inline-size: 22px; block-size: 22px; }
.check { min-block-size: 44px; align-items: center; }
.faq summary, .qa summary { min-block-size: 48px; }
