/* =========================================================
   PINOY GOLD TRADERS — Stylesheet (matches design canvas)
   Navy + Gold · Baloo 2 / Inter · Mobile-first responsive.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --navy:        #0a1730;
  --navy-2:      #0b1d39;
  --navy-deep:   #081225;
  --card:        #112644;
  --card-2:      #0d2143;
  --hero-1:      #16305c;
  --hero-2:      #0c2042;
  --gold:        #efb52a;
  --gold-hover:  #f6c84a;
  --ivory:       #f5f8fc;
  --muted:       #8b97a8;
  --muted-2:     #6b7488;
  --muted-3:     #5a6379;
  --line:        rgba(255,255,255,.06);
  --line-2:      rgba(255,255,255,.07);
  --gold-line:   rgba(239,181,42,.40);
  --gold-line-2: rgba(239,181,42,.20);
  --gold-soft:   rgba(239,181,42,.06);
  --gold-soft-2: rgba(239,181,42,.12);

  --head: 'Baloo 2', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1180px;
  --pad: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--head); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px;
}
h1, h2, h3 { font-family: var(--head); color: var(--ivory); line-height: 1.2; }
h1 { font-weight: 800; font-size: clamp(30px, 7vw, 46px); letter-spacing: -.012em; line-height: 1.12; }
h2 { font-weight: 700; font-size: clamp(23px, 4.6vw, 32px); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 13px; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s ease, transform .15s ease, box-shadow .2s ease;
  text-align: center; line-height: 1.25;
}
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 26px rgba(239,181,42,.28); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--gold-line); font-weight: 600; }
.btn-ghost:hover { background: var(--gold-soft-2); }
.btn-block { display: flex; width: 100%; }

/* ---------- Logo mark ---------- */
.logo-mark {
  flex: 0 0 auto; border-radius: 50%; background: var(--navy);
  border: 1.5px solid rgba(239,181,42,.55);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(239,181,42,.18);
}
.brand-name { font-family: var(--head); font-weight: 800; color: var(--ivory); letter-spacing: .01em; }
.brand-name span { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(9,18,38,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 11px; }
.nav .logo-mark { width: 38px; height: 38px; }
.nav .brand-name { font-size: 16px; }
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ivory); }
.nav-links .btn { padding: 11px 22px; font-size: 14px; }
@media (min-width: 920px) {
  .nav { display: flex; padding: 16px 48px; }
  .nav-links { display: flex; }
}
/* always-visible header for sub-pages */
.nav.nav-static { display: flex; }
.nav.nav-static .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 38px var(--pad); }
.sec-alt { background: var(--navy-2); }
.center { text-align: center; }
.sec-head { margin-bottom: 22px; }
@media (min-width: 920px) {
  section { padding: 64px 48px; }
  .sec-head { text-align: center; margin-bottom: 36px; }
  .sec-head .eyebrow { margin-bottom: 10px; }
}
.inner { max-width: var(--maxw); margin: 0 auto; }
.inner-narrow { max-width: 760px; margin: 0 auto; }
.inner-calc { max-width: 720px; margin: 0 auto; }

/* ---------- HERO ---------- */
.hero { background: radial-gradient(125% 78% at 50% -8%, var(--hero-1) 0%, var(--hero-2) 44%, var(--navy) 100%); }
.hero .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.hero .logo-mark { width: 44px; height: 44px; }
.hero .brand-name { font-size: 17px; }
.hero h1 { margin-bottom: 14px; }
.hero p.sub { color: var(--muted); font-size: clamp(15px,2.6vw,18px); margin-bottom: 24px; max-width: 460px; }
.hero-actions { display: flex; flex-direction: column; gap: 11px; }
.hero-visual { display: none; }
@media (min-width: 920px) {
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 70px 48px; }
  .hero .brand { display: none; }            /* logo shown in nav on desktop */
  .hero p.sub { margin-bottom: 32px; }
  .hero-actions { flex-direction: row; gap: 14px; }
  .hero-actions .btn { padding: 16px 30px; }
  .hero-visual {
    display: flex; position: relative; aspect-ratio: 1/1; border-radius: 22px;
    background: linear-gradient(160deg, #0f244a, #0a1830);
    border: 1px solid var(--gold-line-2);
    flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4);
  }
  .hero-visual .glow { position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(239,181,42,.16), rgba(10,23,48,0) 70%); }
  .hero-visual .ring-a { position: absolute; top: 34px; right: 34px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(239,181,42,.14); }
  .hero-visual .ring-b { position: absolute; bottom: 40px; left: 40px; width: 70px; height: 70px; border-radius: 50%; border: 1px solid rgba(239,181,42,.14); }
  .hero-visual .vlogo { position: relative; width: 92px; height: 92px; border-width: 2px; box-shadow: 0 0 40px rgba(239,181,42,.25); }
  .hero-visual .vname { position: relative; font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--ivory); }
  .hero-visual .vtag  { position: relative; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--gold); letter-spacing: .04em; }
}

