/* ==========================================================================
   Reloop Mobile — Marketing pages
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -6%, rgba(22, 179, 116, 0.16), transparent 62%),
    radial-gradient(900px 480px at 8% 8%, rgba(10, 125, 71, 0.2), transparent 58%),
    linear-gradient(170deg, var(--ink-950) 0%, var(--ink-900) 48%, #080c14 100%);
  color: #fff;
  padding-block: clamp(56px, 8vw, 108px) clamp(64px, 9vw, 120px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 10%, transparent 76%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  margin-bottom: var(--s-6);
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}
.hero__badge .dot { color: var(--green-400); }
.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: var(--s-5);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--cyan-400), var(--blue-400) 60%, #a7f3cd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.68);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero__meta .stat__value { color: #fff; }
.hero__meta .stat__label { color: rgba(255, 255, 255, 0.55); }

/* Hero visual */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.hero__device {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 4 / 4.4;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #131a26, #0a0e16);
  box-shadow: var(--shadow-dark);
}
.hero__device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}
.hero__float {
  position: absolute;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 24, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-dark);
  animation: floaty 7s var(--ease-in-out) infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
.hero__float--value { top: 8%; left: -6%; }
.hero__float--trust { bottom: 10%; right: -4%; animation-delay: 1.4s; }
@media (max-width: 620px) {
  .hero__float--value { left: -2%; top: 2%; }
  .hero__float--trust { right: -2%; }
  .hero__float { padding: 12px 14px; }
}
.hero__float .k {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero__float .v {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-top: 3px;
}
.hero__float .v small { font-size: 0.6em; color: var(--cyan-400); font-weight: 650; }

/* Mini device row (hero secondary visual) */
.device-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
}
.device-chip {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 74px;
  padding: 12px 6px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--fs-2xs);
  font-weight: 650;
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}
.device-chip svg { color: var(--cyan-400); }

/* --- Marquee ------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg);
  padding-block: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 680;
  color: var(--grey-400);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--t-base) var(--ease-out);
}
.marquee__item:hover { color: var(--ink-800); }

/* --- Trust cards --------------------------------------------------------- */
.trust-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1060px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Steps (how it works) ------------------------------------------------ */
.step-cards {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: stepcard;
}
@media (max-width: 1060px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .step-cards { grid-template-columns: minmax(0, 1fr); } }
.step-card {
  position: relative;
  padding-top: 46px;
}
.step-card__num {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--grey-150);
  line-height: 1;
}

.step-row {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  padding-block: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
}
.step-row:last-child { border-bottom: 0; }
.step-row:nth-child(even) .step-row__visual { order: -1; }
@media (max-width: 900px) {
  .step-row { grid-template-columns: minmax(0, 1fr); }
  .step-row:nth-child(even) .step-row__visual { order: 0; }
}
.step-row__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
}
.step-row__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: var(--s-7);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 240px at 75% 0%, rgba(10, 125, 71, 0.1), transparent 65%),
    var(--bg-subtle);
  overflow: hidden;
}
.step-row__visual svg { color: var(--ink-700); }
.step-row__checks { display: grid; gap: 10px; margin-top: var(--s-5); }
.step-row__checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.step-row__checks svg { color: var(--green-600); flex: none; margin-top: 3px; }

/* --- Feature split ------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split--media-first .split__media { order: -1; }
@media (max-width: 900px) {
  .split--media-first .split__media { order: 0; }
}
.split__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.feature-list { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.feature-list li { display: flex; gap: var(--s-4); }
.feature-list__text h4 { margin-bottom: 3px; }
.feature-list__text p { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Stat band ----------------------------------------------------------- */
.stat-band {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
@media (max-width: 800px) { .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Why cards ----------------------------------------------------------- */
.why-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.why-grid .card--wide { grid-column: span 2; }
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid .card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid .card--wide { grid-column: span 1; }
}
.card--ink {
  background: linear-gradient(155deg, var(--ink-950), var(--ink-800));
  border-color: transparent;
  color: var(--text-on-dark);
}
.card--ink h3 { color: #fff; }
.card--ink p { color: rgba(255, 255, 255, 0.66); }
.card--accent {
  background: linear-gradient(150deg, var(--blue-700), var(--blue-500) 55%, var(--cyan-600));
  border-color: transparent;
  color: #fff;
}
.card--accent h3 { color: #fff; }
.card--accent p { color: rgba(255, 255, 255, 0.86); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(34px, 5.4vw, 68px);
  background:
    radial-gradient(760px 340px at 88% 0%, rgba(22, 179, 116, 0.26), transparent 60%),
    radial-gradient(640px 340px at 4% 100%, rgba(10, 125, 71, 0.3), transparent 62%),
    linear-gradient(140deg, var(--ink-950), var(--ink-850));
  color: #fff;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p {
  max-width: 56ch;
  margin: var(--s-4) auto 0;
  color: rgba(255, 255, 255, 0.68);
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-7);
}

/* --- FAQ ---------------------------------------------------------------- */
.faq-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
}
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }
.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
@media (max-width: 900px) { .faq-aside { position: static; } }

