/* Glow Skin Health — the app's own tokens, so the site and the product look like one thing.
   Values are lifted from src/theme/themes.ts (Petal) and src/theme/tokens.ts. Do not invent
   new colours here: a shade that exists only on the website is how a brand starts drifting.

   Type follows the reference template: Instrument Serif at regular weight for the one big
   statement, and Inter for everything else — including the section headings, which are large
   and LIGHT rather than bold. That lightness is most of why the reference reads as calm, so
   resist the urge to embolden a heading that looks too quiet.

   Both faces are self-hosted, latin subset, 63KB together. That is not a preference: the
   privacy page says this site loads nothing from any other domain, and a webfont link from
   someone else's CDN would quietly make it untrue. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.woff2') format('woff2');
  /* Variable: one file covers the whole range we use. */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff4f7;
  --bg-warm: #fbf9f6;
  --surface: #ffffff;
  --surface-muted: #f3f0ea;
  --border: #ece7df;
  --border-strong: #d9d3c8;

  --ink: #1d1a17;
  --ink-2: #6a645c;
  --ink-3: #726d66;

  /* accentStrong, not accent: this is the tone measured to carry text at 4.5:1. */
  --accent: #bf3868;
  --accent-deep: #9e2b53;
  --accent-soft: #fce6ee;
  --on-accent: #ffffff;
  --tint: #fff1f5;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(29, 26, 23, 0.04), 0 4px 16px rgba(191, 56, 104, 0.05);
  --shadow-md: 0 2px 8px rgba(29, 26, 23, 0.05), 0 18px 48px rgba(191, 56, 104, 0.09);

  --maxw: 1140px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 7.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.32rem; font-weight: 500; letter-spacing: -0.015em; }

/* The serif is a single gesture, not a system. It carries the hero and the price, nothing else. */
.display {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.04;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- nav ---- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(236, 231, 223, 0.9);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  box-shadow: var(--shadow-sm);
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand span { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.24rem; letter-spacing: -0.005em; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--ink-2);
  padding: 8px 13px;
  border-radius: var(--r-pill);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: var(--tint); color: var(--ink); }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav { margin-left: auto; }
}

/* ------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.86); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 42%; }
/* The photograph already gives the words a clean dusty-rose field to sit on, so this is the
   lightest possible lift rather than a veil — enough that dark ink clears contrast wherever
   the crop lands, without washing the colour out of a shade that was chosen on purpose. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(247, 233, 233, 0.58) 0%, rgba(247, 233, 233, 0.4) 40%, rgba(247, 233, 233, 0.08) 66%, rgba(247, 233, 233, 0) 100%);
}
.hero-inner { position: relative; width: 100%; padding: 168px 0 44px; }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  margin-bottom: 26px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(191, 56, 104, 0.2);
  max-width: 720px;
}
.hero-facts b { display: block; font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 400; letter-spacing: -0.025em; }
.hero-facts span { font-size: 0.86rem; color: var(--ink-2); }

/* ------------------------------------------------------------ sections ---- */

section { padding: clamp(72px, 10vw, 128px) 0; }
.section-pink { background: var(--bg); }
.section-white { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--ink-2); margin-top: 16px; font-size: 1.05rem; }
.kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.section-white .card { background: var(--bg-warm); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }

.card-media { padding: 0; overflow: hidden; }
.card-media img { width: 100%; height: 210px; object-fit: cover; }
.card-media .card-body { padding: 26px 30px 30px; }

/* Alternating feature rows, the way the reference template stacks them. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.feature h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 400; letter-spacing: -0.022em; margin-bottom: 14px; }
.feature p { color: var(--ink-2); }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* ------------------------------------------------------------- pricing ---- */

.price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 38px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.price .amount { font-family: 'Instrument Serif', Georgia, serif; font-size: 3.8rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.price .per { color: var(--ink-2); font-size: 0.98rem; margin-top: 8px; }
.price ul { list-style: none; padding: 0; margin: 28px 0; text-align: left; display: grid; gap: 11px; }
.price li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 0.98rem; }
.price li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.price .btn { width: 100%; }
.price .fine { font-size: 0.82rem; color: var(--ink-3); margin-top: 16px; }

