/* ─────────────────────────────────────────────────────────────
   MyGatePass — component styles
   Consolidated from the per-component <style> blocks in the handoff
   JSX, ported to a single enqueued stylesheet.
   ───────────────────────────────────────────────────────────── */

/* ── Announcement bar ─────────────────────────────────────── */
.anno-bar { position: relative; z-index: 91; background: var(--c-ink); color: #fff; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-heading); font-weight: 500; font-size: 12.5px; letter-spacing: -0.005em; }
.anno-bar .star { width: 6px; height: 6px; border-radius: 99px; background: var(--c-teal); box-shadow: 0 0 12px var(--c-teal); }
.anno-bar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.anno-bar a .arr { display: inline-block; transition: transform .25s ease; }
.anno-bar a:hover .arr { transform: translateX(3px); }
.anno-bar .pip { opacity: .45; margin: 0 4px; }
@media (max-width: 640px) { .anno-bar .pip, .anno-bar .extra { display: none; } }

/* ── Nav ──────────────────────────────────────────────────── */
.nav-wrap { position: sticky; top: 0; left: 0; right: 0; z-index: 90; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; background: rgba(255,255,255,0.6); }
.nav-wrap.scrolled { background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(45,45,45,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; font-family: var(--f-heading); font-weight: 500; font-size: 14px; }
.nav-link { padding: 8px 14px; border-radius: 8px; color: var(--c-ink); cursor: default; display: inline-flex; align-items: center; gap: 6px; position: relative; background: none; border: 0; font: inherit; }
.nav-link:hover { color: var(--c-blue); }
.nav-chevron { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); opacity: .55; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-action { padding: 8px 14px; border-radius: 8px; font-family: var(--f-heading); font-weight: 500; font-size: 14px; color: var(--c-ink); }
.nav-action:hover { color: var(--c-blue); }
.dd-wrap { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px); width: 460px; background: #fff; border: 1px solid var(--c-grey-line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(45,45,45,0.18); padding: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .25s ease; transform-origin: top; z-index: 95; }
.dd-wrap.open .dd-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; align-items: start; }
.dd-item:hover { background: var(--c-grey-soft); }
.dd-ic { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, rgba(2,30,255,0.08), rgba(95,228,242,0.18)); display: grid; place-items: center; color: var(--c-blue); }
.dd-t { font-family: var(--f-heading); font-weight: 600; font-size: 13.5px; color: var(--c-ink); }
.dd-d { font-family: var(--f-body); font-size: 11.5px; color: var(--c-ink-60); margin-top: 1px; line-height: 1.35; }
.nav-mob-btn { display: none; appearance: none; background: transparent; border: 0; padding: 8px; color: var(--c-ink); cursor: pointer; }

/* Mobile drawer */
.nav-mobile { display: none; border-top: 1px solid var(--c-grey-line); background: #fff; padding: 18px 0 28px; }
.nav-mobile.open { display: block; }
.nav-mobile-group { padding: 10px 0; border-bottom: 1px solid var(--c-grey-line); }
.nav-mobile-h { font-family: var(--f-heading); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-40); margin-bottom: 8px; }
.nav-mobile-link { display: block; font-family: var(--f-heading); font-weight: 500; font-size: 15px; padding: 7px 0; color: var(--c-ink); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-action.hide-mobile { display: none; }
  .nav-mob-btn { display: inline-flex; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13px; }
}

