/* RoyalHands — Coming Soon
   Standalone static page. No build step, no framework.
   Mobile-first friendly: fluid type, sensible breakpoints at 1024 / 760 / 560 / 400. */

:root {
  --bg-top: #0a1f3b;
  --bg-bottom: #050e1e;
  --blue: #2f80ed;
  --blue-text: #3b8bf5;
  --blue-hover: #3d8bf7;
  --card: rgba(19, 42, 74, 0.45);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #9fb0c3;
  --muted-dim: #7f92a8;
  --gold: #d8a24a;
  --pink: #e0457b;
  --radius: 14px;
  --page-pad: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 60% -5%, rgba(47, 128, 237, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, #071733 45%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { -webkit-tap-highlight-color: rgba(47, 128, 237, 0.25); }

/* Full-viewport light-flash backdrop — fixed, so page content scrolls over a
   stationary glow (same treatment as the main RoyalHands app). */
.flash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("assets/flash.png") center top / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px) var(--page-pad) 40px;
}

/* ---------- Header ---------- */
.site-header { margin-bottom: clamp(16px, 4vw, 44px); }
.logo { height: clamp(44px, 6vw, 60px); width: auto; }
.logo-link { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 440px;
}

.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 6.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--blue-text); }

.accent-rule {
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  margin: clamp(18px, 3vw, 26px) 0 clamp(16px, 3vw, 22px);
}

.lead {
  margin: 0 0 clamp(20px, 3vw, 26px);
  max-width: 440px;
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}

/* Email capture */
.notify {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  padding: 6px 6px 6px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.notify .field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: var(--blue-text);
}
.notify .field svg { flex-shrink: 0; }
.notify input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 16px; /* 16px avoids iOS Safari zoom-on-focus */
}
.notify input::placeholder { color: #8395a9; }
.notify button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.1s ease;
}
.notify button:hover { background: var(--blue-hover); }
.notify button:active { transform: translateY(1px); }
.notify button:disabled { cursor: default; }
.notify button:disabled:not(.is-success) { opacity: 0.7; }

/* Success state — button goes green with an animated tick */
.notify button.is-success,
.notify button.is-success:hover {
  background: #16a34a;
}
.btn-tick {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: btn-tick-draw 0.4s 0.06s ease forwards;
}
.btn-spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-tick-draw { to { stroke-dashoffset: 0; } }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.fineprint {
  margin: 14px 0 0;
  font-size: clamp(12px, 3.2vw, 13px);
  color: var(--muted-dim);
  min-height: 1.4em;
  transition: color 0.2s ease;
}
.fineprint.is-success {
  color: #57d998;
  font-weight: 600;
  font-size: clamp(13px, 3.6vw, 15px);
  animation: status-pop 0.4s ease;
}
.fineprint.is-success::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: -4px;
}
.fineprint.is-error { color: #ff8a8a; }
@keyframes status-pop {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero-art img {
  width: 100%;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.4));
}

