/* Page-local. Nothing else on the site uses any of this, but for the two header
   rules below, which pricing.html repeats. */
[v-cloak] { visibility: hidden; }

/* The header on a phone (pricing.html carries the same header and rules): under
   640 px a smaller wordmark, so Pricing, Log in and Request access fit beside
   it; the header has no Request access (removed 8 Nov 2026; the form is on the page). */
@media (max-width: 639.98px) {
	.site-wordmark { font-size: 1.25rem; line-height: 1.75rem; }
}

/* Warm ground rather than a cool SaaS blue: sand at the horizon, a hint of
   the brand blue up top. The compound photograph used to sit behind the
   phone at 11% under a radial mask — three layers of atmosphere in the same
   400px, which read as a dirty gradient rather than as place. Cut. */
.hero {
	background-color: #FCFBF9;
	background-image:
		radial-gradient(ellipse 70% 55% at 12% -5%, rgba(99, 161, 242, 0.14), transparent 62%),
		radial-gradient(ellipse 65% 60% at 88% 8%, rgba(166, 138, 86, 0.13), transparent 60%),
		linear-gradient(to bottom, transparent 55%, rgba(166, 138, 86, 0.05));
}

/* The ask sits with the promise, not at the bottom of the page; the proof
   strip drops below both. Grid areas reorder for a phone without moving a
   single node — moving one after mount would mean fighting Vue for the DOM. */
.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas: 'promise' 'thread' 'proof';
}
@media (min-width: 1024px) {
	.hero-grid {
		/* Content-sized columns centred as a pair, NOT fractions of the
		   container. With 1.15fr/.85fr the tracks kept growing on a wide
		   display while the text stayed capped at its measure and the phone
		   stayed its own width, so the two halves drifted apart — 328px of
		   gutter at 3440px, which read as a broken layout. Now the gap is
		   the column-gap at every width above the breakpoint. */
		grid-template-columns: minmax(0, 42rem) 338px;
		grid-template-areas: 'promise thread' 'proof thread';
		grid-template-rows: auto 1fr;
		justify-content: center;
		align-content: start;
	}
}
/* On a tall display the leftover height all landed under the content, so
   the hero sat high with a dead band above the footer. Centre it instead —
   but only where there is demonstrably room, because centring a flex child
   that overflows clips its top out of reach. */
@media (min-width: 1024px) and (min-height: 1150px) {
	.hero-main { justify-content: center; }
	.hero-grid { flex-grow: 0; }
}
.area-promise { grid-area: promise; }
.area-proof   { grid-area: proof; }
.area-thread  { grid-area: thread; }
@media (min-width: 1024px) {
	.area-thread { align-self: center; }
	.area-proof  { align-self: start; }
}

/* --- Ground: the compound, held to the right of the copy ---------- */
.hero { background-image:
	radial-gradient(ellipse 60% 50% at 10% 0%, rgba(99, 161, 242, .10), transparent 60%),
	linear-gradient(to bottom, transparent 60%, rgba(166, 138, 86, .06)); }
.hero-photo {
	position: absolute; inset: 0 0 0 26%; pointer-events: none;
	background: url('/static/img/mujamma-compound-background.jpg') center 60% / cover;
	filter: saturate(.5) contrast(.92) brightness(1.06) sepia(.2);
	opacity: .36;
	/* The ramp runs across most of the element rather than the first quarter
	   of it, and the stops ease in and out. A plain two-stop linear mask has
	   a kink at each end where the slope jumps, and the eye reads that kink
	   as a vertical edge. */
	-webkit-mask-image: var(--photo-fade);
	mask-image: var(--photo-fade);
	--photo-fade: linear-gradient(to right,
		rgba(0,0,0,0) 0%,
		rgba(0,0,0,.015) 14%,
		rgba(0,0,0,.05) 26%,
		rgba(0,0,0,.12) 37%,
		rgba(0,0,0,.24) 47%,
		rgba(0,0,0,.40) 57%,
		rgba(0,0,0,.58) 67%,
		rgba(0,0,0,.76) 77%,
		rgba(0,0,0,.90) 87%,
		rgba(0,0,0,1) 100%);
}
.hero-photo::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to bottom,
		rgba(252,251,249,.60) 0%,
		rgba(252,251,249,.30) 22%,
		rgba(252,251,249,.12) 42%,
		rgba(252,251,249,.20) 62%,
		rgba(252,251,249,.48) 82%,
		rgba(252,251,249,.72) 100%);
}

