/* =========================================================
   Plural — marketing site styles
   Architecture: tokens -> reset -> primitives -> sections -> responsive
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color (light mode only) */
  --bg: #EEF3F1;
  --bg-soft: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #F2F6F4;
  --line: rgba(10, 22, 34, 0.10);
  --ink: #0B1822;
  --ink-soft: #4C5E6B;
  --ink-faint: #7E8E9A;
  --accent: #34A877;
  --accent-soft: rgba(52, 168, 119, 0.13);
  --accent-soft-border: rgba(52, 168, 119, 0.28);
  --blue: #1F6FB8;
  --blue-soft: rgba(31, 111, 184, 0.13);
  --hero1: #E3EFE8;
  --cta-ink: #06140D;
  --bezel: linear-gradient(160deg, #1d2b38, #0a0f14);

  /* Layout */
  --container-max: 1180px;
  --container-pad: 26px;

  /* Radius */
  --radius-card: 20px;
  --radius-panel: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-cta: 0 12px 34px -12px var(--accent);
  --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, .7);
  --shadow-phone-soft: 0 30px 60px -28px rgba(0, 0, 0, .7);

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: rgba(52, 168, 119, .3); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }

/* Visible focus states (a11y) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--cta-ink);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Primitives ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.accent-text { color: var(--accent); }

.section-intro {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  transition: transform .15s ease, filter .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--cta-ink);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 16px; box-shadow: 0 14px 38px -14px var(--accent); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 28px;
}

.icon-tile {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.icon-tile-accent { background: var(--accent-soft); }
.icon-tile-blue { background: var(--blue-soft); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(52, 168, 119, .55);
  animation: pulseDot 2.2s ease-out infinite;
  flex: 0 0 auto;
}

.phone-frame {
  border-radius: 40px;
  padding: 9px;
  background: var(--bezel);
  box-shadow: var(--shadow-phone-soft), 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone-frame img { border-radius: 32px; }

/* ---------- Motion ---------- */
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 168, 119, .5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 168, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 168, 119, 0); }
}
@keyframes slowfloat {
  0%, 100% { transform: translateX(-50px) rotate(-3deg) translateY(0); }
  50% { transform: translateX(-50px) rotate(-3deg) translateY(-12px); }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal-on-scroll: visible by default so content never depends on JS.
   Only hidden-then-revealed once JS confirms IntersectionObserver support
   (see js/main.js), which also skips this entirely under reduced-motion. */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill-dot { animation: none; }
  .phone-front { animation: none !important; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  padding: 14px var(--container-pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-logo { width: 38px; height: 38px; border-radius: 10px; }
.nav-lockup { display: flex; flex-direction: column; line-height: 1; }
.nav-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.nav-sub { font-size: 10.5px; color: var(--ink-faint); letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }

.nav-links { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 10px;
}
.nav-toggle:hover { background: var(--panel-2); }
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  margin: 0 auto;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 67px;
  z-index: 49;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.nav-drawer[data-open="true"] { display: block; }
.nav-drawer nav { display: flex; flex-direction: column; padding: 10px var(--container-pad) 26px; }
.nav-drawer a {
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 78% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--hero1) 0%, var(--bg) 72%);
  overflow: hidden;
}
.hero-grid {
  padding: 54px var(--container-pad) 48px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.hero-h1 {
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-top: 22px;
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin-top: 22px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-fintrac {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
}

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; }
.hero-glow {
  position: absolute;
  inset: 6% 8%;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%);
  filter: blur(34px);
}
.phone-back {
  position: absolute;
  width: 232px;
  box-shadow: 0 30px 64px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  transform: translateX(78px) translateY(22px) rotate(5deg);
  z-index: 1;
}
.phone-front {
  position: relative;
  width: 262px;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-phone), 0 0 0 1px rgba(255, 255, 255, .05);
  transform: translateX(-50px) rotate(-3deg);
  z-index: 2;
  animation: slowfloat 6s ease-in-out infinite;
}
.phone-front img { border-radius: 35px; }

