/* Payra marketing site — emerald/gold on deep forest green (matches app theme.ts) */
:root {
  --bg0: #06201C;
  --bg1: #0B2A25;
  --bg2: #11352F;
  --bg3: #18443C;
  --primary: #1FBE8B;
  --primary-dark: #0E8F7E;
  --gold: #E6B655;
  --cyan: #38E0D0;
  --violet: #7C5CFF;
  --text1: #EAF6F1;
  --text2: #A9CFC4;
  --text3: #7FB3A5;
  --border: rgba(31, 190, 139, 0.16);
  --radius: 18px;
  --maxw: 1120px;
  --nav-bg: rgba(6, 32, 28, 0.85);
  --grad-a: #1FBE8B; --grad-b: #38E0D0; --grad-c: #E6B655;
  --card-hover-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --phone-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(31, 190, 139, 0.12);
  --kv-badge-c: #E6B655; --kv-badge-bg: rgba(230, 182, 85, 0.08); --kv-badge-bd: rgba(230, 182, 85, 0.3);
  --toggle-sun: block; --toggle-moon: none;
  --kicker: #1FBE8B;
}

/* ---------- Light mode (matches the app's light theme.ts palette) ----------
   Applied when the user toggles to light (data-theme) or, absent a manual
   choice, when the OS prefers light. */
:root[data-theme="light"] {
  --bg0: #F4F1E9; --bg1: #FFFFFF; --bg2: #ECE8DD; --bg3: #DFD9CD;
  --text1: #0F2C25; --text2: #3D5C52; --text3: #64837A;
  --border: rgba(14, 143, 126, 0.18);
  --nav-bg: rgba(244, 241, 233, 0.88);
  --grad-a: #0E8F7E; --grad-b: #0FA192; --grad-c: #B07E1F;
  --card-hover-shadow: 0 18px 44px rgba(31, 60, 50, 0.14);
  --phone-shadow: 0 40px 90px rgba(31, 60, 50, 0.28), 0 0 80px rgba(31, 190, 139, 0.10);
  --kv-badge-c: #9C7420; --kv-badge-bg: rgba(176, 126, 31, 0.10); --kv-badge-bd: rgba(176, 126, 31, 0.35);
  --toggle-sun: none; --toggle-moon: block;
  --gold: #A9741C;
  --kicker: #0E8F7E;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg0: #F4F1E9; --bg1: #FFFFFF; --bg2: #ECE8DD; --bg3: #DFD9CD;
    --text1: #0F2C25; --text2: #3D5C52; --text3: #64837A;
    --border: rgba(14, 143, 126, 0.18);
    --nav-bg: rgba(244, 241, 233, 0.88);
    --grad-a: #0E8F7E; --grad-b: #0FA192; --grad-c: #B07E1F;
    --card-hover-shadow: 0 18px 44px rgba(31, 60, 50, 0.14);
    --phone-shadow: 0 40px 90px rgba(31, 60, 50, 0.28), 0 0 80px rgba(31, 190, 139, 0.10);
    --kv-badge-c: #9C7420; --kv-badge-bg: rgba(176, 126, 31, 0.10); --kv-badge-bd: rgba(176, 126, 31, 0.35);
    --toggle-sun: none; --toggle-moon: block;
    --gold: #A9741C;
    --kicker: #0E8F7E;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg0);
  color: var(--text1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--cyan); }
img, svg { max-width: 100%; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text1); letter-spacing: -0.02em; }
.nav-logo .mark {
  width: 38px; height: 38px; border-radius: 11px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 4px 18px rgba(31, 190, 139, 0.35);
}
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text1); margin: 5px 0; border-radius: 2px; transition: 0.25s; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--text2); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text1); }
.nav-links a.btn-nav { color: #04231b; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #04231b; box-shadow: 0 8px 26px rgba(31, 190, 139, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(31, 190, 139, 0.45); color: #04231b; }
.btn-ghost { background: transparent; color: var(--text1); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--text1); background: rgba(31, 190, 139, 0.07); }
.btn-nav { padding: 9px 20px; font-size: 0.9rem; }

