/* ==========================================================================
   Rikny — marketing site styles (home, apps, product pages, legal pages)
   Docs pages (/jetreader-pro) keep using style.css.
   Light + dark theme · LTR + RTL · mobile-first
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #f7f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #f0eefa;
  --bg-header: rgba(247, 247, 251, 0.72);
  --line: #e6e3f0;
  --text: #121026;
  --text-soft: #5b5875;
  --text-faint: #8d8aa6;

  --brand: #8a2be2;
  --brand-2: #00c6ff;
  --brand-3: #ff6fae;
  --brand-ink: #6a1fb3;
  --grad: linear-gradient(120deg, #8a2be2 0%, #5b5cf0 45%, #00c6ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(138, 43, 226, 0.12), rgba(0, 198, 255, 0.12));

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;
  --shadow: 0 1px 2px rgba(18, 16, 38, 0.04), 0 8px 24px -8px rgba(18, 16, 38, 0.12);
  --shadow-l: 0 2px 6px rgba(18, 16, 38, 0.05), 0 30px 60px -20px rgba(60, 30, 120, 0.25);
  --ring: 0 0 0 3px rgba(138, 43, 226, 0.28);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-theme {
  --bg: #0b0a16;
  --bg-elev: #15132a;
  --bg-soft: #1b1835;
  --bg-header: rgba(11, 10, 22, 0.7);
  --line: #2a2648;
  --text: #f3f1ff;
  --text-soft: #b4b0d4;
  --text-faint: #7f7aa3;
  --brand-ink: #c89bff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px -20px rgba(0, 0, 0, 0.8);
}

html[lang="ar"] {
  --font-heading: 'IBM Plex Sans Arabic', 'Outfit', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }
/* Before site.js runs: avoid a white flash for dark-mode visitors */
html.pre-dark body:not(.dark-theme) { background: #0b0a16; color: #f3f1ff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Aurora background ------------------------------------------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(80px); opacity: .5; animation: drift 22s ease-in-out infinite alternate;
}
.aurora::before { background: radial-gradient(circle, rgba(138, 43, 226, .55), transparent 60%); top: -30vmax; inset-inline-start: -15vmax; }
.aurora::after { background: radial-gradient(circle, rgba(0, 198, 255, .45), transparent 60%); top: -25vmax; inset-inline-end: -20vmax; animation-delay: -8s; }
body.dark-theme .aurora::before, body.dark-theme .aurora::after { opacity: .35; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.1); } }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: var(--bg-header); border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name span { color: var(--brand); font-weight: 500; }
body.dark-theme .brand-name span { color: #b77cff; }

.main-nav { display: flex; gap: 6px; margin-inline-start: 12px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--text-soft); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-soft); transition: color .2s, transform .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .icon-sun { display: none; }
body.dark-theme .icon-btn .icon-sun { display: block; }
body.dark-theme .icon-btn .icon-moon { display: none; }

.lang-switch { position: relative; }
.lang-switch select {
  appearance: none; -webkit-appearance: none; height: 42px; padding: 0 34px 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: 600 .9rem var(--font-body); cursor: pointer;
}
html[dir="rtl"] .lang-switch select { padding: 0 14px 0 34px; }
.lang-switch::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 14px; font-weight: 700; font-size: .98rem; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 92, 240, .8); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(91, 92, 240, .9); }
.btn-ghost { border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { height: 42px; padding: 0 16px; font-size: .9rem; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

.menu-toggle { display: none; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn-support-label { display: none; }
  .site-header.menu-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; inset-inline: 0; padding: 12px 20px 20px;
    margin: 0; background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.menu-open .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
}
@media (max-width: 420px) { .header-actions { gap: 6px; } .lang-switch select { padding-inline: 10px 28px; } }

/* ---------- Sections & typography --------------------------------------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--grad-soft); color: var(--brand-ink); font-weight: 700; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(138, 43, 226, .15); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 14px; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero (home) -------------------------------------------------- */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; margin: 20px 0 20px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; color: var(--text-soft); font-weight: 600; font-size: .92rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--brand); }

.hero-visual { position: relative; height: 520px; }
.float-card {
  position: absolute; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); overflow: hidden; animation: float 7s ease-in-out infinite;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; }
