/* HerdHelp website. Colors and fonts match the app (src/theme/tokens.ts). Fonts are served from this site. */
@font-face {
  font-family: 'Nunito';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Nunito_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Nunito_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Nunito_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Nunito_800ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Baloo2_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Baloo2_700Bold.ttf') format('truetype');
}

:root {
  --primary: #f9a450;
  --primary-strong: #b85c00;
  --primary-tint: #ffe6cc;
  --primary-tint-light: #fff4e8;
  --primary-deep: #6b3a00;
  --teal: #0f766e;
  --teal-dark: #134e4a;
  --teal-tint: #e0f4f1;
  --text: #2b1a10;
  --text-secondary: #54433a;
  --card-border: #f3e3d3;
  --white: #ffffff;
  --bg: #fffaf4;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: 1.6rem;
  margin-top: 1.2em;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--primary-strong);
  font-weight: 700;
}
a:hover {
  color: var(--primary-deep);
}
img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow-wrap {
  max-width: 780px;
}

/* Header */
.top {
  background: var(--white);
  border-bottom: 2px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.brand.small {
  font-size: 1.2rem;
}
.top nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.top nav a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.top nav a:hover {
  background: var(--primary-tint-light);
  color: var(--text);
}
.top nav a[aria-current='page'] {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

/* Sections */
.band {
  padding: 48px 0;
}
.band.alt {
  background: var(--teal-tint);
}
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--primary-tint-light), var(--bg));
}
.hero-row {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text {
  flex: 1;
}
.hero-logo {
  width: 240px;
  flex: none;
  border-radius: 48px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(184, 92, 0, 0.12);
}
.eyebrow {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}
.lead.narrow {
  max-width: 720px;
}
.soon {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 8px 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.feature,
.card {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: 22px;
  padding: 20px;
}
.feature h3 {
  color: var(--primary-deep);
}
.feature p {
  margin: 0;
  color: var(--text-secondary);
}
.card {
  margin: 20px 0;
}
.card h2 {
  margin-top: 0;
}
.contact {
  border-color: var(--primary);
}
.two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.small {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* FAQ */
details {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 0 18px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
}
details p {
  margin-top: 0;
}

/* Legal pages */
.legal .meta {
  color: var(--text-secondary);
  font-weight: 700;
}
.legal-section {
  scroll-margin-top: 80px;
}
.legal-section h2 {
  font-size: 1.35rem;
  margin-top: 1.6em;
}
.legal ul {
  padding-left: 1.3em;
}
.legal li {
  margin-bottom: 0.5em;
}
.toc {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 20px 0;
}
.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 32px;
}
.toc a {
  font-weight: 600;
}
.key-points {
  background: var(--teal-tint);
  border-color: var(--teal-tint);
}
.key-points h3 {
  margin-top: 1em;
  color: var(--teal-dark);
}

/* Footer */
.foot {
  background: var(--white);
  border-top: 2px solid var(--card-border);
  padding: 28px 0;
  margin-top: 24px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hero-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-logo {
    width: 120px;
    border-radius: 28px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .toc ol {
    columns: 1;
  }
  .band {
    padding: 36px 0;
  }
}
