/* Parlourly website — same visual family as the app (logo slate + coral), tuned for selling:
   Archivo WIDE for headlines (shop-sign weight), Archivo narrow for prices, Figtree for reading.
   Signature: the working mini-app in the hero. Everything else stays calm. */

:root {
  --slate: #374554;
  --slate-deep: #1F2833;
  --slate-ink: #17202A;
  --coral: #ED3E4B;
  --coral-hover: #D62F3C;
  --coral-soft: rgba(237, 62, 75, 0.10);
  --mist: #F2F4F7;
  --paper: #FFFFFF;
  --line: rgba(31, 40, 51, 0.10);
  --text: #1C2531;
  --text-2: #4A5869;
  --muted: #6B7889;
  --wa: #1FA855;
  --wa-hover: #188F48;
  --display: "Archivo", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Malayalam", "Noto Sans Devanagari", sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(31, 40, 51, 0.06), 0 12px 32px -16px rgba(31, 40, 51, 0.22);
  --shadow-lg: 0 2px 6px rgba(31, 40, 51, 0.08), 0 40px 80px -32px rgba(31, 40, 51, 0.45);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--slate); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ─── Type ─── */
.display {
  font-family: var(--display); font-stretch: 118%; font-weight: 820; letter-spacing: -0.025em; line-height: 1.02; color: var(--slate-ink);
}
h1.display { font-size: clamp(42px, 6.4vw, 82px); }
.h2 { font-size: clamp(30px, 4vw, 52px); max-width: 18ch; }
.accent { color: var(--coral); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.6); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34em; margin-top: 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font: 700 16.5px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease; cursor: pointer; border: 0;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17.5px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -12px rgba(237, 62, 75, 0.8); }
.btn-primary:hover { background: var(--coral-hover); }
.btn-ghost { background: var(--paper); color: var(--slate-ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--slate), var(--shadow); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7a2.8 2.8 0 0 0 1.9-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(242, 244, 247, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-logo { flex-shrink: 0; } /* never squeeze the logo — the WhatsApp button shrinks instead */
.nav-logo img { height: 52px; width: auto; }
.nav nav { margin-left: auto; }
.nav-logo + .nav-cta { margin-left: auto; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15.5px; color: var(--text-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--slate-ink); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
/* Language menu: a <details> pill that opens a small list (works without JS; main.js closes it on outside tap) */
.lang-menu { position: relative; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--slate); padding: 8px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; user-select: none;
}
.lang-switch::-webkit-details-marker { display: none; }
.lang-switch::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] .lang-switch::after { transform: translateY(1px) rotate(-135deg); }
.lang-switch:hover, .lang-menu[open] .lang-switch { box-shadow: inset 0 0 0 1.5px var(--slate); }
.lang-switch:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
}
.lang-list a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 700; font-size: 16px; color: var(--slate-ink); text-decoration: none; }
.lang-list a:hover { background: var(--mist); }
.lang-list a[aria-current="page"] { color: var(--coral-hover); background: var(--coral-soft); }
[lang="ml"].lang-switch, .lang-list a[lang="ml"], .footer-inner a[lang="ml"] { font-family: "Noto Sans Malayalam", var(--body); }
[lang="hi"].lang-switch, .lang-list a[lang="hi"], .footer-inner a[lang="hi"] { font-family: "Noto Sans Devanagari", var(--body); }
.footer-inner a { color: inherit; }

