@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Digital Dog Tech identity: playful orange brand + trust-blue CTA on warm cream. */
:root {
  --ink: #3a1d10;        /* deep rust-brown: body text + dark footer */
  --muted: #8a6f5e;      /* warm muted brown */
  --line: #f0ddca;       /* warm cream border */
  --paper: #fff7ed;      /* cream background */
  --white: #ffffff;
  --green: #2563eb;      /* PRIMARY CTA = trust blue (buttons, links, focus) */
  --green-dark: #1d4ed8; /* CTA hover / strong link */
  --gold: #f97316;       /* brand ORANGE accent (eyebrows, borders, glow) */
  --coral: #fb923c;      /* light orange accent */
  --blue: #2563eb;       /* RFP accent = blue */
  --shadow: 0 18px 48px rgba(154, 52, 18, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
.brand strong,
.eyebrow,
.calendar-date {
  font-family: "Space Grotesk", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand small {
  display: block;
  color: var(--muted);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.hero-copy,
.section-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 5.9rem);
  line-height: 0.98;
  max-width: 980px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  line-height: 1.05;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  font-size: 0.98rem;
}

.button.primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost,
.button.secondary {
  background: var(--white);
}

.hound-panel {
  min-height: 460px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.30), transparent 32%),
    radial-gradient(circle at 20% 88%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(135deg, #ffe9cf, #ffffff);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-dog {
  width: clamp(220px, 62%, 360px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(154, 52, 18, 0.18));
}

.sniff-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(280px, calc(100% - 56px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sniff-card span,
.cta-box span,
.mini-item span,
.grant-card p,
.trust-band span {
  color: var(--muted);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-band div {
  padding: 24px clamp(18px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.trust-band span,
.trust-band strong {
  display: block;
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(46px, 7vw, 82px) clamp(18px, 5vw, 64px);
}

.signup-form,
.filters,
.feature-strip,
.admin-calendar,
.cta-box,
.grant-card,
aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signup-form {
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #cddbd5;
  padding: 0 12px;
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus {
  outline: 3px solid rgba(31, 122, 90, 0.18);
  border-color: var(--green);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.honeypot {
  display: none;
}

.captcha-wrap {
  min-height: 78px;
  margin: 8px 0 12px;
}

.submit {
  width: 100%;
}

.form-message {
  margin: 14px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

footer {
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

footer a {
  color: var(--gold);
}

.dashboard {
  padding: clamp(24px, 4vw, 48px) clamp(18px, 5vw, 64px) 70px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.dashboard-head h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.filters label {
  margin: 0;
}

.admin-calendar {
  padding: 20px;
  margin-bottom: 20px;
  border-left: 8px solid var(--coral);
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.calendar-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f6faf8;
}

.calendar-date {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 950;
}

.calendar-item a {
  color: var(--green-dark);
  font-weight: 900;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(320px, 1fr);
  gap: 22px;
  padding: 22px;
  margin-bottom: 20px;
  border-left: 8px solid var(--gold);
}

.rfp-section {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(320px, 1fr);
  gap: 22px;
  padding: 22px;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 8px solid var(--blue);
  border-radius: 8px;
}

.rfp-section[hidden] {
  display: none;
}

.rfp-list {
  display: grid;
  gap: 12px;
}

.rfp-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f6faf8;
}

.rfp-item p {
  margin: 0;
  color: var(--muted);
}

.rfp-item a {
  color: var(--green-dark);
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

aside {
  padding: 18px;
  align-self: start;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grant-list {
  display: grid;
  gap: 14px;
}

.grant-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.grant-meta,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf5f1;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.pill.gold {
  background: #fff5d8;
  color: #7d5900;
}

.pill.coral {
  background: #fff0ed;
  color: #923824;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f6faf8;
}

.cta-box {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-color: rgba(31, 122, 90, 0.35);
}

.cta-box a {
  font-weight: 900;
  color: var(--green-dark);
}

@media (max-width: 860px) {
  .topbar,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .access,
  .feature-strip,
  .rfp-section,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hound-panel {
    min-height: 300px;
  }

  .trust-band,
  .filters,
  .calendar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .field-grid,
  .trust-band,
  .filters,
  .calendar-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Admin: iTeachAI fit badges + "new this week" strip */
.pill.fit-direct { background:#dff3e6; color:#1f7a44; }
.pill.fit-partner { background:#e7e9f7; color:#3a3f9e; }
.pill.fit-bid { background:#fdeede; color:#9a5b12; }
.pill.new { background:#620303; color:#fff; }
.new-week { background:#fff; border:1px solid #f0ddca; border-left:8px solid #f97316; border-radius:8px; padding:20px; margin-bottom:20px; }
.new-week[hidden] { display:none; }
.new-week .list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
