/* ===========================================================
   Everyday AI Automation — main site
   Structure/interactions based on "Parley Agent" (ticker,
   sticky-scroll steps, scroll reveals) — cool slate & indigo palette
   =========================================================== */

:root {
  --bg: #F7F8FB;
  --ink: #1B2032;
  --indigo: #3B4C91;
  --indigo-dark: #2E3C74;
  --card: #EDEFF5;
  --card-border: #DCE0EA;
  --muted: #5B6178;
  --shadow: 0 12px 32px rgba(27, 32, 50, 0.08);
  --shadow-sm: 0 6px 16px rgba(27, 32, 50, 0.06);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover { background: var(--indigo-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* -------- Eyebrow -------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 .8em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.section-head { margin-bottom: 48px; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo { height: 60px; width: auto; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a:not(.btn) {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
}
.primary-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--indigo);
  transition: width .2s ease;
}
.primary-nav a:not(.btn):hover::after { width: 100%; }

/* -------- Hero -------- */
.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-sub {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 48px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 980px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--indigo);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.45;
}

.stat-source {
  max-width: 820px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 20px;
  opacity: .85;
}

/* -------- Ticker -------- */
.ticker {
  background: var(--card);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
  padding: 18px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--indigo);
  white-space: nowrap;
  padding: 0 18px;
}

.ticker-dot {
  color: var(--indigo);
  opacity: .55;
  font-size: 1.1rem;
}

/* -------- Sections -------- */
.section { padding: 96px 0; }
.section.how-it-works { padding-bottom: 64px; }

/* -------- Sticky steps (How It Works) -------- */
.sticky-steps {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

.sticky-steps-col:first-child { position: relative; }

.sticky-pin {
  position: sticky;
  top: 100px;
  padding: 8px 0;
}

.pin-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.5rem;
  color: var(--card-border);
  transition: color .3s ease, opacity .3s ease;
  line-height: 1;
}

.pin-heading {
  display: block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--muted);
  transition: color .3s ease;
}

.sticky-pin.is-active .pin-num { color: var(--indigo); }
.sticky-pin.is-active .pin-heading { color: var(--ink); }

.step-block {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  opacity: .45;
  transition: opacity .35s ease;
}
.step-block:first-child { border-top: none; }
.step-block.is-active { opacity: 1; }

.step-num-mobile {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--indigo);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.step-block p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.step-tag {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--indigo);
  font-weight: 600;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

/* -------- Cards / grids -------- */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card p { color: var(--muted); margin-bottom: 0; }
.card h3 { margin-bottom: .5em; }

/* proof cards */
.proof-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.proof-card p { color: var(--ink); font-size: .98rem; }
.proof-source {
  display: block;
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}

.proof-footnote {
  margin-top: 36px;
  font-size: .82rem;
  color: var(--muted);
  max-width: 780px;
}

/* benefit cards */
.benefit-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 18px;
}

/* -------- Why not hire in-house (comparison) -------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.compare-card h3 { margin-bottom: 18px; }
.compare-card ul { margin: 0; padding: 0 0 0 20px; }
.compare-card li { color: var(--muted); font-size: .96rem; margin-bottom: 12px; line-height: 1.5; }
.compare-card li strong { color: var(--ink); }
.compare-card li:last-child { margin-bottom: 0; }

.compare-card-highlight {
  background: var(--ink);
  border-color: var(--ink);
}
.compare-card-highlight h3 { color: #fff; }
.compare-card-highlight li { color: rgba(247, 248, 251, 0.75); }
.compare-card-highlight li strong { color: #fff; }
.compare-card-highlight .compare-source { color: rgba(247, 248, 251, 0.5); }

.compare-source {
  display: block;
  margin-top: 20px;
  font-size: .75rem;
  color: var(--muted);
  opacity: .85;
}

.compare-footnote {
  margin-top: 28px;
  font-size: .82rem;
  color: var(--muted);
  max-width: 780px;
}

/* -------- Open-source stack / console -------- */
.stack-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.stack-copy p { color: var(--muted); font-size: 1.05rem; }

.console {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.console-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-a { background: #E8A33D; }
.dot-b { background: #E0C24A; }
.dot-c { background: var(--indigo); }
.console-title {
  margin-left: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
}

.console-body { padding: 22px 24px 6px; }
.console-row { margin-bottom: 20px; }
.console-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.console-agent { font-weight: 700; font-size: .95rem; color: var(--ink); }
.console-agent em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}
.console-status {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.console-status.is-active { background: #E3F3E9; color: #2E7D4F; }
.console-status.is-paused { background: #EFEFF3; color: var(--muted); }

.console-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--card-border);
  overflow: hidden;
}
.console-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo), #7C8FE0);
}

.console-log {
  background: var(--ink);
  padding: 18px 24px;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.9;
}
.console-log p { margin: 0; color: rgba(247, 248, 251, 0.75); }
.log-time { color: #E8A33D; margin-right: 10px; }

/* -------- About -------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-graphic { display: flex; justify-content: center; }
.about-svg { width: 100%; max-width: 320px; height: auto; }

/* -------- Contact -------- */
.contact {
  background: var(--card);
  border-radius: var(--radius-lg);
  margin: 0 28px 96px;
  padding: 72px 0;
}
.contact-inner { max-width: 760px; }
.contact-head { text-align: center; margin-left: auto; margin-right: auto; }
.contact-head .section-sub { margin: 0 auto; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(59, 76, 145, 0.15);
}
.form-field textarea { resize: vertical; }

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
}

#contact-submit { width: 100%; margin-top: 4px; }

#form-msg {
  margin-top: 16px;
  font-size: .92rem;
  font-weight: 600;
  min-height: 1.2em;
}
#form-msg.success { color: #2E7D4F; }
#form-msg.error { color: #B23A2F; }

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(247, 248, 251, 0.15);
}

.site-footer .brand-logo { filter: brightness(0) invert(1); height: 76px; }

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247, 248, 251, 0.1);
  color: var(--bg);
  transition: background .2s ease, color .2s ease;
}
.social-btn:hover { background: var(--indigo); }

.footer-contact {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 0;
  font-size: .92rem;
  color: rgba(247, 248, 251, 0.85);
}
.footer-contact a:hover { color: var(--indigo); }

.footer-bottom {
  font-size: .8rem;
  color: rgba(247, 248, 251, 0.6);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--bg); }

/* -------- Legal pages (Privacy / Terms) -------- */
.legal { padding: 150px 0 100px; max-width: 800px; }
.legal h1 { font-size: 36px; margin: 0 0 8px; color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; margin: 38px 0 12px; color: var(--ink); font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--indigo); text-decoration: underline; }

/* -------- Scroll reveal -------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Responsive -------- */
@media (max-width: 980px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sticky-steps { grid-template-columns: 260px 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .brand-logo { height: 46px; }
  .site-footer .brand-logo { height: 58px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav a:not(.btn) { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 12px; }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }

  .sticky-steps { grid-template-columns: 1fr; }
  .sticky-steps-col:first-child { display: none; }
  .step-num-mobile { display: block; }
  .step-block { min-height: 0; opacity: 1; border-top: 1px solid var(--card-border); padding: 28px 0; }
  .step-block:first-child { border-top: none; }

  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-copy p { max-width: 100%; }

  .compare-grid { grid-template-columns: 1fr; }

  .stack-inner { grid-template-columns: 1fr; text-align: center; }
  .stack-copy p { max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .contact { margin: 0 16px 64px; padding: 48px 0; }
  .contact-form { padding: 24px; margin: 0 20px; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .stat-strip { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
