/* ============================================================================
   BYP — Build Your Pocket · Premium fintech design system
   Dark navy + gold. Clean cards, light glassmorphism, strong typography.
   ============================================================================ */

:root {
  /* Palette */
  --byp-navy-900: #070d1a;
  --byp-navy-850: #0a1326;
  --byp-navy-800: #0d1830;
  --byp-navy-700: #122142;
  --byp-navy-600: #1a2c54;
  --byp-line: rgba(255, 255, 255, 0.08);
  --byp-line-strong: rgba(212, 175, 86, 0.28);

  --byp-gold-300: #ffe7a3;
  --byp-gold-400: #f5cf6b;
  --byp-gold-500: #d4af56;   /* primary gold accent */
  --byp-gold-600: #b8902f;

  --byp-text: #eef2fb;
  --byp-muted: #a9b4cc;
  --byp-faint: #76849f;

  --byp-good: #34d399;
  --byp-info: #5b9dff;

  /* Type */
  --byp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --byp-display: "Sora", "Inter", system-ui, sans-serif;

  /* Geometry */
  --byp-radius: 16px;
  --byp-radius-sm: 10px;
  --byp-maxw: 1180px;
  --byp-gold-grad: linear-gradient(135deg, var(--byp-gold-300), var(--byp-gold-500) 55%, var(--byp-gold-600));
}

/* ---- Reset-ish / base ---------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.byp {
  margin: 0;
  font-family: var(--byp-font);
  color: var(--byp-text);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(212,175,86,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(91,157,255,0.10), transparent 55%),
    var(--byp-navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.byp a { color: var(--byp-gold-400); text-decoration: none; }
.byp a:hover { color: var(--byp-gold-300); }
.byp img { max-width: 100%; height: auto; display: block; }
.byp-container { width: 100%; max-width: var(--byp-maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---------------------------------------------------------- */
.byp h1, .byp h2, .byp h3 { font-family: var(--byp-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: #fff; margin: 0 0 .5em; }
.byp h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.byp h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.byp h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.byp p { margin: 0 0 1rem; color: var(--byp-muted); }
.byp .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #c7d0e6; }
.byp .eyebrow { font-family: var(--byp-display); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 600; color: var(--byp-gold-400); margin-bottom: .8rem; }
.byp .gold-text { background: var(--byp-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons ------------------------------------------------------------- */
.byp-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--byp-display); font-weight: 600; font-size: .98rem; padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; line-height: 1.2; box-sizing: border-box; text-shadow: none; }
.byp-btn:focus-visible { outline: 2px solid var(--byp-gold-400); outline-offset: 3px; }
.byp-btn-primary { background: var(--byp-gold-grad); color: #1a1303 !important; box-shadow: 0 8px 28px rgba(212,175,86,0.28); }
.byp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(212,175,86,0.4); color: #1a1303 !important; }
.byp-btn-ghost { background: rgba(255,255,255,0.04); color: var(--byp-text); border-color: var(--byp-line); }
.byp-btn-ghost:hover { transform: translateY(-2px); border-color: var(--byp-line-strong); color: #fff; }
.byp-btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---- Header / nav -------------------------------------------------------- */
.byp-nav { position: sticky; top: 0; z-index: 100; background: rgba(7,13,26,0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--byp-line); }
.byp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.byp-brand { display: flex; align-items: center; gap: .6rem; }
.byp-brand img { height: 34px; width: auto; }
.byp-nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.byp-nav-links a { color: var(--byp-muted); font-size: .92rem; font-weight: 500; }
.byp-nav-links a:hover, .byp-nav-links a.current { color: #fff; }
.byp-nav-cta { display: flex; align-items: center; gap: .7rem; }
/* Force both nav CTA buttons to identical height regardless of Astra's global line-height/padding cascade */
.byp-nav-cta .byp-btn { height: 38px !important; padding: 0 1.1rem !important; line-height: 38px !important; font-size: .875rem !important; }
/* Nav primary: gold outline style — transparent bg, gold text, gold border */
.byp-nav-cta .byp-btn-primary { background: transparent !important; color: var(--byp-gold-400) !important; border-color: var(--byp-gold-500) !important; box-shadow: none !important; }
.byp-nav-cta .byp-btn-primary:hover { background: rgba(212,175,86,0.1) !important; color: var(--byp-gold-300) !important; box-shadow: none !important; transform: translateY(-1px); }
.byp-nav-cta .byp-btn-ghost { border-color: rgba(255,255,255,0.22) !important; color: var(--byp-text) !important; }
.byp-nav-toggle { display: none; background: none; border: 1px solid var(--byp-line); border-radius: 8px; color: #fff; padding: .4rem .6rem; font-size: 1.2rem; cursor: pointer; }

/* ---- Sections ------------------------------------------------------------ */
.byp-section { padding: 88px 0; }
.byp-section.tight { padding: 56px 0; }
.byp-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.byp-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--byp-line-strong), transparent); border: 0; margin: 0; }

/* ---- Hero ---------------------------------------------------------------- */
.byp-hero { padding: 92px 0 72px; position: relative; overflow: hidden; }
.byp-hero h1 { max-width: 14ch; }
.byp-hero .lead { max-width: 56ch; margin-bottom: 2rem; }
.byp-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.byp-hero-note { font-size: .85rem; color: var(--byp-faint); }
.byp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.byp-hero-visual { border-radius: var(--byp-radius); border: 1px solid var(--byp-line); background: linear-gradient(180deg, var(--byp-navy-800), var(--byp-navy-850)); box-shadow: 0 30px 80px rgba(0,0,0,0.5); padding: 14px; }
.byp-hero-visual .byp-mock { aspect-ratio: 16/10; }

/* ---- Trust strip --------------------------------------------------------- */
.byp-trust { border-top: 1px solid var(--byp-line); border-bottom: 1px solid var(--byp-line); background: rgba(255,255,255,0.015); }
.byp-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px 0; }
.byp-trust-row span { display: inline-flex; align-items: center; gap: .5rem; color: var(--byp-muted); font-size: .9rem; font-weight: 500; }
.byp-trust-row span::before { content: "✓"; color: var(--byp-gold-500); font-weight: 700; }

/* ---- Cards --------------------------------------------------------------- */
.byp-grid { display: grid; gap: 22px; }
.byp-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.byp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.byp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.byp-card { background: linear-gradient(180deg, rgba(26,44,84,0.45), rgba(13,24,48,0.55)); border: 1px solid var(--byp-line); border-radius: var(--byp-radius); padding: 26px; transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease; }
.byp-card:hover { transform: translateY(-4px); border-color: var(--byp-line-strong); box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.byp-card .byp-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212,175,86,0.12); border: 1px solid var(--byp-line-strong); margin-bottom: 16px; font-size: 1.3rem; }
.byp-card h3 { margin-bottom: .35rem; }
.byp-card p { color: var(--byp-muted); margin: 0; font-size: .96rem; }
.byp-pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--byp-gold-300); background: rgba(212,175,86,0.1); border: 1px solid var(--byp-line-strong); padding: .25rem .6rem; border-radius: 999px; }

