:root {
  --ink: #201c16;
  --muted: #635b4d;
  --line: #eadfc9;
  --paper: #fffdf7;
  --soft: #fff4cf;
  --amber: #f7b500;
  --amber-dark: #9a6400;
  --green: #176b4d;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(67, 49, 16, 0.13);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(32, 28, 22, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, rgba(255, 244, 207, 0.65), rgba(255, 253, 247, 0.94) 36rem);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav,
.section,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  width: 9.75rem;
  height: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 750;
}

.nav-actions > a:first-child {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.button-small {
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.section {
  padding-block: 4.5rem;
}

.hero {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  padding-top: 3.25rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.9rem;
  color: var(--amber-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.15rem;
  font-size: clamp(3rem, 15vw, 5.65rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.hero-subline {
  max-width: 42rem;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 8px);
  background: var(--soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.split p {
  max-width: 38rem;
  font-size: 1.12rem;
}

.steps,
.benefit-grid,
.use-case-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.flow-visual {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--soft);
  overflow: hidden;
}

.onboarding-demo {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.wa-screen {
  min-height: 20rem;
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 12px);
  background:
    linear-gradient(180deg, rgba(23, 107, 77, 0.1), transparent 36%),
    var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 850;
}

.wa-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
}

.wa-chat {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.wa-bubble {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 0.68rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f2;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  animation: wa-message 10s ease infinite;
}

.wa-bubble.user {
  justify-self: end;
  background: #dcf8c6;
}

.wa-bubble.bot.urgent,
.wa-bubble.urgent {
  background: #fff0b8;
  border-color: rgba(154, 100, 0, 0.45);
  font-weight: 850;
}

.wa-bubble:nth-child(2) {
  animation-delay: 1s;
}

.wa-bubble:nth-child(3) {
  animation-delay: 2s;
}

.wa-bubble:nth-child(4) {
  animation-delay: 3s;
}

.screen-driver .wa-bubble {
  animation-delay: 2.2s;
}

.screen-driver .wa-bubble:nth-child(2) {
  animation-delay: 3.2s;
}

.screen-driver .wa-bubble:nth-child(3) {
  animation-delay: 4.2s;
}

.screen-driver .wa-bubble:nth-child(4) {
  animation-delay: 5.2s;
}

.screen-alert .wa-bubble {
  animation-delay: 5.7s;
}

.screen-alert .wa-bubble:nth-child(2) {
  animation-delay: 6.7s;
}

.screen-alert .wa-bubble:nth-child(3) {
  animation-delay: 7.7s;
}

.demo-stage {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, var(--soft), var(--white));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-phone,
.demo-screening {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.88);
}

.demo-phone {
  padding: 0.9rem;
  min-height: 16rem;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.phone-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
}

.alert-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(247, 181, 0, 0.24);
}

.chat-stack {
  display: grid;
  gap: 0.65rem;
}

.chat-bubble,
.alert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  padding: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.4;
}

.chat-bubble {
  opacity: 0;
  transform: translateY(12px);
  animation: bubble-in 9s ease infinite;
}

.chat-bubble:nth-child(2) {
  animation-delay: 1.2s;
}

.chat-bubble:nth-child(3) {
  animation-delay: 2.4s;
}

.chat-bubble.urgent {
  border-color: rgba(154, 100, 0, 0.42);
  background: #fff7d7;
  color: var(--ink);
  font-weight: 750;
}

.demo-screening {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1rem;
}

.screening-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  place-items: center;
  width: min(100%, 18rem);
  min-height: 9.5rem;
  padding: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--amber);
  text-align: center;
}

.screening-core strong {
  font-size: 1.05rem;
}

.screening-core p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.pulse-ring {
  position: absolute;
  inset: 0.6rem;
  border: 2px solid rgba(32, 28, 22, 0.35);
  border-radius: var(--radius);
  animation: pulse-screen 2.4s ease-in-out infinite;
}

