/*
 * AcreCast marketing site.
 *
 * Two readers, one page. The son who just took the farm over should see
 * something modern; his grandfather should see something he can read without
 * his glasses and press without missing. That is one design, not two: large
 * type, high contrast, wide targets, short lines, and nothing that only makes
 * sense if you already know software.
 *
 * Committed to a single light palette on purpose — warm paper, field green,
 * harvest orange. `color-scheme: light` stops a browser from inverting it into
 * something nobody drew.
 */

:root {
  color-scheme: light;

  --paper:      #faf8f2;
  --paper-warm: #f2efe4;
  --card:       #ffffff;
  --ink:        #1c2413;
  --ink-soft:   #55604a;
  /* 4.95:1 on the warm band, 5.37:1 on paper, 5.70:1 on a white card.
     #7a8370 looked right and failed all three at 15px. */
  --ink-faint:  #5f6a56;
  --line:       #e0dccd;
  --line-soft:  #ebe7da;

  --green-deep: #2b4a12;
  --green:      #4f772d;
  --green-mid:  #628f36;
  --green-pale: #e9f0dc;
  /* 5.41:1 on the warm band. The kicker is bold 17px, which is under
     WCAG's large-text threshold, so it needs the full 4.5:1. */
  --harvest:    #a04606;
  --harvest-pale: #fbeedd;
  --sky:        #3d6a80;

  --shadow-sm: 0 1px 2px rgba(28, 36, 19, .06), 0 2px 8px rgba(28, 36, 19, .05);
  --shadow-md: 0 2px 4px rgba(28, 36, 19, .06), 0 12px 32px rgba(28, 36, 19, .09);
  --shadow-lg: 0 4px 10px rgba(28, 36, 19, .08), 0 28px 60px rgba(28, 36, 19, .14);

  --radius: 14px;
  --wrap: 74rem;
}

@font-face {
  font-family: 'Bitter';
  src: url('/assets/fonts/bitter-var.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-var.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 18px; } }

h1, h2, h3, h4 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  color: var(--green-deep);
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.08rem; font-weight: 600; }
p  { margin: 0 0 1.1em; max-width: 40em; }
a  { color: var(--green); text-decoration-thickness: .07em; text-underline-offset: .16em; }
a:hover { color: var(--green-deep); }
img, svg { max-width: 100%; height: auto; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
  outline: 3px solid var(--harvest);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
/* A page that is one column of reading — the FAQ — centres a narrower measure
   instead of hugging the left edge of a 74rem container. */
.wrap.narrow { width: min(58rem, calc(100% - 3rem)); }
@media (max-width: 640px) { .wrap { width: calc(100% - 2rem); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-deep); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- header -- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 242, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1.6rem; min-height: 74px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.32rem;
  color: var(--green-deep); text-decoration: none; letter-spacing: -.01em;
}
.brand .mark { color: var(--green); flex: none; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 1.02rem;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-deep); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--green); }
.head-cta { display: flex; align-items: center; gap: 1rem; }
.signin { color: var(--ink-soft); text-decoration: none; font-weight: 600; white-space: nowrap; }
.signin:hover { color: var(--green-deep); }

