/* Kabayan Trading Academy: the hand-built home page.
   Navy #1E3A5F, deep #0E1B2C, gold #D9B26C. */
:root {
  --navy: #1E3A5F;
  --deep: #0E1B2C;
  --deeper: #08111d;
  --gold: #D9B26C;
  --gold-soft: #f3e3c3;
  --ink: #18202c;
  --muted: #5a6577;
  --paper: #fbf9f4;
  --line: #e4e1d8;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--paper); padding-bottom: 84px; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.55em; color: var(--deep); letter-spacing: -0.01em; }
h1 { font-family: var(--serif); font-size: clamp(2.3rem, 7vw, 3.8rem); color: #fff; font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; color: var(--navy); margin-bottom: 0.6em; }
.eyebrow.gold { color: var(--gold); }

/* Top band */
.band { background: var(--gold); color: var(--deep); text-align: center; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; padding: 10px 16px; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c0392b; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(192, 57, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #dfe6f0; text-align: center; padding: 54px 0 70px;
  background:
    radial-gradient(circle at 85% 10%, rgba(217, 178, 108, 0.22), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(30, 58, 95, 0.9), transparent 55%),
    linear-gradient(165deg, var(--deeper) 0%, var(--deep) 45%, var(--navy) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.hero-chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; opacity: 0.28; }
.hero-inner { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; color: var(--gold); }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--gold); color: var(--deep); font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }
.pill { display: inline-block; font-size: 0.9rem; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 16px; margin: 6px 0 22px; }
.mark { color: var(--deep); background: linear-gradient(transparent 8%, var(--gold) 8%, var(--gold) 92%, transparent 92%); padding: 0 0.18em; border-radius: 6px; }
.lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.8em; }
.lead em { color: var(--gold-soft); font-style: normal; font-weight: 600; }

.when { display: flex; align-items: stretch; justify-content: center; max-width: 480px; margin: 0 auto 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(217, 178, 108, 0.55); border-radius: var(--radius); backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); }
.when-col { flex: 1; display: flex; flex-direction: column; padding: 16px 12px; }
.when-divider { width: 1px; background: rgba(217, 178, 108, 0.4); margin: 14px 0; }
.when-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.when-day { font-family: var(--serif); font-size: 1.45rem; color: #fff; font-weight: 700; line-height: 1.25; }
.when-time { font-size: 1.05rem; color: #fff; }

.chips { list-style: none; padding: 0; margin: 0 auto 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { font-size: 0.88rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 5px 12px; color: #fff; }

.button { display: inline-block; background: linear-gradient(180deg, #e8c788 0%, var(--gold) 100%); color: var(--deep); font-weight: 800; text-decoration: none; padding: 18px 38px; border-radius: 999px; font-size: 1.1rem; box-shadow: 0 10px 24px rgba(217, 178, 108, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217, 178, 108, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.small { font-size: 0.9rem; opacity: 0.8; margin-top: 14px; }

/* Sections */
.section { padding: 72px 0; }
.tint { background: #eef1f6; }
.dark { background: var(--deep); color: #dfe6f0; }
.dark h2 { color: #fff; text-align: center; }

.story blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--deep); margin: 0 0 1.2em; padding: 6px 0 6px 22px; border-left: 4px solid var(--gold); }

.timeline { list-style: none; max-width: 700px; margin: 28px auto 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), rgba(217, 178, 108, 0.15)); }
.timeline li { position: relative; display: flex; align-items: center; gap: 16px; margin: 0 0 12px; background: #fff; border: 1px solid #dde3ec; border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 2px 8px rgba(14, 27, 44, 0.04); }
.step { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 0.95rem; box-shadow: 0 0 0 4px #eef1f6; position: relative; z-index: 1; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(14, 27, 44, 0.06); transition: transform 0.15s ease; }
.card:hover { transform: translateY(-3px); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, var(--navy), var(--deep)); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.people { list-style: none; padding: 0; margin: 28px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; max-width: 720px; }
.people li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(217, 178, 108, 0.35); border-radius: 14px; padding: 10px 14px; color: #fff; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--deep); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.note { font-size: 0.88rem; opacity: 0.8; text-align: center; max-width: 620px; margin: 0 auto; }

details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(14, 27, 44, 0.04); }
summary { font-weight: 700; cursor: pointer; color: var(--deep); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

.final { padding: 72px 0; color: #dfe6f0; background: radial-gradient(circle at 50% 0%, rgba(217, 178, 108, 0.25), transparent 55%), linear-gradient(180deg, var(--navy), var(--deep)); }
.final h2 { color: #fff; }

.footer { background: var(--deeper); color: #9fadc0; font-size: 0.84rem; padding: 40px 0; }
.footer a { color: var(--gold); }
.risk { max-width: 840px; }
.links { margin-top: 12px; }

/* The sticky button: phones only, so the seat is always one tap away. */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(8, 17, 29, 0.92); backdrop-filter: blur(8px); border-top: 1px solid rgba(217, 178, 108, 0.35); z-index: 20; }
.sticky-cta .button { display: block; text-align: center; padding: 15px 20px; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero { padding: 40px 0 56px; }
  .hero .button { display: block; }
  .section, .final { padding: 56px 0; }
  .story blockquote { font-size: 1.3rem; }
  .when-day { font-size: 1.25rem; }
}

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