/* =========================================================
   تمهيد — Landing page
   Plain CSS port of the original Tailwind v4 + framer-motion design.
   ========================================================= */

:root {
  --radius: 0.75rem;
  --paper: oklch(0.955 0.02 90);
  --background: oklch(0.995 0.008 100);
  --foreground: oklch(0.16 0.01 260);
  --primary: oklch(0.6 0.2 256);
  --primary-foreground: oklch(0.995 0.008 100);
  --muted-foreground: oklch(0.42 0.02 260);
  --lime: oklch(0.91 0.23 125);
  --ink: oklch(0.14 0.005 260);
  --ink-foreground: oklch(0.995 0.008 100);
  --border: oklch(0.16 0.01 260);
  --wa: #25d366;
  --shadow-hard: 6px 6px 0 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 0 var(--ink);

  --font-display: "Alexandria", system-ui, sans-serif;
  --font-sans: "Readex Pro", system-ui, sans-serif;

  --r-sm: calc(var(--radius) - 4px);
  --r-md: calc(var(--radius) - 2px);
  --r-xl: calc(var(--radius) + 4px);
  --r-2xl: calc(var(--radius) + 8px);

  /* framer-motion spring curves (stiffness/damping) as CSS easings */
  --spring-default: linear(0.0, 0.0289, 0.1063, 0.2156, 0.3426, 0.4754, 0.605, 0.7247, 0.8302, 0.9189, 0.99, 1.0439, 1.0816, 1.1052, 1.1168, 1.1188, 1.1135, 1.103, 1.0892, 1.0737, 1.0579, 1.0428, 1.0289, 1.0169, 1.007, 0.9991, 0.9933, 0.9893, 0.9869, 0.9859, 0.986, 0.9868, 0.9882, 0.9899, 0.9918, 0.9936, 0.9954, 0.997, 0.9984, 0.9995, 1.0003, 1.001, 1.0014, 1.0016, 1.0017, 1.0017, 1.0015, 1.0014, 1);
  --spring-default-dur: .55s;
  --spring-scale: linear(0.0, 0.0262, 0.0919, 0.1888, 0.296, 0.4144, 0.5257, 0.6355, 0.73, 0.8166, 0.886, 0.9452, 0.9893, 1.0224, 1.0467, 1.0615, 1.0697, 1.072, 1.0702, 1.0654, 1.0585, 1.0508, 1.0422, 1.0342, 1.0263, 1.0195, 1.0135, 1.0082, 1.0041, 1.0008, 0.9984, 0.9966, 0.9956, 0.995, 0.9948, 0.9949, 0.9953, 0.9958, 0.9963, 0.9969, 0.9975, 0.9981, 0.9986, 0.999, 0.9994, 0.9997, 0.9999, 1.0001, 1);
  --spring-scale-dur: .5s;
  --spring-modal: linear(0.0, 0.0208, 0.0764, 0.1555, 0.2452, 0.3452, 0.4462, 0.5403, 0.6317, 0.7147, 0.7854, 0.8488, 0.902, 0.9441, 0.9789, 1.0056, 1.0246, 1.0383, 1.0469, 1.0513, 1.0525, 1.0513, 1.0484, 1.0443, 1.0394, 1.0342, 1.029, 1.0239, 1.0191, 1.015, 1.0111, 1.0078, 1.0051, 1.0028, 1.001, 0.9996, 0.9987, 0.998, 0.9975, 0.9973, 0.9972, 0.9973, 0.9975, 0.9977, 0.9979, 0.9982, 0.9985, 0.9988, 1);
  --spring-modal-dur: .64s;
  --ease-fm: cubic-bezier(0.25, 0.1, 0.35, 1);      /* framer default for opacity etc. */
  --ease-reveal: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset (Tailwind preflight) ---------- */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--paper); color: var(--foreground); font-family: var(--font-sans); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: transparent; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- Utilities ---------- */