.float-card.phone { width: 230px; height: 460px; border-radius: 36px; border: 8px solid #1b1830; top: 20px; inset-inline-start: 30%; z-index: 3; }
.float-card.wp-a { width: 300px; height: 190px; top: 40px; inset-inline-start: 0; animation-delay: -2s; }
.float-card.wp-b { width: 260px; height: 170px; bottom: 30px; inset-inline-end: 0; animation-delay: -4s; }
.float-card .card-label {
  position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #121026; font: 700 .8rem var(--font-body); box-shadow: var(--shadow);
}
.float-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-l); font-weight: 700; font-size: .9rem; animation: float 6s ease-in-out infinite;
}
.float-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.float-chip .ic svg { width: 18px; height: 18px; }
.float-chip.c1 { top: 0; inset-inline-end: 4%; animation-delay: -1s; }
.float-chip.c2 { bottom: 4%; inset-inline-start: 6%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { height: 470px; max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .hero-visual { height: 400px; }
  .float-card.phone { width: 190px; height: 380px; inset-inline-start: calc(50% - 95px); }
  .float-card.wp-a { width: 210px; height: 135px; }
  .float-card.wp-b { width: 190px; height: 125px; }
  .float-chip { font-size: .8rem; padding: 8px 12px; }
}

/* ---------- Product cards ------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.card-body { padding: 32px; }
.card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tag { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text-soft); background: var(--bg); }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card-logo { height: 40px; width: auto; margin-bottom: 18px; }
body.dark-theme .card-logo.invert-dark { filter: brightness(0) invert(1); }

/* Featured app card (Hacı) */
.card-feature { grid-column: span 12; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 460px; background: linear-gradient(160deg, #fff7ef 0%, #fde9d6 100%); border-color: #f1d9c3; }
body.dark-theme .card-feature { background: linear-gradient(160deg, #2a1f2c 0%, #1b1530 100%); border-color: #3a2c43; }
.card-feature .card-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.card-feature .app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 24px -10px rgba(74, 59, 59, .6); flex: none; }
.card-feature h3 { font-size: 2rem; margin: 0; }
.card-feature .app-sub { color: var(--text-soft); font-weight: 600; }
.card-feature .phones { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 40px 24px 0; }
.card-feature .phones .phone-frame { width: 200px; margin-inline: -18px; }
.card-feature .phones .phone-frame:nth-child(2) { width: 230px; z-index: 2; margin-bottom: 26px; }
.card-wp { grid-column: span 6; }
.card-wp .media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.card-wp .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.card-wp:hover .media img { transform: scale(1.04); }
@media (max-width: 900px) {
  .card-feature { grid-template-columns: minmax(0, 1fr); }
  .card-feature .card-body { padding: 32px; }
  .card-feature .phones { overflow: hidden; padding-top: 8px; }
  .card-feature .phones .phone-frame { width: 34%; max-width: 200px; margin-inline: -10px; }
  .card-feature .phones .phone-frame:nth-child(2) { width: 40%; max-width: 230px; }
  .card-wp { grid-column: span 12; }
}

/* Phone frame */
.phone-frame { position: relative; border-radius: 34px; padding: 8px; background: #1b1830; box-shadow: var(--shadow-l); }
.phone-frame::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 16px; border-radius: 10px; background: #1b1830; z-index: 2; }
.phone-frame img { border-radius: 26px; aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: cover; background: #fff7ef; }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255, 143, 112, .16); color: #c4502f; }
body.dark-theme .status { color: #ffab93; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Principles --------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle { padding: 28px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.principle .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-ink); margin-bottom: 18px; }
.principle .ic svg { width: 24px; height: 24px; }
.principle h4 { font-size: 1.15rem; margin-bottom: 8px; }
.principle p { color: var(--text-soft); font-size: .95rem; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: 64px 48px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 640px; }
.cta-band p { opacity: .9; margin-top: 10px; max-width: 560px; }
.cta-band .btn-light { background: #fff; color: #2a1660; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .12); inset-inline-end: -120px; top: -160px; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 56px 0 32px; }
.footer-grid h5 { font-family: var(--font-heading); font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-soft); font-size: .95rem; transition: color .2s; }
.footer-grid a:hover { color: var(--brand-ink); }
.footer-about p { color: var(--text-soft); margin-top: 14px; max-width: 340px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: span 2; } }

/* ---------- Reveal animation -------------------------------------------- */
/* Only hidden when JS runs (html.js), so content is never lost without JavaScript */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Slider (WordPress screenshots) ------------------------------ */
.mini-slider { position: relative; overflow: hidden; }
.mini-slider .track { display: flex; transition: transform .6s var(--ease); height: 100%; }
.mini-slider .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
html[dir="rtl"] .mini-slider .track { flex-direction: row-reverse; }

/* ---------- Lightbox ----------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(8, 6, 20, .9); padding: 24px; }
.lightbox.active { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox .lb-close { top: 20px; inset-inline-end: 20px; }
.lightbox .lb-prev { inset-inline-start: 20px; top: 50%; }
.lightbox .lb-next { inset-inline-end: 20px; top: 50%; }

/* ---------- Support modal ------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 20, .6); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-panel { position: relative; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); animation: pop .35s var(--ease); }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
.modal-head { padding: 32px 32px 0; }
.modal-head h2 { font-size: 1.8rem; margin-bottom: 6px; }
.modal-head p { color: var(--text-soft); }
.modal-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; padding: 24px 32px 32px; }
.contact-list { list-style: none; display: grid; gap: 12px; align-content: start; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-soft); }
.contact-list .ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; }
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list small { display: block; color: var(--text-faint); font-weight: 600; }
.contact-list a, .contact-list span { font-weight: 600; word-break: break-word; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.error input, .field.error textarea { border-color: #e5484d; }
.file-drop { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--text-soft); font-size: .9rem; }
.file-drop.highlight { border-color: var(--brand); background: var(--bg-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-status { font-size: .92rem; font-weight: 600; border-radius: 12px; }
.form-status.success { padding: 12px 14px; background: rgba(48, 164, 108, .14); color: #1f8a57; }
.form-status.error { padding: 12px 14px; background: rgba(229, 72, 77, .12); color: #d13438; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 760px) { .modal-grid { grid-template-columns: 1fr; padding: 20px; } .modal-head { padding: 28px 20px 0; } }

/* ---------- Page hero (inner pages) ------------------------------------- */
.page-hero { padding: 72px 0 40px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; margin: 16px 0 12px; }
.page-hero p { color: var(--text-soft); font-size: 1.15rem; max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-faint); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--brand-ink); }

/* ---------- Apps grid ---------------------------------------------------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.app-tile { display: flex; flex-direction: column; padding: 28px; gap: 16px; }
.app-tile .row { display: flex; align-items: center; gap: 16px; }
.app-tile h3 { font-size: 1.35rem; margin: 0; }
.app-tile .platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.app-tile .platforms .tag { display: inline-flex; align-items: center; gap: 6px; }
.app-tile .platforms svg { width: 14px; height: 14px; flex: none; }
.app-tile.placeholder { border-style: dashed; background: transparent; box-shadow: none; align-items: flex-start; justify-content: center; color: var(--text-soft); }

/* ---------- Legal pages -------------------------------------------------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 96px; display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.legal-toc a { padding: 8px 12px; border-radius: 10px; color: var(--text-soft); font-weight: 600; font-size: .92rem; }
.legal-toc a:hover { background: var(--bg-soft); color: var(--text); }
.legal-body { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 48px; }
.legal-body .meta { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: .92rem; }
.legal-body .meta strong { color: var(--text); }
.legal-body .summary { padding: 18px 20px; border-radius: 16px; background: var(--grad-soft); font-weight: 600; margin-bottom: 32px; }
.legal-body h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-soft); }
.legal-body ul { padding-inline-start: 22px; display: grid; gap: 6px; margin: 8px 0; }
.legal-body a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } .legal-body { padding: 28px 22px; } }

/* ---------- 404 ---------------------------------------------------------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font: 900 clamp(6rem, 20vw, 11rem)/1 var(--font-heading); }

/* Narrow phones: keep the header on one line */
.nav-mobile-only { display: none; }
@media (max-width: 900px) { .site-header.menu-open .nav-mobile-only { display: block; } }
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .header-actions .btn-contact { display: none; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 30px; height: 30px; }
}
