/* ===== Accessibility baseline (shared base.css) ===== */
/* Shared accessibility + interaction baseline, imported by every root layout before the site's own CSS. */

/* Safety net: decorative motion must never cause sideways scrolling. clip (not hidden) keeps position: sticky working. */
body {
  overflow-x: clip;
}

:focus-visible {
  outline: 3px solid var(--accent, #1a63d6);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Comfortable touch targets in navigation. */
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Tactile press feedback. */
a[class],
button {
  -webkit-tap-highlight-color: transparent;
}

a[class]:active,
button:active {
  transform: scale(0.97);
}

/* Skip link: hidden until focused with the keyboard. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

#main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  a[class]:active,
  button:active {
    transform: none;
  }
}

/* ===== Company styles (was company.css) ===== */
/* Company site: light, bright, gradient accents. */
:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --tint: #f3f1fe;
  --text: #13111c;
  --muted: #55526a;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-3: #db2777;
  --border: #e7e4f5;
  --gradient: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #db2777 100%);
  --shadow-sm: 0 1px 2px rgba(19, 17, 28, 0.06), 0 4px 12px rgba(79, 70, 229, 0.06);
  --shadow-lg: 0 2px 6px rgba(19, 17, 28, 0.06), 0 24px 60px rgba(79, 70, 229, 0.16);
  --radius: 18px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted {
  color: var(--muted);
}

/* Each rotating word gets its own palette colour. (background-clip: text gradients
   escape the clip box in Chrome while the words slide, so solid colours are used.) */
.gradientText > :nth-child(5n + 1) {
  color: #4f46e5;
}

.gradientText > :nth-child(5n + 2) {
  color: #7c3aed;
}

.gradientText > :nth-child(5n + 3) {
  color: #c026d3;
}

.gradientText > :nth-child(5n + 4) {
  color: #db2777;
}

.gradientText > :nth-child(5n + 5) {
  color: #0891b2;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 255, 0.75);
  backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(231, 228, 245, 0.7);
}

.navInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logoMark {
  flex: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand:hover .logoMark {
  transform: rotate(-6deg) scale(1.06);
}

/* Header wordmark mirrors the logo lockup: bold name + spaced violet STUDIO. */
.brandText {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brandText small {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}

.navLinks a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.navLinks a:hover,
.navLinks a[aria-current='page'] {
  color: var(--text);
}

.navLinks .navCta {
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}

.navLinks .navCta:hover {
  color: #fff;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.button.primary {
  background: var(--gradient);
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.button.primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.45);
}

.button.ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.button.ghost:hover {
  transform: translateY(-2px);
  border-color: #cfc9f3;
}

.button.light {
  background: #fff;
  color: var(--accent-2);
}

.button.outlineLight {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button.light:hover,
.button.outlineLight:hover {
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 96px;
}

.heroBg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(79, 70, 229, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: blob 16s ease-in-out infinite alternate;
}

.blobA {
  width: 460px;
  height: 460px;
  top: -120px;
  right: 8%;
  background: #a5b4fc;
}

.blobB {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: 30%;
  background: #f9a8d4;
  animation-delay: -5s;
}

.blobC {
  width: 320px;
  height: 320px;
  top: 30%;
  left: -100px;
  background: #c4b5fd;
  animation-delay: -10s;
}

@keyframes blob {
  33% {
    transform: translate(40px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  100% {
    transform: translate(20px, 10px) scale(1.05);
  }
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
}

.pillDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}

.hero h1 {
  text-wrap: balance;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 800;
}

.subline {
  margin-top: 20px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 10px;
  max-width: 50ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badges svg {
  color: #16a34a;
}

/* Floating stack of browser windows */
.stack {
  position: relative;
  height: 460px;
}

.browser {
  position: absolute;
  width: 78%;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: bob 7s ease-in-out infinite;
}

.stack0 {
  top: 0;
  right: 0;
  z-index: 3;
  --r: 2deg;
}

.stack1 {
  top: 120px;
  left: 0;
  z-index: 2;
  --r: -4deg;
  animation-delay: -2.3s;
}

.stack2 {
  top: 250px;
  right: 6%;
  z-index: 1;
  width: 62%;
  --r: 3deg;
  animation-delay: -4.6s;
}

@keyframes bob {
  0%,
  100% {
    transform: rotate(var(--r)) translateY(0);
  }
  50% {
    transform: rotate(var(--r)) translateY(-14px);
  }
}

.browserBar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #f6f5fb;
  border-bottom: 1px solid var(--border);
}

.browserBar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2dff0;
}

.browserBar span:nth-child(1) {
  background: #ff6b6b;
}

.browserBar span:nth-child(2) {
  background: #ffc94d;
}

.browserBar span:nth-child(3) {
  background: #3ddc84;
}

.browserBar em {
  flex: 1;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browserBar.small {
  height: 30px;
}

.browserBody {
  position: relative;
  aspect-ratio: 16 / 10;
}

.browserBody img {
  object-fit: cover;
}

.browserCaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  line-height: 1.3;
}

.browserCaption span {
  color: var(--muted);
}

/* ---------- Ticker ---------- */
.ticker {
  padding: 18px 0;
  background: var(--text);
  color: #fff;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ticker [aria-hidden='true'] > span > span {
  color: #a78bfa;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.tinted {
  background: linear-gradient(180deg, var(--tint), var(--bg));
}

.sectionHead {
  max-width: 640px;
  margin-bottom: 44px;
}

.sectionHead.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sectionHead p:last-child:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Showcase ---------- */
.showcase {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.showcase .featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* Featured card fills 4 cells; stretch the last card so the final row has no gap. */
.showcase li:last-child:nth-child(3n + 2) {
  grid-column: span 2;
}

.showcase li:last-child:nth-child(3n + 1):not(.featured) {
  grid-column: span 3;
}

.showcaseCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.showcaseCard:hover {
  border-color: #cfc9f3;
  box-shadow: var(--shadow-lg);
}

.showcaseImage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured .showcaseImage {
  flex: 1;
  min-height: 260px;
  aspect-ratio: auto;
}

.showcaseImage img {
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.showcaseCard:hover .showcaseImage img {
  transform: scale(1.06);
}

.showcaseBody {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
}

.featured .showcaseBody h3 {
  font-size: 1.6rem;
}

.showcaseBody h3 {
  font-size: 1.2rem;
}

.showcaseBody p {
  color: var(--muted);
}

.showcaseBody .showcaseCategory {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcaseCta {
  margin-top: 8px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Our own apps ---------- */
.products {
  list-style: none;
  display: grid;
  gap: 22px;
}

.productCard {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.productCard:hover {
  border-color: #cfc9f3;
  box-shadow: var(--shadow-lg);
}

/* Each product keeps its own brand colours inside our card (Tinker: icon greens). */
.productArt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(255, 224, 102, 0.35), transparent 70%),
    linear-gradient(135deg, #e9faf0, #c9f0da);
}

.productArt[data-product='karma-vyuha'] {
  background: linear-gradient(180deg, #1b1f3b, #94506a 62%, #f2ae64);
}

.productArt img {
  filter: drop-shadow(0 16px 24px rgba(11, 138, 85, 0.3));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.productArt[data-product='karma-vyuha'] img {
  border-radius: 30px;
  filter: drop-shadow(0 16px 24px rgba(27, 31, 59, 0.45));
}

.productCard:hover .productArt img {
  transform: scale(1.06) rotate(-3deg);
}

.productBody {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 30px;
}

.productBody .showcaseCategory {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.productBody h3 {
  font-size: 1.7rem;
}

.productBody h3 span {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.productBody > p {
  color: var(--muted);
}

.productChips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.productChips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .productCard {
    grid-template-columns: 1fr;
  }

  .productArt {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .productCard:hover .productArt img {
    transform: none;
  }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c7c2ef 0 8px, transparent 8px 16px);
}

.step {
  position: relative;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stepNum {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--tint), 0 8px 20px rgba(124, 58, 237, 0.35);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
}

/* ---------- Services ---------- */
.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.serviceCard {
  position: relative;
  height: 100%;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

/* Gradient border fades in on hover. */
.serviceCard::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
}

.serviceCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.serviceCard:hover::before {
  opacity: 1;
}

.serviceIcon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent-2);
  transition: background 0.25s, color 0.25s, transform 0.4s;
}

.serviceCard:hover .serviceIcon {
  background: var(--gradient);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}

.serviceCard h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.serviceCard p {
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.ctaBand {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  border-radius: 28px;
  background: var(--gradient);
  background-size: 200% 200%;
  color: #fff;
  text-align: center;
  animation: shift 10s ease-in-out infinite alternate;
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.3);
}

.ctaBand::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.ctaBand > * {
  position: relative;
  z-index: 1;
}

.ctaBand p {
  max-width: 52ch;
  margin: 14px auto 0;
  opacity: 0.92;
  font-size: 1.1rem;
}

@keyframes shift {
  to {
    background-position: 100% 100%;
  }
}

/* ---------- Contact ---------- */
.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contactGrid h2 {
  margin-bottom: 14px;
}

.contactList {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contactList li {
  display: grid;
  gap: 2px;
}

.contactList span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contactList a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.formCard {
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.formCard form {
  max-width: none;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footerInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer .brand {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .heroGrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stack {
    height: 340px;
    max-width: 520px;
  }

  .stack1 {
    top: 90px;
  }

  .stack2 {
    top: 180px;
  }

  .showcase,
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase .featured {
    grid-row: auto;
  }

  .showcase li:last-child:nth-child(n) {
    grid-column: auto;
  }

  .showcase li.featured:nth-child(n) {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .contactGrid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 64px;
  }

  .stack {
    height: 280px;
  }

  .stack1 {
    top: 70px;
  }

  .stack2 {
    top: 140px;
  }

  .browserCaption {
    display: none;
  }

  .showcase,
  .services {
    grid-template-columns: 1fr;
  }

  .showcase li.featured:nth-child(n) {
    grid-column: auto;
  }

  .section {
    padding: 64px 0;
  }

  .navLinks {
    gap: 14px;
    font-size: 0.92rem;
  }

  /* Phones: keep only "Our work" and the CTA. */
  .navLinks a:not(.navCta):not(:first-child) {
    display: none;
  }

  .brandText small {
    display: none;
  }

  .ctaBand {
    padding: 48px 20px;
  }

  .formCard {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .browser,
  .ctaBand,
  .pillDot {
    animation: none;
  }
}

/* App legal pages (privacy, terms, account deletion). */
.appLegal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.appLegal h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.appLegal h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

.appLegal section p {
  margin-bottom: 12px;
}

.appLegal a {
  color: var(--accent);
}

.appLegalApp {
  color: var(--accent);
  font-weight: 600;
}

.appLegalDate,
.appLegalPublisher {
  color: var(--muted);
  font-size: 0.9rem;
}

.appLegalDate {
  margin-top: 4px;
}

.appLegalPublisher {
  margin-top: 40px;
}

/* ===== Motion (was motion.module.css; classes prefixed m-) ===== */
/* Shared motion primitives. Every effect is disabled under prefers-reduced-motion. */

/* ---- Reveal on scroll ---- */
.m-reveal {
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.m-reveal[data-state='pending'] {
  opacity: 0;
}

.m-reveal[data-state='pending'][data-variant='up'] {
  transform: translateY(32px);
}

.m-reveal[data-state='pending'][data-variant='left'] {
  transform: translateX(-40px);
}

.m-reveal[data-state='pending'][data-variant='right'] {
  transform: translateX(40px);
}

.m-reveal[data-state='pending'][data-variant='zoom'] {
  transform: scale(0.92);
}

.m-reveal[data-state='pending'][data-variant='pop'] {
  transform: scale(0.6);
}

.m-fill {
  height: 100%;
}

/* Side slides would push past the screen edge on phones; rise instead. */
@media (max-width: 800px) {
  .m-reveal[data-state='pending'][data-variant='left'],
  .m-reveal[data-state='pending'][data-variant='right'] {
    transform: translateY(32px);
  }
}

/* Curtain wipe for images. */
.m-reveal[data-state='pending'][data-variant='clip'] {
  opacity: 1;
  clip-path: inset(0 0 100% 0 round 12px);
}

.m-reveal[data-variant='clip'] {
  clip-path: inset(0 0 0 0 round 12px);
  transition:
    clip-path 1s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.7s;
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---- Hero entrance on page load (pure CSS, no JS) ---- */
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.m-enter {
  animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

/* Word-by-word headline: each word rises from behind a mask. */
.m-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.m-wordInner {
  display: inline-block;
  animation: wordUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes wordUp {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

/* ---- Magnetic ---- */
.m-magnetic {
  display: inline-block;
  transform: translate(var(--mag-x, 0), var(--mag-y, 0));
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Scroll cue ---- */
.m-scrollCue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: currentColor;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.m-scrollLine {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 30%, transparent);
}

.m-scrollLine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  animation: scrollLine 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes scrollLine {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@supports (animation-timeline: scroll()) {
  .m-scrollCue {
    animation: cueFade linear both;
    animation-timeline: scroll();
    animation-range: 0 160px;
  }

  @keyframes cueFade {
    to {
      opacity: 0;
    }
  }
}

/* ---- Parallax ---- */
.m-parallax {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}

/* ---- Tilt ---- */
.m-tilt {
  position: relative;
  height: 100%;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}

.m-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.25), transparent 55%);
  opacity: var(--glare-o, 0);
  transition: opacity 0.25s;
}

/* ---- Marquee ---- */
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.m-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.m-marqueeTrack {
  display: inline-flex;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
}

.m-marquee:hover .m-marqueeTrack {
  animation-play-state: paused;
}

.m-marqueeItem {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
  padding-right: 1.5em;
}

/* ---- Rotating word ---- */
.m-rotating {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}

.m-rotatingWord {
  grid-area: 1 / 1;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.6s;
  transform: translateY(100%);
  opacity: 0;
}

.m-rotatingWord[data-active='true'] {
  transform: none;
  opacity: 1;
}

.m-rotatingWord[data-leaving='true'] {
  transform: translateY(-100%);
  opacity: 0;
}

/* ---- Float (gentle idle bob) ---- */
@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

.m-float {
  animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .m-reveal,
  .m-reveal[data-state='pending'] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .m-enter,
  .m-float,
  .m-marqueeTrack,
  .m-wordInner,
  .m-scrollLine::after {
    animation: none;
  }

  .m-reveal[data-variant='clip'] {
    clip-path: none !important;
  }

  .m-magnetic {
    transform: none !important;
  }

  .m-tilt {
    transform: none !important;
  }

  .m-rotatingWord {
    transition: none;
  }
}

/* ===== Blocks: contact form etc. (was blocks.module.css; prefixed b-) ===== */
/* Blocks read the site's CSS variables (--accent, --surface, --border, --text, --muted) with fallbacks. */

.b-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  /* Darker than WhatsApp's #25d366 so white text passes WCAG AA. */
  background: #15803d;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.b-whatsappFloating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.b-whatsappFloating svg {
  width: 30px;
  height: 30px;
}

/* Attention pulse on the floating button. */
.b-whatsappFloating::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #16a34a;
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.b-whatsapp {
  transition: transform 0.2s, box-shadow 0.2s;
}

.b-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .b-whatsappFloating::before {
    animation: none;
    opacity: 0;
  }
}

.b-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.b-galleryItem {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface, #eee);
}

.b-galleryItem img {
  object-fit: cover;
  transition: transform 0.3s;
}

.b-galleryItem:hover img {
  transform: scale(1.04);
}

.b-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.b-lightboxImage {
  object-fit: contain;
  padding: 24px;
}

.b-lightboxClose {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.b-map {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #ddd);
}

.b-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.b-hours {
  display: grid;
  gap: 8px;
}

.b-hoursRow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #ddd);
}

.b-hoursRow dd {
  color: var(--muted, #666);
}

.b-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.b-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.b-form input,
.b-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text, #111);
}

.b-form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong, var(--accent, #222));
  color: #fff;
  cursor: pointer;
}

.b-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.b-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.b-formError {
  color: #b42318;
}

.b-formSuccess {
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--surface, #f3f3f3);
  border: 1px solid var(--border, #ddd);
}

/* Demo banner: floats bottom-left so it never covers a site's nav or the WhatsApp button. */
.b-demoBanner {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 112px);
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: #13111c;
  color: #fff;
  font: 500 0.9rem/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: demoIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.6s;
}

@keyframes demoIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.b-demoSpark {
  color: #c4b5fd;
}

.b-demoText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-demoCta {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4f46e5, #7c3aed 45%, #db2777);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.b-demoExit {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #c9c6d6;
  text-decoration: none;
}

.b-demoExit:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 600px) {
  .b-demoText {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-demoBanner {
    animation: none;
  }
}

/* ===== Pricing page (was pricing.module.css; prefixed p-) ===== */
/* /pricing. Uses the company palette from company.css (--text, --muted, --accent, --gradient …). */

.p-hero {
  position: relative;
  padding: 88px 0 40px;
  text-align: center;
  overflow: hidden;
}
.p-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 520px;
  background:
    radial-gradient(40% 60% at 30% 40%, rgba(124, 58, 237, 0.16), transparent 70%),
    radial-gradient(35% 55% at 75% 30%, rgba(219, 39, 119, 0.12), transparent 70%);
  z-index: -1;
}
.p-title {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.p-intro {
  max-width: 58ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.p-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.p-highlights li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.p-highlights li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--accent-2);
  font-weight: 800;
}

/* Plans */
.p-plansSection { padding: 48px 0 80px; }
.p-plans {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.p-plan {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.p-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-plan[data-popular='true'] {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-lg);
}
.p-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p-plan h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.p-for { margin-top: 4px; color: var(--muted); font-size: 0.93rem; min-height: 3em; }
.p-address {
  margin: 14px 0 18px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--accent-2);
  font: 600 0.8rem ui-monospace, Menlo, monospace;
  overflow-wrap: anywhere;
}
.p-srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prices: current amount, original struck through */
.p-priceTag { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-now { font-weight: 800; color: var(--text); }
.p-was { color: var(--muted); font-weight: 500; font-size: 0.85em; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent-3); }
.p-unit { color: var(--muted); font-weight: 500; font-size: 0.9em; }

.p-buildLabel { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.p-off { padding: 2px 8px; border-radius: 999px; background: #fdf2f8; color: #be185d; font-size: 0.75rem; font-weight: 800; }
.p-buildPrice { margin-top: 4px; }
.p-buildPrice .p-now { font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; }
.p-buildPrice .p-was { font-size: 1.15rem; }
.p-plus { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.p-renewal {
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.86rem;
  font-weight: 600;
}
.p-renewal .p-now { color: #065f46; font-size: 1.05rem; }
.p-renewal .p-was { color: #3f7a63; }
.p-features {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 0.94rem;
}
.p-features li { position: relative; padding-left: 26px; }
.p-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.p-planCta { margin-top: auto; justify-content: center; }


/* Included */
.p-included { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-includedItem {
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.p-includedItem h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 700; }
.p-includedItem p { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }
.p-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent-2);
}

/* Tables */
.p-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.p-tableTitle { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.p-tableNote { margin: 8px 0 18px; color: var(--muted); }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th, .p-table td { padding: 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.p-table th { text-align: left; font-weight: 600; }
.p-table th span { display: block; color: var(--muted); font-size: 0.86rem; font-weight: 400; }
.p-table td { text-align: right; white-space: nowrap; padding-left: 16px; }

/* Steps */
.p-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-step { height: 100%; padding: 24px; border-radius: var(--radius); background: var(--tint); }
.p-stepNum {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
}
.p-step h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 700; }
.p-step p { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }

/* Fine print */
.p-fine { padding-top: 0; }
.p-updates { margin-top: 18px; display: grid; gap: 14px; }
.p-updates div { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.p-updates dt { font-weight: 700; }
.p-updates dd { margin-top: 4px; color: var(--muted); font-size: 0.94rem; }
.p-terms { margin-top: 18px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }

@media (max-width: 960px) {
  .p-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .p-included, .p-steps { grid-template-columns: repeat(2, 1fr); }
  .p-tables { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .p-hero { padding-top: 56px; }
  .p-included, .p-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .p-plan:hover { transform: none; }
}