.container { margin-inline: auto; width: 100%; max-width: 72rem; padding-inline: 1.25rem; }
.font-display { font-family: var(--font-display); }
.text-primary { color: var(--primary); }
.text-lime { color: var(--lime); }
.muted { color: var(--muted-foreground); }
.black { font-weight: 900; }
.t-lg { font-size: 1.125rem; line-height: calc(1.75 / 1.125); }
.t-xl { font-size: 1.25rem; line-height: calc(1.75 / 1.25); }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; }
.op-75 { opacity: .75; } .op-80 { opacity: .8; } .op-90 { opacity: .9; }
.h2 { font-size: 2.25rem; line-height: calc(2.5 / 2.25); font-weight: 900; }
.h2.tight { line-height: 1.25; }

.shadow-hard { box-shadow: var(--shadow-hard); }
.shadow-hard-sm { box-shadow: var(--shadow-hard-sm); }
.halftone { background-image: radial-gradient(var(--primary) 1.4px, transparent 1.6px); background-size: 12px 12px; }
.marker { background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 90%, transparent 90%); padding-inline: .15em; }
.torn-top { clip-path: polygon(0 3%, 4% 0, 9% 2.5%, 15% .5%, 22% 3%, 30% 1%, 38% 3.5%, 46% .5%, 55% 2.5%, 63% 0, 71% 3%, 80% 1%, 88% 3%, 95% .5%, 100% 2%, 100% 100%, 0 100%); }
.tape { position: absolute; width: 90px; height: 26px; background: color-mix(in oklab, var(--lime) 75%, transparent); box-shadow: 0 2px 4px rgb(0 0 0 / .1); }

.grain { position: relative; min-height: 100vh; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes float-y { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes spin-slow { to { transform: rotateX(20deg) rotateY(360deg); } }
@keyframes marquee { to { transform: translateX(50%); } }
@keyframes pulse { 50% { opacity: .5; } }
.animate-float { animation: float-y 6s ease-in-out infinite; }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

/* Buttons */
.btn-primary, .btn-lime {
  display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--ink); border-radius: 999px;
  padding: .9rem 1.8rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow-hard-sm); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--ink); background: var(--ink); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--ink); }
.btn-sm { padding: .5rem 1.25rem !important; font-size: .875rem !important; line-height: calc(1.25 / .875); }
.wa-ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* 3D cube */
.cube { perspective: 600px; }
.cube-inner { position: relative; width: 100%; height: 100%; animation: spin-slow 14s linear infinite; transform-style: preserve-3d; }
.cube-face { position: absolute; inset: 0; border: 2px solid var(--ink); }
.bg-primary { background-color: var(--primary); }
.bg-lime { background-color: var(--lime); }
.bg-ink { background-color: var(--ink); }
.bg-bg { background-color: var(--background); }

/* Tilt (mouse 3D) */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Scroll reveal (framer whileInView) */
.reveal { opacity: 0; transform: translateY(40px) rotate(-1deg); transition: opacity .7s var(--ease-reveal), transform .7s var(--ease-reveal); }
.reveal.in { opacity: 1; transform: none; }

