/* Studiq website. Design language follows the app: warm paper, ink-green accent, clay secondary,
   uneven "blob" corners, Fraunces headings, Anek Bangla for Bangla. No build step. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
/* Only downloaded when a page actually contains Bangla letters */
@font-face {
  font-family: 'AnekBangla';
  src: url('../fonts/AnekBangla.ttf') format('truetype');
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --ink: #1d2824;
  --muted: #5b6760;
  --green: #24604f;
  --green-2: #2f7a65;
  --green-ink: #ffffff;
  --clay: #c4573a;
  --amber: #f59e0b;
  --mint: #10b981;
  --line: rgba(36, 96, 79, 0.16);
  --wash-a: rgba(36, 96, 79, 0.2);
  --wash-b: rgba(196, 87, 58, 0.16);
  --wash-c: rgba(245, 158, 11, 0.14);
  --dot: rgba(36, 96, 79, 0.16);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 22px 44px -22px rgba(29, 40, 36, 0.3);
  --shadow-s: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 22px -14px rgba(29, 40, 36, 0.3);
  --blob-a: 28px 34px 26px 32px / 32px 26px 34px 28px;
  --blob-b: 34px 26px 32px 28px / 26px 34px 28px 32px;
  --blob-c: 22px 28px 24px 30px / 28px 22px 30px 24px;
  --dir: 1;
  --head: 'Fraunces', 'AnekBangla', 'Iowan Old Style', Georgia, 'Noto Serif', serif;
  --body: 'AnekBangla', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Nirmala UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  color-scheme: light;
}
html[data-theme='dark'] {
  --paper: #101613;
  --paper-2: #16201c;
  --card: #18221e;
  --ink: #e8efe9;
  --muted: #9db0a5;
  --green: #5fb79a;
  --green-2: #7fcdb2;
  --green-ink: #0b1511;
  --clay: #e0795c;
  --line: rgba(255, 255, 255, 0.11);
  --wash-a: rgba(95, 183, 154, 0.16);
  --wash-b: rgba(224, 121, 92, 0.12);
  --wash-c: rgba(245, 158, 11, 0.08);
  --dot: rgba(255, 255, 255, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 48px -22px rgba(0, 0, 0, 0.7);
  --shadow-s: 0 10px 22px -14px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
html[dir='rtl'] { --dir: -1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.01em; margin: 0; font-weight: 650; }
html[lang='bn'] h1, html[lang='bn'] h2, html[lang='bn'] h3 { line-height: 1.32; letter-spacing: 0; }
html[lang='hi'] body, html[lang='ur'] body, html[lang='ar'] body, html[lang='zh'] body { line-height: 1.85; }
html[lang='hi'] h1, html[lang='hi'] h2, html[lang='hi'] h3,
html[lang='ur'] h1, html[lang='ur'] h2, html[lang='ur'] h3,
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3,
html[lang='zh'] h1, html[lang='zh'] h2, html[lang='zh'] h3 { line-height: 1.4; letter-spacing: 0; font-weight: 700; }
html[lang='ur'] body { font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif; }
html[lang='ar'] body { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif; }
html[lang='hi'] body { font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Segoe UI', system-ui, sans-serif; }
html[lang='zh'] body { font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
p { margin: 0 0 1em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: 12px; z-index: 100; transition: top 0.2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }

/* ------------------------------------------------------------------ living paper background */
.paper { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--paper); }
.paper::before { /* dot grid */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.paper::after { /* grain */
  content: ''; position: absolute; inset: 0; opacity: 0.45; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme='dark'] .paper::after { mix-blend-mode: screen; opacity: 0.25; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob.a { width: 52vmax; height: 52vmax; background: var(--wash-a); inset-inline-start: -14vmax; top: -16vmax; animation: drift1 26s ease-in-out infinite alternate; }
.blob.b { width: 44vmax; height: 44vmax; background: var(--wash-b); inset-inline-end: -12vmax; top: 18vh; animation: drift2 31s ease-in-out infinite alternate; }
.blob.c { width: 40vmax; height: 40vmax; background: var(--wash-c); inset-inline-start: 18vw; bottom: -20vmax; animation: drift3 37s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(calc(14vmax * var(--dir)), 10vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(calc(-12vmax * var(--dir)), -8vmax) scale(0.92); } }
@keyframes drift3 { to { transform: translate(calc(10vmax * var(--dir)), -9vmax) scale(1.1); } }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.4); }
.bar { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 22.5%; box-shadow: var(--shadow-s); transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a.link { text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 550; font-size: 0.95rem; transition: background 0.2s, color 0.2s; }
.nav a.link:hover { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
html[data-theme='dark'] .theme-btn .sun { display: block; }
html[data-theme='dark'] .theme-btn .moon { display: none; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; transform-origin: top; }
.lang-menu.open { display: block; animation: pop 0.22s var(--ease); }
.lang-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: start; padding: 10px 14px; border: 0; background: none; border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; }
.lang-menu button:hover { background: color-mix(in srgb, var(--green) 12%, transparent); }
.lang-menu button[aria-current='true'] { background: color-mix(in srgb, var(--green) 16%, transparent); font-weight: 700; color: var(--green); }
.lang-menu small { color: var(--muted); font-size: 0.75rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.burger { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0; background: var(--green); color: var(--green-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: 0 12px 24px -12px var(--green); transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s; }
.btn:hover { transform: translateY(-3px); color: var(--green-ink); background: var(--green-2); box-shadow: 0 18px 30px -14px var(--green); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.btn.soon { background: color-mix(in srgb, var(--clay) 14%, var(--card)); color: var(--clay); box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; background: color-mix(in srgb, var(--clay) 14%, var(--card)); color: var(--clay); box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ sections */
section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--clay); }
html[lang='bn'] .eyebrow, html[lang='hi'] .eyebrow, html[lang='ur'] .eyebrow, html[lang='ar'] .eyebrow, html[lang='zh'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.sec-head p { color: var(--muted); font-size: 1.12rem; margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; display: inline-block; }
.hero h1 em svg { position: absolute; inset-inline: -2%; bottom: -0.2em; width: 104%; height: 0.32em; overflow: visible; }
.hero h1 em svg path { fill: none; stroke: var(--clay); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.4s 0.7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 560px; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-s); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); animation: pulse 2.4s infinite; }
.chip:nth-child(2) i { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 25%, transparent); animation-delay: 0.6s; }
.chip:nth-child(3) i { background: var(--clay); box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 25%, transparent); animation-delay: 1.2s; }
@keyframes pulse { 50% { transform: scale(1.35); } }

.stage { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1200px; }
.phone { width: min(290px, 70vw); aspect-ratio: 9 / 18.4; border-radius: 44px; background: #141b18; padding: 10px; box-shadow: 0 40px 70px -30px rgba(20, 40, 33, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.08); position: relative; transform: rotateY(calc(-8deg * var(--dir))) rotateX(3deg); transition: transform 0.4s var(--ease); animation: bob 7s ease-in-out infinite; z-index: 2; }
@keyframes bob { 50% { translate: 0 -12px; } }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 14px; background: #0a0f0d; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #f7f2e8; color: #1d2824; display: flex; flex-direction: column; font-family: var(--body); position: relative; }
html[data-theme='dark'] .screen { background: #131a17; color: #e8efe9; }
.app-top { padding: 44px 18px 10px; }
.app-top small { color: #6b7770; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.app-top b { display: block; font-family: var(--head); font-size: 1.28rem; margin-top: 2px; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.ring { position: absolute; inset-inline-end: 16px; top: 46px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; --p: 0%; background: conic-gradient(var(--green) var(--p), color-mix(in srgb, var(--green) 18%, transparent) 0); animation: fillp 2.4s 0.9s var(--ease) forwards; }
@keyframes fillp { to { --p: 72%; } }
.ring::after { content: ''; width: 32px; height: 32px; border-radius: 50%; background: #f7f2e8; }
html[data-theme='dark'] .ring::after { background: #131a17; }
.ring span { position: absolute; font-size: 0.62rem; font-weight: 800; z-index: 1; }
.rows { padding: 6px 14px; display: grid; gap: 9px; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #fffdf8; border-radius: 16px 20px 15px 19px / 19px 15px 20px 16px; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.4); font-size: 0.82rem; font-weight: 600; opacity: 0; transform: translateY(14px); animation: rowin 0.7s var(--ease) forwards; }
html[data-theme='dark'] .row { background: #1b2521; }
.row:nth-child(1) { animation-delay: 0.5s; } .row:nth-child(2) { animation-delay: 0.7s; } .row:nth-child(3) { animation-delay: 0.9s; } .row:nth-child(4) { animation-delay: 1.1s; }
@keyframes rowin { to { opacity: 1; transform: none; } }
.row .dot { width: 30px; height: 30px; border-radius: 10px 12px 9px 12px; background: var(--c, var(--green)); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; flex: none; }
.row .meta { margin-inline-start: auto; font-size: 0.68rem; color: #6b7770; font-weight: 700; }
.row .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #fff; font-size: 0.65rem; transform: scale(0); animation: tick 0.5s 2.2s var(--ease) forwards; }
@keyframes tick { to { transform: scale(1); } }
.sub { margin-inline-start: 22px; display: grid; gap: 7px; max-height: 0; overflow: hidden; animation: unfold 1s 1.6s var(--ease) forwards; }
.sub .row { font-size: 0.74rem; padding: 8px 10px; animation-delay: 1.9s; }
@keyframes unfold { to { max-height: 120px; } }
.dock { margin-top: auto; padding: 10px 12px 14px; }
.dock div { display: flex; align-items: center; justify-content: space-around; padding: 10px; border-radius: 22px; background: #fffdf8; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.4); }
html[data-theme='dark'] .dock div { background: #1b2521; }
.dock span { width: 22px; height: 22px; border-radius: 8px; background: color-mix(in srgb, var(--green) 25%, transparent); }
.dock span:first-child { background: var(--green); }
.float { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 18px 22px 17px 21px / 21px 17px 22px 18px; box-shadow: var(--shadow); padding: 12px 16px; font-size: 0.86rem; font-weight: 650; display: flex; align-items: center; gap: 10px; animation: floaty 6s ease-in-out infinite; }
.float b { font-family: var(--head); font-size: 1.05rem; }
.float .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.float .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float.f1 { inset-inline-start: -6%; top: 6%; animation-delay: 0s; }
.float.f2 { inset-inline-end: -2%; top: 40%; animation-delay: -2s; }
.float.f3 { inset-inline-start: 2%; bottom: 12%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(1.5deg); } }
/* the animated logo (leaves unfurl, sun rises) rides on the hero beside the phone */
.stage-logo { position: absolute; z-index: 3; inset-inline-end: 1%; top: 0; width: 118px; height: 118px; border-radius: 22.5%; box-shadow: var(--shadow); rotate: calc(8deg * var(--dir)); animation: floaty 6s ease-in-out infinite; animation-delay: -1s; }
.back-card { position: absolute; width: min(250px, 60vw); aspect-ratio: 9/14; border-radius: 34px; background: linear-gradient(160deg, var(--clay), #e59a52); inset-inline-end: 4%; top: 12%; transform: rotate(calc(9deg * var(--dir))); box-shadow: var(--shadow); z-index: 1; overflow: hidden; }
.back-card::before, .back-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.back-card::before { width: 180px; height: 180px; inset-inline-start: -50px; top: -40px; animation: orbit 12s linear infinite; }
.back-card::after { width: 120px; height: 120px; inset-inline-end: -30px; bottom: 30px; animation: orbit 16s linear infinite reverse; }
@keyframes orbit { to { transform: rotate(360deg) translateX(14px); } }

/* ------------------------------------------------------------------ strip */
.strip { padding: 0; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 22px 0; border-block: 1px solid var(--line); }
.strip span { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--muted); font-size: 0.95rem; }
.strip svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ features */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; transition: all 0.25s var(--ease); }
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected='true'] { background: var(--green); color: var(--green-ink); border-color: var(--green); box-shadow: 0 10px 20px -12px var(--green); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--blob-a); padding: 26px; box-shadow: var(--shadow-s); transition: transform 0.4s var(--ease), box-shadow 0.4s, opacity 0.35s, filter 0.35s; position: relative; overflow: hidden; }
.card:nth-child(3n+2) { border-radius: var(--blob-b); }
.card:nth-child(3n) { border-radius: var(--blob-c); }
.card::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c, var(--green)); opacity: 0.08; transition: transform 0.6s var(--ease), opacity 0.4s; }
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow); }
.card:hover::after { transform: scale(2.6); opacity: 0.12; }
.card.hide { display: none; }
.card .ico { width: 52px; height: 52px; border-radius: 16px 19px 15px 18px / 18px 15px 19px 16px; background: color-mix(in srgb, var(--c, var(--green)) 16%, transparent); color: var(--c, var(--green)); display: grid; place-items: center; margin-bottom: 18px; transition: transform 0.5s var(--ease); }
.card:hover .ico { transform: rotate(-8deg) scale(1.1); }
.card .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.tag { position: absolute; inset-inline-end: 18px; top: 18px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c, var(--green)); opacity: 0.8; }
html[lang='bn'] .tag, html[lang='hi'] .tag, html[lang='ur'] .tag, html[lang='ar'] .tag, html[lang='zh'] .tag { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }

/* ------------------------------------------------------------------ how */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; inset-inline: 16%; top: 38px; height: 0; border-top: 3px dashed var(--line); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step .n { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 28px 24px 30px 22px / 24px 30px 22px 28px; background: var(--green); color: var(--green-ink); font-family: var(--head); font-weight: 700; font-size: 1.9rem; display: grid; place-items: center; box-shadow: 0 16px 30px -14px var(--green); transition: transform 0.5s var(--ease); }
.step:nth-child(2) .n { background: var(--clay); box-shadow: 0 16px 30px -14px var(--clay); border-radius: 24px 30px 22px 28px / 30px 22px 28px 24px; }
.step:nth-child(3) .n { background: var(--amber); color: #2a1d00; box-shadow: 0 16px 30px -14px var(--amber); }
.step:hover .n { transform: rotate(-6deg) scale(1.08); }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 320px; margin-inline: auto; }

/* ------------------------------------------------------------------ showcase */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.show + .show { margin-top: clamp(48px, 7vw, 96px); }
.show.flip .show-art { order: 2; }
.show h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 550; }
.ticks li::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 9px 11px 8px 10px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; margin-top: 2px; }
.show-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.panel { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--blob-a); box-shadow: var(--shadow); padding: 22px; position: relative; }
.panel .bar-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.panel .bar-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel .bar-dots i:nth-child(1) { background: #ef6a5b; } .panel .bar-dots i:nth-child(2) { background: var(--amber); } .panel .bar-dots i:nth-child(3) { background: var(--mint); }
.ed h4 { font-family: var(--head); font-size: 1.5rem; margin: 0 0 12px; }
.ed .ln { height: 11px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin: 10px 0; transform-origin: left; }
.ed .ln.w1 { width: 94%; } .ed .ln.w2 { width: 78%; } .ed .ln.w3 { width: 88%; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px 20px 15px 19px; background: color-mix(in srgb, var(--amber) 18%, transparent); font-size: 0.92rem; font-weight: 600; margin: 14px 0; }
.math { font-family: var(--head); font-style: italic; font-size: 1.5rem; text-align: center; padding: 10px; color: var(--green); }
.slash { position: absolute; inset-inline-end: -10px; bottom: -26px; width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 8px; font-size: 0.85rem; font-weight: 600; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.slash div { padding: 8px 10px; border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.slash div:first-child { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.slash b { width: 22px; height: 22px; border-radius: 7px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-size: 0.7rem; }
.reader p { font-size: 1.02rem; margin: 0 0 12px; }
.hl { background: linear-gradient(transparent 0 0) no-repeat; background-image: linear-gradient(color-mix(in srgb, var(--amber) 55%, transparent), color-mix(in srgb, var(--amber) 55%, transparent)); background-size: 0% 100%; background-position: 0 0; animation: hl 3.4s 0.6s var(--ease) infinite alternate; padding: 0 2px; border-radius: 4px; }
html[dir='rtl'] .hl { background-position: 100% 0; }
@keyframes hl { 0%, 15% { background-size: 0% 100%; } 60%, 100% { background-size: 100% 100%; } }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 10px 10px 4px 4px; background: linear-gradient(var(--green-2), var(--green)); height: var(--h); transform-origin: bottom; animation: grow 2.6s var(--ease) infinite alternate; animation-delay: calc(var(--i) * 0.12s); }
.bars i:nth-child(odd) { background: linear-gradient(#e69070, var(--clay)); }
@keyframes grow { from { transform: scaleY(0.25); } }
.days { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.prog { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--green) 16%, transparent); overflow: hidden; margin: 14px 0 6px; }
.prog i { display: block; height: 100%; width: 72%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--mint)); transform-origin: left; animation: loadbar 3.4s var(--ease) infinite alternate; }
html[dir='rtl'] .prog i { transform-origin: right; }
@keyframes loadbar { from { transform: scaleX(0.15); } }

/* ------------------------------------------------------------------ languages */
.langs { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--green) 7%, transparent), transparent); }
.hello { font-family: var(--head); font-size: clamp(2.4rem, 8vw, 5.4rem); min-height: 1.5em; margin: 8px 0 26px; color: var(--green); font-weight: 700; display: flex; justify-content: center; }
.hello span { display: inline-block; animation: swap 0.7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(26px) rotateX(60deg); } }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.pill { padding: 10px 20px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 650; cursor: pointer; font: inherit; color: var(--ink); transition: all 0.25s var(--ease); }
.pill:hover, .pill.on { background: var(--green); color: var(--green-ink); border-color: var(--green); transform: translateY(-3px) scale(1.04); }

