/* ===== Brand tokens ===== */
:root {
  --coral: #f0563c;
  --pink: #e8397b;
  --teal: #1fb595;
  --radius: 18px;
  --radius-lg: 28px;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, .08);
  --shadow: 0 8px 30px rgba(0, 0, 0, .07);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient background graphic for public pages: soft colour blobs + faint dot grid */
body.site-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(0,0,0,.05) 1px, transparent 1px),
    radial-gradient(560px 560px at 8% -6%, rgba(240,86,60,.10), transparent 62%),
    radial-gradient(620px 620px at 100% 8%, rgba(31,181,149,.09), transparent 58%),
    radial-gradient(500px 500px at 85% 95%, rgba(232,57,123,.07), transparent 60%),
    radial-gradient(480px 480px at 0% 70%, rgba(240,86,60,.06), transparent 60%);
  background-size: 26px 26px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== Glossy building blocks ===== */
.glossy {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff;
  box-shadow: 0 10px 25px rgba(232,57,123,.3);
}
.btn-primary:hover { color: #fff; }
.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Google Play download badge (official-style linked image) */
.store-badge {
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease;
  line-height: 0;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,.26); }
.store-badge img { display: block; height: 54px; width: auto; border-radius: 12px; }
.store-badge-lg img { height: 64px; }
.store-badge-sm img { height: 42px; }
.store-badge-sm { margin-top: 8px; }

.nav-download {
  background: linear-gradient(180deg, #2b2b2f, #000);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: .88rem !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.nav-download:hover { text-decoration: none; opacity: .88; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 11px; object-fit: cover;
  box-shadow: var(--shadow);
}
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .93rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--text); font-weight: 600; }

/* ===== Hero ===== */
.hero { padding: 90px 0 30px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero .tagline {
  display: inline-block;
  font-size: .82rem;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 3.4rem;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--text);
  font-weight: 800;
}
.hero p.description { color: var(--muted); margin: 0 auto 32px; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 30px; }
.hero-secondary-link {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-secondary-link:hover { color: var(--text); text-decoration: none; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.badge {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 50px 30px 40px;
}
/* Curvy frame around the hero image (image already includes its own device
   mockup/graphic, uploaded via the admin panel). */
.hero-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  padding: 16px;
  border-radius: 40px;
  background: linear-gradient(155deg, rgba(240,86,60,.35), rgba(31,181,149,.35));
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-frame:hover { transform: translateY(-8px); box-shadow: 0 40px 90px rgba(0,0,0,.16); }
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 34px;
  background: var(--panel);
  z-index: 0;
}
.hero-shot-single {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 28px;
}

/* Screenshot lightbox */
.lightbox-img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, .92);
  padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-figure { margin: 0; text-align: center; max-width: 92vw; max-height: 90vh; }
.lightbox-image {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.lightbox-caption { color: #fff; margin-top: 18px; font-size: .95rem; font-weight: 600; opacity: .85; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 2.3rem;
  text-align: center;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.01em;
  font-weight: 800;
}
.section .lead {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 50px;
  font-size: 1.08rem;
}

/* Stats band - simple professional highlight strip, no icon-card grid */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 46px 0;
}
.stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.stat { flex: 1 1 0; min-width: 140px; text-align: center; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--border);
}
.stat-num {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
}

/* Screenshot showcase - alternating image/description rows */
.showcase { display: flex; flex-direction: column; gap: 90px; }
.showcase-row { display: flex; align-items: center; gap: 64px; }
.showcase-row.reverse { flex-direction: row-reverse; }
.showcase-media { flex: 0 0 280px; display: flex; justify-content: center; }
.showcase-media.wide { flex-basis: 440px; }

/* Screenshot frame - images already include their own device mockup
   (uploaded via the admin panel), so we just apply the tilt, nothing else. */
.showcase-media { perspective: 1200px; display: flex; justify-content: center; }
.shot-frame {
  width: 100%;
  max-width: 260px;
  transition: transform .2s ease;
}
.shot-frame.shot-frame-landscape { max-width: 420px; }

/* Modern alternating 3D tilt per row, instead of a flat, uniform frame */
.showcase-row .shot-frame { transform: rotate3d(0, 1, 0, 10deg) rotate(-3deg); }
.showcase-row.reverse .shot-frame { transform: rotate3d(0, 1, 0, -10deg) rotate(3deg); }
.showcase-row .shot-frame.shot-frame-landscape { transform: rotate3d(0, 1, 0, 6deg) rotate(-1.5deg); }
.showcase-row.reverse .shot-frame.shot-frame-landscape { transform: rotate3d(0, 1, 0, -6deg) rotate(1.5deg); }
.showcase-row .shot-frame:hover,
.showcase-row.reverse .shot-frame:hover {
  transform: rotate3d(0, 0, 0, 0deg) translateY(-8px) scale(1.03);
}

