/* Warm premium: after instalanding.ai's peptide-skincare-store-landing-page (MIT).
   A quiet premium store: warm cream ground, near-black ink, Wix Madefor type set tight,
   IBM Plex Mono for every number, glass pills, soft studio shadows, one amber accent.
   Suits salons, spas, beauty, boutiques, florists, wellness.

   Composition (registry `layouts`, `split`, `stage`): the page opens as a reading column
   beside a sticky stage. The stage holds the sphere of turning tiles, the float cards and
   the glass booking bar; picking a service in the price list puts it in the bar. Below the
   split the page runs full width: one picture at a time, a review set as a letter, the
   plans as fields of colour, the FAQ as prose, the email address as the contact headline,
   and a footer whose left half is a crop of the sphere's tiles. GSAP runs the entrances
   (registry `gsap`, src/lib/motion.ts). */

:root[data-theme="warm-premium"] {
  /* motion: the CSS reveals (base.css) and GSAP (motion.ts) both read these */
  --reveal-y: 32px; --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1); --nav-lift: none; --hero-in: rise; --reveal-in: focus;
  --bg: #f4f2ec;
  --bg-soft: #faf8f1;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3d3b36;
  --muted: #6f6c64;
  --line: #dedad0;
  --accent: #a85a22;
  --primary: #0a0a0a;
  --primary-ink: #ffffff;
  --glass: rgb(190 184 170 / 0.45);
  --glass-border: rgb(255 255 255 / 0.45);
  --sand: #e9dfcf;

  --font-display: "Wix Madefor Display", system-ui, sans-serif;
  --font-body: "Wix Madefor Text", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 800;
  --display-tracking: -0.025em;
  --display-leading: 1.02;

  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow:
    0 1px 0 rgb(255 255 255 / 0.9) inset,
    0 2px 6px rgb(60 45 30 / 0.05),
    0 24px 48px -24px rgb(60 45 30 / 0.22);
  --card-border: 1px solid rgb(222 218 208 / 0.6);

  --slab-bg: #0a0a0a;
  --slab-ink: #faf8f1;
  --footer-bg: #0c0b0a;
  --footer-ink: #f4f2ec;
  /* the plans' fields: ink, sand, white */
  --field-1: #0c0b0a; --field-1-ink: #f4f2ec;
  --field-2: var(--sand); --field-2-ink: var(--ink);
  --field-3: #ffffff; --field-3-ink: var(--ink);

  --ph-1: radial-gradient(120% 90% at 30% 20%, #fff6ec, #f0d9c4 60%, #e2bfa3);
  --ph-2: radial-gradient(120% 90% at 70% 30%, #f7f3ea, #e5dccb 60%, #cfc2a8);
  --ph-3: radial-gradient(120% 90% at 40% 30%, #f1f4ee, #d6dfd0 60%, #b9c7b0);
  --ph-4: radial-gradient(120% 90% at 60% 20%, #fbefee, #f0d2cf 60%, #dcb1ac);
  --ph-5: radial-gradient(120% 90% at 30% 70%, #fbf1e4, #ecc9a0 60%, #c98f5c);
  --ph-6: radial-gradient(120% 90% at 50% 30%, #eef2f6, #d5dee8 60%, #b5c3d3);

  & body { background: var(--bg); }

  /* three soft washes behind everything: white centre, peach lower-left, blue upper-right */
  & body::before {
    content: "";
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(50% 40% at 50% 45%, rgb(255 255 255 / 0.7), transparent 70%),
      radial-gradient(45% 45% at 5% 95%, rgb(240 200 170 / 0.35), transparent 70%),
      radial-gradient(40% 40% at 95% 5%, rgb(190 210 230 / 0.35), transparent 70%);
  }

  /* nav: a sticky 60px glass pill */
  & .nav { background: none; border: 0; padding-top: 12px; }
  & .nav-inner {
    height: 60px; padding: 0 10px 0 20px;
    background: rgb(250 248 241 / 0.72);
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px -18px rgb(60 45 30 / 0.35);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }
  /* a ringed planet mark */
  & .brand-mark { position: relative; width: 28px; height: 28px; font-size: 0; }
  & .brand-mark::after {
    content: ""; position: absolute; inset: 9px -6px;
    border: 1.5px solid var(--ink); border-radius: 50%;
    transform: rotate(-24deg);
  }
  & .brand-name { font-weight: 800; }
  & .nav-menu summary { background: var(--surface); border-color: var(--line); }

  & .btn { height: 48px; font-weight: 600; }
  & .btn-sm { height: 40px; }
  & .btn-ghost { border-color: rgb(10 10 10 / 0.22); }
  & .card { border-radius: var(--radius-lg); }
  /* headings carry each section on their own: no small labels above them */
  & .eyebrow { display: none; }
  & .section-head h2 { max-width: 16ch; }

  /* ---------- the stage ---------- */
  & .split > .stage {
    container-type: size;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(60% 50% at 50% 46%, #ffffff, transparent 72%),
      radial-gradient(50% 50% at 0% 100%, rgb(240 200 170 / 0.55), transparent 70%),
      radial-gradient(50% 50% at 100% 0%, rgb(190 210 230 / 0.55), transparent 70%),
      var(--bg-soft);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6), 0 30px 60px -40px rgb(60 45 30 / 0.4);
  }
  & .wp-stage { display: grid; place-items: center; padding-bottom: 72px; }
  & .wp-sphere {
    position: relative;
    width: min(460px, 74cqw, 64cqh); aspect-ratio: 1;
    border-radius: 50%; overflow: hidden;
    background: #fff;
    box-shadow:
      inset 0 0 90px rgb(120 100 80 / 0.22),
      0 50px 90px -40px rgb(80 60 40 / 0.45);
  }
  & .wp-sphere img { width: 100%; height: 100%; object-fit: cover; }
  & .wp-sphere::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    box-shadow: inset 0 0 80px rgb(90 70 50 / 0.25);
  }
  & .wp-tiles {
    position: absolute; inset: -8%;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    transform: rotate(-12deg);
  }
  & :is(.wp-tiles, .footer-art) .ph { border-radius: 18px; }
  & :is(.wp-tiles, .footer-art) .ph::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    background: rgb(255 255 255 / 0.55);
    box-shadow: 0 8px 14px -6px rgb(60 45 30 / 0.35);
    transform: translate(-50%, -50%);
  }
  & :is(.wp-tiles, .footer-art) .shape-0::after { width: 42%; aspect-ratio: 1; border-radius: 50%; }
  & :is(.wp-tiles, .footer-art) .shape-1::after { width: 26%; height: 58%; border-radius: 10px 10px 14px 14px; }
  & :is(.wp-tiles, .footer-art) .shape-2::after { width: 46%; height: 52%; border-radius: 999px 999px 8px 8px; }
  & :is(.wp-tiles, .footer-art) .shape-3::after { width: 18%; aspect-ratio: 1; border-radius: 50%; box-shadow: 22px 10px 0 -2px rgb(255 255 255 / 0.55), -18px 14px 0 -4px rgb(255 255 255 / 0.55); }

  /* the about picture, crossfaded in while the about section is read */
  & .wp-stage-about { padding: 12px; }
  & .wp-about-media { border-radius: calc(var(--radius-lg) - 8px); }

  /* the glass booking bar: cycles the services until one is picked */
  & .wp-bar {
    position: absolute; left: 50%; bottom: 20px; z-index: 3;
    display: flex; align-items: center; gap: 14px;
    width: min(560px, 100% - 32px); height: 72px; padding: 0 8px 0 20px;
    translate: -50% 0;
    /* Darker than --glass: the white text has to hold up over any client photo. */
    background: rgb(52 44 36 / 0.66);
    border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--radius-pill);
    box-shadow: 0 24px 50px -20px rgb(60 45 30 / 0.4);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    color: #fff; text-decoration: none;
  }
  & .wp-bar-icon { flex: none; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; position: relative; }
  & .wp-bar-icon::after { content: ""; position: absolute; width: 2px; height: 8px; background: #fff; right: -5px; bottom: -7px; transform: rotate(-45deg); border-radius: 2px; }
  & .wp-bar-text {
    display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
    font: 500 17px/1.3 var(--font-display); text-shadow: 0 1px 8px rgb(60 45 30 / 0.35);
  }
  & .wp-bar-label { padding-right: 12px; border-right: 1px solid rgb(255 255 255 / 0.7); }
  & .wp-rotator { display: flex; flex-direction: column; height: 1.3em; overflow: hidden; min-width: 0; }
  & .wp-rotator span { display: block; flex: none; height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & .wp-picked { display: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  & .wp-bar[data-picked] .wp-rotator { display: none; }
  & .wp-bar[data-picked] .wp-picked { display: block; }
  & .wp-bar-go {
    flex: none; display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff; color: var(--ink); font-size: 20px;
    transition: transform 0.25s ease;
  }
  & .wp-bar:hover .wp-bar-go, & .wp-bar[data-picked] .wp-bar-go { transform: rotate(-35deg); }

  & .wp-float {
    position: absolute; z-index: 2;
    width: clamp(108px, 11vw, 150px); padding: 4px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 22px 40px -18px rgb(60 45 30 / 0.45);
  }
  & .wp-float .ph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; }
  & .wp-float .ph::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, rgb(255 255 255 / 0.55), transparent 40%);
  }
  & .wp-float-label { display: block; padding: 7px 6px 4px; font-size: 11px; line-height: 1.3; color: var(--ink-2); }
  & .wp-float.f1 { left: 5%; top: 7%; rotate: -4deg; }
  & .wp-float.f2 { right: 5%; top: 12%; rotate: 3deg; }
  & .wp-float.f3 { left: 4%; top: 46%; rotate: 2deg; }
  & .wp-float.f4 { right: 4%; top: 52%; rotate: -3deg; }
  & .wp-float.f5, & .wp-float.f6 { display: none; }

  /* ---------- the reading column ---------- */
  & .wp-hero { position: relative; z-index: 1; margin-top: -28px; padding: 0 var(--gutter); }
  & .wp-card {
    display: flex; flex-direction: column;
    padding: 28px 22px 22px;
    background: var(--bg-soft); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
  & .wp-card h1 { font-size: clamp(42px, 4.6vw, 68px); max-width: 11ch; }
  & .wp-card .lead { margin: 20px 0 0; font-size: 18px; color: var(--ink-2); }
  & .wp-card .actions { margin-top: 24px; }
  & .wp-links {
    display: grid; margin-top: 28px; border-top: 1px solid var(--line);
  }
  & .wp-links a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 48px; border-bottom: 1px solid var(--line);
    font: 600 16px/1.2 var(--font-display); text-decoration: none;
  }
  & .wp-links a span { transition: translate 0.25s ease; }
  & .wp-links a:hover span { translate: 4px 0; }

  & .split-main > .section { padding-block: clamp(56px, 7vw, 96px); }
  & .split-main > .highlights { padding-block: 28px 0; }

  & .highlights-list { font-size: 13px; color: var(--ink); }
  & .highlights-list li::before { background: var(--accent); }

  /* the price list */
  & .services-list .group-title { margin: 0 0 12px; padding: 0; border: 0; font-size: 24px; }
  & .row { position: relative; padding: 18px 14px; margin-inline: -14px; border-radius: var(--radius-sm); border-bottom-color: transparent; transition: background-color 0.2s ease; }
  & .rows li + li .row::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; border-top: 1px solid var(--line); }
  & .rows { border-top: 0; }
  & .row:hover { background: rgb(255 255 255 / 0.7); }
  & .row[data-on] { background: var(--surface); box-shadow: var(--shadow); }
  & .row[data-on]::before, & .row[data-on] + * { border-color: transparent; }
  & .row-name { font-weight: 700; }
  & .row-price { color: var(--ink); }
  & .row[data-on] .row-name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--accent); }

  & .about-letter h2 { margin-bottom: 28px; }
  & .about-letter .about-copy p { font-size: 18px; }
  & .about-letter .stat { border-top-color: var(--ink); }
  & .about-letter .stat dt { color: var(--ink-2); }
  & .about-letter .about-media { border-radius: var(--radius-lg); }

  /* on wide screens the column's sections sit a little in from the stage's edge */
  @media (min-width: 1000px) {
    & .wp-hero { margin-top: 0; padding: 12px 0 0; }
    & .wp-card { min-height: calc(100svh - 96px); padding: clamp(36px, 4vw, 56px); justify-content: flex-end; }
    & .wp-float.f5 { display: block; left: 34%; bottom: 120px; rotate: 4deg; }
    & .split-main > :not(.wp-hero) .wrap { padding-inline: clamp(8px, 2vw, 32px); }
  }
  @media (max-width: 1100px) {
    & .wp-float-label { display: none; }
  }
  @media (max-width: 999px) {
    & .wp-float { width: 88px; }
    & .wp-float.f3, & .wp-float.f4 { display: none; }
  }
  @media (max-width: 420px) {
    & .wp-bar { height: 62px; padding-left: 16px; gap: 10px; bottom: 40px; }
    & .wp-bar-text { font-size: 15px; gap: 8px; }
    & .wp-bar-label { padding-right: 8px; }
    & .wp-bar-go { width: 46px; height: 46px; font-size: 18px; }
  }

  /* ---------- full width, after the split ---------- */
  & .frame-captions button { background: rgb(255 255 255 / 0.6); border-color: rgb(10 10 10 / 0.12); color: var(--ink); }
  & .frame-captions button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  & .frame-stack { border-radius: var(--radius-lg); }
  & .frame-stack .gallery-item { box-shadow: 0 40px 80px -50px rgb(60 45 30 / 0.55); }

  & .reviews-letter .stars { color: var(--accent); }
  & .letter-open { font-weight: 700; }
  & .review-author { font-weight: 700; }
  & .letters { border-top-color: var(--ink); }

  & .pricing-fields { padding-bottom: 0; }
  & .field-plan.field-1 {
    background:
      radial-gradient(60% 70% at 0% 0%, rgb(168 90 34 / 0.4), transparent 70%),
      radial-gradient(50% 60% at 100% 100%, rgb(60 110 170 / 0.3), transparent 70%),
      var(--field-1);
  }
  & .plan-name { font-weight: 800; }
  & .plan-includes li { position: relative; padding-left: 14px; }
  & .plan-includes li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.55; }

  & .faq-text dt { font-family: var(--font-display); font-weight: 700; }

  & .visit-card, & .map { border-radius: var(--radius-lg); }
  & .field input, & .field textarea { border-radius: var(--radius-sm); background: var(--bg-soft); }

  & .contact-statement { background: var(--sand); }
  & .statement-email { margin-top: 20px; color: var(--ink); }
  & .statement-email:hover { color: var(--accent); }
  & .statement-direct a { font-family: var(--font-mono); }
  & .contact-statement .form { background: var(--bg-soft); }

  /* footer: a dark card with amber and blue glows, half of it the sphere's tiles, and a
     giant clipped wordmark */
  & .footer { padding-top: 24px; }
  & .footer-card {
    border-radius: 36px;
    background:
      radial-gradient(40% 60% at 10% 0%, rgb(168 90 34 / 0.35), transparent 70%),
      radial-gradient(40% 60% at 95% 20%, rgb(60 110 170 / 0.28), transparent 70%),
      var(--footer-bg);
    padding-bottom: 0;
  }
  & .footer-art { gap: 10px; border-radius: 24px; rotate: -4deg; scale: 1.08; }
  & .footer-art .ph { opacity: 0.92; }
  & .footer-split nav ul { display: grid; gap: 4px; }
  & .footer-split nav a { font: 700 clamp(22px, 2.2vw, 30px)/1.25 var(--font-display); letter-spacing: var(--display-tracking); text-decoration: none; }
  & .footer-split nav a:hover { color: #e0a06a; }
  & .footer .btn-primary { background: #f4f2ec; color: var(--ink); margin-top: 8px; }
  & .wordmark {
    display: block;
    margin: 24px 0 -0.2em;
    font: 800 clamp(64px, 17vw, 240px)/0.9 var(--font-display);
    letter-spacing: -0.05em;
    white-space: nowrap;
    background: linear-gradient(100deg, rgb(244 242 236 / 0.08) 30%, rgb(244 242 236 / 0.55) 50%, rgb(244 242 236 / 0.08) 70%) 0 0 / 300% 100%,
      linear-gradient(180deg, rgb(244 242 236 / 0.85), rgb(244 242 236 / 0.05));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    user-select: none;
  }

  /* ---------- motion ---------- */
  @media (prefers-reduced-motion: no-preference) {
    &:not([data-motion="none"]) {
      & .wp-tiles { animation: wp-spin 200s linear infinite; }
      & .wp-rotator span { animation: wp-rot 12s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
      & .wp-float { animation: wp-bob 7s ease-in-out infinite; }
      & .wp-float.f2 { animation-delay: -1.5s; }
      & .wp-float.f3 { animation-delay: -3s; }
      & .wp-float.f4 { animation-delay: -4.5s; }
      & .wp-float.f5 { animation-delay: -2.2s; }
      & .wordmark { animation: wp-shine 9s ease-in-out infinite; }
    }
  }
}

@keyframes wp-spin { from { transform: rotate(-12deg); } to { transform: rotate(348deg); } }
@keyframes wp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes wp-shine { 0%, 100% { background-position: 100% 0, 0 0; } 50% { background-position: 0 0, 0 0; } }
@keyframes wp-rot {
  0%, 21% { transform: translateY(0); }
  25%, 46% { transform: translateY(-100%); }
  50%, 71% { transform: translateY(-200%); }
  75%, 96% { transform: translateY(-300%); }
  100% { transform: translateY(0); }
}