/* --- Two more pieces of the same job, beside the phone ------------ */
.v-side { display: none; }
@media (min-width: 1440px) {
	/* The gap between the copy and the phone is only 64px, so these live in
	   the right-hand margin; anything hanging left lands on the text. */
	.v-side {
		display: block; position: absolute; z-index: 5; width: 196px;
		background: #fff; border: 1px solid rgba(23,41,64,.14); border-radius: .75rem;
		box-shadow: 0 20px 44px -16px rgba(23,41,64,.42); padding: .85rem .95rem;
	}
	.v-side-a { top: 5%; right: -158px; }
	.v-side-b { bottom: 22%; right: -178px; }
}
.v-side .lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(23,41,64,.55); }
.v-side .big { font-size: 15px; font-weight: 700; color: #172940; margin-top: .2rem; }
.v-side .sub { font-size: 12px; color: rgba(23,41,64,.62); margin-top: .1rem; }
.v-bar { height: 5px; border-radius: 3px; background: rgba(23,41,64,.10); margin-top: .5rem; overflow: hidden; }
.v-bar span { display: block; height: 100%; border-radius: 3px; background: #A68A56; }

/* --- The handset -------------------------------------------------- */
/* The handset's geometry lives here, not in Tailwind utility classes.
   Its shape (aspect-ratio) was already inline while its width came from the
   external stylesheet, so on a cold load the phone painted at 259x536 and
   snapped to 338x707 when tailwind.css landed. Both halves inline means the
   first paint is the final size, whenever the stylesheet turns up. */
.area-thread {
	width: 100%;
	max-width: 330px;
	margin-left: auto;
	margin-right: auto;
}
.wa-scroll { height: 366px; }
.board-card { min-height: 132px; }
@media (min-width: 1024px) { .area-thread { max-width: 338px; } }

.device { position: relative; }
@media (min-width: 1024px) {
	.device {
		border-radius: 3.1rem;
		padding: 11px;
		background: linear-gradient(150deg, #4a4d55 0%, #16181d 22%, #24272e 52%, #101216 78%, #3c3f46 100%);
		box-shadow: 0 40px 70px -30px rgba(23, 41, 64, .55), 0 2px 5px rgba(0,0,0,.35);
	}
}
/* Machined side buttons, drawn just outside the frame edge. */
/* Side buttons. These were two pseudo-elements plus box-shadow copies at
   NEGATIVE y-offsets, which put two of the three left-hand buttons above the
   top edge of the phone, floating in the page. They are real elements now,
   positioned as a percentage of the device height so they stay put if the
   handset is ever resized, and laid out like the hardware: action button,
   volume up, volume down on the left; the side button lower down on the right. */
.side-btn { display: none; }
@media (min-width: 1024px) {
	.side-btn {
		display: block; position: absolute; width: 3px; border-radius: 2px;
		background: linear-gradient(180deg, #40434a, #1c1e23);
	}
	.side-action { left: -3px; top: 14%;   height: 4.8%; }
	.side-vol-up { left: -3px; top: 21.5%; height: 8.2%; }
	.side-vol-dn { left: -3px; top: 31.5%; height: 8.2%; }
	.side-power  { right: -3px; top: 23.5%; height: 13.5%; }
}
.screen { position: relative; border-radius: 1rem; overflow: hidden; background: #EFE7DE; }
@media (min-width: 1024px) {
	/* A real handset screen is 19.5:9. Pin the ratio and let the thread take
	   whatever height is left over after the chrome, rather than hand-tuning a
	   chat height and ending up with a 1.73:1 screen that reads as a fat phone. */
	.screen {
		border-radius: 2.35rem;
		aspect-ratio: 9 / 19.5;
		display: flex;
		flex-direction: column;
	}
	.screen .wa-scroll { flex: 1 1 auto; min-height: 0; height: auto; }
}
/* Dynamic Island. */
.island {
	position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
	width: 92px; height: 26px; border-radius: 999px; background: #05070a; z-index: 20;
}

/* --- WhatsApp chrome ---------------------------------------------- */
.wa-wall {
	background-color: #EFE7DE;
	background-image: url('/static/img/mujamma-whatsapp-background.png');
	background-size: 340px;
}
.wa-scroll { overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.wa-scroll::-webkit-scrollbar { display: none; }
/* Bubble tails, the detail that separates a real thread from a div. */
.wa-in, .wa-out { position: relative; }
.wa-in::after, .wa-out::after {
	content: ''; position: absolute; top: 0; width: 9px; height: 13px;
}
.wa-in::after  { left: -8px;  background: #fff;    clip-path: polygon(100% 0, 100% 100%, 0 0); }
.wa-out::after { right: -8px; background: #E7FFDB; clip-path: polygon(0 0, 0 100%, 100% 0); }

.typing span {
	display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%;
	background: #9aa3ad; animation: blink 1.25s infinite both;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28 } 30% { opacity: 1 } }

/* The narration swaps text in place; a fixed min-height stops the form
   below it from jumping every time the line changes length. */
.step-dot { min-width: 0; min-height: 0; padding: 0; }

/* Sand tint rather than a flat grey: the gold is already the accent on the
   rule and the active step dot, so the panel reads as one element. */
.narration-box {
	background: rgba(247, 242, 233, .94);
	backdrop-filter: blur(2px);
	border-left: 2px solid rgba(166, 138, 86, .55);
	border-radius: 0 .625rem .625rem 0;
}

.narration { transition: opacity .28s ease; }
.narration.is-swapping { opacity: 0; }

.bubble { animation: rise .45s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bubble, .typing span { animation: none; }
	.wa-scroll { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
