/* Adpeako — self-contained styles. No external fonts or CDNs.
   Paths are relative to this folder (the Forge web root).
   The hero is sized by its content. It does not use 100vh. */

:root {
  --ink: #14242c;
  --muted: #445863;
  --paper: #f4f0e8;
  --sand: #e9e3d6;
  --white: #fffdf9;
  --teal: #0f3d4c;
  --teal-deep: #0b2c37;
  --copper: #9a3f16;
  --copper-hot: #c4521a;
  --line: rgba(20, 36, 44, 0.12);
  --cream: #f6f1e8;
  --shadow: 0 16px 40px rgba(20, 36, 44, 0.08);
}

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

html { scroll-behavior: smooth; color-scheme: light; }
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow-light { color: #f6d7c4; }

.lede { max-width: 40rem; color: var(--muted); font-size: 1.05rem; }
.lede-light { color: #d5e3e8; }

:focus-visible {
  outline: 2px solid var(--copper-hot);
  outline-offset: 3px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 240, 232, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo img, .footer-brand img { width: 36px; height: 36px; }
.logo-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -0.03em; }

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-check:checked + .nav-toggle .nav-toggle-bars { background: transparent; }
.nav-check:checked + .nav-toggle .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-check:checked + .nav-toggle .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-check:focus-visible + .nav-toggle {
  outline: 2px solid var(--copper-hot);
  outline-offset: 3px;
}

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 31;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 20px 20px;
  background: #fbf8f2;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav-check:checked ~ .nav-panel { display: flex; }
.nav-menu, .footer-links, .pill-row, .tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 8px;
  border-radius: 8px;
}
.nav-link:hover { background: rgba(20, 36, 44, 0.04); }
.nav-link.active { box-shadow: inset 3px 0 0 var(--copper); }
.nav-auth { display: flex; flex-direction: column; gap: 8px; }

.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-signin, .cta-quiet, .cta-ghost {
  background: transparent;
}
.btn-signin, .cta-quiet {
  color: var(--ink);
  border-color: rgba(20, 36, 44, 0.22);
}
.btn-signin:hover, .cta-quiet:hover { border-color: var(--ink); background: rgba(20, 36, 44, 0.04); }
.btn-signup, .cta-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}
.btn-signup:hover, .cta-primary:hover { background: #7d3312; border-color: #7d3312; }
.cta-ghost { color: var(--cream); border-color: rgba(246, 241, 232, 0.5); }
.cta-ghost:hover { background: rgba(246, 241, 232, 0.08); }
.btn-block { width: 100%; }

/* Hero — content height, not viewport height */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(224, 122, 61, 0.28), transparent 36%),
    linear-gradient(165deg, #14566a 0%, var(--teal) 42%, var(--teal-deep) 100%);
  color: var(--cream);
  padding: 36px 0 48px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -70px;
  width: 240px;
  height: 180px;
  background: rgba(246, 241, 232, 0.06);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(246, 241, 232, 0.28);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6d7c4;
}
.hero-title {
  font-size: clamp(2.15rem, 6vw, 4.05rem);
  line-height: 1.04;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hero-subtitle { margin: 0 0 24px; max-width: 38rem; color: #d5e3e8; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .cta { flex: 1 1 160px; }

.brief-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 20px 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}
.brief-card h2 { font-size: 1.65rem; margin: 0 0 12px; }
.brief-card dl { margin: 0; }
.brief-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(20, 36, 44, 0.1);
}
.brief-row dt { font-weight: 700; font-size: 0.92rem; }
.brief-row dd { margin: 0; color: var(--muted); font-size: 0.92rem; }
.brief-foot { margin: 4px 0 6px; font-size: 0.8rem; color: var(--muted); }

.band { background: var(--sand); padding: 22px 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 650;
}

.block { padding: 64px 0; }
.block-white { background: var(--white); }
.block-sand { background: var(--sand); }
.section-head { margin-bottom: 28px; }
.section-head h2, .page-hero h1, .close-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 12px;
}
.section-head .lede, .page-hero .lede { margin: 0; }
.section-link { margin: 22px 0 0; }
.text-link { color: var(--copper); font-weight: 700; text-underline-offset: 3px; }
.text-link:hover { color: #7d3312; }

.card-grid { display: grid; gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  min-width: 0;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: rgba(154, 63, 22, 0.45); box-shadow: var(--shadow); }
.card h3 { font-size: 1.45rem; }
.card p, .step p, .audience-card p { color: var(--muted); }
.card-more { margin-top: auto; color: var(--copper); font-weight: 700; font-size: 0.92rem; }
.card-icon { width: 32px; height: 32px; }

.steps-grid { display: grid; gap: 14px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}
.step-num {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.8rem;
  color: var(--copper);
  letter-spacing: -0.03em;
}
.step h2, .step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.contact-grid > div > h2 { margin-bottom: 12px; }

.principles {
  background:
    radial-gradient(circle at 0% 100%, rgba(224, 122, 61, 0.18), transparent 42%),
    var(--teal);
  color: var(--cream);
  padding: 64px 0;
}
.principles h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 12px; }
.principles .lede { margin-bottom: 28px; }
.principle-grid { display: grid; gap: 12px; }
.principle {
  background: rgba(246, 241, 232, 0.06);
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 16px;
  padding: 18px 16px 16px;
  min-width: 0;
}
.principle-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6d7c4;
}
.principle h3 { font-size: 1.55rem; margin-bottom: 8px; }
.principle p { margin: 0; color: #d5e3e8; font-size: 0.95rem; }
.principles-note { margin: 18px 0 0; color: #f6d7c4; font-size: 0.88rem; }

.tick-list { display: grid; gap: 8px; margin-top: 4px; }
.tick-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper-hot);
}

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: Georgia, Palatino, serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--copper);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); max-width: 42rem; }

