/**
 * ScholarGigs — static landing pages (/for-clients.html, service pages, guides).
 * Same "campus board" language as the React app: calm base, poster headings,
 * colored pinned notes. Class names are shared by all pages in public/*.html.
 */
:root {
  --ink: #17153b;
  --calm-ink: #0f1b3d;
  --calm-soft: #46526e;
  --calm-line: #e3e7f0;
  --calm-tint: #f3f5fb;
  --page-bg: #f6f7fb;
  --accent: #2d5bff;
  --accent-deep: #1e44d6;
  --signal: #ffd23f;
  --electric: #2b44ff;
  --pop: #ff4f8b;
  --mint: #3ddbb4;
  --lilac: #b9a8ff;
  --peach: #ffb27a;
  --hard-shadow: 0 3px 0 rgb(23 21 59 / 0.85);
  --note-shadow: 0 10px 18px -9px rgb(0 0 0 / 0.45);
  --poster: Karantina, Heebo, system-ui, sans-serif;
  --body: 'IBM Plex Sans Hebrew', Assistant, system-ui, sans-serif;

  /* Page theme: the note color that leads the hero board and badge */
  --theme-note: var(--signal);
  --theme-note-ink: var(--ink);
}

body.landing-page[data-landing-theme='web'] { --theme-note: var(--signal); }
body.landing-page[data-landing-theme='code'] { --theme-note: var(--electric); --theme-note-ink: #fff; }
body.landing-page[data-landing-theme='design'] { --theme-note: var(--pop); }
body.landing-page[data-landing-theme='marketing'] { --theme-note: var(--mint); }
body.landing-page[data-landing-theme='search'] { --theme-note: var(--signal); }
body.landing-page[data-landing-theme='student'] { --theme-note: var(--mint); }
body.landing-page[data-landing-theme='general'] { --theme-note: var(--signal); }

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--calm-ink);
  line-height: 1.65;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

body.landing-page {
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  body.landing-page {
    padding-bottom: 0;
  }
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.page-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

@media (min-width: 640px) {
  .page-shell {
    padding: 0 1.5rem 4rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.9rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--calm-line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--calm-ink);
  text-decoration: none;
}

.brand-mark img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--calm-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.site-nav-links a:hover {
  background: var(--calm-tint);
  color: var(--calm-ink);
}

.site-nav-links a.site-nav-cta {
  background: var(--accent);
  color: #fff;
  margin-inline-start: 0.35rem;
}

.site-nav-links a.site-nav-cta:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--calm-ink);
  margin: 0;
}

h1 {
  font-family: var(--poster);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 .text-accent {
  color: var(--electric);
}

.lead {
  margin: 1.75rem 0 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--calm-soft);
}

/* Badge above the hero headline: a small tilted sticker in the page theme color */
.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--theme-note);
  color: var(--theme-note-ink);
  transform: rotate(-3deg);
  box-shadow: var(--hard-shadow);
}

.badge--student {
  background: var(--mint);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 0.85rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: #fff;
  color: var(--calm-ink);
  box-shadow: inset 0 0 0 1px var(--calm-line);
}

.btn-secondary:hover {
  background: var(--calm-tint);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    padding: 3.5rem 0 4.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
  color: var(--calm-ink);
  box-shadow: inset 0 0 0 1px var(--calm-line);
  text-decoration: none;
}

a.chip:hover {
  background: var(--calm-tint);
}

/* Hero visual: the "browser mockup" markup is restyled as a blue board with pinned notes */
.hero-blob {
  display: none;
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--electric);
  box-shadow: 0 22px 0 -8px #1b2bb8;
}

.hero-mockup-bar {
  display: none;
}

.hero-mockup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.1rem;
}

.mock-board-title {
  grid-column: 1 / -1;
  margin: -0.75rem 0 -0.5rem;
  font-family: var(--poster);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.mock-card {
  position: relative;
  padding: 1.1rem 1rem 0.9rem;
  border-radius: 0.4rem;
  color: var(--ink);
  background: var(--signal);
  box-shadow: var(--note-shadow);
  transform: rotate(-2deg);
}

/* Push pin */
.mock-card::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.25), 0 0 0 2px rgb(255 255 255 / 0.7);
}

.mock-card--brand {
  background: var(--theme-note);
  color: var(--theme-note-ink);
}

.mock-card--tech {
  background: var(--pop);
  transform: rotate(2deg);
}

.mock-card--accent {
  background: var(--mint);
  transform: rotate(-1deg);
  grid-column: 1 / -1;
  width: 70%;
  justify-self: center;
}

/* Blue theme note would vanish on the blue board: use a white note there. */
body[data-landing-theme='code'] .mock-card--brand {
  background: #fff;
  color: var(--ink);
}

body[data-landing-theme='design'] .mock-card--tech {
  background: var(--signal);
}

body[data-landing-theme='marketing'] .mock-card--accent,
body[data-landing-theme='student'] .mock-card--accent {
  background: var(--lilac);
}

.mock-card-top {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}

.mock-card strong {
  font-family: var(--poster);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 0.95;
}

.mock-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.mock-budget {
  display: block;
  margin-top: 0.6rem;
  font-weight: 700;
}

.mock-cta-bar {
  grid-column: 1 / -1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .mock-card {
    animation: note-pin 520ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  }

  .mock-card--tech {
    animation-delay: 140ms;
  }

  .mock-card--accent {
    animation-delay: 280ms;
  }
}