/* ---------- Cards (Bakit) ---------- */
.cards { display: flex; flex-direction: column; gap: 13px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; gap: 15px; align-items: flex-start;
}
.feature .ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-soft-2); border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-weight: 700; font-size: 17px; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: 14px; }
@media (min-width: 920px) {
  .cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
  .feature { flex-direction: column; padding: 28px; border-radius: 18px; }
  .feature .ic { width: 52px; height: 52px; margin-bottom: 18px; }
  .feature h3 { font-size: 20px; margin-bottom: 8px; }
  .feature p { font-size: 15px; }
}

/* ---------- Makukuha (value list) ---------- */
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.value-row { display: flex; gap: 14px; align-items: flex-start; }
.value-row .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-family: var(--head); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.value-row .txt { color: var(--ivory); font-weight: 500; font-size: 15px; line-height: 1.45; padding-top: 3px; }
.makukuha .lead { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 340px; }
.makukuha .btn { margin-top: 4px; }
.makukuha-cta { margin-top: 22px; }
@media (min-width: 920px) {
  .makukuha { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
  .makukuha .lead { font-size: 16px; }
  .value-card { padding: 32px; gap: 22px; border-radius: 18px; }
  .value-row .num { width: 34px; height: 34px; font-size: 15px; }
  .value-row .txt { font-size: 16px; padding-top: 4px; }
  .makukuha-cta { display: none; }   /* CTA lives in left column on desktop */
}
.makukuha-cta-desktop { display: none; }
@media (min-width: 920px) { .makukuha-cta-desktop { display: inline-flex; margin-top: 4px; } }

/* ---------- Rebate explainer ---------- */
.rebate-copy { color: var(--muted); font-size: clamp(15px,2.4vw,17px); line-height: 1.65; margin-bottom: 20px; }
.disclosure {
  background: var(--gold-soft); border: 1px solid rgba(239,181,42,.5);
  border-radius: 14px; padding: 18px;
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
}
.disclosure .i-badge {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--head); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.disclosure .d-label { font-family: var(--head); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.disclosure p { color: var(--ivory); font-size: 14px; line-height: 1.6; }
.disclosure strong { font-weight: 600; }
@media (min-width: 920px) {
  .disclosure { padding: 26px; border-radius: 16px; gap: 18px; }
  .disclosure .i-badge { width: 30px; height: 30px; font-size: 15px; }
  .disclosure p { font-size: 15px; line-height: 1.65; }
}

/* ---------- Rebate calculator ---------- */
.calc { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--navy); color: var(--ivory);
  border: 1px solid rgba(239,181,42,.35); border-radius: 11px;
  padding: 13px 40px 13px 14px; font-family: var(--body); font-weight: 500; font-size: 15px; cursor: pointer;
}
.select-wrap .chev { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; display: flex; color: var(--gold); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-head label { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.slider-head .opt { color: var(--muted-3); font-weight: 500; }
.slider-head .val { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--gold); }
.pgt-range { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); outline: none; margin-bottom: 20px; }
.pgt-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 2px 8px rgba(239,181,42,.4); }
.pgt-range::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--gold); cursor: pointer; }
.calc-btn { width: 100%; padding: 15px 20px; border-radius: 12px; background: var(--gold); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 16px; border: none; cursor: pointer; box-shadow: 0 8px 22px rgba(239,181,42,.26); transition: background .15s; }
.calc-btn:hover { background: var(--gold-hover); }

.calc-result { margin-top: 14px; background: var(--card-2); border: 1px solid rgba(239,181,42,.28); border-radius: 16px; padding: 6px 18px 16px; }
.calc-result.hidden { display: none; }
.calc-result .row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.calc-result .row .k { font-size: 14px; color: var(--muted); }
.calc-result .row .v { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--gold); }
.calc-result .row .v small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); }
.calc-result .row.monthly.hidden { display: none; }
.calc-note { font-size: 12px; color: var(--muted-2); line-height: 1.4; padding-top: 12px; }
.calc-note .tag { color: var(--muted-3); }