/* Store badges */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
/* Store badges keep a fixed dark look in both themes, like real store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0d1512; border: 1.5px solid rgba(234, 246, 241, 0.16);
  border-radius: 14px; padding: 10px 20px; color: #EAF6F1; min-width: 190px;
  transition: transform 0.15s, border-color 0.2s;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--primary); color: #EAF6F1; }
.store-badge .sb-icon { flex: none; }
.store-badge small { display: block; font-size: 0.68rem; color: #7FB3A5; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.06em; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.store-badge.disabled { opacity: 0.55; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 190, 139, 0.22) 0%, rgba(31, 190, 139, 0) 65%);
  top: -220px; right: -180px; pointer-events: none;
}
.hero-glow.two {
  width: 520px; height: 520px; top: auto; right: auto; bottom: -200px; left: -160px;
  background: radial-gradient(circle, rgba(230, 182, 85, 0.13) 0%, rgba(230, 182, 85, 0) 65%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(100deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { margin: 22px 0 32px; font-size: 1.15rem; color: var(--text2); max-width: 34rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text3); font-size: 0.88rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--primary); }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 290px; border-radius: 42px; background: #0d1512;
  border: 1.5px solid rgba(234, 246, 241, 0.14);
  box-shadow: var(--phone-shadow);
  padding: 12px; position: relative; z-index: 2;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: linear-gradient(170deg, var(--bg1), var(--bg0) 70%); }
.phone-notch { width: 90px; height: 22px; background: #0d1512; border-radius: 0 0 14px 14px; margin: 0 auto; }
.p-chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 9px; min-height: 430px; }
.p-header { display: flex; align-items: center; gap: 9px; padding: 2px 4px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.p-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: #04231b; flex: none; }
.p-header b { font-size: 0.82rem; }
.p-header small { display: block; color: var(--primary); font-size: 0.62rem; font-weight: 700; }
.p-header .p-icons { margin-left: auto; display: flex; gap: 12px; color: var(--text2); }
.p-lock {
  align-self: center; font-size: 0.6rem; color: var(--gold); background: rgba(230, 182, 85, 0.1);
  border: 1px solid rgba(230, 182, 85, 0.25); padding: 4px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px; text-align: center; font-weight: 600;
}
.p-bubble { max-width: 78%; padding: 8px 12px; border-radius: 16px; font-size: 0.76rem; line-height: 1.45; }
.p-them { align-self: flex-start; background: var(--bg3); border-bottom-left-radius: 5px; color: var(--text1); }
.p-me { align-self: flex-end; background: linear-gradient(135deg, var(--primary-dark), #0c7a6b); border-bottom-right-radius: 5px; color: #eafff7; }
.p-me .ticks { font-size: 0.6rem; color: var(--cyan); float: right; margin: 6px 0 0 8px; }
.p-compose { margin-top: auto; display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid var(--border); padding: 9px 12px; border-radius: 999px; color: var(--text3); font-size: 0.74rem; }
.p-compose .send { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); flex: none; display: flex; align-items: center; justify-content: center; color: #04231b; }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
.section-alt { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { color: var(--kicker); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; margin-bottom: 12px; }
h2.title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; font-weight: 800; }
p.sub { color: var(--text2); font-size: 1.06rem; max-width: 40rem; }
.center { text-align: center; }
.center p.sub { margin: 0 auto; }

/* Feature grid */
.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(31, 190, 139, 0.4); box-shadow: var(--card-hover-shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; background: rgba(31, 190, 139, 0.13); color: var(--primary);
}
.card .icon.gold { background: rgba(230, 182, 85, 0.12); color: var(--gold); }
.card .icon.cyan { background: rgba(56, 224, 208, 0.11); color: var(--cyan); }
.card .icon.violet { background: rgba(124, 92, 255, 0.13); color: #B7A6FF; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--text2); font-size: 0.96rem; }

/* Security steps */
.sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 20px; }
.steps { display: flex; flex-direction: column; gap: 6px; margin-top: 34px; }
.step { display: flex; gap: 18px; padding: 16px 0; }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; font-weight: 800;
  background: rgba(31, 190, 139, 0.12); color: var(--primary); border: 1px solid rgba(31, 190, 139, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--text2); font-size: 0.94rem; }