/* ---- Two-column feature blocks ------------------------------------------ */
.byp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.byp-split.reverse .byp-split-media { order: 2; }
.byp-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.byp-list li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: #c7d0e6; }
.byp-list li::before { content: "→"; position: absolute; left: 0; color: var(--byp-gold-500); font-weight: 700; }

/* ---- Mock screenshots (placeholders) ------------------------------------ */
.byp-mock { width: 100%; aspect-ratio: 16/9; border-radius: var(--byp-radius-sm); border: 1px solid var(--byp-line); background:
  linear-gradient(180deg, rgba(255,255,255,0.03), transparent),
  repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 48px),
  linear-gradient(135deg, var(--byp-navy-700), var(--byp-navy-850));
  display: grid; place-items: center; color: var(--byp-faint); font-family: var(--byp-display); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; position: relative; overflow: hidden; }
.byp-mock::after { content: ""; position: absolute; top: 14px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--byp-gold-500); box-shadow: 18px 0 0 #2b3a5e, 36px 0 0 #2b3a5e; }

/* ---- Product screenshots (SVG mockups / real captures) ------------------ */
.byp-shot { width: 100%; height: auto; display: block; border-radius: var(--byp-radius-sm); border: 1px solid var(--byp-line); box-shadow: 0 18px 50px rgba(0,0,0,0.45); background: var(--byp-navy-850); }
.byp-grid .byp-shot { box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.byp-hero-visual .byp-shot, .byp-split-media .byp-shot { box-shadow: none; border: none; }

/* ---- Evidence / stats ---------------------------------------------------- */
.byp-evidence { background: linear-gradient(180deg, rgba(13,24,48,0.6), rgba(7,13,26,0.6)); border: 1px solid var(--byp-line); border-radius: var(--byp-radius); padding: 36px; }
.byp-evidence .byp-grid { margin-top: 8px; }
.byp-stat { text-align: left; }
.byp-stat b { display: block; font-family: var(--byp-display); font-size: 1.4rem; color: #fff; }
.byp-stat span { color: var(--byp-muted); font-size: .9rem; }

/* ---- CTA band ------------------------------------------------------------ */
.byp-cta-band { background:
  radial-gradient(600px 300px at 50% 0%, rgba(212,175,86,0.14), transparent 70%),
  linear-gradient(180deg, var(--byp-navy-800), var(--byp-navy-850));
  border: 1px solid var(--byp-line-strong); border-radius: 24px; padding: 56px; text-align: center; }
.byp-cta-band h2 { margin-bottom: .4rem; }

/* ---- Waitlist form ------------------------------------------------------- */
.byp-form { background: linear-gradient(180deg, rgba(26,44,84,0.4), rgba(13,24,48,0.5)); border: 1px solid var(--byp-line); border-radius: var(--byp-radius); padding: 30px; }
.byp-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.byp-field { margin-bottom: 16px; }
.byp-field.full { grid-column: 1 / -1; }
.byp-field label { display: block; font-size: .85rem; font-weight: 600; color: #c7d0e6; margin-bottom: .4rem; }
.byp-field input, .byp-field select, .byp-field textarea { width: 100%; background: rgba(7,13,26,0.6); border: 1px solid var(--byp-line); border-radius: 10px; color: var(--byp-text); padding: .75rem .9rem; font-family: var(--byp-font); font-size: .95rem; }
.byp-field input:focus, .byp-field select:focus, .byp-field textarea:focus { outline: none; border-color: var(--byp-gold-500); box-shadow: 0 0 0 3px rgba(212,175,86,0.15); }
.byp-field textarea { min-height: 96px; resize: vertical; }
.byp-form-note { font-size: .8rem; color: var(--byp-faint); margin-top: 6px; }
.byp-form-msg { display: none; margin-top: 14px; padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; }
.byp-form-msg.ok { display: block; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: #bff3df; }
.byp-form-msg.err { display: block; background: rgba(255,99,99,0.12); border: 1px solid rgba(255,99,99,0.4); color: #ffd4d4; }

/* ---- Fluent Forms — themed to match the BYP dark/gold design ------------- */
.byp-ff-wrap .fluentform .ff-el-input--label label,
.byp-ff-wrap .fluentform label { color: #c7d0e6 !important; font-size: .85rem !important; font-weight: 600 !important; }
.byp-ff-wrap .fluentform .ff-el-group { margin-bottom: 16px; }
.byp-ff-wrap .fluentform input[type=text],
.byp-ff-wrap .fluentform input[type=email],
.byp-ff-wrap .fluentform select,
.byp-ff-wrap .fluentform textarea {
	background: rgba(7,13,26,0.6) !important; border: 1px solid var(--byp-line) !important;
	border-radius: 10px !important; color: var(--byp-text) !important; padding: .75rem .9rem !important;
	box-shadow: none !important; height: auto !important; font-family: var(--byp-font) !important;
}
.byp-ff-wrap .fluentform input::placeholder, .byp-ff-wrap .fluentform textarea::placeholder { color: var(--byp-faint) !important; }
.byp-ff-wrap .fluentform input:focus, .byp-ff-wrap .fluentform select:focus, .byp-ff-wrap .fluentform textarea:focus {
	border-color: var(--byp-gold-500) !important; box-shadow: 0 0 0 3px rgba(212,175,86,0.15) !important;
}
.byp-ff-wrap .fluentform .ff-btn-submit, .byp-ff-wrap .fluentform button[type=submit] {
	background: var(--byp-gold-grad) !important; color: #1a1303 !important; border: none !important;
	border-radius: 999px !important; font-family: var(--byp-display) !important; font-weight: 600 !important;
	padding: .85rem 1.6rem !important; width: 100%; box-shadow: 0 8px 28px rgba(212,175,86,0.28) !important;
}
.byp-ff-wrap .fluentform .ff-message-success, .byp-ff-wrap .ff_submit_success {
	background: rgba(52,211,153,0.12) !important; border: 1px solid rgba(52,211,153,0.4) !important;
	color: #bff3df !important; border-radius: 10px !important;
}

/* ---- Pricing ------------------------------------------------------------- */
.byp-price-card { text-align: center; }
.byp-price-card .price { font-family: var(--byp-display); font-size: 2.2rem; color: #fff; margin: .4rem 0; }
.byp-price-card.featured { border-color: var(--byp-line-strong); box-shadow: 0 18px 50px rgba(212,175,86,0.12); }

/* ---- Footer -------------------------------------------------------------- */
.byp-footer { background: var(--byp-navy-850); border-top: 1px solid var(--byp-line); padding: 56px 0 28px; }
.byp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.byp-footer h4 { font-family: var(--byp-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--byp-gold-400); margin: 0 0 14px; }
.byp-footer ul { list-style: none; margin: 0; padding: 0; }
.byp-footer ul li { margin-bottom: .55rem; }
.byp-footer ul a { color: var(--byp-muted); font-size: .92rem; }
.byp-footer ul a:hover { color: #fff; }
.byp-footer .byp-brand img { height: 30px; }
.byp-disclaimer { border-top: 1px solid var(--byp-line); padding-top: 22px; color: var(--byp-faint); font-size: .82rem; line-height: 1.7; }
.byp-copyright { margin-top: 14px; color: var(--byp-faint); font-size: .82rem; }

/* ---- Page hero (interior) ------------------------------------------------ */
.byp-page-hero { padding: 80px 0 40px; text-align: center; }
.byp-page-hero .lead { max-width: 60ch; margin: 0 auto; }

/* ---- Promo bar (below hero CTA) ----------------------------------------- */
.byp-promo { display: inline-flex; align-items: center; gap: .6rem; background: rgba(212,175,86,0.08); border: 1px solid rgba(212,175,86,0.22); border-radius: 999px; padding: .4rem 1rem .4rem .5rem; font-size: .86rem; color: var(--byp-muted); margin-top: .8rem; flex-wrap: wrap; }
.byp-promo-tag { background: var(--byp-gold-grad); color: #1a1303; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .2rem .65rem; white-space: nowrap; }
.byp-promo-code { background: rgba(212,175,86,0.15); color: var(--byp-gold-300); border: 1px solid rgba(212,175,86,0.3); border-radius: 6px; padding: .1rem .45rem; font-family: "Menlo","Consolas",monospace; font-size: .85rem; letter-spacing: .04em; }

/* ---- How it works — numbered step cards ---------------------------------- */
.byp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: byp-step; }
.byp-step-card { background: linear-gradient(180deg, rgba(26,44,84,0.4), rgba(13,24,48,0.5)); border: 1px solid var(--byp-line); border-radius: var(--byp-radius); padding: 28px 26px 26px; position: relative; counter-increment: byp-step; }
.byp-step-card::before { content: counter(byp-step, decimal-leading-zero); font-family: var(--byp-display); font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--byp-gold-500); display: block; margin-bottom: 14px; }
.byp-step-card h3 { margin-bottom: .4rem; }
.byp-step-card p { margin: 0; color: var(--byp-muted); font-size: .95rem; }

/* ---- FAQ accordion ------------------------------------------------------- */
.byp-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.byp-faq details { background: rgba(26,44,84,0.35); border: 1px solid var(--byp-line); border-radius: var(--byp-radius-sm); overflow: hidden; transition: border-color .2s ease; }
.byp-faq details[open] { border-color: var(--byp-line-strong); }
.byp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-weight: 600; font-size: 1rem; color: #fff; user-select: none; }
.byp-faq summary::-webkit-details-marker { display: none; }
.byp-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--byp-gold-400); line-height: 1; transition: transform .2s ease; }
.byp-faq details[open] summary::after { transform: rotate(45deg); }
.byp-faq summary:hover { background: rgba(255,255,255,0.03); }
.byp-faq-body { padding: 0 20px 18px; color: var(--byp-muted); font-size: .95rem; line-height: 1.7; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .byp-hero-grid { grid-template-columns: 1fr; }
  .byp-hero-visual { order: -1; }
  .byp-split { grid-template-columns: 1fr; gap: 28px; }
  .byp-split.reverse .byp-split-media { order: 0; }
  .byp-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .byp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .byp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .byp-nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--byp-navy-850); border-bottom: 1px solid var(--byp-line); padding: 8px 24px 16px; }
  .byp-nav-links.open { display: flex; }
  .byp-nav-links li { width: 100%; padding: .55rem 0; }
  .byp-nav-toggle { display: inline-block; }
  .byp-nav .byp-nav-cta .byp-btn-ghost { display: none; }
  .byp-section { padding: 60px 0; }
  .byp-grid.cols-2, .byp-grid.cols-3, .byp-grid.cols-4 { grid-template-columns: 1fr; }
  .byp-form .row { grid-template-columns: 1fr; }
  .byp-footer-grid { grid-template-columns: 1fr; }
  .byp-cta-band { padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .byp-btn, .byp-card { transition: none; }
  html { scroll-behavior: auto; }
}
