/* ============================================================================
   TakenR — Landing page styles
   Vibrant-blue SaaS theme to match the Flutter app, plus the app boot splash.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --primary-ink: #1d4ed8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 20px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(37, 99, 235, 0.38); transform: translateY(-1px); }

.btn-ghost {
  color: var(--primary-ink);
  background: transparent;
  border: 1.5px solid rgba(37, 99, 235, 0.30);
}
.btn-ghost:hover { background: rgba(37, 99, 235, 0.06); }

.btn-light {
  color: var(--primary-ink);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
.btn-light:hover { transform: translateY(-1px); }

.linklike {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft); font: inherit; padding: 0;
}
.linklike:hover { color: var(--primary-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw); margin: 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.brand-fallback {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 800;
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--primary-ink); }
.nav-cta { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 56px 24px 32px; }
.hero + .band { padding-top: 36px; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-ink);
  background: rgba(37, 99, 235, 0.10); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -1.2px;
  margin: 0 0 18px; font-weight: 800;
  background: linear-gradient(135deg, #0f172a 25%, #1e3a8a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(16px, 2.1vw, 20px); color: var(--ink-soft); max-width: 680px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: 1;
  background:
    radial-gradient(circle at 25% 30%, rgba(37, 99, 235, 0.16), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.16), transparent 45%);
  filter: blur(8px); pointer-events: none;
}

/* ---------- Sections ---------- */
.band { padding: 72px 0; }
.band-tint { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.6px; margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .use, .feat, .step, .price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.card { text-align: center; box-shadow: var(--shadow); }
.card .ic, .use-ic { font-size: 30px; }
.card h3, .use h3, .feat h3, .step h3 { font-size: 18px; margin: 12px 0 8px; letter-spacing: -0.2px; }
.card p, .use p, .feat p, .step p { color: var(--ink-soft); margin: 0; font-size: 15px; }

.use { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05); }
a.use { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.use:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08); }
.use-ic { display: inline-block; margin-bottom: 6px; }

.feature-grid .feat { border-left: 3px solid transparent; transition: border-color .15s ease, transform .15s ease; }
.feature-grid .feat:hover { border-left-color: var(--primary); transform: translateY(-2px); }

/* Steps */
.steps .step { text-align: center; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 18px;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-bottom: 10px;
}

/* Pricing */
.pricing .price-card { text-align: center; position: relative; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--primary); transform: translateY(-6px); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.price-card .badge-alt { background: linear-gradient(135deg, #16a34a, #22c55e); }
.orig { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
.orig s { margin-right: 8px; }
.save { color: #16a34a; font-weight: 700; }
.offer { color: #16a34a; font-weight: 600; font-size: 13px; margin: 0 0 16px; }
.price { margin: 14px 0 4px; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.price .per { color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.price-card li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* FAQ */
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 700; list-style: none; color: var(--ink); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--primary); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: 12px 0 2px; }

/* Final CTA */
.cta-band { padding: 70px 0; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), #1e3a8a); }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 8px; font-weight: 800; }
.cta-band p { margin: 0 0 24px; opacity: .92; }

/* Footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer .brand-name { color: #fff; }
.footer-brand p { margin: 6px 0 0; max-width: 320px; font-size: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a, .footer-links .linklike { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-links a:hover, .footer-links .linklike:hover { color: #fff; }
.copy { width: 100%; color: #64748b; font-size: 13px; margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .price-card.featured { transform: none; }
  .hero { padding: 40px 16px 24px; }
  .hero + .band { padding-top: 24px; }
  .band { padding: 44px 0; }
}

/* ============================================================================
   APP BOOT SPLASH (used by #loading-screen, shown only while Flutter boots)
   ========================================================================== */
.loading-container {
  position: fixed; inset: 0;
  display: flex; justify-content: center; align-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 45%),
    #f8fafc;
  z-index: 99999; opacity: 1; transition: opacity 0.5s ease-in-out;
}
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 24px;
  padding: 48px 40px; width: 90%; max-width: 380px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.logo-wrapper {
  width: 100px; height: 100px; margin-bottom: 28px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 24px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  animation: pulse 2s ease-in-out infinite; overflow: hidden;
}
.logo-img { width: 80%; height: 80%; object-fit: contain; border-radius: 8px; }
.logo-text { font-size: 32px; font-weight: 800; color: var(--primary); }
.app-title {
  margin: 0; font-size: 32px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.app-subtitle { margin: 8px 0 32px; font-size: 14px; color: #64748b; letter-spacing: 0.5px; }
.progress-bar-container {
  position: relative; width: 100%; height: 6px; background: rgba(15, 23, 42, 0.06);
  border-radius: 10px; overflow: hidden; margin-bottom: 16px;
}
.progress-bar-fill {
  position: absolute; height: 100%; width: 50%; border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  animation: loading-progress 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}
.loading-status { font-size: 12px; color: #64748b; letter-spacing: 0.5px; animation: breathe 2.5s ease-in-out infinite; }

@keyframes pulse { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.08); filter: brightness(1.05); } }
@keyframes loading-progress { 0% { left: -50%; width: 30%; } 50% { width: 40%; } 100% { left: 110%; width: 20%; } }
@keyframes breathe { 0%,100% { opacity: 0.5; } 50% { opacity: 0.95; } }

@media (max-width: 480px) {
  .glass-card { padding: 32px 24px; border-radius: 20px; }
  .logo-wrapper { width: 80px; height: 80px; margin-bottom: 20px; border-radius: 18px; }
  .app-title { font-size: 26px; }
  .app-subtitle { font-size: 13px; margin-bottom: 24px; }
}