/* Intro (on load) */
@keyframes in-fade { from { opacity: 0; } }
@keyframes in-y { from { translate: 0 var(--from-y, 0); } }
.intro-badge { animation: in-fade .3s var(--ease-fm) both, in-y var(--spring-default-dur) var(--spring-default) both; --from-y: -10px; }
.intro-h1 { animation: in-fade .8s var(--ease-in-out) .2s both, in-y .8s var(--ease-in-out) .2s both; --from-y: 30px; }
.intro-p1 { animation: in-fade .3s var(--ease-fm) .5s both; }
.intro-p2 { animation: in-fade .3s var(--ease-fm) .7s both; }
.intro-cta { animation: in-fade .3s var(--ease-fm) .9s both, in-y var(--spring-default-dur) var(--spring-default) .9s both; --from-y: 20px; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: .25rem; transform-origin: right; transform: scaleX(0); background: var(--primary); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom-width: 2px; background-color: color-mix(in oklab, var(--background) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; }
.logo { height: 2.5rem; width: auto; }
.nav { display: none; gap: 1.75rem; font-size: .875rem; line-height: calc(1.25 / .875); font-weight: 500; }
.nav a { transition: color .15s var(--ease-std); }
.nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-dots { position: absolute; left: -5rem; top: 2.5rem; width: 18rem; height: 18rem; border-radius: 999px; opacity: .3; }
.hero-grid { display: grid; align-items: center; gap: 3rem; padding-top: 3.5rem; padding-bottom: 6rem; }
.hero-copy { position: relative; z-index: 10; }
.ai-badge { margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; border-radius: var(--r-2xl); border-width: 2px; background: var(--background); padding: .5rem 1rem; font-size: .875rem; line-height: calc(1.25 / .875); box-shadow: var(--shadow-hard-sm); }
.ai-badge .ai { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--ink); font-size: .75rem; line-height: 1rem; color: var(--lime); }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.15; }
.hero h1 .gpt { position: relative; display: inline-block; color: var(--primary); }
.hero h1 .gpt i { position: absolute; bottom: -.25rem; inset-inline: 0; height: .75rem; rotate: -1deg; background: var(--lime); z-index: -10; }
.hero .lead1 { margin-top: 1.5rem; font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: 600; }
.hero .lead2 { margin-top: 1rem; max-width: 28rem; }
.hero .ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-art { position: relative; }
.hero-art .tilt { position: relative; }
.hero-art img { position: relative; border-radius: var(--r-sm); border-width: 2px; box-shadow: var(--shadow-hard); }
.tape-a { top: -.75rem; right: 2.5rem; rotate: 6deg; z-index: 10; }
.tape-b { bottom: -.75rem; left: 2rem; rotate: -3deg; z-index: 10; }
.float-note { position: absolute; left: -1.5rem; bottom: 4rem; transform: translateZ(60px); border-radius: var(--r-2xl); border-width: 2px; background: var(--lime); padding: .75rem 1rem; font-family: var(--font-display); font-size: .875rem; line-height: calc(1.25 / .875); font-weight: 700; box-shadow: var(--shadow-hard-sm); }
.hero-cube { position: absolute; top: -2rem; left: -1rem; display: none; }

.marquee { overflow: hidden; border-block-width: 2px; background: var(--ink); padding-block: .75rem; color: var(--ink-foreground); }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; white-space: nowrap; font-family: var(--font-display); font-size: 1.125rem; line-height: calc(1.75 / 1.125); font-weight: 700; }

/* ---------- Problem ---------- */
.problem { padding-block: 6rem; }
.problem h2 { max-width: 48rem; }
.problem .sub { margin-top: 1.5rem; max-width: 42rem; }
.grid-3 { margin-top: 3rem; display: grid; gap: 1.5rem; }
.search-card { border-radius: var(--r-xl); border-width: 2px; padding: 2rem; box-shadow: var(--shadow-hard); }
.search-card .k { margin-bottom: 1.5rem; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; border-width: 2px; background: var(--ink); font-family: var(--font-display); font-size: 1.25rem; line-height: calc(1.75 / 1.25); font-weight: 900; color: var(--lime); }
.search-card p { font-family: var(--font-display); font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: 700; }
.question { margin-top: 3.5rem; border-radius: var(--r-2xl); border: 2px dashed var(--ink); background: var(--background); padding: 2rem; }
.question .q { font-family: var(--font-display); font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: 700; }

/* ---------- How ---------- */
.how { position: relative; background: var(--ink); padding-block: 7rem; color: var(--ink-foreground); }
.how-grid { display: grid; align-items: center; gap: 3.5rem; }
.how img { border-radius: var(--r-sm); border: 2px solid var(--lime); }
.steps-list { margin-top: 2.5rem; }
.steps-list > * + * { margin-top: 1.25rem; }
.step { display: flex; gap: 1.25rem; border-radius: var(--r-xl); border: 2px solid color-mix(in oklab, var(--ink-foreground) 20%, transparent); padding: 1.25rem; transition: all .15s var(--ease-std); }
.step:hover { border-color: var(--lime); background-color: color-mix(in oklab, var(--ink-foreground) 5%, transparent); }
.step .n { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 999px; background: var(--lime); font-family: var(--font-display); font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: 900; color: var(--ink); transition: all .15s var(--ease-std); }
.step:hover .n { rotate: 12deg; }
.step h3 { font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: 700; }
.step p { margin-top: .25rem; opacity: .75; }

