/* AgentDeduct marketing site — shared stylesheet
   Brand: deep green #0D4D2F, green #157347, gold #B07D1E,
   white, neutrals #F4F6F3 / #E9ECE7, ink #1A2B22 */

:root {
  --green-deep: #0d4d2f;
  --green: #157347;
  --green-dark: #0f5c39;
  --gold: #b07d1e;
  --gold-bright: #d9a441; /* for small text accents on dark green only */
  --white: #ffffff;
  --surface: #f4f6f3;
  --surface-2: #e9ece7;
  --ink: #1a2b22;
  --ink-soft: #3d4a43;
  --line: #d8ded6;
  --radius: 14px;
  --max-w: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3.5rem 0; }
section.tight { padding: 2.25rem 0; }

h1, h2, h3 {
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.on-dark .eyebrow { color: var(--gold-bright); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--green-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); }
.nav-cta {
  background: var(--white);
  color: var(--green-deep) !important;
  font-weight: 800 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--surface-2) !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green-deep);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.hero p { color: #dce7e0; }
.hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-hero {
  background: var(--white);
  color: var(--green-deep);
}
.btn-hero:hover { background: var(--surface-2); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-outline:hover { background: var(--surface); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Phone frame placeholder */
.phone-frame {
  width: 230px;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.35);
  border-radius: 38px;
  padding: 0.9rem;
  background: rgba(0,0,0,0.25);
}
.phone-screen {
  border-radius: 28px;
  background: var(--surface);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.phone-screen p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- Content sections ---------- */
.band { background: var(--surface); }
.band-deep {
  background: var(--green-deep);
  color: var(--white);
}
.band-deep h2, .band-deep h3 { color: var(--white); }
.band-deep p { color: #dce7e0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cap-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.cap-list li {
  padding-left: 2.25rem;
  position: relative;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.15rem;
  height: 0.62rem;
  border-left: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  transform: rotate(-45deg);
  border-radius: 2px;
}
.cap-list strong { display: block; color: var(--ink); }
.cap-list span { color: var(--ink-soft); }

.roadmap {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
}
.roadmap h3 { color: var(--ink); }
.planned-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--white);
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* Final CTA */
.final-cta {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #cfe0d5;
  padding: 2.75rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 800; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.footer-links a { color: #cfe0d5; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.25rem;
  margin: 0;
  font-size: 0.88rem;
}

/* ---------- Forms ---------- */
.form-wrap { max-width: 640px; }
.field { margin-bottom: 1.25rem; }
.field label, .field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #b3261e;
}
fieldset.field {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.radio-row input { width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
.check-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.check-row input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--green); flex-shrink: 0; }
.check-row label { font-weight: 600; }
.error-text {
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}
.error-text.show { display: block; }
.form-status {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e6f2eb; border: 2px solid var(--green); color: var(--green-deep); }
.form-status.error { background: #fdecea; border: 2px solid #b3261e; color: #7a1a14; }
.form-status a { color: inherit; }

/* ---------- Beta referral prompt ---------- */
.refer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(18,80,63,.25); font-weight: 400; }
.refer p { margin: 0 0 .75rem; }
.refer-row { display: flex; gap: .5rem; }
.refer-row input {
  flex: 1; min-width: 0; padding: .6rem .75rem; border: 1.5px solid var(--green);
  border-radius: 8px; font-size: .9rem; color: var(--green-deep); background: #fff;
}
.refer-row button {
  padding: .6rem 1rem; border: none; border-radius: 8px; cursor: pointer;
  background: var(--green-deep); color: #fff; font-weight: 700; white-space: nowrap;
}
.refer-row button:hover { background: var(--green); }
.refer-note { margin: .5rem 0 0; font-size: .9rem; min-height: 1.2em; }
@media (max-width: 480px) {
  .refer-row { flex-direction: column; }
  .refer-row button { width: 100%; }
}

/* ---------- Draft banner ---------- */
.draft-banner {
  background: #fdf6e3;
  border-bottom: 3px solid var(--gold);
  padding: 0.9rem 0;
  font-weight: 600;
  color: #6b4e12;
  font-size: 0.95rem;
}

/* ---------- Journal ---------- */
.post-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
}
.post-card h2 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.post-card h2 a { color: var(--green-deep); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { color: var(--ink-soft); margin-bottom: 0.75rem; }
.draft-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink-soft);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
}
.article { max-width: 720px; }
.article header { margin-bottom: 2rem; }
.article .meta { color: var(--ink-soft); font-size: 0.95rem; }
.article h2 { margin-top: 2.25rem; }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 700; color: var(--green); }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.open-questions {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; }
  .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  .site-header { position: relative; }
  .nav-bar { position: relative; }
}

