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

:root {
  /* Sampled straight from the PRGNF logo */
  --brand: #015637;        /* deep emerald — shield / hand / text */
  --brand-600: #0a6e48;    /* hover / mid */
  --brand-900: #012e1d;    /* darkest — hero base */
  --accent: #e67a22;       /* logo orange — siren + map */
  --accent-600: #cf6812;

  --cream: #f6f2e8;        /* warm paper background */
  --cream-2: #efe9da;
  --card: #ffffff;
  --ink: #16261d;
  --muted: #5d6b60;
  --line: #e4ded0;
  --field: #ffffff;
  --field-line: #cfd6cb;

  --ok: #1f7a45;
  --err: #c0392b;
  --err-soft: #fbecea;

  --radius: 16px;
  --shadow: 0 14px 40px rgba(1, 46, 29, 0.12);
  --shadow-sm: 0 4px 16px rgba(1, 46, 29, 0.08);

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2f9c66;
    --brand-600: #38b074;
    --brand-900: #04140d;
    --accent: #f28a2e;
    --accent-600: #e67a22;
    --cream: #0c1611;
    --cream-2: #10201700;
    --card: #12211a;
    --ink: #e8efe9;
    --muted: #9db0a2;
    --line: #23362b;
    --field: #0e1c15;
    --field-line: #2c4636;
    --err-soft: #33201f;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* thin flag-accent stripe echoing the shield */
.topbar { height: 5px; background: linear-gradient(90deg, var(--brand) 0 55%, var(--accent) 55% 100%); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }

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

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(230,122,34,.28), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(10,110,72,.55), transparent 55%),
    linear-gradient(160deg, var(--brand-900), var(--brand) 140%);
  overflow: hidden;
}
.hero::after {                 /* faint shield watermark */
  content: "";
  position: absolute; right: -80px; top: -40px; width: 420px; height: 480px;
  background: url("/assets/prgnf-logo.png") no-repeat center/contain;
  opacity: .06; filter: grayscale(1) brightness(3); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: center; padding: 34px 0 40px; }