/* ---------- AI ---------- */
.ai-sec { position: relative; overflow: hidden; background: var(--primary); padding-block: 7rem; color: var(--primary-foreground); }
.ai-cube { position: absolute; left: 2.5rem; top: 4rem; display: none; opacity: .9; }
.grid-2 { display: grid; align-items: center; gap: 3.5rem; }
.sticker { display: inline-block; rotate: -2deg; border-radius: var(--r-md); border-width: 2px; background: var(--lime); padding: .25rem .75rem; font-family: var(--font-display); font-size: .875rem; line-height: calc(1.25 / .875); font-weight: 700; color: var(--ink); box-shadow: var(--shadow-hard-sm); }
.ai-sec h2 { margin-top: 1.25rem; }
.ai-sec img { border-radius: var(--r-sm); border-width: 2px; box-shadow: var(--shadow-hard); }

/* ---------- Results ---------- */
.results { padding-block: 7rem; }
.stats { margin-top: 3rem; display: grid; gap: 1.25rem; }
.stat { border-radius: var(--r-xl); border-width: 2px; padding: 1.5rem; box-shadow: var(--shadow-hard); }
.stat .n { font-family: var(--font-display); font-size: 2.25rem; line-height: calc(2.5 / 2.25); font-weight: 900; color: var(--primary); }
.stat .l { margin-top: .5rem; font-weight: 500; }
.masonry { margin-top: 3.5rem; margin-inline: auto; max-width: 80rem; columns: 1; column-gap: 1.25rem; padding-inline: 1.25rem; }
.shot {
  position: relative; margin-bottom: 1.25rem; display: block; width: 100%; break-inside: avoid; border-radius: var(--r-md);
  border-width: 2px; background: var(--background); padding: .5rem; box-shadow: var(--shadow-hard); cursor: zoom-in;
  opacity: 0; translate: 0 30px; rotate: var(--rot); scale: 1;
  transition: opacity .5s var(--ease-in-out), translate .5s var(--ease-in-out), rotate .5s var(--ease-in-out), scale .5s var(--ease-in-out);
  transition-delay: var(--d, 0s);
}
.shot.in { opacity: 1; translate: 0 0; }
.shot:hover { rotate: 0deg; scale: 1.03; z-index: 10; }
.shot img { width: 100%; border-radius: var(--r-sm); }
.center { text-align: center; }

/* ---------- Steps ---------- */
.start { border-block-width: 2px; background: var(--lime); padding-block: 6rem; }
.grid-4 { margin-top: 3rem; display: grid; gap: 1.5rem; }
.grid-4 > .reveal { height: 100%; }
.start-card { position: relative; height: 100%; border-radius: var(--r-xl); border-width: 2px; background: var(--background); padding: 1.5rem; box-shadow: var(--shadow-hard); }
.start-card span { font-family: var(--font-display); font-size: 3.75rem; line-height: 1; font-weight: 900; color: color-mix(in oklab, var(--primary) 20%, transparent); }
.start-card p { margin-top: .5rem; font-family: var(--font-display); font-size: 1.25rem; line-height: calc(1.75 / 1.25); font-weight: 700; }