/* ─── Long-form pages (privacy policy) ─── */
.doc { max-width: 760px; padding: clamp(40px, 7vw, 88px) 0 40px; }
.doc .h2 { max-width: 20ch; }
.doc-meta { margin-top: 18px; color: var(--muted); font-size: 15px; }
.doc-summary { margin: 36px 0 12px; padding: 26px 28px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.doc-summary h2 { font: 800 19px var(--body); color: var(--slate-ink); }
.doc section { margin-top: 40px; }
.doc section h2 { font: 820 22px/1.2 var(--display); font-stretch: 108%; letter-spacing: -0.01em; color: var(--slate-ink); margin-bottom: 12px; }
.doc section p { color: var(--text-2); margin-top: 12px; }
.doc-list { list-style: disc; padding-left: 22px; margin-top: 12px; color: var(--text-2); display: grid; gap: 6px; }

/* ─── Hero ─── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* ─── The working mini-app (signature) ─── */
.demo { position: relative; justify-self: center; }
.demo::before {
  /* the logo's hair strands, large and soft, behind the phone */
  content: ""; position: absolute; inset: -12% -38% -6% -28%; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M420 20C330 60 260 120 200 190C140 260 70 320 -20 370L20 380C110 330 180 270 240 200C300 130 360 80 420 55Z' fill='%23374554' fill-opacity='0.05'/%3E%3Cpath d='M420 110C350 150 300 200 255 255C215 305 170 345 110 390L150 395C210 352 255 312 295 262C335 212 380 170 420 145Z' fill='%23ED3E4B' fill-opacity='0.08'/%3E%3C/svg%3E") center / contain no-repeat;
}
.phone {
  width: min(330px, 82vw); aspect-ratio: 330 / 680; border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2A3542, #10161D); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--mist);
  display: flex; flex-direction: column; padding: 14px 14px 12px; font-family: var(--body);
}
.app-status { display: flex; justify-content: space-between; font: 700 12px var(--body); color: var(--slate-ink); padding: 2px 10px 8px; }
.app-status .dots { width: 44px; height: 10px; border-radius: 6px; background: var(--slate-ink); opacity: 0.85; }
.app-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; }
.app-salon { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--slate-ink); }
.app-day { font-size: 12px; font-weight: 700; color: var(--muted); }
.app-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 14px 16px; color: #fff;
  background: linear-gradient(155deg, #3E4D5E, var(--slate) 45%, var(--slate-deep));
  display: flex; flex-direction: column; box-shadow: 0 14px 30px -18px rgba(31, 40, 51, 0.8);
}
.app-hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(205deg, #000 40%, transparent 90%); mask-image: linear-gradient(205deg, #000 40%, transparent 90%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130' preserveAspectRatio='none'%3E%3Cpath d='M206 -6C170 8 136 30 108 58C80 86 44 112 -4 134L18 134C60 116 94 94 122 66C150 38 180 18 206 10Z' fill='%23FFFFFF' fill-opacity='0.10'/%3E%3Cpath d='M206 30C178 44 154 62 132 84C112 104 92 120 66 136L80 136C106 122 128 106 148 86C168 66 188 52 206 44Z' fill='%23ED3E4B' fill-opacity='0.85'/%3E%3C/svg%3E") right top / 100% 100% no-repeat;
}
.app-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.app-income { font: 800 38px/1.1 var(--display); font-stretch: 86%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin: 2px 0 4px; }
.app-income.bump { animation: bump 420ms ease-out; }
@keyframes bump { 30% { transform: scale(1.06); color: #FFD1D4; } }
.app-sub { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.app-sub b { color: #fff; font-family: var(--display); font-stretch: 86%; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
/* Demo tile colours (kept in CSS, not style="" attributes, so the CSP needs no 'unsafe-inline') */
.tile[data-tile="Haircut"] { --t: #ED3E4B; }
.tile[data-tile="Beard"] { --t: #2563EB; }
.tile[data-tile="Facial"] { --t: #DB2777; }
.tile[data-tile="Colour"] { --t: #7C3AED; }
.tile[data-tile="Threading"] { --t: #D97706; }
.tile[data-tile="Bridal"] { --t: #059669; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  border: 0; border-radius: 16px; background: var(--paper); padding: 9px 11px 8px; cursor: pointer; font-family: var(--body);
  box-shadow: 0 1px 2px rgba(31, 40, 51, 0.06), 0 6px 16px -10px rgba(31, 40, 51, 0.3); transition: transform 90ms ease;
}
.tile:active { transform: scale(0.96); }
.ti {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--t);
  background: color-mix(in srgb, var(--t) 14%, transparent);
}
.tn { font-weight: 700; font-size: 13.5px; color: var(--slate-ink); line-height: 1.2; }
.tp { font: 600 13px var(--display); font-stretch: 86%; color: var(--text-2); }
.tb {
  position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--t); color: #fff; font: 800 12px/22px var(--body); text-align: center; transform: scale(0); transition: transform 160ms ease;
}
.tile.has .tb { transform: scale(1); }
.app-bar { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.app-pay { display: flex; background: #E3E8EE; border-radius: 999px; padding: 3px; }
.app-pay button { flex: 1; border: 0; background: none; border-radius: 999px; min-height: 34px; font: 700 12.5px var(--body); color: var(--text-2); cursor: pointer; }
.app-pay button.on { background: var(--slate); color: #fff; }
.app-save {
  border: 0; border-radius: 14px; min-height: 46px; background: var(--coral); color: #fff; font: 800 15px var(--body); cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(237, 62, 75, 0.9);
}
.app-save:disabled { background: #F2A6AC; box-shadow: none; cursor: default; }
.app-toast {
  position: absolute; left: 14px; right: 14px; top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--slate-deep);
  color: #fff; font-weight: 700; font-size: 13px; opacity: 0; transform: translateY(-8px); transition: opacity 200ms ease, transform 200ms ease; pointer-events: none;
}
.app-toast.show { opacity: 1; transform: none; }
.demo-cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(237, 62, 75, 0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(237, 62, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(237, 62, 75, 0); } }

/* ─── Sections ─── */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section + .section { padding-top: 0; }
/* Full-bleed bands keep their own padding, and so does whatever follows them. */
.section.band, .section.langs { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.section.band + .section, .section.langs + .section { padding-top: clamp(64px, 9vw, 128px); }

/* Versions */
.versions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
/* The highlighted card (.is-active, moved by main.js on hover / focus / tap) turns slate. */
.version {
  display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.version h3, .version .v-for, .version .price, .version .price-note, .v-list li, .v-list li::before, .version .btn {
  transition: color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.version.is-active { background: var(--slate); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.version.is-active h3, .version.is-active .v-for, .version.is-active .price { color: #fff; }
.version.is-active .v-list li { color: rgba(255, 255, 255, 0.86); }
.version.is-active .v-list li::before { background: var(--coral); }
.version.is-active .price-note { color: rgba(255, 255, 255, 0.6); }
.version.is-active .btn { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -12px rgba(237, 62, 75, 0.8); }
.version.is-active .btn:hover { background: var(--coral-hover); }
.version h3 { font: 820 26px/1.1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; color: var(--slate-ink); }
.v-for { color: var(--text-2); margin-top: 8px; font-size: 16px; }
.v-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.v-list li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--text-2); line-height: 1.45; }
.v-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 3px; background: var(--slate); }
.v-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font: 800 36px/1 var(--display); font-stretch: 86%; color: var(--slate-ink); font-variant-numeric: tabular-nums; }
.price-note { font-size: 14px; color: var(--muted); font-weight: 600; }
.version .btn { width: 100%; }

/* Features */
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: center; margin-top: clamp(56px, 8vw, 104px); }
.feature.flip { grid-template-columns: 1.2fr 0.8fr; }
.feature.flip .feature-shot { order: 2; }
.feature-shot { justify-self: center; width: min(320px, 78vw); }
.feature-shot img {
  width: 100%; height: auto; border-radius: 34px; background: var(--paper);
  box-shadow: var(--shadow-lg), 0 0 0 9px #1F2833, 0 0 0 10.5px rgba(255, 255, 255, 0.06);
}
.feature-copy h3 { font: 820 clamp(26px, 3vw, 38px)/1.08 var(--display); font-stretch: 112%; letter-spacing: -0.02em; color: var(--slate-ink); max-width: 16ch; }
.feature-copy p { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 32em; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--text); font-size: 16px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--coral-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid var(--coral); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Dark band */
.band { background: var(--slate-deep); color: #fff; padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.band .display { color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.band-lede { color: rgba(255, 255, 255, 0.76); font-size: 18px; margin-top: 22px; max-width: 34em; }
.band-list { display: grid; gap: 14px; }
.band-list li { display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.band-list b { font-size: 17px; }
.band-list span { color: rgba(255, 255, 255, 0.64); font-size: 15px; }

/* Compare */
.table-wrap { margin-top: 40px; overflow-x: auto; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 800 16px var(--display); font-stretch: 108%; color: var(--slate-ink); background: #F7F8FA; position: sticky; top: 0; }
.compare thead small { font: 700 11px var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-hover); margin-left: 4px; }
.compare tbody th { font-weight: 600; color: var(--text); width: 34%; }
.compare td { color: var(--text-2); }
.compare td.y { color: #138A43; font-weight: 700; }
.compare td.n { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.row-price td { font: 800 18px var(--display); font-stretch: 86%; color: var(--slate-ink); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.plan h3 { font: 800 19px var(--body); color: var(--slate-ink); }
.plan-price { font: 800 54px/1 var(--display); font-stretch: 84%; color: var(--slate-ink); font-variant-numeric: tabular-nums; }
.plan-price small { font: 700 16px var(--body); color: var(--muted); margin-left: 4px; }
.plan-note { color: var(--text-2); font-weight: 600; }
.plan .ticks { flex: 1; margin-top: 4px; }
.plan .btn { width: 100%; margin-top: 8px; }
.plan-feature { box-shadow: 0 0 0 2px var(--coral), var(--shadow-lg); }
.fine { margin-top: 24px; color: var(--muted); font-size: 14.5px; }

/* Languages */
.langs { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper); }
.langs-inner { text-align: center; }
.lang-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(20px, 4vw, 52px); font-weight: 700; font-size: clamp(26px, 4vw, 46px); color: var(--slate-ink); line-height: 1.3; }
.lang-line [lang="en"] { font-family: var(--display); font-stretch: 112%; font-weight: 820; letter-spacing: -0.02em; }
.lang-line [lang="ml"] { font-family: "Noto Sans Malayalam", var(--body); color: var(--coral); }
.lang-line [lang="hi"] { font-family: "Noto Sans Devanagari", var(--body); color: var(--slate); }
.lang-cap { margin-top: 18px; color: var(--text-2); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 700; font-size: 18.5px; color: var(--slate-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--slate); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 40em; }

/* Contact */
.cta { padding-top: clamp(64px, 9vw, 120px) !important; }
.cta-inner {
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: clamp(44px, 7vw, 80px) 24px; border-radius: 32px; background: var(--slate); color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='none'%3E%3Cpath d='M820 -20C660 40 540 120 420 220C300 320 160 380 -20 430L40 430C210 380 350 320 470 220C590 120 700 60 820 30Z' fill='%23FFFFFF' fill-opacity='0.06'/%3E%3Cpath d='M820 120C700 170 610 230 530 300C460 360 380 400 280 440L330 440C430 400 510 360 580 300C650 240 730 190 820 160Z' fill='%23ED3E4B' fill-opacity='0.35'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cta .display { color: #fff; max-width: 16ch; }
.cta-mark { width: 84px; height: auto; }
.cta-lede { color: rgba(255, 255, 255, 0.8); font-size: 18px; max-width: 30em; }
.cta-alt { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.cta-alt:empty { display: none; }

/* Footer */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.footer-inner img { height: 46px; width: auto; opacity: 0.85; }

.swipe-hint { display: none; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid, .band-grid, .faq-grid { grid-template-columns: 1fr; }
  .versions, .price-grid { grid-template-columns: 1fr; max-width: 560px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-shot { order: 0; }
  .feature-copy { text-align: left; }
  .nav-links { display: none; }
  .lang-menu { margin-left: auto; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 700px) {
  .swipe-hint { display: block; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .swipe-hint + .table-wrap { margin-top: 10px; }
  .compare tbody th { position: sticky; left: 0; background: var(--paper); z-index: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .hero-ctas .btn { width: 100%; }
  .nav-logo img { height: 44px; }
  .nav-cta { padding: 0 14px; }
  .lang-switch { padding: 6px 10px; font-size: 14px; }
  .version, .plan { padding: 24px 22px; }
}
@media (max-width: 460px) {
  .nav-inner { gap: 12px; }
  /* Icon-only WhatsApp button in the top bar (text stays for screen readers) */
  /* Icon pinned left, label pushed out and clipped — Chrome keeps a minimum font size for Malayalam pages, so font-size: 0 alone isn't enough */
  .nav-cta.btn-wa { font-size: 0; color: transparent; gap: 12px; width: 44px; padding: 0 0 0 12px; justify-content: flex-start; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══ Malayalam page (html[lang="ml"]) — same wide-headline idea in a Malayalam face ═══
   Latin & digits keep Archivo / Figtree; Malayalam glyphs fall through to Anek Malayalam (display)
   and Noto Sans Malayalam (body). Malayalam needs more line height and no tight/wide tracking. */
html[lang="ml"] body {
  font-family: "Figtree", "Noto Sans Malayalam", system-ui, sans-serif; line-height: 1.75;
}
html[lang="ml"] .display,
html[lang="ml"] .version h3,
html[lang="ml"] .feature-copy h3,
html[lang="ml"] .doc section h2 {
  font-family: "Archivo", "Anek Malayalam", "Noto Sans Malayalam", sans-serif;
  font-stretch: 112%; letter-spacing: 0; line-height: 1.22;
}
html[lang="ml"] h1.display { font-size: clamp(34px, 4.6vw, 60px); }
html[lang="ml"] .h2 { font-size: clamp(27px, 3.4vw, 44px); max-width: 22ch; }
/* Long Malayalam words (e.g. കസ്റ്റമർമാർക്കിടയിലെ) must fit a 320px phone without breaking mid-word */
@media (max-width: 380px) { html[lang="ml"] .h2 { font-size: 24px; } }
html[lang="ml"] .feature-copy h3 { font-size: clamp(23px, 2.6vw, 33px); max-width: 20ch; }
html[lang="ml"] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 14px; }
html[lang="ml"] .app-label { letter-spacing: 0.02em; text-transform: none; font-size: 11.5px; }
html[lang="ml"] .compare thead small { letter-spacing: 0.02em; text-transform: none; }
html[lang="ml"] .btn { font-size: 15.5px; white-space: normal; text-align: center; line-height: 1.3; padding-block: 8px; }
html[lang="ml"] .tn { font-size: 12.5px; }
html[lang="ml"] .lede { line-height: 1.8; }

/* ═══ Hindi page (html[lang="hi"]) — same wide-headline idea in a Devanagari face ═══
   Latin & digits keep Archivo / Figtree; Devanagari falls through to Anek Devanagari (display)
   and Noto Sans Devanagari (body). The headline bar (shirorekha) needs a little more line height. */
html[lang="hi"] body { font-family: var(--body), "Noto Sans Devanagari", sans-serif; line-height: 1.7; }
html[lang="hi"] .display,
html[lang="hi"] .version h3,
html[lang="hi"] .feature-copy h3,
html[lang="hi"] .doc section h2 { font-family: "Archivo", "Anek Devanagari", sans-serif; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.22; }
html[lang="hi"] h1.display { font-size: clamp(36px, 5vw, 66px); }
html[lang="hi"] .h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 22ch; }
@media (max-width: 380px) { html[lang="hi"] .h2 { font-size: 25px; } }
html[lang="hi"] .feature-copy h3 { font-size: clamp(23px, 2.6vw, 33px); max-width: 22ch; }
html[lang="hi"] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 15px; }
html[lang="hi"] .app-label { letter-spacing: 0.02em; text-transform: none; font-size: 12px; }
html[lang="hi"] .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 8px; }
html[lang="hi"] .tn { font-size: 12.5px; }
/* Narrowest phones: drop the globe so logo + language pill + WhatsApp fit (the language name stays) */
@media (max-width: 380px) { .lang-switch svg { display: none; } .lang-switch { gap: 4px; } }