/* ---------- Feature callouts ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.4vw, 14px);
  margin-top: clamp(28px, 5vw, 44px);
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 24px) 14px 18px;
  text-align: center;
}
.feature-card svg {
  width: 36px;
  height: 36px;
  color: var(--blue);
}
.feature-card h3 {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
}
.feature-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Section head ---------- */
.section-head,
.providers-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(44px, 8vw, 72px) 0 0;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}
.section-head { font-size: clamp(19px, 5vw, 28px); letter-spacing: 0.01em; }
.providers-head { font-size: clamp(13px, 3.4vw, 15px); letter-spacing: 0.12em; margin-top: clamp(40px, 7vw, 60px); }
.section-head .accent,
.providers-head .accent { color: var(--blue-text); }
.section-head .rule,
.providers-head .rule {
  height: 2px;
  width: clamp(24px, 6vw, 46px);
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head .rule:last-child,
.providers-head .rule:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.section-sub {
  margin: 14px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.6vw, 14px);
  margin-top: clamp(20px, 3vw, 28px);
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px 10px 16px;
  text-align: center;
}
.cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.cat-card h3 {
  margin: 10px 0 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cat-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Providers ---------- */
.provider-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(8px, 1.4vw, 12px);
  margin-top: clamp(16px, 3vw, 22px);
}
.provider-chip {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #cdd8e6;
}
.provider-chip img {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
/* Name is the fallback: hidden while the logo image is present, shown if it
   failed to load (main.js adds .no-logo) or on the "And More" chip. */
.provider-chip .provider-name { display: none; }
.provider-chip.no-logo .provider-name,
.provider-chip.more .provider-name { display: block; }
.provider-chip.more { color: var(--blue-text); }

/* ---------- Payments ---------- */
.payment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.6vw, 26px);
  margin-top: 18px;
  padding: clamp(16px, 3vw, 20px) clamp(14px, 3vw, 22px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.payment-row img {
  height: clamp(22px, 5vw, 26px);
  width: auto;
  max-width: 68px;
  object-fit: contain;
}
.payment-row .pay-bank {
  height: clamp(22px, 5vw, 26px);
  width: clamp(22px, 5vw, 26px);
  color: #a06bd6;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(44px, 8vw, 72px); }
.footer-top {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}
.footer-top .logo { height: 46px; }
.rg-text { flex: 1; min-width: 0; }
.rg-strong {
  margin: 0 0 4px;
  font-size: clamp(13.5px, 3.6vw, 15px);
  font-weight: 600;
}
.rg-sub {
  margin: 0;
  font-size: clamp(12px, 3.2vw, 13px);
  color: var(--muted);
}
.rg-sub a { color: var(--gold); text-decoration: none; }
.rg-sub a:hover { text-decoration: underline; }
.badge-18 {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  font-size: clamp(12px, 3.2vw, 12.5px);
  color: var(--muted);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-bottom nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}
.footer-bottom nav a:hover { color: #fff; }

/* ---------- Coming-soon footer (Figma node 71:363) ---------- */
.coming-soon-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 34px);
}
.cs-footer-logo { text-align: center; }
.cs-footer-logo img {
  height: clamp(56px, 9vw, 74px);
  width: auto;
  display: inline-block;
}

.cs-footer-rg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.cs-footer-rg-copy { flex: 1 1 320px; min-width: 0; }
.cs-footer-rg-strong {
  margin: 0 0 6px;
  font-size: clamp(18px, 3.6vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.cs-footer-rg-sub {
  margin: 0;
  font-size: clamp(14px, 3vw, 16px);
  color: #fff;
}
.cs-footer-rg-sub a { color: inherit; text-decoration: none; }
.cs-footer-rg-sub a:hover { text-decoration: underline; }

.cs-footer-rg-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.cs-rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 26px;
  border-radius: 27.5px;
  background: #fff;
  color: #2670dc;
  font-size: clamp(15px, 3vw, 19px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset -2px -2px 4px 0 #e9f3ff, inset 2px 2px 4px 0 #e9f3ff;
  transition: box-shadow 0.14s ease, transform 0.1s ease;
}
.cs-rg-btn:hover {
  box-shadow: inset -2px -2px 4px 0 #e9f3ff, inset 2px 2px 4px 0 #e9f3ff,
    0 4px 16px rgba(38, 112, 220, 0.28);
}
.cs-rg-btn:active { transform: translateY(1px); }
.cs-badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  min-width: 66px;
  padding: 0 16px;
  border-radius: 27.5px;
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
}

.cs-footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(32px, 6vw, 64px);
  align-items: start;
}
.cs-footer-disclaimer p {
  margin: 0 0 14px;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.6;
  color: #606060;
}
.cs-footer-disclaimer p:last-child { margin-bottom: 0; }
.cs-footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 15px clamp(32px, 6vw, 56px);
  align-content: start;
}
.cs-footer-links a {
  color: #aebebe;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-footer-links a:hover { color: #fff; }

@media (max-width: 760px) {
  .cs-footer-rg { justify-content: center; text-align: center; }
  .cs-footer-rg-copy { flex-basis: 100%; }
  .cs-footer-legal { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cs-footer-rg-actions { flex-wrap: wrap; justify-content: center; }
  .cs-footer-links { gap: 12px 28px; }
}

/* ============ Responsive ============ */

/* Tablet — hero stacks, grids tighten */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    gap: 8px;
  }
  .hero-copy { order: 2; display: flex; flex-direction: column; align-items: center; }
  .hero-art { order: 1; justify-self: center; max-width: 340px; margin-bottom: 4px; }
  .accent-rule { align-self: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .notify { margin: 0 auto; }
  .fineprint { text-align: center; }

  .features { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .provider-row { grid-template-columns: repeat(4, 1fr); }
}

/* Large phone */
@media (max-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .provider-row { grid-template-columns: repeat(3, 1fr); }

  .footer-top {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .rg-text { flex-basis: 100%; order: 3; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom nav { justify-content: center; }
  .copyright { flex-basis: 100%; }
}

/* Phone */
@media (max-width: 560px) {
  .hero-art { max-width: 260px; }
  .hero-title { font-size: clamp(26px, 8vw, 34px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-row { grid-template-columns: repeat(2, 1fr); }

  .notify {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 12px;
    gap: 10px;
  }
  .notify .field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 11px 16px;
  }
  .notify button { width: 100%; }

  .section-head .rule,
  .providers-head .rule { display: none; }

  .payment-row { gap: 14px 18px; }
}

/* Small phone */
@media (max-width: 400px) {
  .features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-card { padding: 16px 10px; }
  .cat-card p { display: none; }        /* keep tiny screens from getting long */
  .provider-chip { min-height: 56px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn-tick { animation: none; stroke-dashoffset: 0; }
  .btn-spin { animation-duration: 1.2s; }
  .fineprint.is-success { animation: none; }
}

/* ============ Legal / policy pages ============ */
.policy {
  max-width: 820px;
  margin: 0;
  text-align: left;
}
.policy-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--blue-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.policy-back:hover { text-decoration: underline; }

.policy h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.policy h2 {
  margin: 2.4em 0 0.7em;
  padding-top: 1.1em;
  border-top: 1px solid var(--card-border);
  font-size: clamp(17px, 3.6vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 16px;
}
.policy h3 {
  margin: 1.7em 0 0.5em;
  font-size: clamp(14.5px, 3.2vw, 16px);
  font-weight: 700;
  color: #e7edf5;
}
.policy p,
.policy li {
  color: #c3cfdd;
  font-size: 14.5px;
  line-height: 1.75;
}
.policy p { margin: 0 0 1em; }
.policy ul { margin: 0 0 1.2em; padding-left: 1.25em; }
.policy li { margin-bottom: 0.5em; }
.policy strong { color: #fff; font-weight: 700; }
.policy a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy a:hover { color: var(--blue-hover); }
.policy table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 13.5px;
}
.policy td {
  border: 1px solid var(--card-border);
  padding: 8px 10px;
  vertical-align: top;
  color: #c3cfdd;
}