/* ---------- Services ---------- */
.services { padding-block: 7rem; }
.grid-2c { margin-top: 3rem; display: grid; gap: 1.5rem; }
.service { position: relative; height: 100%; overflow: hidden; border-radius: var(--r-xl); border-width: 2px; background: var(--background); padding: 2rem; box-shadow: var(--shadow-hard); transition: color .15s var(--ease-std), background-color .15s var(--ease-std); }
.service:hover { background: var(--ink); color: var(--ink-foreground); }
.service .dots { position: absolute; left: -2.5rem; top: -2.5rem; width: 10rem; height: 10rem; border-radius: 999px; opacity: .25; }
.service h3 { position: relative; font-size: 1.5rem; line-height: calc(2 / 1.5); font-weight: 900; }
.service .d { position: relative; margin-top: .75rem; font-size: 1.125rem; line-height: calc(1.75 / 1.125); }
.service .fit { position: relative; margin-top: 1.25rem; display: inline-block; border-radius: 999px; background: var(--lime); padding: .25rem .75rem; font-size: .875rem; line-height: calc(1.25 / .875); font-weight: 500; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { margin-inline: auto; max-width: 48rem; padding: 0 1.25rem 7rem; }
.faq-list { margin-top: 2.5rem; }
.faq-list > * + * { margin-top: 1rem; }
.faq-item { border-radius: var(--r-xl); border-width: 2px; background: var(--background); box-shadow: var(--shadow-hard-sm); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; text-align: right; font-family: var(--font-display); font-size: 1.125rem; line-height: calc(1.75 / 1.125); font-weight: 700; }
.faq-q .plus { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 999px; background: var(--lime); font-size: 1.25rem; line-height: calc(1.75 / 1.25); transition: rotate var(--spring-default-dur) var(--spring-default); }
.faq-item.open .plus { rotate: 45deg; }
.faq-a { height: 0; overflow: hidden; transition: height .3s var(--ease-fm); }
.faq-a p { padding: 0 1.25rem 1.25rem; color: var(--muted-foreground); }

/* ---------- Contact (WhatsApp) ---------- */
.contact { position: relative; background: var(--ink); padding-block: 7rem; color: var(--ink-foreground); }
.contact-grid { display: grid; align-items: center; gap: 3rem; }
.contact .pitch { margin-top: 1.5rem; font-size: 1.25rem; line-height: calc(1.75 / 1.25); opacity: .8; }
.contact-cube { margin-top: 3rem; display: none; }

.wa-card { position: relative; border-radius: var(--r-2xl); border: 2px solid var(--lime); background: var(--background); color: var(--foreground); box-shadow: 8px 8px 0 0 var(--lime); }
.wa-card .tape { top: -.8rem; left: 50%; translate: -50% 0; rotate: 2deg; z-index: 2; }
.wa-head { display: flex; align-items: center; gap: .85rem; border-bottom: 2px solid var(--ink); padding: 1.1rem 1.25rem; background: var(--paper); border-radius: calc(var(--r-2xl) - 2px) calc(var(--r-2xl) - 2px) 0 0; }
.wa-avatar { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: 999px; border: 2px solid var(--ink); background: var(--background); overflow: hidden; }
.wa-avatar img { width: 82%; height: auto; }
.wa-head .who { line-height: 1.3; }
.wa-head .who b { display: block; font-family: var(--font-display); font-weight: 800; }
.wa-head .who small { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted-foreground); }
.wa-head .who small::before { content: ""; width: .5rem; height: .5rem; border-radius: 999px; background: var(--wa); box-shadow: 0 0 0 0 color-mix(in oklab, var(--wa) 60%, transparent); animation: online 2s infinite; }
@keyframes online { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.wa-head .badge { margin-inline-start: auto; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--wa); color: #fff; box-shadow: var(--shadow-hard-sm); }
.wa-head .badge svg { width: 1.3rem; height: 1.3rem; }

.wa-chat { display: flex; flex-direction: column; gap: .7rem; min-height: 15rem; padding: 1.4rem 1.25rem; background-color: var(--background); background-image: radial-gradient(color-mix(in oklab, var(--primary) 18%, transparent) 1.2px, transparent 1.4px); background-size: 14px 14px; }
.bubble { max-width: 85%; border: 2px solid var(--ink); padding: .65rem .95rem; font-size: .95rem; line-height: 1.6; box-shadow: var(--shadow-hard-sm); opacity: 0; translate: 0 12px; scale: .96; }
.bubble.show { opacity: 1; translate: 0 0; scale: 1; transition: opacity .3s var(--ease-fm), translate var(--spring-default-dur) var(--spring-default), scale var(--spring-scale-dur) var(--spring-scale); }
.bubble.me { align-self: flex-start; border-radius: 1.1rem 1.1rem 1.1rem .3rem; background: var(--lime); }
.bubble.them { align-self: flex-end; border-radius: 1.1rem 1.1rem .3rem 1.1rem; background: var(--background); }
.bubble.them b { color: var(--primary); }
.bubble .time { display: block; margin-top: .2rem; font-size: .7rem; color: var(--muted-foreground); text-align: left; direction: ltr; }
.typing { align-self: flex-end; display: none; gap: .3rem; border: 2px solid var(--ink); border-radius: 1.1rem 1.1rem .3rem 1.1rem; background: var(--background); padding: .7rem .9rem; box-shadow: var(--shadow-hard-sm); }
.typing.show { display: inline-flex; }
.typing i { width: .45rem; height: .45rem; border-radius: 999px; background: var(--ink); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.wa-foot { border-top: 2px solid var(--ink); padding: 1.25rem; }
.wa-foot .label { font-family: var(--font-display); font-size: .9rem; font-weight: 700; }
.chips { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); padding: .35rem .85rem; font-size: .85rem; font-weight: 500; transition: transform .2s, box-shadow .2s, background .2s; }
.chip:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); background: var(--lime); }
.btn-wa {
  margin-top: 1.25rem; display: flex; width: 100%; align-items: center; justify-content: center; gap: .6rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--wa); color: var(--ink);
  padding: 1rem 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-hard-sm); transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-wa:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--ink); background: var(--ink); color: var(--wa); }