.hero-logo {
  width: 132px; height: 132px; border-radius: 22px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); padding: 10px;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero .kicker {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: #ffd9b0; font-size: 15px; margin: 0 0 4px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 66px); font-weight: 800; line-height: .96;
  margin: 0 0 10px; text-transform: uppercase;
}
.hero h1 .or { color: var(--accent); }
.hero .lead { font-size: 17px; max-width: 560px; margin: 0 0 18px; color: #e9f3ec; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill-price {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.pill-price b { font-family: var(--display); font-size: 24px; color: #fff; }
.pill-price span { font-size: 13px; color: #d8e6dc; }

/* ---------------- COMPACT PAGE HEADER (interior pages) ---------------- */
.pagehead { background:
    radial-gradient(700px 300px at 90% -30%, rgba(230,122,34,.28), transparent 60%),
    linear-gradient(160deg, var(--brand-900), var(--brand)); color: #fff; }
.pagehead .container { display: flex; align-items: center; gap: 14px; padding: 20px; }
.pagehead img { width: 60px; height: 60px; background: #fff; border-radius: 13px; padding: 6px; object-fit: contain; box-shadow: var(--shadow-sm); }
.pagehead h1 { font-size: 28px; margin: 0; text-transform: uppercase; line-height: 1; }
.pagehead p { margin: 2px 0 0; font-size: 13px; color: #ffd9b0; font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 52px 0; }
.section.alt { background: var(--cream-2); }
.eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-600); font-weight: 700; font-size: 15px; margin: 0 0 6px;
}
.section-title { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; color: var(--brand); margin: 0 0 12px; text-transform: uppercase; line-height: 1; }
.section-lead { color: var(--muted); font-size: 16.5px; max-width: 720px; margin: 0 0 26px; }

.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reason {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 18px 16px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start;
  border-left: 4px solid var(--accent);
}
.reason .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(230,122,34,.12); font-size: 22px;
}
.reason h3 { margin: 2px 0 4px; font-size: 20px; color: var(--brand); text-transform: uppercase; font-weight: 700; letter-spacing: .4px; }
.reason p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------------- R50 statement band ---------------- */
.r50 {
  color: #fff; border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(230,122,34,.30), transparent 60%),
    linear-gradient(150deg, var(--brand), var(--brand-900));
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.r50 .big { font-family: var(--display); font-weight: 800; line-height: .85; text-align: center; }
.r50 .big .amt { font-size: 84px; color: var(--accent); display: block; }
.r50 .big .per { text-transform: uppercase; letter-spacing: 3px; font-size: 15px; color: #ffd9b0; }
.r50 p { margin: 0 0 10px; font-size: 16px; color: #eaf3ec; }
.r50 p.kick { font-family: var(--display); font-size: 26px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.r50 p.kick .hand { color: var(--accent); }

/* ---------------- MOTTO band ---------------- */
.motto { background: var(--brand-900); color: #fff; text-align: center; padding: 30px 20px; }
.motto .flag { height: 4px; width: 120px; margin: 0 auto 16px; border-radius: 3px;
  background: linear-gradient(90deg,#007749 0 33%, #ffb612 33% 66%, #de3831 66% 100%); }
.motto .one { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: clamp(20px,3.4vw,30px); margin: 0; }
.motto .sub { color: #ffd9b0; font-family: var(--display); text-transform: uppercase; letter-spacing: 3px; margin: 8px 0 0; }

/* ---------------- STEPS ---------------- */
.steps { display: flex; gap: 8px; margin: 0 0 22px; }
.steps .step {
  flex: 1; font-size: 12.5px; color: var(--muted); padding: 9px 10px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.steps .step .n { width: 21px; height: 21px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.steps .step.active { border-color: var(--brand); color: var(--ink); }
.steps .step.active .n { background: var(--brand); color: #fff; }
.steps .step.done .n { background: var(--accent); color: #fff; }

/* ---------------- CARD / FORM ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card > h2 { font-size: 30px; color: var(--brand); margin: 0 0 4px; text-transform: uppercase; }
.sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.demo-banner { background: rgba(230,122,34,.10); border: 1px dashed var(--accent); color: var(--ink); border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-bottom: 20px; }
.demo-banner strong { color: var(--accent-600); }
.demo-banner code { background: rgba(1,86,55,.08); padding: 1px 5px; border-radius: 4px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-weight: 400; }

input, select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--field-line);
  background: var(--field); color: var(--ink); border-radius: 10px; font-size: 15px;
  font-family: var(--body); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1,86,55,.14); }
input.invalid { border-color: var(--err); background: var(--err-soft); }
input.valid { border-color: var(--ok); }

.row { display: flex; gap: 12px; }
.row .field { flex: 1; }
.error { color: var(--err); font-size: 12.5px; margin-top: 5px; }

.membership { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--brand); border-radius: 12px; padding: 14px 16px; background: rgba(1,86,55,.05); }
.membership .mname { font-weight: 800; font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--brand); }
.membership .mdesc { color: var(--muted); font-size: 13px; }
.membership .price { text-align: right; line-height: 1; }
.membership .price .amt { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--accent); }
.membership .price .per { font-size: 12px; color: var(--muted); display: block; }

.btn {
  width: 100%; padding: 14px 18px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 800;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .6px;
  cursor: pointer; margin-top: 8px; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.green { background: var(--brand); }
.btn.secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--field-line); letter-spacing: .3px; }
.btn.big { font-size: 18px; padding: 15px 26px; width: auto; border-radius: 999px; box-shadow: var(--shadow); }

.summary { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; margin-bottom: 18px; background: var(--cream); }
.summary .line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.summary .line .k { color: var(--muted); }
.summary .total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.summary .total span:last-child { color: var(--accent); font-family: var(--display); font-size: 24px; }

.fastpay { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.fastpay .fp { font-family: var(--display); font-weight: 800; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 9px; letter-spacing: .5px; }

.center { text-align: center; }
.checkmark { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; font-size: 38px; box-shadow: var(--shadow-sm); }
.ref { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--cream); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; display: inline-block; margin: 6px 0 18px; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; justify-content: center; background: var(--brand-900); color: #fff; padding: 16px; font-size: 14px; }
.contact .c-title { font-family: var(--display); color: var(--accent); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.contact a { color: #fff; text-decoration: none; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 16px; }

@media (max-width: 720px) {
  .reasons { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 84px 1fr; gap: 16px; padding: 26px 0 30px; }
  .hero-logo { width: 84px; height: 84px; border-radius: 16px; }
  .r50 { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 26px 20px; }
  .r50 .big .amt { font-size: 66px; }
}
