/*
Theme Name: GrantMe Theme
Theme URI: https://grantme.no
Author: JerryCo
Version: 1.0.0
*/

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

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ink: #0f1f13;
  --ink-light: #3d5242;
  --ink-muted: #7d9183;
  --green: #16803c;
  --green-dark: #116b31;
  --green-glow: rgba(22, 128, 60, 0.16);
  --mint: #ecfdf3;
  --mint-deep: #d1fae5;
  --warm: #fdfaf6;
  --surface: #ffffff;
  --bg: #f9faf8;
  --border: #e2e8e4;
  --red: #c2290a;
  --red-bg: #fff1ee;
  --amber: #9a6700;
  --amber-bg: #fef6dc;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 2px 8px rgba(15, 31, 19, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 19, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 31, 19, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

body > main,
body > .site-main,
body > .gm-page-main {
  flex: 1 0 auto;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.gm-shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ═══ Header ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249, 250, 248, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.site-header-inner {
  display: flex; justify-content: space-between; align-items: center;
}

.site-logo {
  font-size: 1.35rem; font-weight: 900; color: var(--ink);
  letter-spacing: -0.04em; text-decoration: none;
}
.site-logo span { color: var(--green); }
.site-logo:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; }

.site-nav-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav-list li { margin: 0; }
.site-nav-list a { color: var(--ink-light); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.site-nav-list a:hover { color: var(--ink); text-decoration: none; }

.site-nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.site-nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger toggle */
.site-nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); padding: 8px;
  line-height: 1;
}

/* Footer nav list */
.site-footer-nav-list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer-nav-list li { margin: 0; }

/* ═══ Responsive hamburger ═══ */
@media (max-width: 768px) {
  .site-nav-toggle { display: block; }

  .site-nav { position: relative; }

  .site-nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    min-width: 200px;
    z-index: 200;
  }
  .site-nav-list.active { display: flex; }

  .site-nav-list li { width: 100%; }
  .site-nav-list a {
    display: block;
    padding: 12px 20px;
    min-height: 44px;
    line-height: 1.4;
  }
  .site-nav-list a:hover { background: var(--mint); }
}

/* ═══ Hero ═══ */
.gm-hero-band {
  background: var(--ink);
  color: #fff;
  padding: 100px 0 80px;
}