.btn-wa svg { width: 1.4rem; height: 1.4rem; }
.wa-number { margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .9rem; color: var(--muted-foreground); }
.wa-number bdi { font-family: var(--font-display); font-weight: 700; color: var(--foreground); letter-spacing: .03em; }
.copy-btn { border-radius: 999px; border: 2px solid var(--ink); padding: .15rem .65rem; font-size: .75rem; font-weight: 500; color: var(--foreground); transition: background .2s; }
.copy-btn:hover, .copy-btn.done { background: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { border-top-width: 2px; background: var(--background); padding-block: 2rem; }
.site-footer .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; line-height: calc(1.25 / .875); color: var(--muted-foreground); }
.site-footer img { height: 2rem; width: auto; }

.fab { position: fixed; bottom: 1rem; left: 1rem; z-index: 40; }

/* ---------- Modal (promo) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow-y: auto; background: color-mix(in oklab, var(--ink) 70%, transparent); padding: 1rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-overlay[hidden] { display: none; }
.modal-overlay.enter { animation: in-fade .3s var(--ease-fm) both; }
.modal-overlay.leave { animation: out-fade .3s var(--ease-fm) both; }
@keyframes out-fade { to { opacity: 0; } }
.modal { position: relative; width: 100%; max-width: 36rem; border-radius: var(--r-2xl); border-width: 2px; background: var(--background); padding: 1.5rem; box-shadow: var(--shadow-hard); }
.modal .tape { top: -.75rem; left: 50%; translate: -50% 0; rotate: 2deg; }
.modal-close { position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border-width: 2px; }
.modal-close:hover { background: var(--lime); }
.modal-overlay.enter .modal { animation: modal-in var(--spring-modal-dur) var(--spring-modal) both; }
.modal-overlay.leave .modal { animation: modal-out var(--spring-modal-dur) var(--spring-modal) both; }
@keyframes modal-in { from { opacity: 0; transform: perspective(1000px) translateY(60px) rotateX(25deg) scale(.9); } to { opacity: 1; transform: perspective(1000px); } }
@keyframes modal-out { to { opacity: 0; transform: perspective(1000px) translateY(40px) scale(.95); } }
.promo { text-align: center; }
.promo .cube { margin: 0 auto 1.5rem; }
.promo h3 { font-size: 1.875rem; line-height: calc(2.25 / 1.875); font-weight: 900; }
.promo p { margin-top: .75rem; }
.promo .row { margin-top: 1.5rem; display: flex; justify-content: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: zoom-out; background: color-mix(in oklab, var(--ink) 85%, transparent); padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox.enter { animation: in-fade .3s var(--ease-fm) both; }
.lightbox.leave { animation: out-fade .3s var(--ease-fm) both; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: var(--r-md); border: 2px solid var(--lime); }
.lightbox.enter img { animation: lb-scale var(--spring-scale-dur) var(--spring-scale) both; }
@keyframes lb-scale { from { scale: .8; } }

/* ---------- Breakpoints ---------- */
@media (min-width: 40rem) { .masonry { columns: 2; } }
@media (min-width: 48rem) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 5rem; }
  .hero h1 { font-size: 4.5rem; }
  .hero .lead1 { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
  .float-note { left: -3rem; }
  .hero-cube, .contact-cube { display: block; }
  .h2 { font-size: 3.75rem; line-height: 1; }
  .h2.tight { line-height: 1.25; }
  .h2.md-5xl { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .question { padding: 2.5rem; }
  .question .q { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
  .how-grid { grid-template-columns: 1fr 1.1fr; }
  .grid-2, .grid-2c, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .modal { padding: 2rem; }
  .fab { display: none; }
}
@media (min-width: 64rem) {
  .ai-cube { display: block; }
  .masonry { columns: 3; }
}