/* ── Final CTA ────────────────────────────────────────────── */
.fcta-section { padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); background: #fff; text-align: center; position: relative; overflow: hidden; }
.fcta-section::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 80%; aspect-ratio: 1; max-width: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(2,30,255,0.07), rgba(95,228,242,0.05) 40%, transparent 70%); pointer-events: none; }
.fcta-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.fcta-h { font-family: var(--f-heading); font-weight: 800; font-size: clamp(48px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.04em; margin: 18px 0 0; text-wrap: balance; }
.fcta-h .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.fcta-lead { font-family: var(--f-body); color: var(--c-ink-60); font-size: clamp(16px, 1.2vw, 19px); max-width: 56ch; margin: 28px auto 0; line-height: 1.55; }
.fcta-ctas { display: inline-flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────── */
.ft { border-top: 1px solid var(--c-grey-line); padding: 64px 0 32px; background: #fff; }
.ft-top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; align-items: start; }
.ft-brand { max-width: 280px; }
.ft-brand p { font-family: var(--f-body); font-size: 13.5px; color: var(--c-ink-60); margin-top: 18px; line-height: 1.55; }
.ft-addr { font-family: var(--f-body); font-size: 12.5px; color: var(--c-ink-60); margin-top: 16px; line-height: 1.6; }
.ft-h { font-family: var(--f-heading); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 14px; }
.ft-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-col li { font-family: var(--f-body); font-size: 13.5px; color: var(--c-ink-60); }
.ft-col li a { color: inherit; }
.ft-col li a:hover { color: var(--c-blue); }
.ft-bot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-grey-line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ft-meta { font-family: var(--f-body); font-size: 12px; color: var(--c-ink-40); }
.ft-meta a { color: var(--c-ink-60); font-family: var(--f-heading); font-weight: 600; }
.ft-meta a:hover { color: var(--c-blue); }
.ft-meta .pip { display: inline-block; width: 4px; height: 4px; border-radius: 99px; background: currentColor; margin: 0 10px; vertical-align: middle; }
.ft-social { display: flex; gap: 8px; }
.ft-social a { width: 32px; height: 32px; border-radius: 99px; background: var(--c-grey-soft); display: grid; place-items: center; color: var(--c-ink); }
.ft-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-heading); font-size: 12px; color: var(--c-ink); padding: 6px 12px; border-radius: 99px; background: var(--c-grey-soft); }
.ft-status .pulse { width: 8px; height: 8px; border-radius: 99px; background: var(--c-teal); box-shadow: 0 0 0 0 rgba(0,183,148,0.5); animation: pulse 1.8s infinite; }
.ft-giant { font-family: var(--f-heading); font-weight: 800; font-size: clamp(80px, 14vw, 220px); letter-spacing: -0.06em; line-height: 0.85; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; margin: 64px 0 -20px; user-select: none; }
@media (max-width: 980px) { .ft-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .ft-giant { font-size: 80px; margin: 32px 0 -8px; } }
@media (max-width: 640px) { .ft-top { grid-template-columns: 1fr 1fr; } }

/* ── Shared page hero (sub-pages) ─────────────────────────── */
.page-hero { padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 420px at 80% -20%, rgba(95,228,242,0.16), transparent 60%), radial-gradient(700px 400px at 0% 0%, rgba(2,30,255,0.06), transparent 60%); pointer-events: none; z-index: 0; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero.center .page-hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.page-hero-h { font-family: var(--f-heading); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(44px, 6vw, 88px); margin: 20px 0 0; text-wrap: balance; color: var(--c-ink); }
.page-hero-h .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.page-hero-lead { font-family: var(--f-body); color: var(--c-ink-60); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; margin-top: 24px; max-width: 60ch; }
.page-hero.center .page-hero-lead { margin-left: auto; margin-right: auto; }

/* ── Content blocks (cblocks) — body of posts / pages ─────── */
.cblocks h2 { font-family: var(--f-heading); font-weight: 700; font-size: clamp(24px,2.6vw,32px); letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 16px; color: var(--c-ink); scroll-margin-top: 100px; }
.cblocks h3 { font-family: var(--f-heading); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 32px 0 10px; color: var(--c-ink); }
.cblocks p { font-family: var(--f-body); font-size: 17px; line-height: 1.7; color: var(--c-ink); margin: 0 0 20px; text-wrap: pretty; }
.cblocks > p:first-child { font-size: 19px; }
.cblocks ul { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cblocks ul li { position: relative; padding-left: 34px; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--c-ink); }
.cblocks ul li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='%230a6b5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cblocks ul li .ic { display: none; }
.cblocks blockquote { margin: 32px 0; padding: 22px 26px; border-left: 3px solid var(--c-blue); background: var(--c-grey-soft); border-radius: 0 14px 14px 0; }
.cblocks blockquote p { font-family: var(--f-highlight); font-style: italic; font-weight: 700; font-size: 20px; line-height: 1.4; color: var(--c-ink); margin: 0; letter-spacing: -0.01em; }
.cblocks .c-img { margin: 30px 0; border-radius: 18px; aspect-ratio: 16/8; display: grid; place-items: center; color: #fff; }
.cblocks a, .cblocks a.inline { color: var(--c-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Table of contents ────────────────────────────────────── */
.toc { position: sticky; top: 100px; font-family: var(--f-heading); }
.toc-label { font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-40); margin-bottom: 14px; }
.toc a { display: block; font-weight: 500; font-size: 14px; color: var(--c-ink-60); padding: 7px 0 7px 14px; border-left: 2px solid var(--c-grey-line); transition: all .2s ease; line-height: 1.35; }
.toc a:hover { color: var(--c-ink); border-left-color: var(--c-ink-40); }