.gm-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.gm-hero-img img { max-width: 100%; height: auto; border-radius: 24px; opacity: 0.9; }
.gm-hero { max-width: 760px; }
.gm-hero h1 {
  color: #fff; margin-bottom: 20px;
  background: linear-gradient(90deg, #fff 0%, #4ade80 40%, #fff 60%, #4ade80 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gm-shimmer 4s linear infinite;
}
@keyframes gm-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.gm-hero-sub {
  font-size: 1.15rem; color: #94a3b8;
  max-width: 560px; margin: 0 auto 32px; line-height: 1.65;
  opacity: 0;
  animation: gm-hero-sub-reveal 800ms var(--ease) 600ms forwards;
}
@keyframes gm-hero-sub-reveal {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.gm-hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  -webkit-text-fill-color: initial;
}

.gm-icon-sm { width: 14px; height: 14px; vertical-align: middle; margin-right: 2px; }
.gm-icon-md { width: 32px; height: 32px; margin-bottom: 12px; display: block; }

.gm-pill {
  display: inline-block;
  background: var(--mint);
  color: var(--green);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ═══ Proof band (match card) ═══ */
.gm-proof-band {
  padding: 80px 0;
  background: var(--bg);
}
.gm-proof-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.gm-proof-card {
  background: var(--surface); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.gm-proof-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 16px;
}
.gm-proof-score-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.gm-proof-score {
  font-size: 3.5rem; font-weight: 900; color: var(--green); line-height: 1;
}
.gm-proof-score-sub { color: var(--ink-muted); font-size: 0.85rem; font-weight: 600; }
.gm-proof-badge {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--mint); color: var(--green);
  font-size: 0.82rem; font-weight: 700;
}
.gm-proof-grants { border-top: 1px solid var(--border); }
.gm-proof-grant {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid #f0eeec;
}
.gm-proof-grant:last-child { border-bottom: none; }
.gm-proof-arrow { color: var(--green); font-weight: 700; font-size: 1.1rem; margin-top: 2px; }
.gm-proof-grant strong { display: block; font-size: 0.95rem; }
.gm-proof-grant span { color: var(--ink-muted); font-size: 0.82rem; }
.gm-proof-copy h2 { margin-bottom: 16px; }
.gm-proof-copy p { color: var(--ink-light); line-height: 1.65; }

/* ═══ Steps band ═══ */
.gm-steps-band {
  padding: 80px 0;
  background: linear-gradient(180deg, #eefbf1, var(--bg));
}
.gm-steps-header { text-align: center; margin-bottom: 48px; }
.gm-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gm-step {
  padding: 32px 28px; border-radius: 24px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gm-step-1 { background: var(--surface); }
.gm-step-2 { background: linear-gradient(180deg, #f0fdf4, var(--surface)); border-color: var(--mint-deep); }
.gm-step-3 { background: var(--surface); }
.gm-step-num {
  font-size: 2.5rem; font-weight: 900; color: var(--mint-deep);
  letter-spacing: -0.04em; margin-bottom: 16px; line-height: 1;
}
.gm-step h3 { margin-bottom: 10px; }
.gm-step p { color: var(--ink-light); font-size: 0.92rem; line-height: 1.55; margin-bottom: 12px; }
.gm-step-tag {
  display: inline-block; padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700;
  background: var(--mint); color: var(--green);
}

/* ═══ Catalog preview ═══ */
.gm-catalog-band {
  padding: 80px 0; background: var(--ink); color: #fff;
}
.gm-catalog-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.gm-catalog-header h2 { color: #fff; }
.gm-catalog-header .gm-btn-outline {
  color: #fff !important; border-color: rgba(255,255,255,0.25);
}
.gm-catalog-header .gm-btn-outline:hover {
  background: rgba(255,255,255,0.08);
}
.gm-catalog-preview {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gm-catalog-card {
  display: block; padding: 20px; border-radius: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none !important; color: #fff !important;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.gm-catalog-card:hover {
  transform: translateY(-3px); background: rgba(255,255,255,0.1);
}
.gm-catalog-card strong { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.gm-catalog-provider { display: block; color: #94a3b8; font-size: 0.82rem; margin-bottom: 8px; }
.gm-catalog-amount {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(22, 128, 60, 0.2); color: #4ade80;
  font-size: 0.75rem; font-weight: 700;
}

/* ═══ Final CTA ═══ */
.gm-final-cta {
  padding: 100px 0 80px;
  background: var(--bg);
}

/* ═══ Buttons ═══ */
.gm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: #16803c !important; color: #fff !important;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; text-decoration: none !important;
  -webkit-text-fill-color: #fff !important;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 16px rgba(22,128,60,0.18);
}
.gm-btn:hover {
  background: #14662f !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 128, 60, 0.25);
}
.gm-btn-lg { min-height: 56px; padding: 0 36px; font-size: 1rem; }
.gm-btn-outline {
  background: var(--surface) !important; color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  border: 1px solid var(--border); box-shadow: none;
}
.gm-btn-outline:hover {
  background: var(--mint); border-color: var(--mint-deep);
  transform: translateY(-1px); box-shadow: var(--shadow);
}

button, .gm-btn-form {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
button:hover { background: var(--green-dark); transform: translateY(-1px); }
button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ═══ Feature cards ═══ */
.gm-features-band { padding: 80px 0; }
.gm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.gm-feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gm-feature-icon { font-size: 1.8rem; margin-bottom: 16px; }
.gm-feature h3 { margin-bottom: 10px; }
.gm-feature p { color: var(--ink-light); font-size: 0.95rem; line-height: 1.55; }

/* ═══ Preview / highlight band ═══ */
.gm-highlight-band {
  background: var(--mint); padding: 80px 0;
}
.gm-highlight-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.gm-highlight-copy h2 { margin-bottom: 16px; }
.gm-highlight-copy p { color: var(--ink-light); font-size: 1.05rem; line-height: 1.6; }

/* ═══ Grant cards ═══ */
.gm-grants-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; margin-top: 24px;
}

.gm-grant-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-grant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.gm-grant-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.gm-grant-card p { color: var(--ink-light); font-size: 0.9rem; line-height: 1.5; margin-bottom: 12px; }

.gm-grant-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.gm-grant-tag {
  display: inline-block; padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700;
}
.gm-grant-tag-open { background: var(--mint); color: var(--green); }
.gm-grant-tag-closed { background: #f3f4f6; color: #6b7280; }
.gm-grant-tag-amount { background: var(--warm); color: var(--amber); }

.gm-grant-deadline {
  font-size: 0.82rem; color: var(--ink-muted); margin-top: 8px;
}

/* ═══ Cards / sections (portal pages) ═══ */
.gm-card {
  background: var(--surface); padding: 36px;
  border-radius: 20px; border: 1px solid var(--border);
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.gm-card h2 { margin-bottom: 12px; }

/* ═══ Forms ═══ */
.gm-field { margin-bottom: 20px; }
.gm-field label {
  display: block; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 6px; color: var(--ink);
}

.gm-field input[type="text"],
.gm-field input[type="email"],
.gm-field input[type="password"],
.gm-field input[type="number"],
.gm-field input[type="url"],
.gm-field select,
.gm-field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem;
  background: var(--surface); color: var(--ink);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-field input:focus,
.gm-field select:focus,
.gm-field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.gm-field small { display: block; color: var(--red); font-size: 0.75rem; margin-top: 4px; }

/* ═══ Auth ═══ */
.gm-auth { display: flex; gap: 32px; flex-wrap: wrap; }
.gm-auth > div {
  flex: 1; min-width: 280px; background: var(--surface);
  padding: 36px; border-radius: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.gm-auth h3 {
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 20px;
}

.gm-auth-page-wrap {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}
.gm-auth-page-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.gm-auth-page-copy,
.gm-auth-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.gm-auth-page-copy {
  padding: 44px;
  background: linear-gradient(180deg, #f6fff8 0%, #ffffff 100%);
}
.gm-auth-page-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 18px;
}
.gm-auth-page-copy p {
  color: var(--ink-light);
  font-size: 1rem;
  max-width: 520px;
}
.gm-auth-benefits {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.gm-auth-benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 600;
}
.gm-auth-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}
.gm-auth-page-card {
  padding: 32px;
}
.gm-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 22px;
}
.gm-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink-light);
  text-decoration: none !important;
}
.gm-auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.gm-auth-shortcodes .um {
  margin: 0 !important;
}
.gm-auth-helper {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}
.gm-guest-gate h2 {
  margin-bottom: 10px;
}
.gm-guest-gate p {
  color: var(--ink-light);
}

/* ═══ CTA band ═══ */
.gm-cta-band { padding: 100px 0 80px; }
.gm-cta-inner { text-align: center; max-width: 600px; }
.gm-cta-inner h2 { margin-bottom: 12px; }
.gm-cta-inner p { color: var(--ink-light); font-size: 1.05rem; margin-bottom: 28px; }

/* ═══ Footer ═══ */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 64px 0; margin-top: 80px;
}
.site-footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.site-footer-brand { color: #fff; font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; display: block; }
.site-footer-left p { max-width: 340px; font-size: 0.88rem; }
.site-footer-nav { display: flex; gap: 20px; }
.site-footer a { color: rgba(255,255,255,0.75); font-weight: 600; font-size: 0.88rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }

/* ═══ Premium gating ═══ */
.gm-premium-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gm-premium-gate {
  text-align: center; padding: 48px 24px;
  background: linear-gradient(180deg, #fffcf0, var(--surface));
  border: 1px dashed #e5c16e;
  border-radius: 20px;
  margin: 24px 0;
}
.gm-premium-gate-icon { font-size: 2rem; margin-bottom: 12px; }
.gm-premium-gate h3 { margin-bottom: 8px; }
.gm-premium-gate p { color: var(--ink-light); margin-bottom: 20px; }

/* ═══ Status boxes ═══ */
.gm-success {
  padding: 16px 20px; background: var(--mint); border: 1px solid var(--mint-deep);
  border-radius: var(--radius-sm); margin-bottom: 20px;
}
.gm-success strong { color: var(--green); }

.gm-error {
  padding: 16px 20px; background: var(--red-bg); border: 1px solid #fcc;
  border-radius: var(--radius-sm); margin-bottom: 20px; color: var(--red);
}

/* ═══ Dashboard ═══ */
.gm-dashboard-grid {
  display: grid; gap: 16px;
}

.gm-dash-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-dash-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gm-dash-done { border-color: var(--mint-deep); background: #fafff8; }
.gm-dash-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.gm-dash-item h3 { margin-bottom: 4px; font-size: 1rem; }
.gm-dash-item p { color: var(--ink-light); font-size: 0.88rem; margin-bottom: 6px; }
.gm-dash-item a { font-size: 0.88rem; font-weight: 600; }

/* ═══ Browser filters ═══ */
.gm-browser { margin-top: 8px; }
.gm-filter-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.gm-filter-row .gm-field { margin-bottom: 0; }
.gm-browser-count {
  color: var(--ink-muted); font-size: 0.85rem; font-weight: 600; margin: 20px 0 4px;
}
.gm-empty {
  text-align: center; padding: 60px 24px;
  color: var(--ink-light); background: var(--surface);
  border: 1px dashed var(--border); border-radius: 20px; margin-top: 24px;
}

/* ═══ Pagination ═══ */
.gm-pagination {
  display: flex; gap: 8px; justify-content: center; margin-top: 32px;
}
.gm-pagination a, .gm-page-current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600;
}
.gm-pagination a {
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  text-decoration: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.gm-pagination a:hover { background: var(--mint); transform: translateY(-1px); }
.gm-page-current {
  background: var(--green); color: #fff; border: none;
}

/* ═══ Smart Onboarding ═══ */
.gm-smart-onboarding { overflow: visible; }

.gm-onboard-hero {
  text-align: center; margin-bottom: 40px;
}
.gm-onboard-hero h2 { margin-top: 12px; margin-bottom: 8px; }

.gm-onboard-modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.gm-onboard-mode-card {
  display: block; padding: 28px; border: 1px solid var(--border);
  border-radius: 20px; text-decoration: none !important; color: var(--ink) !important;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
  position: relative;
}
.gm-onboard-mode-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.gm-onboard-mode-icon { font-size: 1.8rem; margin-bottom: 12px; }
.gm-onboard-mode-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.gm-onboard-mode-card p { color: var(--ink-light); font-size: 0.88rem; margin-bottom: 12px; }
.gm-onboard-mode-tag {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint); color: var(--green);
  font-size: 0.72rem; font-weight: 700;
}

/* Dropzone */
.gm-dropzone {
  border: 2px dashed var(--border); border-radius: 20px;
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.gm-dropzone:hover, .gm-dropzone-active {
  border-color: var(--green); background: var(--mint);
}
.gm-dropzone-inner p { margin-top: 8px; }
.gm-file-list { margin-top: 12px; }
.gm-file-item {
  padding: 8px 12px; background: var(--mint); border-radius: var(--radius-sm);
  font-size: 0.88rem; margin-bottom: 6px;
}

/* Conversational Interview */
.gm-convo {
  max-width: 640px; margin: 0 auto;
}

.gm-convo-progress {
  height: 4px; background: var(--border); border-radius: 2px;
  margin-bottom: 32px; overflow: hidden;
}
.gm-convo-progress-bar {
  height: 100%; background: var(--green); border-radius: 2px;
  transition: width 400ms var(--ease);
}

.gm-convo-card { text-align: center; }

.gm-convo-step {
  font-size: 0.78rem; font-weight: 700; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.gm-convo-question {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}

.gm-convo-hint {
  color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 32px;
}

/* Voice area */
.gm-voice-area {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 20px;
}

.gm-mic-btn {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(145deg, var(--green), #0d7c36) !important;
  color: #fff !important; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; padding: 0 !important; min-height: auto !important;
  box-shadow: 0 8px 24px var(--green-glow);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-mic-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 12px 32px rgba(22, 128, 60, 0.3) !important;
}

.gm-mic-active {
  background: linear-gradient(145deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3) !important;
  animation: gm-pulse 1.5s ease-in-out infinite;
}

@keyframes gm-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.gm-mic-icon { font-size: 2rem; line-height: 1; }
.gm-mic-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.gm-voice-status {
  margin-top: 12px; font-size: 0.82rem; color: var(--green); font-weight: 600;
  min-height: 20px;
}

/* Text input below mic */
.gm-convo-input { max-width: 100%; }
.gm-convo-input textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 16px;
  font-family: var(--font); font-size: 1rem; text-align: center;
  resize: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-convo-input textarea:focus {
  outline: none; border-color: var(--green); text-align: left;
  box-shadow: 0 0 0 3px var(--green-glow);
}

.gm-convo-nav {
  display: flex; justify-content: center; gap: 12px; margin-top: 24px;
}

/* Thinking dots */
.gm-thinking {
  text-align: center; padding: 32px 0;
}
.gm-thinking p { color: var(--ink-muted); font-size: 0.88rem; margin-top: 12px; }
.gm-thinking-dots { display: flex; gap: 6px; justify-content: center; }
.gm-thinking-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); opacity: 0.3;
  animation: gm-dot-bounce 1.4s ease-in-out infinite;
}
.gm-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.gm-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes gm-dot-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.3); }
}

/* Extracted field pills */
.gm-convo-extracted {
  margin-bottom: 20px; padding: 12px 16px;
  background: var(--mint); border-radius: var(--radius-sm);
}
.gm-convo-extracted-label {
  font-size: 0.72rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.gm-extracted-pill {
  display: inline-block; padding: 3px 10px; margin: 2px 4px 2px 0;
  background: rgba(255,255,255,0.8); border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600; color: var(--ink);
}

/* Completion */
.gm-convo-done { text-align: center; }
.gm-convo-done h2 { margin-top: 12px; margin-bottom: 8px; }

/* AI result fields */
.gm-ai-field { position: relative; }
.gm-confidence {
  font-size: 0.75rem; margin-left: 6px;
}
.gm-onboard-result-header {
  text-align: center; margin-bottom: 32px;
}
.gm-onboard-result-header h2 { margin-top: 12px; margin-bottom: 8px; }

@media (max-width: 768px) {
  .gm-onboard-modes { grid-template-columns: 1fr; }
}

/* ═══ Single grant detail ═══ */
.gm-single { padding: 32px 0 80px; }

.gm-breadcrumb {
  margin-bottom: 24px;
}
.gm-breadcrumb a {
  color: var(--ink-muted); font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
}
.gm-breadcrumb a:hover { color: var(--green); }

.gm-single-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start;
}

.gm-single-header {
  margin-bottom: 32px;
}
.gm-single-header .gm-grant-tag { margin-right: 8px; margin-bottom: 12px; }
.gm-single-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 12px; margin-bottom: 8px;
}
.gm-single-provider {
  color: var(--ink-muted); font-size: 1rem; font-weight: 600;
}

.gm-single-section {
  margin-bottom: 32px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.gm-single-section:last-child { border-bottom: none; }
.gm-single-section h2 {
  font-size: 1.15rem; margin-bottom: 12px;
  color: var(--ink-light); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem;
}
.gm-single-content { color: var(--ink); line-height: 1.7; }
.gm-single-content strong { color: var(--ink); }
.gm-single-content ul { padding-left: 20px; }
.gm-single-content li { margin-bottom: 6px; }

.gm-info-grid { display: grid; gap: 16px; }
.gm-info-item { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.gm-info-label { color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; }
.gm-info-value { font-size: 0.95rem; }

/* Sidebar */
.gm-sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
  position: sticky; top: 80px;
}

.gm-sidebar-row {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.gm-sidebar-row:first-child { padding-top: 0; }
.gm-sidebar-row:last-of-type { border-bottom: none; }

.gm-sidebar-label {
  display: block; color: var(--ink-muted); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.gm-sidebar-value { font-size: 1rem; font-weight: 600; color: var(--ink); }
.gm-sidebar-amount { font-size: 1.3rem; font-weight: 800; color: var(--green); }
.gm-sidebar-note { display: block; color: var(--ink-muted); font-size: 0.82rem; margin-top: 4px; }

.gm-sidebar-actions {
  display: grid; gap: 10px; margin-top: 20px;
}

.gm-sidebar-cta {
  background: var(--mint); border: 1px solid var(--mint-deep);
  border-radius: 20px; padding: 24px; margin-top: 16px;
}
.gm-sidebar-cta h3 { font-size: 1rem; margin-bottom: 8px; }
.gm-sidebar-cta p { color: var(--ink-light); font-size: 0.88rem; margin-bottom: 16px; }

/* ═══ Responsive ═══ */
/* ═══ CSS-only stagger animations ═══ */
.gm-proof-card, .gm-proof-copy, .gm-step, .gm-catalog-card {
  animation: gm-fadeUp 600ms var(--ease) both;
}
.gm-step:nth-child(2) { animation-delay: 100ms; }
.gm-step:nth-child(3) { animation-delay: 200ms; }
.gm-catalog-card:nth-child(2) { animation-delay: 80ms; }
.gm-catalog-card:nth-child(3) { animation-delay: 160ms; }
.gm-catalog-card:nth-child(4) { animation-delay: 240ms; }

@keyframes gm-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .gm-hero-grid { grid-template-columns: 1fr; } .gm-hero-img { display: none; } .gm-proof-layout { grid-template-columns: 1fr; }
  .gm-steps { grid-template-columns: 1fr; }
  .gm-catalog-preview { grid-template-columns: 1fr 1fr; }
  .gm-grants-grid { grid-template-columns: 1fr; }
  .gm-hero-band { padding: 64px 0 56px; }
  .gm-auth { flex-direction: column; }
  .gm-auth-page-wrap { min-height: auto; }
  .gm-auth-page-grid { grid-template-columns: 1fr; }
  .gm-auth-page-copy, .gm-auth-page-card { padding: 28px; }
  .gm-single-layout { grid-template-columns: 1fr; }
  .gm-sidebar-card { position: static; }
  .gm-info-item { grid-template-columns: 1fr; }
  .gm-catalog-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .gm-catalog-preview { grid-template-columns: 1fr; }
  .gm-hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .site-nav-list { gap: 12px; }
  .gm-hero-actions { flex-direction: column; }
}

/* ═══ Categories band ═══ */
.gm-categories-band {
  padding: 80px 0;
  background: var(--surface);
}
.gm-categories-header {
  text-align: center; margin-bottom: 40px;
}
.gm-categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; justify-items: center;
}
.gm-cat-card {
  text-align: center; padding: 28px 16px; border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gm-cat-active {
  background: var(--surface);
}
.gm-cat-active:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.gm-cat-soon {
  background: var(--bg); opacity: 0.7;
  border-style: dashed;
}
.gm-cat-icon {
  font-size: 2rem; margin-bottom: 10px;
}
.gm-cat-card h3 {
  font-size: 0.95rem; margin-bottom: 6px;
}
.gm-cat-count {
  font-size: 0.78rem; font-weight: 700; color: var(--green);
}
.gm-cat-badge-soon {
  display: inline-block; padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--amber-bg); color: var(--amber);
  font-size: 0.72rem; font-weight: 700;
}
.gm-coming-soon {
  margin-top: 40px; text-align: center;
}
.gm-cat-card { width: 100%; }
@media (max-width: 768px) {
  .gm-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