.note-box { margin-top: 14px; display: flex; gap: 11px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; }
.note-box.warn { background: rgba(239,181,42,.05); border: 1px solid var(--gold-line-2); }
.note-box.info { background: var(--gold-soft); border: 1px solid rgba(239,181,42,.5); border-radius: 14px; padding: 16px; }
.note-box p { font-size: 13px; line-height: 1.55; }
.note-box.warn p { color: var(--muted); }
.note-box.info p { color: var(--ivory); }
.note-box .i-badge { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--head); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.note-box svg { flex: 0 0 auto; color: var(--gold); }
.calc-cta { margin-top: 16px; font-size: 14px; line-height: 1.3; }
@media (min-width: 920px) {
  .calc { padding: 30px; border-radius: 18px; }
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
  .calc-result { padding: 8px 26px 20px; border-radius: 18px; }
  .calc-result .row .k { font-size: 16px; }
  .calc-result .row .v { font-size: 22px; }
  .calc-cta-wrap { text-align: center; }
}

/* ---------- Content preview ---------- */
.preview-grid { display: flex; flex-direction: column; gap: 13px; }
.tcard {
  background: linear-gradient(155deg, #102649, #0a1b37);
  border: 1px solid var(--gold-line-2); border-radius: 16px;
  padding: 20px; min-height: 128px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.tcard .deco { position: absolute; top: -22px; right: -22px; width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(239,181,42,.18); }
.tcard .pill { align-self: flex-start; background: var(--gold-soft-2); color: var(--gold); font-family: var(--head); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.tcard .t { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ivory); line-height: 1.25; max-width: 80%; }
.tcard .note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; font-size: 12px; }
.tcard .note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (min-width: 920px) {
  .preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
  .tcard { padding: 28px; border-radius: 18px; min-height: 180px; }
  .tcard .deco { top: -28px; right: -28px; width: 110px; height: 110px; }
}

/* ---------- FAQ ---------- */
.faq-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 2px 18px; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 0; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .q { color: var(--ivory); font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.3; }
.faq-q .sign { color: var(--gold); font-family: var(--head); font-weight: 600; font-size: 22px; flex: 0 0 auto; width: 18px; text-align: center; transition: transform .2s; }
.faq-item[open] .faq-q .sign { transform: rotate(45deg); }
.faq-a { color: var(--muted); font-size: 14px; line-height: 1.6; padding: 0 0 18px; }
@media (min-width: 920px) {
  .faq-card { padding: 2px 26px; border-radius: 18px; }
  .faq-q .q { font-size: 16px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 34px var(--pad) 96px; }
.risk-box { background: var(--card-2); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: 12px; padding: 16px; margin-bottom: 26px; }
.risk-box .r-label { font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.risk-box p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.risk-box p span { color: var(--ivory); }
.footer .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer .logo-mark { width: 40px; height: 40px; }
.footer .brand-name { font-size: 16px; }
.footer .tagline { color: var(--muted-2); font-size: 14px; line-height: 1.6; max-width: 360px; margin-bottom: 18px; }
.footer .email { color: var(--muted); font-size: 14px; margin: 12px 0 16px; }
.footer-links { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-links a { color: var(--muted-2); font-size: 12px; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { color: var(--muted-2); font-size: 12px; margin-top: 18px; line-height: 1.6; }
@media (min-width: 920px) {
  .footer { padding: 56px 48px; }
  .footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .footer .tagline { margin-bottom: 0; }
  .footer-right { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-right .footer-links { border-top: none; padding-top: 0; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(8,16,33,.93); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 11px 18px calc(14px + env(safe-area-inset-bottom));
}
.sticky-cta .hint { text-align: center; font-size: 10px; color: var(--muted-2); margin-bottom: 8px; }
@media (min-width: 920px) { .sticky-cta { display: none; } }

/* ---------- Sub-pages (disclaimer / privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(28px,6vw,40px); margin-bottom: 6px; }
.prose h2 { font-size: clamp(20px,4vw,26px); margin: 30px 0 12px; }
.prose h3 { font-weight: 700; font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; line-height: 1.65; }
.prose ul { padding-left: 20px; margin-bottom: 12px; }
.prose strong { color: var(--ivory); }
.prose a.gold { border-bottom: 1px solid var(--gold-line); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-family: var(--head); font-weight: 600; margin-bottom: 10px; }
.updated { color: var(--muted-2); font-size: 13px; margin-bottom: 8px; }
