/* Launch-x website — tokens mirror mobile-app/src/lib/theme.ts and ui.tsx */
:root {
  --bg: #0A0A0B;
  --card: #151618;
  --card-border: #232428;
  --input: #1D1E21;
  --text: #FFFFFF;
  --muted: #9CA3AF;
  --teal: #2DD4BF;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --ink: #0E1512;
  --amber: #E5C36A;
  --amber-soft: rgba(184, 134, 15, 0.15);
  --secondary: rgba(255, 255, 255, 0.08);
  --r-md: 12px;
  --r-lg: 16px;
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 24px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--s-md); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 var(--s-md); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-lg); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: var(--ink); padding: 8px 14px; border-radius: var(--r-md); z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--secondary); }
.nav .nav-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--card-border);
  background: var(--input); color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.mobile-menu { display: none; border-top: 1px solid var(--card-border); padding: var(--s-md) 0 var(--s-lg); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s-md); padding: 0; display: grid; gap: 2px; }
.mobile-menu a:not(.btn) { display: block; padding: 12px var(--s-md); color: var(--text); text-decoration: none; border-radius: var(--r-md); font-weight: 500; }
.mobile-menu a:not(.btn):hover, .mobile-menu a[aria-current="page"] { background: var(--secondary); }
@media (min-width: 900px) {
  .nav-links, .nav .nav-cta { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* Buttons — Button() in ui.tsx */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 var(--s-xl); border-radius: var(--r-md);
  font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn:active { opacity: 0.8; transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-ghost { background: transparent; color: var(--teal); padding: 0 var(--s-sm); }
.btn-sm { min-height: 40px; padding: 0 var(--s-lg); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-md); }

/* Pills & eyebrow — Pill() in ui.tsx */
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; background: var(--teal-soft); color: var(--teal); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-muted { background: var(--secondary); color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: var(--s-lg); }
.eyebrow img { width: 28px; height: 28px; border-radius: 7px; background: #fff; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.section-head { max-width: 680px; margin-bottom: var(--s-xl); }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 70%); pointer-events: none;
}
.hero .container { position: relative; display: grid; gap: 36px; align-items: center; }
.hero-lead { color: var(--muted); font-size: clamp(1.0625rem, 2.2vw, 1.25rem); max-width: 560px; margin-bottom: var(--s-xl); }
.hero-media { position: relative; }
.hero-media .photo { border-radius: 22px; border: 1px solid var(--card-border); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  background: rgba(21, 22, 24, 0.92); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 10px 14px;
  font-size: 0.875rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge strong { color: var(--teal); font-size: 1.125rem; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-lg); margin-top: var(--s-xl); color: var(--muted); font-size: 0.875rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero .container { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.page-hero { padding: 48px 0 8px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -15%; top: -60%; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0) 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero p { color: var(--muted); font-size: 1.125rem; max-width: 640px; }
.page-hero + section { padding-top: 32px; }

/* Cards — Card() in ui.tsx */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-sm); }
@media (min-width: 640px) { .card { padding: var(--s-xl); } }
.card p { margin: 0; }
.card .muted { font-size: 0.9375rem; }
.grid { display: grid; gap: var(--s-md); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid { gap: var(--s-lg); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.tile { text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.tile:hover { text-decoration: none; border-color: rgba(45, 212, 191, 0.5); transform: translateY(-2px); }
.tile .icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: var(--s-sm); }
.tile .icon svg { width: 22px; height: 22px; }
.tile .from { margin-top: auto; padding-top: var(--s-sm); color: var(--teal); font-weight: 600; font-size: 0.9375rem; }

.media-card { padding: 0; overflow: hidden; }
.media-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.media-card .body { padding: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-sm); flex: 1; }
@media (min-width: 640px) { .media-card .body { padding: var(--s-xl); } }
.media-card .body .btn-row { margin-top: auto; padding-top: var(--s-sm); }

/* Price cards */
.price { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 0; }
.price small { font-size: 0.9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-sm); }
.plan.featured { border-color: rgba(45, 212, 191, 0.55); box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25), 0 20px 60px -30px rgba(45, 212, 191, 0.45); }
.checks { list-style: none; padding: 0; margin: var(--s-sm) 0 var(--s-md); display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232DD4BF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan .btn { margin-top: auto; }
.terms { display: grid; gap: 8px; margin: var(--s-sm) 0 var(--s-md); }
.term { display: flex; justify-content: space-between; align-items: center; gap: var(--s-md); background: var(--input); border: 1px solid var(--card-border); border-radius: var(--r-md); padding: 10px 14px; font-size: 0.9375rem; }
.term strong { font-size: 1.0625rem; }

/* Split feature rows */
.split { display: grid; gap: var(--s-xl); align-items: center; }
.split img { border-radius: 20px; border: 1px solid var(--card-border); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-sm); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--card-border); background: var(--card); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(10, 10, 11, 0.8); padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }
  .gallery .wide { grid-column: span 2; grid-row: span 2; }
  .gallery .wide img { aspect-ratio: auto; }
}