.showcase-text { flex: 1 1 auto; }
.showcase-step {
  display: inline-block;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--coral);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.showcase-text h3 { font-size: 1.7rem; margin: 0 0 16px; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.showcase-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.showcase-list li { display: flex; gap: 10px; color: var(--muted); font-size: 1rem; }
.showcase-list li::before { content: "\2713"; color: var(--teal); font-weight: 800; flex-shrink: 0; }

/* CTA section */
.cta-section { text-align: center; }
.cta-section .store-badge { margin-top: 6px; }

/* Content pages (policy pages) */
.page-header {
  background: var(--bg-alt);
  padding: 60px 0 34px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { color: var(--text); margin-bottom: 6px; font-weight: 800; letter-spacing: -.01em; }
.page-header .updated { color: var(--muted); font-size: .9rem; }
.page-content { padding: 56px 0; max-width: 820px; margin: 0 auto; }
.page-content h2 { color: var(--text); margin-top: 36px; font-size: 1.35rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p, .page-content li { color: var(--muted); }
.page-content strong { color: var(--text); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.open .faq-answer { padding: 0 24px 22px; max-height: 500px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s ease; font-size: 1.3rem; color: var(--coral); }

/* Contact form */
.contact-form { max-width: 640px; }
.contact-form .btn-primary { margin-top: 6px; }

/* Chat coming soon */
.chat-card {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  padding: 56px 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.chat-card .icon { font-size: 3.5rem; margin-bottom: 16px; }
.chat-card h1 { color: var(--text); margin-bottom: 10px; }
.chat-card p { color: var(--muted); }
.chat-soon-badge {
  display: inline-block;
  margin-top: 18px;
  background: linear-gradient(135deg, var(--teal), #12876e);
  color: #fff;
  padding: 7px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Error pages (404 / 403 / 500) */
.error-page { text-align: center; padding: 90px 20px 110px; }
.error-code {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.error-page h1 { color: var(--text); margin-bottom: 10px; }
.error-page .lead { color: var(--muted); max-width: 480px; margin: 0 auto 26px; }

/* Floating chat widget */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 900; }
.chat-widget-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.chat-widget-toggle:hover { transform: scale(1.06); }
.chat-widget-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 300px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-widget.open .chat-widget-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-widget-header {
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-widget-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-widget-body { padding: 18px; }
.chat-widget-body p { color: var(--muted); margin: 0 0 16px; font-size: .92rem; }
.chat-widget-link { display: block; text-align: center; }
@media (max-width: 480px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-widget-panel { width: calc(100vw - 32px); right: -8px; }
}

/* Footer */
.site-footer { background: #fafafa; color: var(--muted); padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; }
.footer-brand p { margin: 4px 0; color: var(--text); font-weight: 700; }
.footer-tagline { color: var(--muted) !important; font-weight: 400 !important; font-size: .9rem; margin-bottom: 14px !important; }
.footer-links h4 { color: var(--text); margin-bottom: 14px; font-size: .88rem; letter-spacing: .03em; text-transform: uppercase; }
.footer-links a { display: block; color: var(--muted); margin-bottom: 9px; font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding: 22px 0; font-size: .85rem; color: #9a9a9e; }

/* ===== Admin ===== */
.admin-body { background: var(--bg-alt); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #1d1d1f, #000);
  color: #fff;
  padding: 26px 0;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.admin-sidebar .brand-name { color: #fff; }
.admin-sidebar a {
  display: block;
  padding: 12px 26px;
  color: #b7bac6;
  font-weight: 500;
  font-size: .95rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 32px 42px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-breadcrumb { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.admin-topbar h2 { margin: 0; }
.admin-topbar-user { display: flex; align-items: center; gap: 12px; }
.admin-user-chip {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.admin-main > form:last-child,
.admin-main > .card:last-child { margin-bottom: 0; }
.admin-footer {
  margin-top: auto;
  padding: 22px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.card h2 { margin-top: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 160px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.current-image { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.current-image img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 600px at 80% 0%, rgba(240,86,60,.08), transparent 60%), var(--bg-alt); }
.login-card { background: var(--panel); padding: 42px; border-radius: 20px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.login-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 6px; color: var(--text); }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: .9rem; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }
.alert-error { background: #fdecea; color: #c0392b; }
.alert-success { background: #eafaf1; color: #1e8449; }
.faq-admin-item { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 16px; margin-bottom: 14px; position: relative; }
.faq-remove { position: absolute; top: 12px; right: 12px; background: #fdecea; color: #c0392b; border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: .8rem; }
.toggle-row { display: flex; align-items: center; gap: 10px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px 20px;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .showcase-row, .showcase-row.reverse { flex-direction: column; gap: 32px; }
  .showcase { gap: 56px; }

  /* Reset flex-basis to auto so portrait/landscape frames keep their real
     aspect ratio once rows stack vertically (flex-basis controls the
     vertical axis in column layout, not width). */
  .showcase-media { flex: 0 0 auto; width: 220px; }
  .showcase-media.wide { flex: 0 0 auto; width: 100%; max-width: 320px; }

  .stat + .stat::before { display: none; }
  .stats-row { justify-content: center; text-align: center; }
}
