/* =========================================================
   Fayakun Developer — main stylesheet
   ========================================================= */
:root {
  --blue-900: #071a3e;
  --blue-800: #0a2a6b;
  --blue-700: #0b47b5;
  --blue-600: #0a6cf0;
  --blue-500: #1488ff;
  --cyan-400: #00c2ff;
  --grad: linear-gradient(135deg, #0b47b5 0%, #1488ff 55%, #00c2ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(20,136,255,.12), rgba(0,194,255,.08));

  --bg: #f6f9fe;
  --bg-alt: #edf3fc;
  --surface: #ffffff;
  --surface-2: #f2f6fd;
  --text: #0b1736;
  --text-2: #42506e;
  --muted: #6b7895;
  --border: #dde6f3;
  --ring: rgba(20,136,255,.35);
  --shadow-sm: 0 1px 2px rgba(7,26,62,.06), 0 2px 8px rgba(7,26,62,.05);
  --shadow: 0 10px 30px -10px rgba(7,26,62,.18), 0 2px 6px rgba(7,26,62,.05);
  --shadow-lg: 0 30px 60px -20px rgba(7,26,62,.28);
  --header-bg: rgba(246,249,254,.82);

  --st: #7c4dff;  /* StyloText accent */
  --ac: #ff6b3d;  /* AudioCut accent */
  --wr: #1fbf6a;  /* WhatsReady accent */

  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060d1f; --bg-alt: #0a1530; --surface: #0e1a38; --surface-2: #13234a;
    --text: #e8eefc; --text-2: #b4c0dc; --muted: #8391b3; --border: #1f2f57;
    --header-bg: rgba(6,13,31,.8);
    --shadow: 0 10px 30px -10px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060d1f; --bg-alt: #0a1530; --surface: #0e1a38; --surface-2: #13234a;
  --text: #e8eefc; --text-2: #b4c0dc; --muted: #8391b3; --border: #1f2f57;
  --header-bg: rgba(6,13,31,.8);
  --shadow: 0 10px 30px -10px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-2); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(20,136,255,.25); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .78rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--font-head); cursor: pointer; text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(20,136,255,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(20,136,255,.9); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; }

.play-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
  background: #000; color: #fff; border-radius: 12px; text-decoration: none !important;
  border: 1px solid #333; transition: transform .2s, box-shadow .2s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.play-btn svg { width: 26px; height: 26px; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.play-btn .play-sub { font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.play-btn strong { font: 600 1.12rem/1.1 var(--font-head); }