.keyviz {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; padding: 34px 26px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.keyviz .kv-row { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: space-between; }
.kv-device { text-align: center; font-size: 0.8rem; color: var(--text2); font-weight: 700; }
.kv-device .dev {
  width: 62px; height: 100px; border-radius: 14px; border: 2px solid var(--primary);
  background: var(--bg0); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.kv-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); position: relative; }
.kv-line::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 26px; background: var(--bg2) no-repeat center /22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6B655' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='7.5' cy='12' r='3.5'/%3E%3Cpath d='M11 12h10'/%3E%3Cpath d='M17 12v3'/%3E%3Cpath d='M21 12v3'/%3E%3C/svg%3E");
}
.kv-badge svg { vertical-align: -3px; margin-right: 7px; }
.kv-caption { margin-top: 18px; color: var(--text3); font-size: 0.85rem; text-align: center; }
.kv-badge {
  margin-top: 14px; font-size: 0.78rem; color: var(--kv-badge-c); border: 1px solid var(--kv-badge-bd);
  background: var(--kv-badge-bg); border-radius: 999px; padding: 6px 16px; font-weight: 700;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--bg2), var(--bg1));
  border: 1px solid var(--border); border-radius: 26px; padding: 58px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(31, 190, 139, 0.14), transparent 45%),
              radial-gradient(circle at 75% 85%, rgba(230, 182, 85, 0.1), transparent 45%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .store-badges { justify-content: center; margin-top: 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 30px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.025em; }
.page-hero p { color: var(--text2); margin-top: 14px; max-width: 42rem; font-size: 1.08rem; }

/* Prose (legal pages) */
.prose { max-width: 760px; padding-bottom: 90px; }
.prose h2 { font-size: 1.4rem; margin: 42px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text2); font-size: 0.99rem; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose .updated { color: var(--text3); font-size: 0.88rem; margin-bottom: 8px; }
.prose strong { color: var(--text1); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 40px 0 80px; }
.contact-card { text-align: left; }
.contact-card a.big { font-size: 1.15rem; font-weight: 700; }

/* About */
.values { margin-top: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--bg1); border-top: 1px solid var(--border); padding: 54px 0 34px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand p { color: var(--text3); font-size: 0.92rem; margin-top: 12px; max-width: 20rem; }
footer h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: var(--text2); font-size: 0.94rem; }
footer ul a:hover { color: var(--primary); }
.foot-bottom {
  border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text3); font-size: 0.86rem;
}

/* ---------- Promo video button + lightbox ---------- */
.btn-video .play-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #04231b; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(31, 190, 139, 0.4);
}
.btn-video .play-dot svg { margin-left: 2px; }

.video-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute; inset: 0; background: rgba(3, 14, 11, 0.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.22s ease;
}
.video-modal.open .video-modal-backdrop { opacity: 1; }
.video-modal-box {
  position: relative; width: min(960px, 100%);
  transform: translateY(14px) scale(0.97); opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.video-modal.open .video-modal-box { transform: none; opacity: 1; }
.video-modal-box video {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px;
  background: #000; border: 1px solid rgba(234, 246, 241, 0.14);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}
.video-modal-close {
  position: absolute; top: -18px; right: -18px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #04231b;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.2s;
}
.video-modal-close:hover { transform: scale(1.08); background: var(--cyan); }
@media (max-width: 640px) {
  .video-modal { padding: 14px; }
  .video-modal-close { top: -14px; right: -6px; width: 40px; height: 40px; }
}

/* Theme toggle (sun shown in dark mode, moon in light) */
.theme-toggle {
  background: transparent; border: 1.5px solid var(--border); border-radius: 12px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); padding: 0; transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--text1); }
.theme-toggle .icon-sun { display: var(--toggle-sun); }
.theme-toggle .icon-moon { display: var(--toggle-moon); }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner, .sec-split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .phone-wrap { order: -1; }
  .phone { width: 260px; }
  .hero { padding: 56px 0 50px; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg1); border-bottom: 1px solid var(--border); padding: 10px 24px 18px;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.02rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .cta-band { padding: 44px 22px; }
}