/* ----------------------------------------------------------------- faq ---- */

details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin-top: 14px; max-width: 62ch; font-size: 0.99rem; }

/* -------------------------------------------------------------- footer ---- */

.closer { background: var(--accent); color: var(--on-accent); text-align: center; }
.closer h2 { color: var(--on-accent); max-width: 16ch; margin: 0 auto 18px; }
.closer p { color: rgba(255, 255, 255, 0.86); max-width: 46ch; margin: 0 auto 30px; }
.closer .btn-ghost { background: #fff; color: var(--accent); border-color: transparent; }

footer { background: var(--bg-warm); padding: 64px 0 40px; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
footer a:hover { color: var(--accent); }
.foot-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* --------------------------------------------------------- legal pages ---- */

.legal { padding: 148px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 12px; }
.legal .updated { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 44px; }
.legal h2 { font-size: 1.45rem; margin: 46px 0 14px; }
.legal h3 { margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 1rem; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 9px; margin: 14px 0; }
.legal strong { color: var(--ink); }
.legal .callout { background: var(--accent-soft); border-radius: var(--r-lg); padding: 22px 26px; margin: 26px 0; }
.legal .callout p { color: var(--ink); }

/* A single entrance, used sparingly — the reference site reveals, it does not bounce. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* The faces band. Four portraits, equal weight, no captions — the point is made by showing
   rather than saying, and a caption under a face turns a person into an example. */
.faces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(72px, 10vw, 128px);
}
.faces img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 760px) { .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------- glass, pink and orbs ---- */
/* From Mina's UI references: frosted panels floating over soft pink, connected pill
   controls, wide open arcs, blurred spheres for depth. The rule that keeps it from
   turning into decoration — an orb is always BEHIND content, never on top of it. */

.section-pink {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #fff4f7 0%, #ffe9f0 38%, #fdf2f5 72%, #fff8fa 100%);
}

/* Blurred spheres of colour. Pointer-events off so they can never eat a tap. */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.orb-a { width: 460px; height: 460px; top: -140px; right: -90px; background: radial-gradient(circle at 30% 30%, #ffc2d6, #ff9dbd 55%, rgba(255,157,189,0) 72%); }
.orb-b { width: 380px; height: 380px; bottom: -130px; left: -110px; background: radial-gradient(circle at 40% 40%, #ffd9e4, #f7a8c4 55%, rgba(247,168,196,0) 72%); }
.section-pink > .wrap { position: relative; z-index: 1; }

/* The frosted panel. On the pink sections the cards stop being white boxes and
   become glass, which is the whole look. */
.section-pink .card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) inset, 0 18px 44px rgba(176, 54, 106, 0.1);
}
.section-pink details { border-bottom-color: rgba(191, 56, 104, 0.14); }

/* Connected pills: one silhouette, a number either side of the action. */
.pillrow {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pillrow > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 12px 26px;
  text-align: center;
}
.pillrow b { font-size: 1.32rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.pillrow small { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.02em; }
.pillrow .pill-mid { flex: 1; font-weight: 500; font-size: 0.98rem; }
@media (max-width: 560px) { .pillrow { width: 100%; } .pillrow > * { padding: 12px 14px; } }

/* A wide open arc for a proportion. Never a bar, never a percentage of someone's skin. */
.arc { display: grid; place-items: center; position: relative; width: 210px; height: 210px; margin: 0 auto; }
.arc svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.arc .track { fill: none; stroke: rgba(191, 56, 104, 0.14); stroke-width: 6; }
.arc .value { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.arc .inner { text-align: center; }
.arc .inner b { display: block; font-family: 'Instrument Serif', Georgia, serif; font-size: 2.6rem; font-weight: 400; line-height: 1; }
.arc .inner span { font-size: 0.82rem; color: var(--ink-2); }