.trust-strip { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.trust-strip-inner {
  padding: 18px var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.trust-strip-inner .dot { opacity: .4; }

/* ---------- Stats ---------- */
.stats { padding: 38px 0 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; color: var(--ink); }
.stat-label { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; line-height: 1.4; }

/* ---------- Section head ---------- */
.section-head { max-width: 620px; }
.section-head-center { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2, .wallet-copy h2, .personalize-copy h2, .security-copy h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  margin-top: 14px;
}

/* ---------- Services ---------- */
.services { padding: 52px 0 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.svc-card { transition: transform .2s ease, border-color .2s ease; }
.svc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.svc-card h3 { font-weight: 600; font-size: 21px; margin-top: 20px; letter-spacing: -.01em; }
.svc-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-top: 10px; }

/* ---------- Wallet ---------- */
.wallet { padding: 52px 0; }
.wallet-panel {
  background: linear-gradient(150deg, var(--hero1), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 8px;
  overflow: hidden;
}
.wallet-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 30px; align-items: center; }
.wallet-copy { padding: 42px 36px; }
.wallet-body { max-width: 460px; }
.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.check-icon {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.note-callout {
  margin-top: 24px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 460px;
}
.note-callout svg { flex: 0 0 auto; margin-top: 1px; }
.note-callout p { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.note-callout strong { font-weight: 700; }

.wallet-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 380px; padding-top: 30px; }
.phone-wallet { width: 262px; margin-bottom: -2px; }

/* ---------- Personalization ---------- */
.personalize { padding: 30px 0 24px; }
.personalize-grid { display: grid; grid-template-columns: .82fr 1fr; gap: 46px; align-items: center; }
.personalize-art { position: relative; display: flex; justify-content: center; }
.phone-personalize { position: relative; width: 266px; border-radius: 42px; padding: 10px; box-shadow: 0 36px 70px -30px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .05); }
.phone-personalize img { border-radius: 33px; }
.personalize-body { max-width: 470px; }
.perk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 28px; max-width: 560px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; margin-top: 1px;
}
.perk-title { font-weight: 600; font-size: 15px; }
.perk-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }

/* ---------- Why ---------- */
.why { padding: 30px 0 24px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.why-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px 26px; background: var(--bg-soft); }
.why-num { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink-faint); }
.why-card h3 { font-weight: 600; font-size: 19px; margin-top: 14px; }
.why-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-top: 10px; }

/* ---------- Security ---------- */
.security { padding: 44px 0; }
.security-panel {
  background: radial-gradient(700px 360px at 12% 0%, var(--accent-soft), transparent 60%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 46px 42px;
}
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.security-copy h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; }
.security-body { max-width: 440px; }
.fintrac-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 600;
}
.chip-meta { color: var(--ink-faint); font-weight: 500; }

.security-features { display: grid; gap: 14px; }
.feature-row {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.feature-row svg { flex: 0 0 auto; margin-top: 1px; }
.feature-title { font-weight: 600; font-size: 15px; }
.feature-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: linear-gradient(180deg, var(--bg), var(--hero1));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 120%, var(--accent-soft), transparent 60%);
}
.contact-inner {
  position: relative;
  max-width: 780px;
  padding: 62px var(--container-pad) 64px;
  text-align: center;
}
.contact-logo { margin: 0 auto; border-radius: 18px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); }
.contact h2 { font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.025em; line-height: 1.05; margin-top: 26px; }
.contact-body { max-width: 520px; margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-inner {
  padding: 40px var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 9px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer-tag { font-size: 12px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-size: 12.5px; color: var(--ink-faint); }

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

/* Scroll offset so headings clear the sticky nav */
#top, #services, #wallet, #personalize, #security, #contact {
  scroll-margin-top: 84px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .personalize-grid { grid-template-columns: 1fr; gap: 32px; }
  .personalize-art { order: -1; }
  .wallet-copy { padding: 32px 26px; }
  .security-panel { padding: 36px 28px; }
}

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --container-pad: 18px; }
  .hero-grid { padding-top: 40px; padding-bottom: 36px; }
  .hero-art { min-height: 360px; transform: scale(.86); }
  .phone-front { transform: translateX(-30px) rotate(-3deg); }
  @keyframes slowfloat {
    0%, 100% { transform: translateX(-30px) rotate(-3deg) translateY(0); }
    50% { transform: translateX(-30px) rotate(-3deg) translateY(-12px); }
  }
  .phone-back { transform: translateX(38px) translateY(22px) rotate(5deg); }
  .wallet-art { min-height: 300px; }
  .footer-inner { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .hero-art { transform: scale(.76); }
}