.contact-band {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 64px 0;
}
.contact-grid { display: grid; gap: 28px; align-items: start; }
.contact-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 12px; }
.contact-points { margin-top: 20px; display: grid; gap: 6px; }
.contact-points a { color: #f6d7c4; font-weight: 700; }

.lead-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--copper); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #d5cdbf;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7d8b93; }
.form-note { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.form-note a, .form-thanks a, .prose a, .auth-switch a { color: var(--copper); font-weight: 700; }
.form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fde8e0;
  color: #6e2c12;
  font-size: 0.92rem;
}
.form-thanks h3 { font-size: 1.8rem; margin: 0 0 10px; }
.form-thanks p { margin: 0 0 12px; color: var(--muted); }
.form-thanks p:last-child { margin-bottom: 0; }

.close-band { background: var(--sand); padding: 48px 0; }
.close-inner { display: grid; gap: 18px; align-items: center; }
.close-inner p { color: var(--muted); max-width: 36rem; }

.page-hero { padding: 36px 0 8px; }
.crumb { margin: 0 0 14px; font-size: 0.88rem; color: var(--muted); }
.crumb a { color: var(--copper); font-weight: 700; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-hero h1 { margin: 0 0 12px; }
.stack { display: grid; gap: 18px; }
.stack h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 8px; }
.stack .card h2 { font-size: 1.45rem; }
.stack .card p { margin-bottom: 8px; }

.prose { padding-bottom: 28px; }
.prose h2 { font-size: 1.55rem; margin: 2rem 0 0.7rem; }
.prose p, .prose li { color: #3d4e59; font-size: 1.02rem; line-height: 1.7; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.35rem; }
.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 8px 0 18px;
}
.updated { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }

.footer {
  background: var(--teal-deep);
  color: #e7eef0;
  padding: 48px 0 28px;
}
.footer-grid { display: grid; gap: 28px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 750;
  font-size: 1.05rem;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-brand-block p { margin-top: 12px; color: #b7c6cc; max-width: 28rem; }
.footer h2 {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: auto;
  color: #f6d7c4;
  margin: 0 0 12px;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #e7eef0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
  color: #b7c6cc;
  font-size: 0.88rem;
}
.footer-legal { display: flex; gap: 8px; }
.footer-legal a { color: #e7eef0; }

.auth-page { padding: 32px 0 64px; }
.auth-box {
  width: min(440px, calc(100% - 40px));
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 20px 24px;
  box-shadow: var(--shadow);
}
.auth-box .logo-link { display: inline-flex; margin-bottom: 18px; }
.auth-box .logo-link img { width: 48px; height: 48px; }
.auth-box h1 { font-size: 2rem; margin: 0 0 8px; }
.auth-box .subtitle { color: var(--muted); margin: 0 0 22px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.92rem; }
.auth-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 700px) {
  .hero { padding: 64px 0 72px; }
  .hero-cta .cta { flex: 0 0 auto; }
  .card-grid.cols-2, .card-grid.cols-3, .steps-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (min-width: 861px) {
  .nav-toggle, .nav-check { display: none; }
  .nav-panel,
  .nav-check:checked ~ .nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-menu { flex-direction: row; align-items: center; gap: 4px; }
  .nav-link { padding: 8px 10px; }
  .nav-link.active { box-shadow: inset 0 -2px 0 var(--copper); background: transparent; }
  .nav-auth { flex-direction: row; align-items: center; margin-left: 8px; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .steps-grid, .principle-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid, .close-inner { grid-template-columns: 1fr 1fr; }
  .close-inner { grid-template-columns: 1.4fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .block, .principles, .contact-band { padding: 92px 0; }
}

@media (max-width: 380px) {
  .brief-row { grid-template-columns: 1fr; gap: 2px; }
  .container, .container-narrow, .nav-container, .auth-box { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