.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 48px; height: 44px; cursor: pointer; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--green-deep); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: .5rem 0 1rem; }
.mobile-nav a {
  padding: .95rem 1rem; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 900px) {
  /* The nav collapses, the call to action does not: hiding the only button on
     the page behind a hamburger is how a phone visit becomes a bounce. */
  .nav { display: none; }
  .head-cta { margin-left: auto; }
  .head-cta .signin { display: none; }
  .menu-btn { display: flex; margin-left: .6rem; }
  .mobile-nav { display: flex; }
  .mobile-nav[hidden] { display: none; }
}
@media (max-width: 400px) {
  .brand span { font-size: 1.12rem; }
  .head-cta .btn { padding: .5rem .85rem; font-size: .95rem; }
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 1.12rem;
  padding: .95rem 1.7rem; border-radius: 10px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  min-height: 56px; line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn.primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.secondary { background: var(--card); color: var(--green-deep); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--green); color: var(--green-deep); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn.ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn.small { min-height: 46px; padding: .55rem 1.1rem; font-size: 1rem; }
.btn-sub { font-weight: 400; font-size: .82rem; opacity: .88; margin-top: .1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.8rem 0 0; }
.btn-note { color: var(--ink-faint); font-size: .95rem; margin: .9rem 0 0; }

/* ------------------------------------------------------------------ hero -- */

.hero { position: relative; background: var(--green-deep); color: #fff; overflow: hidden; }
.hero .mosaic {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 45%;
}
/*
 * The scrim has one job: keep the headline at AA contrast over aerial artwork
 * without hiding the artwork. Heavy under the text, gone by the right edge.
 */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(24,42,10,.95) 0%, rgba(24,42,10,.90) 30%, rgba(24,42,10,.62) 52%, rgba(24,42,10,.22) 78%, rgba(24,42,10,.12) 100%),
    linear-gradient(to top, rgba(24,42,10,.72), rgba(24,42,10,0) 48%);
}
@media (max-width: 860px) {
  /* nothing sits beside the text on a phone, so the whole thing needs the scrim */
  .hero::after { background: linear-gradient(180deg, rgba(24,42,10,.86) 0%, rgba(24,42,10,.74) 50%, rgba(24,42,10,.90) 100%); }
  .hero .mosaic { object-position: 60% 40%; }
}
.hero .wrap { position: relative; z-index: 2; padding: clamp(2.75rem, 5.5vw, 4.6rem) 0 clamp(2rem, 3.5vw, 3rem); }
.hero-inner { max-width: 40rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .95rem; letter-spacing: .09em;
  text-transform: uppercase; color: #c9e29b; margin-bottom: 1.1rem;
}
@media (max-width: 640px) { .eyebrow { font-size: .82rem; letter-spacing: .06em; } }
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero h1 em { font-style: normal; color: #c9e29b; }
.hero .lede { font-size: clamp(1.18rem, 2.1vw, 1.42rem); color: #e5ecd8; max-width: 34em; }
.hero .btn-note { color: #b7c8a0; }
.hero-proof {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0 2.6rem;
  border-top: 1px solid rgba(255,255,255,.2); padding: 1.4rem 0 2.2rem; margin: 0;
}
.hero-proof div { padding: .5rem 0; }
.hero-proof dt { font-size: .92rem; color: #a9bd8b; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.hero-proof dd { margin: .15rem 0 0; font-family: 'Bitter', Georgia, serif; font-size: 1.14rem; color: #fff; }

/* --------------------------------------------------------------- sections -- */

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section.tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.band-warm { background: var(--paper-warm); border-block: 1px solid var(--line); }
.band-deep { background: var(--green-deep); color: #e5ecd8; }
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep a { color: #c9e29b; }

.section-head { max-width: 44rem; margin-bottom: 2.6rem; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.band-deep .section-head p { color: #cdd8bd; }
.kicker {
  font-weight: 700; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--harvest); margin: 0 0 .7rem;
}
.band-deep .kicker { color: #c9e29b; }

/* --------------------------------------------------------------- feature -- */

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-art { order: -1; }
/* A long prose column beside one diagram: the picture belongs at the top of
   the reading, not floating in the vertical middle of a page of text. */
.feature.start { align-items: start; }
.feature.wide-text { grid-template-columns: 1.4fr 1fr; }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-body p { font-size: 1.06rem; }
.feature-body .lede { font-size: 1.16rem; color: var(--ink); }
@media (max-width: 860px) {
  /* .feature.wide-text is listed too, not because of source order but because
     it outranks a bare .feature on specificity — without it the About page kept
     its two columns on a phone and squeezed the diagram to a thumbnail. */
  .feature, .feature.wide-text { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
}

.art { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-warm); }
.art svg { display: block; width: 100%; height: auto; }

.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; max-width: 38em; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .52em; width: 1.1rem; height: .55rem;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}
.checks.plain li::before { display: none; }

/* ------------------------------------------------------------------ cards -- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.6rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { color: var(--green); margin-bottom: .9rem; display: block; }

/* --------------------------------------------------------------- pricing -- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.8rem; align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 2.1rem; box-shadow: var(--shadow-sm); position: relative;
}
.plan.featured { border: 2px solid var(--green); box-shadow: var(--shadow-md); }
.plan-tag {
  position: absolute; top: -.85rem; left: 2rem; background: var(--green); color: #fff;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
/* h2 for the outline, card-title size for the eye — a screen reader and a
   sighted reader should get the same structure. */
.plan h2 { font-size: 1.6rem; margin-bottom: .15rem; }
.plan .answers { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.2rem; }
.price { display: flex; align-items: baseline; gap: .45rem; margin: 0 0 .2rem; }
.price .amount { font-family: 'Bitter', Georgia, serif; font-size: 3.1rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.price .per { color: var(--ink-soft); font-size: 1.05rem; }
.launch-mark {
  display: inline-block; background: var(--harvest-pale); color: #8a4a12; border: 1px solid #e6c49b;
  font-size: .85rem; font-weight: 700; padding: .2rem .6rem; border-radius: 6px; margin-bottom: 1.1rem;
}
.plan .cap { font-size: 1rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 1rem; margin-top: 1rem; }
.plan .btn { width: 100%; margin-top: 1.3rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.plan ul li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; font-size: 1.02rem; }
.plan ul li::before {
  content: ''; position: absolute; left: 0; top: .48em; width: .95rem; height: .48rem;
  border-left: 3px solid var(--green-mid); border-bottom: 3px solid var(--green-mid); transform: rotate(-45deg);
}

.compare { width: 100%; max-width: 54rem; border-collapse: collapse; margin-top: 1rem; font-size: 1.02rem; }
.compare th:not(:first-child), .compare td { width: 8.5rem; }
.compare caption { text-align: left; color: var(--ink-soft); padding-bottom: .8rem; }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: 'Bitter', Georgia, serif; color: var(--green-deep); font-size: 1.05rem; }
.compare td.yes { color: var(--green); font-weight: 700; }
.compare td.no  { color: var(--ink-faint); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------- screenshots -- */

.shots {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: .4rem .2rem 1.4rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shots::-webkit-scrollbar { height: 10px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shot {
  flex: 0 0 auto; width: min(20rem, 78vw); scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.shot img { display: block; width: 100%; height: auto; background: var(--paper-warm); }
.shot figcaption, .shot p { padding: .8rem 1rem; margin: 0; font-size: .96rem; color: var(--ink-soft); }
/* The deliberately-empty state. One quiet panel, not a row of grey rectangles
   that reads as a page whose images failed. */
.coming {
  display: flex; gap: 1.2rem; align-items: center;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink-faint);
  padding: 1.2rem 1.4rem; margin: 1.6rem 0 0; max-width: 46rem;
}
.coming svg { flex: none; color: var(--line); }
.coming p { margin: 0; font-size: .98rem; }
.coming strong { color: var(--ink-soft); }

/* -------------------------------------------------------------------- faq -- */

.faq { max-width: none; }
.faq details {
  border-bottom: 1px solid var(--line); padding: .3rem 0;
}
.faq summary {
  font-family: 'Bitter', Georgia, serif; font-size: 1.22rem; font-weight: 600; color: var(--green-deep);
  padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .5rem; top: 1.6rem; width: .7rem; height: .7rem;
  border-right: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.9rem; }
.faq details > div { padding: 0 0 1.4rem; }
.faq details p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ misc -- */

.quote {
  border-left: 4px solid var(--green); padding: .4rem 0 .4rem 1.6rem; margin: 2rem 0;
  font-family: 'Bitter', Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35; color: var(--green-deep);
}
.band-deep .quote { border-color: #c9e29b; color: #fff; }
.quote cite { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
  font-style: normal; color: var(--ink-soft); margin-top: .9rem; }
.band-deep .quote cite { color: #b7c8a0; }

.honest {
  background: var(--harvest-pale); border: 1px solid #e6c49b; border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.honest h3 { color: #8a4a12; }
.honest ul { margin: 0; padding-left: 1.2rem; }
.honest li { margin-bottom: .5rem; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.6rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; max-width: 38em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.6rem; margin-top: 2rem; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.contact-card a { font-weight: 700; font-size: 1.1rem; word-break: break-word; }

.cta-band { text-align: center; }
.cta-band .wrap > * { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band p { max-width: 36em; }

/* --------------------------------------------------------------- footer -- */

.site-foot { background: var(--green-deep); color: #cdd8bd; padding: 3.5rem 0 2rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.foot-grid h3 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.foot-grid a { display: block; color: #cdd8bd; text-decoration: none; padding: .3rem 0; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand .mark { color: #c9e29b; }
.foot-brand p { color: #b7c8a0; max-width: 26em; }
.foot-brand strong { color: #fff; font-family: 'Bitter', Georgia, serif; font-size: 1.15rem; }
.foot-contact a { display: inline-block; color: #c9e29b; }
.foot-note {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.5rem; padding-top: 1.5rem;
  color: #a8bb96; font-size: .92rem;   /* 4.89:1 on the deep green */
}
.foot-note p { margin: 0 0 .4rem; max-width: none; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* --------------------------------------------------------- cookie notice -- */

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  max-width: 46rem; margin-inline: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.4rem;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .98rem; flex: 1 1 20rem; }
.cookie button {
  font: inherit; font-weight: 700; background: var(--green); color: #fff;
  border: 0; border-radius: 10px; padding: .7rem 1.5rem; min-height: 48px; cursor: pointer;
}
.cookie button:hover { background: var(--green-deep); }

/* ------------------------------------------------------------------ print */

@media print {
  .site-head, .site-foot, .cookie, .btn { display: none; }
  body { font-size: 12pt; background: #fff; }
}

/* them-vs-us pairing inside the sins cards — the sin is what THEY do,
   tagged so nobody reads the headline as a claim about us */
.vs-them, .vs-us { position: relative; padding-left: 5.4rem; margin-top: .55rem; }
.vs-them::before, .vs-us::before {
  position: absolute; left: 0; top: .18em; width: 4.6rem; text-align: center;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: .14em 0;
}
.vs-them { color: #e8c8b8; }
.vs-them::before { content: "Them"; background: rgba(216,109,74,.25); color: #f0b294; }
.vs-us { color: #dfe8cf; }
.vs-us::before { content: "AcreCast"; background: rgba(158,199,116,.28); color: #cbe5a6; }