/* App section */
.app-band { background: linear-gradient(180deg, rgba(45, 212, 191, 0.06), rgba(45, 212, 191, 0) 60%); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.app-grid { display: grid; gap: 40px; align-items: center; }
.phones { display: flex; gap: var(--s-md); justify-content: center; }
.phones img { width: 46%; max-width: 240px; border-radius: 22px; border: 1px solid var(--card-border); box-shadow: 0 30px 80px -40px rgba(45, 212, 191, 0.5); }
.phones img:nth-child(2) { transform: translateY(28px); }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; min-height: 52px;
  border-radius: var(--r-md); border: 1px solid #3a3b40; background: #000; color: var(--text); text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 0.6875rem; color: var(--muted); }
.store-badge b { font-size: 1.0625rem; font-weight: 600; }
.store-badge .pill { margin-left: 4px; }

/* Review */
.quote { font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.5; margin: 0; }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1.125rem; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-md); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 700; margin-bottom: var(--s-sm); }

/* Info list (contact) */
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--card-border); }
.info li:last-child { border-bottom: 0; }
.info svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.info b { display: block; font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-lg); filter: grayscale(0.2) contrast(1.05); background: var(--card); }
@media (min-width: 900px) { .map { aspect-ratio: auto; height: 100%; min-height: 420px; } }

/* FAQ */
.faq { display: grid; gap: var(--s-sm); }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 0 var(--s-lg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .card { align-items: center; padding: 40px var(--s-lg); background: radial-gradient(ellipse at top, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0) 70%), var(--card); }
.cta-band p { color: var(--muted); max-width: 560px; }
.cta-band .btn-row { justify-content: center; }

/* Notice */
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-soft); color: var(--text); border-radius: var(--r-md); padding: 12px 14px; font-size: 0.9375rem; }
.notice svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 48px 0 32px; color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: var(--s-md); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.socials { display: flex; gap: var(--s-sm); margin-top: var(--s-md); }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--secondary); color: var(--text); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--card-border); display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-lg); justify-content: space-between; font-size: 0.8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 640px) { .grid .span-2 { grid-column: span 2; } }

/* ---------- Call-now banner ---------- */
.call-bar { background: linear-gradient(90deg, #2DD4BF, #5EEAD4 50%, #2DD4BF); background-size: 200% 100%; animation: call-shine 8s linear infinite; }
.call-link { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; min-height: 52px; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: clamp(1.0625rem, 2.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.call-link strong { font-weight: 800; white-space: nowrap; }
.call-link:hover { text-decoration: none; }
.call-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.call-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: var(--teal); animation: phone-ring 3.2s ease-in-out infinite; }
.call-icon svg { width: 18px; height: 18px; }
@keyframes call-shine { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes phone-ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-16deg); } 78% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 90% { transform: rotate(-4deg); } }

/* ---------- Hover effects ---------- */
.btn { transition: transform .2s ease, box-shadow .2s ease, opacity .15s ease, background-color .2s ease; }
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(45, 212, 191, 0.65); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(0); box-shadow: none; }
.nav-links a { position: relative; transition: color .2s ease, background-color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 18px 40px -20px rgba(45, 212, 191, 0.35); }
.tile .icon { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease; }
.tile:hover .icon { transform: scale(1.12) rotate(-6deg); background: rgba(45, 212, 191, 0.22); }
.split img, .hero-media .photo { transition: transform .5s ease, box-shadow .5s ease; }
.split img:hover, .hero-media .photo:hover { transform: scale(1.02); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.gallery img { transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.07); }
.checks li { transition: transform .2s ease; }
.checks li:hover { transform: translateX(4px); }

/* ---------- Page and scroll animations ---------- */
.hero .container > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .container > *:nth-child(2) { animation-delay: .15s; }
.hero-badge { animation: rise .7s .35s cubic-bezier(.2, .7, .2, 1) both, float 6s 1.2s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
/* Hidden until scrolled into view (only when the script runs; shown anyway after 3s as a safety net). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); animation: reveal-fallback 0s 3s forwards; }
.js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
a.store-badge:hover { text-decoration: none; border-color: var(--teal); }
