/* Soft clay: after instalanding.ai's clay-saas-platform-page (MIT). Soft 3D clay on a
   cool gray page: white panels with paired light and dark shadows, a glossy dark pill
   lit from inside, one electric accent from a single hue token, Inter at weight 500
   with tight tracking, JetBrains Mono for every number and label.
   Suits clinics, physios, dentists, pharmacies, retail, opticians. */

:root[data-theme="soft-clay"] {
  /* motion below the hero (see base.css) */
  --reveal-y: 40px; --reveal-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275); --nav-lift: none;
  --accent-hue: 214;
  --bg: #e6e9ee;
  --bg-soft: #f0f2f5;
  --surface: #ffffff;
  --ink: #0e1116;
  --ink-2: #353b47;
  --muted: #5d6576;
  --line: #d7dce4;
  --accent: hsl(var(--accent-hue) 88% 46%);
  --accent-soft: hsl(var(--accent-hue) 90% 60% / 0.18);
  --primary: #10141b;
  --primary-ink: #ffffff;
  --glass: rgb(255 255 255 / 0.7);
  --glass-border: rgb(255 255 255 / 0.9);
  --clay-dark: #0a0d12;

  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.045em;
  --display-leading: 1.05;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow-light:
    14px 14px 30px rgb(150 163 184 / 0.4),
    -10px -10px 24px rgb(255 255 255 / 0.85),
    inset 1px 1px 0 rgb(255 255 255 / 0.9),
    inset -1px -1px 0 rgb(14 17 22 / 0.04);
  --shadow-inset: inset 4px 4px 10px rgb(150 163 184 / 0.35), inset -4px -4px 10px rgb(255 255 255 / 0.9);
  --shadow: var(--shadow-light);
  --card-border: 0;

  --slab-bg: var(--clay-dark);
  --slab-ink: #eef1f6;
  --footer-bg: var(--bg);
  --footer-ink: var(--ink);

  --ph-1: radial-gradient(70% 60% at 30% 25%, #ffffff, #dfe4eb 60%, #c7cfdb);
  --ph-2: radial-gradient(70% 60% at 70% 30%, hsl(var(--accent-hue) 90% 92%), hsl(var(--accent-hue) 70% 78%) 60%, hsl(var(--accent-hue) 60% 62%));
  --ph-3: radial-gradient(70% 60% at 40% 70%, #f3f5f8, #d6dbe3 60%, #aeb7c4);
  --ph-4: radial-gradient(70% 60% at 60% 30%, #3a414d, #1a1f27 60%, #0a0d12);
  --ph-5: radial-gradient(70% 60% at 30% 40%, #fbfcfd, #e8ebf0 60%, #cfd5de);
  --ph-6: radial-gradient(70% 60% at 50% 60%, hsl(calc(var(--accent-hue) + 30) 80% 92%), hsl(calc(var(--accent-hue) + 30) 50% 80%) 60%, hsl(calc(var(--accent-hue) + 30) 40% 66%));

  & body { background: var(--bg); }
  & h1, & h2 { font-weight: 500; }
  & h2 { font-size: clamp(32px, 4vw, 56px); }

  /* section labels: a 6px accent dot and 13px semibold text */
  & .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink);
  }
  & .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

  /* the glossy dark pill, lit from inside */
  & .btn { font-weight: 500; letter-spacing: -0.01em; transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease; }
  & .btn-primary {
    position: relative; isolation: isolate;
    background: #10141b; border: 1px solid #ffffff22;
    box-shadow:
      inset 0 1px 1px rgb(255 255 255 / 0.22), inset 0 2px 2px rgb(255 255 255 / 0.12),
      inset 0 4px 4px rgb(255 255 255 / 0.06), inset 0 8px 8px rgb(255 255 255 / 0.04),
      0 -1px 1px rgb(0 0 0 / 0.1), 0 2px 2px rgb(0 0 0 / 0.1), 0 4px 4px rgb(0 0 0 / 0.1),
      0 8px 8px rgb(0 0 0 / 0.1), 0 16px 16px rgb(0 0 0 / 0.08);
  }
  & .btn-primary:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--accent-hue) 100% 70% / 0.6);
    box-shadow:
      inset 0 1px 1px rgb(255 255 255 / 0.3), inset 0 4px 4px rgb(255 255 255 / 0.08),
      0 0 0 4px hsl(var(--accent-hue) 100% 60% / 0.18), 0 10px 24px hsl(var(--accent-hue) 100% 50% / 0.3);
  }
  & .btn-ghost { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-light); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  & .pill { background: var(--bg-soft); border: 0; box-shadow: var(--shadow-inset); color: var(--ink-2); }
  & .card { border-radius: var(--radius-lg); }

  /* nav: a floating clay bar */
  & .nav { background: none; border: 0; padding-top: 12px; }
  & .nav-inner {
    height: 62px; padding: 0 10px 0 18px; border-radius: var(--radius-pill);
    background: rgb(240 242 245 / 0.82); box-shadow: var(--shadow-light);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  & .brand-mark { border-radius: 10px; background: linear-gradient(145deg, hsl(var(--accent-hue) 95% 60%), hsl(var(--accent-hue) 90% 42%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4); }
  & .brand-name { font-weight: 600; letter-spacing: -0.03em; }
  & .nav-menu summary { border: 0; background: var(--surface); box-shadow: var(--shadow-light); }

  /* ---------- signature hero ---------- */
  & .sc-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(72px, 8vw, 120px); }
  & .sc-bgword {
    position: absolute; left: 50%; top: 2%; z-index: 0; margin: 0;
    transform: translateX(-50%);
    font: 600 26vw/0.8 var(--font-display); letter-spacing: -0.06em; white-space: nowrap;
    background: linear-gradient(180deg, #ffffff, rgb(255 255 255 / 0));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    pointer-events: none; user-select: none;
  }
  & .sc-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
  & .sc-copy h1 { font-size: clamp(40px, 5.6vw, 80px); max-width: 14ch; }
  & .sc-copy .lead { margin-top: 22px; color: var(--muted); }

  & .sc-console {
    padding: 18px; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #1a1f27, var(--clay-dark) 60%);
    color: #e8ecf2;
    box-shadow:
      20px 24px 50px rgb(14 17 22 / 0.35), -10px -10px 24px rgb(255 255 255 / 0.7),
      inset 1px 1px 0 rgb(255 255 255 / 0.12), inset 0 -2px 8px rgb(0 0 0 / 0.5);
  }
  & .sc-bar { display: flex; align-items: center; gap: 14px; padding: 2px 4px 14px; font-size: 12px; color: #8e98aa; }
  & .sc-dots { display: flex; gap: 6px; }
  & .sc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c323d; }
  & .sc-dots i:first-child { background: hsl(var(--accent-hue) 95% 60%); }
  & .sc-hours { width: 100%; border-collapse: collapse; padding: 0; border-radius: 18px; overflow: hidden; background: rgb(255 255 255 / 0.04); }
  & .sc-hours caption { text-align: left; padding: 0 4px 8px; font-size: 12px; color: #8e98aa; }
  & .sc-hours th, & .sc-hours td { padding: 10px 14px; border-top: 1px solid rgb(255 255 255 / 0.06); font-size: 14px; }
  & .sc-hours th { text-align: left; font-weight: 500; }
  & .sc-hours td { text-align: right; color: hsl(var(--accent-hue) 95% 75%); }
  & .sc-hours .closed td { color: #8e98aa; }
  & .sc-tiles { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); }
  & .sc-tiles li { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: rgb(255 255 255 / 0.05); box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.06); }
  & .sc-el {
    position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: #f0f2f5; color: var(--ink); font: 600 15px/1 var(--font-display);
    box-shadow: inset -2px -2px 4px rgb(0 0 0 / 0.12), inset 2px 2px 3px #fff;
  }
  & .sc-tiles li:first-child .sc-el { background: hsl(var(--accent-hue) 92% 48%); color: #fff; box-shadow: inset -2px -2px 4px rgb(0 0 0 / 0.2), inset 2px 2px 3px rgb(255 255 255 / 0.35); }
  & .sc-el small { position: absolute; right: 4px; top: 3px; font-size: 8px; opacity: 0.6; }
  & .sc-tile-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
  & .sc-tile-price { font-size: 13px; color: #8e98aa; }
  & .sc-call { display: inline-flex; gap: 8px; align-items: center; margin: 14px 4px 2px; font-size: 13px; color: #c9d1de; text-decoration: none; }
  & .sc-call span { color: #3bd16f; font-size: 10px; }
  @media (min-width: 1000px) { & .sc-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

  /* ---------- sections: alternating clay sheets, each pulled up over the last ---------- */
  & main > .section {
    position: relative; margin-top: -30px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -14px 30px -24px rgb(14 17 22 / 0.35);
  }
  & main > .section:nth-of-type(odd) { background: var(--surface); }
  & main > .section:nth-of-type(even) { background: var(--bg); }
  & main > .section:nth-of-type(odd) .card:not(.plan) { background: var(--bg-soft); }

  & .highlights { position: relative; z-index: 1; border: 0; padding-block: 22px; }
  & .marquee-track { gap: 14px; padding-right: 14px; font-size: 13px; text-transform: none; letter-spacing: 0; }
  & .marquee-track li { gap: 14px; padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: 6px 6px 14px rgb(150 163 184 / 0.35), -5px -5px 12px #fff; }
  & .marquee-track li::after { display: none; }
  & .marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 14px; }

  & .group-title { border-top: 0; padding-top: 0; font-weight: 500; letter-spacing: -0.03em; }
  & .service { padding: 26px; }
  & .service-name { font-weight: 500; letter-spacing: -0.02em; }
  & .service-foot { border-top-color: var(--line); }
  & .index {
    display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 10px;
    background: var(--surface); box-shadow: 3px 3px 8px rgb(150 163 184 / 0.4), -3px -3px 6px #fff; color: var(--ink-2);
  }
  & .price { font-weight: 500; }

  & .about-media, & .gallery-item, & .hero-media { border-radius: var(--radius-lg); box-shadow: var(--shadow-light); }
  & .ph-label { background: rgb(255 255 255 / 0.85); color: var(--ink); backdrop-filter: blur(6px); }
  & .stat { border: 0; padding: 16px; border-radius: 20px; background: var(--bg-soft); box-shadow: var(--shadow-inset); }
  & .stat dd { font-size: 30px; }

  & .stars { color: var(--accent); }
  & .reviews-grid > li:nth-child(3n + 2) { background: var(--clay-dark); color: #eef1f6; }
  & .reviews-grid > li:nth-child(3n + 2) .review-source { color: #8e98aa; }
  @media (min-width: 1000px) { & .reviews-grid > li:nth-child(3n + 2) { translate: 0 40px; } & .reviews { padding-bottom: calc(var(--section-pad) + 40px); } }

  & .pricing-slab {
    border-radius: 40px;
    background: radial-gradient(60% 80% at 80% 0%, hsl(var(--accent-hue) 100% 50% / 0.28), transparent 70%), var(--clay-dark);
  }
  & .plan { border-radius: 28px; background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.1); }
  & .plan.featured { background: var(--surface); color: var(--ink); }
  & .plan:not(.featured) .btn-primary { background: #f0f2f5; color: var(--ink); }
  & .plan-features li::before { color: hsl(var(--accent-hue) 95% 70%); }
  & .plan.featured .plan-features li::before { color: var(--accent); }

  & .faq-item, & .faq-item:first-child { border: 0; margin-bottom: 12px; padding: 0 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-light); }
  & main > .section:nth-of-type(odd) .faq-item { background: var(--bg-soft); }
  & .faq-item summary::after { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-inset); font-size: 18px; transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s; }
  & .faq-item[open] summary::after { background: var(--clay-dark); color: #fff; box-shadow: none; }

  & .chips .pill { padding: 10px 18px; }
  & .map { border-radius: var(--radius-lg); box-shadow: var(--shadow-inset); padding: 8px; background: var(--bg-soft); }
  & .map iframe { border-radius: 26px; }
  & .field input, & .field textarea { border: 0; background: var(--bg); box-shadow: var(--shadow-inset); border-radius: 16px; }

  /* footer: a gray panel overlapping the section above, with a giant gradient wordmark */
  & .footer { position: relative; margin-top: -30px; padding: 0; background: var(--bg); border-radius: 40px 40px 0 0; box-shadow: 0 -14px 30px -24px rgb(14 17 22 / 0.35); }
  & .footer-card { background: none; box-shadow: none; padding-inline: 0; padding-bottom: 0; }
  & .wordmark {
    display: block; margin: 32px 0 -0.14em;
    font: 600 clamp(60px, 17vw, 240px)/0.85 var(--font-display); letter-spacing: -0.07em; white-space: nowrap;
    background: linear-gradient(180deg, #0e1116, rgb(14 17 22 / 0.05));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    user-select: none;
  }

  & .callbar { background: rgb(240 242 245 / 0.9); border-top: 0; box-shadow: 0 -10px 30px rgb(150 163 184 / 0.3); }

  /* ---------- motion: soft floats ---------- */
  @media (prefers-reduced-motion: no-preference) {
    &:not([data-motion="none"]) {
      & .sc-console { animation: sc-rise 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
      & .sc-bgword { animation: sc-word 1.2s ease-out both; }
      & .card { transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
      & .service:hover { transform: translateY(-4px); }
    }
    &[data-motion="showpiece"] .sc-console { animation: sc-rise 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) both, sc-float 7s 1s ease-in-out infinite; }
  }
}

@keyframes sc-rise { from { opacity: 0; transform: translateY(60px) scale(0.97); } }
@keyframes sc-word { from { opacity: 0; scale: 0.92; } }
@keyframes sc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