/* ------------------------------------------------------------------ trust cards */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust a.card { text-decoration: none; color: var(--ink); display: block; }
.trust .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--c); font-weight: 700; }
.trust .more svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
html[dir='rtl'] .trust .more svg { transform: scaleX(-1); }
.trust a.card:hover .more svg { transform: translateX(calc(6px * var(--dir))); }
html[dir='rtl'] .trust a.card:hover .more svg { transform: scaleX(-1) translateX(calc(-6px)); }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 22px 26px 21px 25px / 25px 21px 26px 22px; box-shadow: var(--shadow-s); overflow: hidden; transition: box-shadow 0.3s; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 20px 24px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform 0.35s var(--ease), background 0.2s; }
details[open] summary::after { transform: rotate(135deg); background: var(--green); color: var(--green-ink); }
details .ans { padding: 0 24px 22px; color: var(--muted); animation: slide 0.4s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------------------------------------------------------ cta + footer */
.cta { text-align: center; }
.cta-box { background: linear-gradient(135deg, var(--green), #1b4a3d); color: #fff; border-radius: 48px 40px 52px 38px / 40px 52px 38px 48px; padding: clamp(36px, 7vw, 76px) 24px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-box::before, .cta-box::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.cta-box::before { width: 340px; height: 340px; inset-inline-start: -90px; top: -120px; animation: orbit 20s linear infinite; }
.cta-box::after { width: 260px; height: 260px; inset-inline-end: -70px; bottom: -110px; animation: orbit 26s linear infinite reverse; }
.cta-box h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); color: #fff; position: relative; }
.cta-box p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 16px auto 28px; font-size: 1.12rem; position: relative; }
.cta-box .cta-row { justify-content: center; position: relative; }
.cta-box .btn { background: #fff; color: #1b4a3d; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.5); }
.cta-box .btn:hover { background: #fff7e6; color: var(--clay); }
.cta-box .btn.soon { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
footer { padding: 56px 0 36px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { color: var(--muted); max-width: 340px; margin-top: 14px; }
.foot h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
html[lang='bn'] .foot h4, html[lang='hi'] .foot h4, html[lang='ur'] .foot h4, html[lang='ar'] .foot h4, html[lang='zh'] .foot h4 { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--ink); font-weight: 550; }
.foot a:hover { color: var(--clay); }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------------ legal pages */
.progress { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 80; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--clay)); transform: scaleX(0); transform-origin: left; }
html[dir='rtl'] .progress i { transform-origin: right; }
.doc-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); }
.doc-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.doc-hero .meta { display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.doc-hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 760px; margin-top: 20px; }
.doc { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line); border-radius: var(--blob-c); padding: 20px; box-shadow: var(--shadow-s); max-height: calc(100vh - 120px); overflow: auto; }
.toc h4 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
html[lang='bn'] .toc h4, html[lang='hi'] .toc h4, html[lang='ur'] .toc h4, html[lang='ar'] .toc h4, html[lang='zh'] .toc h4 { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.toc a { display: block; padding: 7px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 550; border-inline-start: 3px solid transparent; transition: all 0.2s; }
.toc a:hover { background: color-mix(in srgb, var(--green) 10%, transparent); }
.toc a.on { background: color-mix(in srgb, var(--green) 14%, transparent); border-inline-start-color: var(--clay); color: var(--green); font-weight: 700; }
.summary { background: color-mix(in srgb, var(--green) 9%, var(--card)); border: 1px solid var(--line); border-radius: var(--blob-a); padding: 24px 28px; margin-bottom: 36px; }
.summary h2 { font-size: 1.25rem; margin-bottom: 12px; }
.summary ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.doc section { padding: 0; margin-bottom: 44px; }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; }
.doc h2 .no { color: var(--clay); font-size: 0.8em; min-width: 1.6em; }
.doc ul, .doc ol { padding-inline-start: 24px; display: grid; gap: 10px; margin: 0 0 1em; }
.doc li::marker { color: var(--clay); font-weight: 700; }
.note { border-inline-start: 5px solid var(--amber); background: color-mix(in srgb, var(--amber) 13%, var(--card)); padding: 16px 20px; border-radius: 6px 20px 20px 6px; margin: 18px 0; font-weight: 550; }
html[dir='rtl'] .note { border-radius: 20px 6px 6px 20px; }
.warn { border-inline-start-color: var(--clay); background: color-mix(in srgb, var(--clay) 11%, var(--card)); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); margin: 8px 0 20px; font-size: 0.97rem; }
.table th, .table td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: color-mix(in srgb, var(--green) 10%, var(--card)); font-weight: 700; font-size: 0.85rem; }
.table td:last-child { color: var(--muted); }
.paths { display: grid; gap: 18px; }
.path { background: var(--card); border: 1px solid var(--line); border-radius: var(--blob-a); padding: 26px; box-shadow: var(--shadow-s); }
.path h3 { font-size: 1.3rem; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.path h3 .badge { background: var(--green); color: var(--green-ink); border-radius: 12px 14px 11px 13px; padding: 4px 12px; font-size: 0.78rem; font-family: var(--body); font-weight: 800; }
.path ol { margin: 0 0 12px; }
.mailbtn { margin-top: 6px; }
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; opacity: 0; pointer-events: none; transform: translateY(14px); transition: all 0.35s var(--ease); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.slide-l { transform: translateX(calc(-40px * var(--dir))); }
.reveal.slide-r { transform: translateX(calc(40px * var(--dir))); }
.reveal.slide-l.in, .reveal.slide-r.in { transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-grid, .show { grid-template-columns: 1fr; }
  .show.flip .show-art { order: 0; }
  .stage { min-height: 520px; }
  .grid, .trust { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .burger { display: grid; }
  .nav { position: fixed; inset: 68px 12px auto 12px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 14px; flex-direction: column; align-items: stretch; gap: 4px; opacity: 0; pointer-events: none; transform: translateY(-12px) scale(0.98); transition: all 0.3s var(--ease); margin: 0; }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a.link { padding: 14px 16px; font-size: 1.05rem; }
  .tools { margin-inline-start: auto; }
  .hide-sm { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 3rem); }
  .hero h1 em { white-space: normal; }
  .grid, .trust { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .float.f1 { inset-inline-start: -2%; } .float.f2 { inset-inline-end: -2%; }
  .float { padding: 9px 12px; font-size: 0.78rem; }
  .stage { min-height: 500px; }
  .lang-btn .label { display: none; }
  .lang-btn { padding: 0 11px; }
  .cta-row .btn { width: 100%; }
  .table th, .table td { padding: 11px 12px; }
  .table { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .row, .sub { opacity: 1; transform: none; max-height: none; }
  .row .tick { transform: scale(1); }
  .ring { --p: 72%; }
  .hero h1 em svg path { stroke-dashoffset: 0; }
}
@media print {
  .paper, .site-header, .toc, .to-top, .progress, footer .lang { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc { grid-template-columns: 1fr; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* the logo badge is the one thing that keeps floating when the system asks for less motion (it is small and slow) */
@media (prefers-reduced-motion: reduce) {
  .stage-logo { animation-duration: 6s !important; animation-iteration-count: infinite !important; }
}
.brand .q, .qmark { font-style: normal; color: #E0443E; }

.appver { font-variant-numeric: tabular-nums; opacity: 0.8; }