.play-btn.is-soon { cursor: default; opacity: .92; }
.play-btn.is-soon:hover { transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; margin-right: auto; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 700 1.25rem/1 var(--font-head); letter-spacing: -.01em; }
.brand-text small { font: 500 .58rem/1 var(--font-head); letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop-btn {
  padding: 8px 14px; border-radius: 999px; color: var(--text-2); font: 500 .95rem/1 var(--font-head);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.main-nav > a:hover, .nav-drop-btn:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav > a[aria-current="page"] { color: var(--blue-600); }
.main-nav .nav-cta { margin-left: 8px; color: #fff; background: var(--grad); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .2s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); font: 600 .95rem/1.3 var(--font-head); text-decoration: none; }
.nav-drop-menu a:hover { background: var(--surface-2); }
.nav-drop-menu small { grid-column: 2; color: var(--muted); font: 400 .8rem/1.3 var(--font-body); }
.dot { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.dot-st { background: var(--st); } .dot-ac { background: var(--ac); } .dot-wr { background: var(--wr); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.icon-btn:hover { border-color: var(--blue-500); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-moon { display: none !important; }
[data-theme="dark"] .i-sun { display: none !important; }
[data-theme="dark"] .i-moon { display: block !important; }
.menu-btn { display: none; flex-direction: column; gap: 4px; place-items: unset; align-items: center; justify-content: center; }
.menu-btn span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--grad); }

@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px 20px;
    box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a, .nav-drop-btn { padding: 14px; border-radius: 12px; font-size: 1.02rem; width: 100%; justify-content: space-between; }
  .nav-drop-menu { position: static; transform: none !important; box-shadow: none; border: 0; padding: 0 0 0 8px; opacity: 1; visibility: visible; display: none; min-width: 0; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop:hover .nav-drop-menu { transform: none; }
  .main-nav .nav-cta { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: #1488ff; top: -180px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #00c2ff; bottom: -200px; left: -140px; animation-delay: -5s; opacity: .35; }
.blob-3 { width: 260px; height: 260px; background: #7c4dff; top: 40%; left: 45%; animation-delay: -9s; opacity: .18; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: .55;
}
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .88rem; color: var(--text-2); margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 999px; font: 600 .75rem/1.2 var(--font-head); }
.hero h1 .typed { display: inline-block; min-width: 1ch; }
.hero h1 .caret { display: inline-block; width: 3px; height: .9em; background: var(--blue-500); margin-left: 4px; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: .94rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--wr); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-logo-card {
  position: relative; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 36px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; place-items: center; padding: 34px;
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
.hero-logo-card img { width: 100%; height: auto; }
[data-theme="dark"] .hero-logo-card { background: #0b1736; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font: 600 .86rem/1.2 var(--font-head); color: var(--text); animation: bob 6s ease-in-out infinite;
}
.float-chip small { display: block; font: 400 .74rem/1.2 var(--font-body); color: var(--muted); }
.float-chip .chip-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.chip-1 { top: 6%; left: -2%; } .chip-2 { top: 44%; right: -6%; animation-delay: -2s; } .chip-3 { bottom: 4%; left: 6%; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { min-height: 380px; }
  .chip-2 { right: 0; }
}
@media (max-width: 480px) { .float-chip { display: none; } .hero-visual { min-height: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 600 1.05rem/1 var(--font-head); color: var(--muted); display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--blue-500); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- App cards ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .apps-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.app-card {
  --accent: var(--blue-500);
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent);
}
.app-card::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -100px; top: -110px;
  background: var(--accent); opacity: .08; transition: .4s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.app-card:hover::after { transform: scale(1.3); opacity: .14; }
.app-card.st { --accent: var(--st); } .app-card.ac { --accent: var(--ac); } .app-card.wr { --accent: var(--wr); }
.app-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: var(--accent); box-shadow: 0 12px 24px -10px var(--accent); position: relative; z-index: 1;
}
.app-icon svg { width: 32px; height: 32px; }
.app-card h3 { font-size: 1.45rem; margin: 0; }
.app-card .app-tagline { font: 500 .9rem/1.3 var(--font-head); color: var(--accent); margin: -8px 0 0; }
.app-card p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--font-head); color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f5a623; box-shadow: 0 0 0 4px rgba(245,166,35,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(245,166,35,0); } }
.link-arrow { font: 600 .92rem/1 var(--font-head); color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Demo / playground ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font: 600 .95rem/1 var(--font-head); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2);
}
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .dot { width: 8px; height: 8px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h3 { margin: 0 0 4px; }
.panel-head p { margin: 0; font-size: .94rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font: 600 .85rem/1.2 var(--font-head); color: var(--text); }
.input, .textarea, .select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--ring); }
.input.invalid, .textarea.invalid { border-color: #e5484d; }
.field-error { color: #e5484d; font-size: .8rem; min-height: 1em; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 180px; }

/* StyloText output */
.st-input-wrap { position: relative; }
.st-input-wrap .input { font-size: 1.1rem; padding-right: 90px; }
.st-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--muted); }
.st-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  font: 500 .84rem/1 var(--font-head); cursor: pointer; color: var(--text-2);
}
.pill.active { background: var(--st); border-color: var(--st); color: #fff; }
.st-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.st-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; text-align: left; width: 100%;
  transition: border-color .2s, transform .15s;
}
.st-item:hover { border-color: var(--st); }
.st-item:active { transform: scale(.98); }
.st-item .st-text { flex: 1; font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.st-item .st-name { font-size: .7rem; color: var(--muted); display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.st-item .st-copy { flex: none; font: 600 .75rem/1 var(--font-head); color: var(--st); padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--st) 12%, transparent); }
.st-item.copied .st-copy { background: var(--wr); color: #fff; }

/* AudioCut */
.drop {
  border: 2px dashed var(--border); border-radius: 18px; padding: 34px 20px; text-align: center; cursor: pointer;
  background: var(--surface-2); transition: border-color .2s, background .2s;
}
.drop.drag, .drop:hover { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 7%, var(--surface-2)); }
.drop svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--ac); }
.drop strong { font-family: var(--font-head); display: block; }
.drop small { color: var(--muted); }
.ac-editor[hidden] { display: none; }
.ac-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--text-2); margin: 16px 0 10px; }
.ac-meta b { color: var(--text); font-family: var(--font-head); }
.wave-wrap { position: relative; height: 150px; border-radius: 14px; background: #0b1736; overflow: hidden; user-select: none; touch-action: none; }
.wave-wrap canvas { width: 100%; height: 100%; }
.sel { position: absolute; top: 0; bottom: 0; background: rgba(255,107,61,.18); border-inline: 2px solid var(--ac); cursor: grab; }
.handle {
  position: absolute; top: 50%; width: 18px; height: 46px; margin-top: -23px; background: var(--ac); border-radius: 6px;
  cursor: ew-resize; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.handle::after { content: ""; width: 2px; height: 18px; border-inline: 2px solid rgba(255,255,255,.8); }
.handle-l { left: -10px; } .handle-r { right: -10px; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; left: 0; display: none; }
.ac-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.ac-times .input { font-family: var(--font-mono); text-align: center; }
.ac-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-controls .btn-primary { background: linear-gradient(135deg, #ff6b3d, #ff9a3d); box-shadow: 0 10px 24px -10px rgba(255,107,61,.8); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--ac); }
@media (max-width: 560px) { .ac-times { grid-template-columns: 1fr 1fr; } .ac-times .field:last-child { grid-column: span 2; } }

/* WhatsReady */
.wr-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .wr-grid { grid-template-columns: 1fr; } }
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.templates { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.templates .pill.active { background: var(--wr); border-color: var(--wr); }
.wr-link {
  font-family: var(--font-mono); font-size: .82rem; padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
  border: 1px dashed var(--border); word-break: break-all; color: var(--text-2); margin-bottom: 14px; min-height: 46px;
}
.wr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wr-actions .btn-primary { background: linear-gradient(135deg, #12a150, #1fbf6a); box-shadow: 0 10px 24px -10px rgba(31,191,106,.8); }
.chat-phone {
  border-radius: 34px; border: 10px solid #0b1736; background: #e9e0d5; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 9/17; display: flex; flex-direction: column; max-width: 320px; margin: 0 auto; width: 100%;
}
.chat-top { background: #0b6b4f; color: #fff; padding: 14px; display: flex; align-items: center; gap: 10px; font: 600 .9rem/1.2 var(--font-head); }
.chat-top .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; }
.chat-top small { display: block; font-weight: 400; opacity: .8; font-size: .72rem; }
.chat-body {
  flex: 1; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 14px 14px;
}
.bubble { align-self: flex-end; max-width: 85%; background: #d9fdd3; color: #111; padding: 8px 10px 18px; border-radius: 10px 10px 2px 10px; font-size: .86rem; line-height: 1.4; position: relative; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.bubble time { position: absolute; right: 8px; bottom: 3px; font-size: .64rem; color: #667; }
.bubble.in { align-self: flex-start; background: #fff; border-radius: 10px 10px 10px 2px; }
.chat-input { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; }
.chat-input span { flex: 1; background: #fff; border-radius: 20px; padding: 8px 12px; font-size: .8rem; color: #888; }
.chat-input i { width: 34px; height: 34px; border-radius: 50%; background: #0b6b4f; display: block; }

/* ---------- Services / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--blue-600); margin-bottom: 18px; }
.feature-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: .95rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.about-img img { width: 100%; height: auto; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.value { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.value b { font-family: var(--font-head); display: block; font-size: .95rem; }
.value span { font-size: .86rem; color: var(--text-2); }
.value .num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 .85rem/1 var(--font-head); }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.stat { background: var(--surface); padding: 30px 20px; text-align: center; }
.stat b { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Process timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--border), var(--blue-500), var(--border)); }
.step { text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue-500); display: grid; place-items: center; font: 700 1.1rem/1 var(--font-head); color: var(--blue-600); position: relative; z-index: 1; }
.step p { font-size: .94rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font: 600 1.02rem/1.4 var(--font-head); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s; color: var(--blue-600); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p:last-child { margin: 0; }
.faq-search { max-width: 820px; margin: 0 auto 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--grad); color: #fff; border-radius: 24px; padding: 34px; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); right: -110px; bottom: -110px; }
.contact-card h3 { font-size: 1.6rem; }
.contact-card p { color: rgba(255,255,255,.85); }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.contact-list svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.contact-list a { color: #fff; word-break: break-all; }
.contact-list small { display: block; opacity: .75; font-size: .78rem; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(circle at 20% 20%, #1488ff, transparent 50%), radial-gradient(circle at 80% 80%, #00c2ff, transparent 45%), #071a3e; color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 600px; margin: 0 auto 26px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- App detail page ---------- */
.app-hero { padding: clamp(40px, 7vw, 84px) 0; position: relative; overflow: hidden; }
.app-hero::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(60px); top: -250px; right: -150px; z-index: -1; }
.app-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .app-hero-grid { grid-template-columns: 1fr; } }
.page-st { --accent: var(--st); } .page-ac { --accent: var(--ac); } .page-wr { --accent: var(--wr); }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.app-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.app-title-row .app-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--accent); box-shadow: 0 14px 28px -12px var(--accent); }
.app-title-row h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.app-title-row p { margin: 0; color: var(--accent); font: 600 1rem/1.3 var(--font-head); }
.app-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; align-items: center; }
.meta-list { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--text-2); }
.meta-list li b { color: var(--text); font-family: var(--font-head); }

/* Phone mockup */
.mock-phone {
  width: 290px; max-width: 80vw; aspect-ratio: 9/18.5; margin: 0 auto; border-radius: 42px; background: #0b1736;
  padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #26365f; position: relative; transform: rotate(-3deg);
  animation: bob 7s ease-in-out infinite;
}
.mock-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 80px; height: 20px; background: #0b1736; border-radius: 20px; transform: translateX(-50%); z-index: 2; }
.mock-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; display: flex; flex-direction: column; color: #111; }
.mock-bar { background: var(--accent); color: #fff; padding: 46px 18px 16px; font: 600 1.05rem/1.2 var(--font-head); }
.mock-bar small { display: block; font: 400 .74rem/1.3 var(--font-body); opacity: .85; }
.mock-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: #f5f7fb; overflow: hidden; }
.mock-row { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: .9rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.mock-row i { font-style: normal; font-size: .62rem; color: #fff; background: var(--accent); padding: 3px 7px; border-radius: 6px; flex: none; }
.mock-wave { height: 90px; background: #0b1736; border-radius: 12px; display: flex; align-items: center; gap: 3px; padding: 0 10px; }
.mock-wave span { flex: 1; background: #ff8a5c; border-radius: 2px; }
.mock-wave span.dim { background: #3a4a72; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }
.highlights .feature-ic { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.page-st .btn-primary, .page-ac .btn-primary, .page-wr .btn-primary { background: var(--accent); box-shadow: 0 10px 24px -10px var(--accent); }
.page-st .eyebrow, .page-ac .eyebrow, .page-wr .eyebrow { color: var(--accent); }
.page-st .eyebrow::before, .page-ac .eyebrow::before, .page-wr .eyebrow::before { background: var(--accent); }

.perm-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); font-size: .94rem; }
.perm-table th, .perm-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.perm-table th { background: var(--surface-2); font-family: var(--font-head); font-size: .85rem; }
.perm-table tr:last-child td { border-bottom: 0; }
.perm-table code { font-family: var(--font-mono); font-size: .78rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.table-wrap { overflow-x: auto; border-radius: 16px; }

.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, #f5a623 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f5a623 40%, var(--border)); font-size: .92rem; color: var(--text-2); }
.notice b { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 56px 0 36px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-hero p { margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); margin-top: 14px; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; padding: 48px 20px 80px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .88rem; color: var(--text-2); border-left: 2px solid transparent; }
.toc li a:hover { background: var(--surface-2); text-decoration: none; }
.toc li a.active { color: var(--blue-600); background: var(--surface-2); border-left-color: var(--blue-500); font-weight: 600; }
@media (max-width: 900px) { .toc { position: static; max-height: none; } .toc ol { columns: 2; } }
@media (max-width: 480px) { .toc ol { columns: 1; } }
.legal-body { max-width: 780px; }
.legal-body section { padding-bottom: 12px; }
.legal-body h2 { font-size: 1.45rem; margin-top: 34px; padding-top: 10px; }
.legal-body h3 { font-size: 1.08rem; margin-top: 22px; }
.legal-body ul, .legal-body ol { color: var(--text-2); padding-left: 1.3em; }
.legal-body li { margin-bottom: 6px; }
.legal-body .summary-box { background: var(--grad-soft); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 10px; }
.legal-body .summary-box h3 { margin-top: 0; }
.legal-body .summary-box ul { margin: 0; }
.legal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.legal-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.legal-index a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: 600 .95rem/1.3 var(--font-head); }
.legal-index a:hover { border-color: var(--blue-500); text-decoration: none; }
.legal-index small { display: block; color: var(--muted); font: 400 .82rem/1.4 var(--font-body); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #061433; color: #b9c5e3; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 44px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.footer-brand p { color: #9fb0d6; max-width: 320px; font-size: .94rem; }
.footer-tag { font: 600 .75rem/1 var(--font-head) !important; letter-spacing: .3em; text-transform: uppercase; color: #4fb3ff !important; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: #b9c5e3; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px; font-size: .86rem; }
.footer-bottom p { margin: 0; color: #8798c2; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; z-index: 90;
  background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); z-index: 200; background: #0b1736; color: #fff;
  padding: 12px 20px; border-radius: 999px; font: 500 .92rem/1.3 var(--font-head); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: .3s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 620px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px 14px 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .88rem; }
@media (max-width: 520px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.nf .big { font: 800 clamp(6rem, 22vw, 12rem)/1 var(--font-head); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  .site-header, .site-footer, .toc, .to-top, .cookie-bar, .legal-actions, .toast { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}

/* ---------- StyloText designer demo ---------- */
.sd-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .sd-grid { grid-template-columns: 1fr; } }
.sd-stage { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--bg-alt) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: grid; place-items: center; position: sticky; top: 90px; }
@media (max-width: 900px) { .sd-stage { position: static; } }
.sd-stage canvas { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow); cursor: grab; touch-action: none; height: auto; }
.sd-hint { font-size: .8rem; color: var(--muted); margin: 8px 0 0; text-align: center; }
.sd-controls .textarea.urdu { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; font-size: 1.15rem; line-height: 2.1; min-height: 96px; }
.sd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-row .input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.sd-range { width: 100%; accent-color: var(--st); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.swatch.active { border-color: var(--text); }
.sd-toggles { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 16px; }
.sd-toggles .check input { accent-color: var(--st); }
.sd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-st .sd-actions .btn-primary, #stylotext-demo .btn-primary { background: linear-gradient(135deg, #0b47b5, #7c4dff); }

/* Screenshot gallery */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.shots img { flex: none; width: 230px; height: auto; border-radius: 22px; box-shadow: var(--shadow); scroll-snap-align: center; border: 1px solid var(--border); background: var(--surface); }
.shots.wide img { width: 520px; max-width: 85vw; border-radius: 16px; }
.app-icon.img { background: none !important; box-shadow: var(--shadow); overflow: hidden; padding: 0; }
.app-icon.img img { width: 100%; height: 100%; object-fit: cover; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--font-head); color: var(--wr); }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wr); box-shadow: 0 0 0 4px rgba(31,191,106,.2); }
.mock-shot { width: 290px; max-width: 80vw; margin: 0 auto; border-radius: 34px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); animation: bob 7s ease-in-out infinite; border: 8px solid #0b1736; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cap { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; border-top: 4px solid var(--accent, var(--blue-500)); }
.cap h3 { font-size: 1.05rem; margin-bottom: 14px; }
img.chip-ic { object-fit: cover; padding: 0; }
/* hero screenshot: keep it inside the viewport */
.mock-shot { width: auto; height: min(600px, 72vh); max-width: 80vw; object-fit: contain; display: block; }
@media (max-width: 900px) { .mock-shot { height: min(520px, 64vh); } }
.app-hero-grid { align-items: center; }
.app-banner { max-width: 1000px; margin: 0 auto 28px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.app-banner img { width: 100%; height: auto; }

/* ---------- All apps catalog (apps/index.html) ---------- */
.cat-tools { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 28px; }
.cat-tools .input { max-width: 420px; width: 100%; }
.cat-tools .tabs { margin-bottom: 0; }
.cat-count { text-align: center; color: var(--muted); font-size: .9rem; margin: -8px 0 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card-top { display: flex; align-items: center; gap: 12px; }
.cat-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 1rem/1 var(--font-head); background: var(--grad); }
.cat-ic img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; }
.cat-ic.c-photo { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.cat-ic.c-docs { background: linear-gradient(135deg, #0b47b5, #00c2ff); }
.cat-ic.c-audio { background: linear-gradient(135deg, #ff6a00, #ee0979); }
.cat-ic.c-video { background: linear-gradient(135deg, #11998e, #38ef7d); }
.cat-ic.c-life { background: linear-gradient(135deg, #25d366, #128c7e); }
.cat-ic.c-design { background: linear-gradient(135deg, #d50000, #ff8a00); }
.cat-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.cat-card .cat-label { font-size: .76rem; color: var(--muted); }
.cat-card p { margin: 0; font-size: .9rem; }
.cat-card-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; }
.cat-card-foot a { font: 600 .85rem/1 var(--font-head); }
.cat-empty { text-align: center; color: var(--muted); }