@keyframes note-pin {
  from {
    opacity: 0;
    translate: 0 -24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Trust band ---------- */
.trust-band {
  margin: 0 0 1rem;
}

.trust-band-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--hard-shadow);
}

.trust-pill--green {
  background: var(--mint);
  transform: rotate(-1.5deg);
}

.trust-pill--brand {
  background: var(--signal);
  transform: rotate(1deg);
}

.trust-pill--tech {
  background: var(--lilac);
  transform: rotate(-0.5deg);
}

.trust-pill-icon {
  font-size: 0.85em;
}

/* ---------- Sections ---------- */
.section-head {
  margin: 4rem 0 1.5rem;
}

.section-head--center {
  text-align: start;
}

/* Generic "ScholarGigs" eyebrows above every heading add nothing; headings carry the section. */
.section-eyebrow {
  display: none;
}

.section-title {
  font-family: var(--poster);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 0.95;
  margin: 4rem 0 1.5rem;
  text-wrap: balance;
}

.section-title--inline,
.section-head .section-title {
  margin: 0;
}

.process-band {
  margin-top: 3rem;
}

.process-grid,
.steps {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .process-grid,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-card,
.step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--calm-line);
}

.process-num,
.step-num {
  display: block;
  font-family: var(--poster);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--electric);
}

.process-card:nth-child(2) .process-num,
.step:nth-child(2) .step-num {
  color: var(--pop);
}

.process-card:nth-child(3) .process-num,
.step:nth-child(3) .step-num {
  color: #17a884;
}

.process-card strong,
.step strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.process-card p,
.step p {
  margin: 0.35rem 0 0;
  color: var(--calm-soft);
}

.grid-3,
.services-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3,
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--calm-line);
}

.card h3 {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  margin: 0.4rem 0 0;
  color: var(--calm-soft);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
  color: var(--ink);
  background: var(--signal);
  transform: rotate(-3deg);
  box-shadow: var(--hard-shadow);
}

.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card-icon--2 {
  background: var(--pop);
  transform: rotate(2deg);
}

.card-icon--3 {
  background: var(--mint);
}

.content-block {
  max-width: 52rem;
  font-size: 1.075rem;
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--calm-ink);
  opacity: 0.88;
}

.content-block--visual {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--calm-line);
}

.content-block .chips {
  margin-top: 1rem;
}

.bullet-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin: 0.5rem 0;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  background: var(--theme-note);
  transform: rotate(-8deg);
}

/* Stats (about page) */
.stats {
  display: grid;
  gap: 1.25rem 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  position: relative;
  padding: 1.1rem 1rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--signal);
  color: var(--ink);
  box-shadow: var(--note-shadow);
  transform: rotate(-1deg);
}

.stat:nth-child(2) {
  background: var(--pop);
  transform: rotate(1deg);
}

.stat:nth-child(3) {
  background: var(--mint);
}

.stat b {
  display: block;
  font-family: var(--poster);
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq-panel {
  max-width: 52rem;
}

.faq {
  border-bottom: 1px solid var(--calm-line);
}

details {
  border-top: 1px solid var(--calm-line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 1.25rem;
  max-width: 46rem;
  color: var(--calm-soft);
  font-size: 1.05rem;
}

/* ---------- Internal links ---------- */
.internal-links {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .internal-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .internal-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.internal-link-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--calm-line);
  transition: box-shadow 0.2s, transform 0.2s;
}

.internal-link-card:hover {
  box-shadow: inset 0 0 0 1px var(--calm-line), 0 14px 30px -14px rgb(15 27 61 / 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .internal-link-card:hover {
    transform: translateY(-2px) rotate(-0.4deg);
  }
}

.internal-link-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.internal-link-card p {
  flex: 1;
  margin: 0.35rem 0 0.9rem;
  color: var(--calm-soft);
  font-size: 0.95rem;
}

.top-link,
.service-card-button {
  align-self: flex-start;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.top-link:hover,
.service-card-button:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Closing CTA ---------- */
.footer-cta {
  margin-top: 4.5rem;
  padding: 2.5rem 1.75rem;
  border-radius: 1.75rem;
  background: var(--electric);
  color: #fff;
  text-align: start;
}

@media (min-width: 768px) {
  .footer-cta {
    padding: 3rem;
  }
}

.footer-cta h2 {
  font-family: var(--poster);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 0.95;
  color: #fff;
}

.footer-cta p {
  margin: 0.75rem 0 1.5rem;
  max-width: 36rem;
  color: rgb(255 255 255 / 0.88);
  font-size: 1.1rem;
}

.footer-cta .btn-primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 5px 0 #1b2bb8;
}

.footer-cta .btn-primary:hover {
  background: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 6px solid transparent;
  border-image: linear-gradient(to left, var(--signal) 0 25%, var(--pop) 25% 50%, var(--mint) 50% 75%, var(--electric) 75%) 1;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer-inner p {
  margin: 0;
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer-copy {
    flex-basis: 100%;
  }
}

.site-footer-brand {
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer-links a {
  color: var(--calm-soft);
  font-weight: 500;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--calm-ink);
}

.site-footer-copy {
  font-size: 0.85rem;
  color: var(--calm-soft);
}

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--calm-line);
}

.mobile-cta-bar-btn {
  width: 100%;
}

@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }
}