/* ---------- Screenshot carousel ---------- */
.carousel { max-width: 340px; margin: 2.5rem auto 0; }
.hero .carousel { margin: 0 auto; }
.carousel-stage { position: relative; width: 230px; margin: 0 auto; }
.carousel-phone {
  border: 10px solid #101d16;
  border-radius: 42px;
  overflow: hidden;
  background: #101d16;
  box-shadow: 0 14px 34px rgba(13, 77, 47, 0.28);
}
.carousel-viewport { overflow: hidden; border-radius: 30px; }
/* Pre-JS: show first slide only (no stacked flash before init) */
.carousel-track { display: block; }
.carousel-slide { display: none; }
.carousel-slide:first-child { display: block; }
/* Once JS takes over: flex track for sliding */
.carousel.is-live .carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel.is-live .carousel-slide { display: block; min-width: 100%; }
.carousel-slide img { display: block; width: 100%; height: auto; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--green-deep);
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.carousel-prev { left: -1.5rem; }
.carousel-next { right: -1.5rem; }
.carousel-arrow:hover { background: var(--white); }
.carousel-dots {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.carousel-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.carousel-caption {
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  min-height: 1.6em;
  text-align: center;
}
/* Active dot gets the gold treatment too */
.carousel-dot.active { background: var(--gold); border-color: var(--gold); }

/* ---------- Store badges (coming soon) ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.store-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  padding-top: 0.85rem;
  cursor: default;
  user-select: none;
}
.store-badge svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  flex-shrink: 0;
}
.store-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-text small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}
.store-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.coming-soon {
  position: absolute;
  top: -0.65rem;
  right: 0.6rem;
  background: var(--gold-bright);
  color: #231a05;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
@media (max-width: 480px) {
  .store-badges { gap: 0.7rem; }
  .store-badge { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Journal article extras ---------- */
.takeaways {
  background: #fdf8ec;
  border: 1px solid #e8d9a8;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.takeaways strong { display: block; margin-bottom: 0.5rem; color: var(--ink); }
.takeaways ul { margin: 0; padding-left: 1.25rem; }
.takeaways li { margin-bottom: 0.4rem; color: var(--ink-soft); }
.takeaways li:last-child { margin-bottom: 0; }
.sources { padding-left: 1.25rem; }
.sources li { margin-bottom: 0.4rem; }

/* ---------- Journal in-article app CTA + related reading ---------- */
.app-cta {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.app-cta .eyebrow { color: var(--gold); }
.app-cta h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0.5rem 0 0.75rem;
}
.app-cta p { color: rgba(255, 255, 255, 0.85); max-width: 36rem; margin: 0 auto 1.25rem; }
.app-cta p strong { color: #fff; }
.app-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1rem; }
.app-cta .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.app-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.app-cta-note { font-size: 0.85rem !important; color: rgba(255,255,255,0.65) !important; margin-bottom: 0 !important; }
.app-cta-note a { color: var(--gold); }
.related-reading {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--surface);
}
.related-reading h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.related-reading ul { margin: 0; padding-left: 1.25rem; }
.related-reading li { margin-bottom: 0.35rem; }
.related-reading li:last-child { margin-bottom: 0; }

/* ---------- Day-in-the-life band: warm break from the green ---------- */
.dayband { background: #f7f3ea; padding: 4rem 0; }
.dayband-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.dayband-photo { margin: 0; }
.dayband-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(13, 77, 47, 0.18);
  border: 1px solid rgba(176, 125, 30, 0.25);
}
.dayband .eyebrow { color: var(--gold); }
.dayband h2 { color: var(--green-deep); margin: 0.5rem 0 1rem; }
.dayband .lede { color: var(--ink-soft); }
.dayband .lede em { color: var(--gold); font-style: normal; font-weight: 700; }
@media (max-width: 820px) {
  .dayband-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .dayband { padding: 2.75rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ---------- Static contextual screenshots ---------- */
figure.shot { margin: 0; text-align: center; }
.shot-frame {
  width: 200px;
  margin: 0 auto;
  border: 8px solid #101d16;
  border-radius: 36px;
  overflow: hidden;
  background: #101d16;
  box-shadow: 0 12px 30px rgba(13, 77, 47, 0.22);
}
.shot-frame img, .shot-frame video { display: block; width: 100%; height: auto; }
figure.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.band-deep figure.shot figcaption { color: #dce7e0; }

/* ---------- Hero static screenshot ---------- */
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* ---------- Article images ---------- */
.article figure { margin: 2rem 0; }
.article figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 77, 47, 0.14);
}
.article figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ---------- Positioning: Agent companion ---------- */
.eyebrow-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.75rem;
}
.hero-sub { font-size: 1.15rem; }

/* Numbered steps */
.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}
.steps li { position: relative; padding-left: 3.2rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.steps li p { margin: 0; color: var(--ink-soft); }