/* --- Page header --------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 84px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(760px 320px at 88% -30%, rgba(22, 179, 116, 0.13), transparent 62%),
    radial-gradient(700px 340px at 0% 0%, rgba(10, 125, 71, 0.14), transparent 60%),
    var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { max-width: 22ch; }
.page-head p { max-width: 62ch; margin-top: var(--s-4); }

/* --- Track -------------------------------------------------------------- */
.track-layout {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}
@media (max-width: 940px) { .track-layout { grid-template-columns: minmax(0, 1fr); } }
.track-panel {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.track-result { display: grid; gap: var(--s-6); animation: rise 480ms var(--ease-out) both; }
.track-summary {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.track-demo-hint {
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.track-demo-hint code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text);
}

/* --- About -------------------------------------------------------------- */
.about-hero {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
@media (max-width: 900px) { .about-hero { grid-template-columns: minmax(0, 1fr); } }
.about-figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3.2;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-lg);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.value-list { display: grid; gap: var(--s-5); }
.value-item {
  display: flex;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- Support ------------------------------------------------------------ */
.support-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- 404 ---------------------------------------------------------------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 62dvh;
  text-align: center;
  padding-block: var(--s-11);
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Customer account setup notice ------------------------------------- */
.account-page {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: center;
  padding-block: clamp(36px, 7vw, 84px);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(22, 179, 116, 0.09), transparent 62%),
    var(--bg-subtle);
}
.account-page__inner { display: grid; justify-items: center; }
.account-card {
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xl);
}
.account-card > .icon-tile { margin-bottom: 2px; }
.account-card h1 { max-width: 17ch; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.55rem); }
.account-card h2 { margin-top: 8px; font-size: 1.05rem; }
.account-card__lead { color: var(--text-muted); line-height: var(--lh-relaxed); }
.account-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c4e8d4;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: #075c37;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.account-status svg { flex: none; margin-top: 1px; }
.account-requirements { display: grid; gap: 10px; padding-left: 20px; color: var(--text-muted); font-size: var(--fs-sm); }
.account-requirements li { padding-left: 3px; line-height: var(--lh-relaxed); }
.account-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 520px) {
  .account-card__actions { display: grid; }
  .account-card__actions .btn { width: 100%; }
}

/* --- Customer authentication (signup / login / reset) ------------------ */
.auth-shell {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 32px);
  background:
    radial-gradient(820px 420px at 88% 0%, rgba(22, 179, 116, 0.1), transparent 60%),
    radial-gradient(680px 380px at 6% 100%, rgba(15, 154, 87, 0.08), transparent 62%),
    var(--bg-subtle);
}
.auth-card {
  display: grid;
  gap: 16px;
  width: min(462px, 100%);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xl);
}
.auth-card > .icon-tile { margin-bottom: 2px; }
.auth-card h1 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem); }
.auth-card__lead { color: var(--text-muted); line-height: var(--lh-relaxed); }
.auth-card__body { display: grid; gap: 16px; }
.auth-card__foot {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}
.auth-card__foot a,
.auth-card__link { color: var(--blue-600); font-weight: 600; }
.auth-card__foot a:hover,
.auth-card__link:hover { text-decoration: underline; }
.auth-card__link { font-size: var(--fs-sm); }

/* Inline form feedback shared by every account form. */
.form-status { display: none; font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.form-status.is-busy,
.form-status.is-error,
.form-status.is-success { display: block; }
.form-status.is-busy { color: var(--text-muted); }
.form-status.is-error { color: var(--red-600); }
.form-status.is-success { color: var(--blue-700); }

/* --- Customer account dashboard ---------------------------------------- */
.account-page__inner--wide {
  justify-items: stretch;
  gap: clamp(20px, 3vw, 32px);
  max-width: min(1080px, var(--page-max));
}
.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.account-head__text { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.account-head__text h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.account-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }

.account-grid { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .account-grid {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}
.account-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.account-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.account-panel__head h2 { font-size: 1.1rem; }

.booking-list { display: grid; gap: 14px; }
.booking-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-subtle);
}
.booking-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.booking-card__ref { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.01em; color: var(--text-strong); }
.booking-card__meta { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.booking-card__stat { display: grid; gap: 2px; }
.booking-card__stat strong { color: var(--text-strong); font-size: var(--fs-sm); }
.booking-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