.signal-line {
  position: absolute;
  width: 40%;
  height: 3px;
  background: var(--ink);
  opacity: 0.14;
  animation: signal-scan 3s ease-in-out infinite;
}

.signal-one {
  top: 30%;
}

.signal-two {
  bottom: 30%;
  animation-delay: 0.7s;
}

.alert-card {
  opacity: 0;
  transform: translateY(12px);
  animation: alert-in 9s ease infinite;
  animation-delay: 4.4s;
}

.alert-card strong {
  display: block;
  margin: 0.4rem 0 0.25rem;
  color: var(--ink);
  line-height: 1.25;
}

.alert-card p {
  margin: 0;
  font-size: 0.9rem;
}

.alert-label {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.pipeline-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.pipeline-step {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.resource-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.resource-grid article {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.resource-grid a {
  text-decoration-thickness: 0.08em;
}

.resource-meta {
  margin-bottom: 0.6rem;
  color: var(--amber-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-hero h1,
.article-page h1 {
  max-width: 13ch;
}

.article-page {
  max-width: 820px;
}

.article-page h2 {
  max-width: 18ch;
  margin-top: 3rem;
  font-size: clamp(1.75rem, 7vw, 3rem);
}

.article-page p {
  font-size: 1.08rem;
}

.article-intro {
  max-width: 42rem;
  font-size: clamp(1.15rem, 4vw, 1.38rem) !important;
  line-height: 1.45;
}

.steps article,
.benefit-grid article,
.use-case-grid article,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.steps article,
.benefit-grid article,
.use-case-grid article {
  padding: 1.2rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  font-weight: 900;
}

.pricing {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  border-block: 1px solid var(--line);
}

.privacy-band {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  border-block: 1px solid var(--line);
}

.privacy-band h2 {
  max-width: 12ch;
}

.privacy-band p {
  max-width: 42rem;
  font-size: 1.08rem;
}

.pricing h2 {
  max-width: 11ch;
}

.pricing p {
  max-width: 40rem;
}

.faq h2 {
  max-width: 15ch;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq details {
  padding: 0.2rem 1rem;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--ink);
  font-weight: 850;
}

.faq details p {
  margin-bottom: 1rem;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p,
.site-footer span {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 560px) {
  .nav-actions > a:first-child {
    display: inline;
  }

  .cta-row {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 780px) {
  .nav,
  .section,
  .site-footer {
    width: min(1120px, calc(100% - 3rem));
  }

  .section {
    padding-block: 6rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    min-height: calc(100svh - 4.25rem);
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .hero-visual {
    justify-self: end;
  }

  .split,
  .pricing,
  .privacy-band,
  .site-footer {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .pricing .button,
  .site-footer .footer-links {
    justify-self: end;
    align-self: center;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .onboarding-demo {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .screen-driver {
    margin-top: 2rem;
  }

  .screen-alert {
    margin-top: 4rem;
  }

  .demo-stage {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.82fr) minmax(0, 1fr);
    align-items: center;
    padding: 1.2rem;
  }

  .pipeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .benefit-grid article {
    grid-column: span 2;
  }

  .benefit-grid article:nth-child(4),
  .benefit-grid article:nth-child(5) {
    grid-column: span 3;
  }

  .flow-visual {
    margin-top: 1.25rem;
  }
}

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

  .chat-bubble,
  .alert-card,
  .wa-bubble {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble-in {
  0%,
  8% {
    opacity: 0;
    transform: translateY(12px);
  }
  14%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
}

@keyframes alert-in {
  0%,
  10% {
    opacity: 0;
    transform: translateY(12px);
  }
  18%,
  82% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.78;
    transform: translateY(0);
  }
}

@keyframes pulse-screen {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes signal-scan {
  0%,
  100% {
    opacity: 0.1;
    transform: translateX(-12%);
  }
  50% {
    opacity: 0.32;
    transform: translateX(12%);
  }
}

@keyframes wa-message {
  0%,
  7% {
    opacity: 0;
    transform: translateY(10px);
  }
  13%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
}
