/* ==========================================================================
   Theme — the visual direction from PR #441, recreated as our own CSS
   (plan §3B, Phase V). Loaded after styles.css, so it restyles every page.

   Wordmark rules (README → Editorial rules):
   · The name is typed "AIffi" wherever it is visible.
   · Never in capitals: no uppercase, small-caps or font-variant-caps on
     anything that can contain it.
   · Never in a serif or monospace face. Geist Mono is for indices, labels
     and codes that can never contain the name.
   ========================================================================== */

:root {
    --canvas: #f2f5ee;
    --canvas-deep: #e7eee0;
    --ink: #171717;
    --ink-strong: #0b0b09;
    --ink-muted: rgb(23 23 23 / 0.72);
    --ink-subtle: rgb(11 11 9 / 0.64);
    --light-muted: rgb(255 255 255 / 0.74);
    --light-subtle: rgb(255 255 255 / 0.62);
    --rule: rgb(11 11 9 / 0.16);
    --rule-light: rgb(255 255 255 / 0.16);
    --forest: #18251a;
    --accent: #217029;

    --font-display: "Archivo", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* The base stylesheet's tokens, re-pointed at the new palette */
    --color-text: var(--ink);
    --color-text-light: var(--ink-muted);
    --color-text-muted: var(--ink-subtle);
    --color-border: var(--rule);
    --color-background-alt: var(--canvas);
    --font-family: var(--font-sans);
    --border-radius: 2px;
    --border-radius-lg: 4px;
    --navbar-height: 68px;
    --frame: 10px;
    --section-pad: clamp(4.5rem, 9vw, 8rem);
}

/* ---------- Canvas and frame ---------- */

html {
    background: var(--canvas);
    color-scheme: light;
}

body {
    background: #fff;
    border: var(--frame) solid var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: #bbd9b6;
    color: var(--ink);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.035em;
    line-height: 1.05;
    font-weight: 760;
}

a { color: var(--accent); }
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Mono labels: indices and codes only (never the name) */
.eyebrow,
.section-index,
.hero-badge,
.proof-label,
.chip-status,
.approval-head,
.addon-table th,
.footer-column h4,
.pricing-badge,
.feature-badge,
.status-column h3 {
    font-family: var(--font-mono);
}

.eyebrow,
/* The home page's own contents, over the drawn paddock. Pills rather than
   underlines, so they read against the artwork, and not uppercased: the name
   is typed in them and the wordmark is never in capitals. */
.jump-to {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.6rem;
    margin-top: 2.5rem;
}

.jump-to > span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-right: 0.15rem;
}

.jump-to a {
    background: rgb(255 255 255 / 0.82);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jump-to a:hover,
.jump-to a:focus-visible {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
}

/* Anything a link jumps to clears the fixed header. */
section[id],
.feature-detail-content[id] {
    scroll-margin-top: calc(var(--navbar-height) + var(--frame) + 1.5rem);
}

.section-index {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* The name inside an uppercase, mono label. The label may be both; the name may
   be neither (README -> Editorial rules), so it steps out of the transform and
   back into the sans face while the words around it stay in caps. */
.name-inline {
    font-family: var(--font-sans);
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}

.eyebrow-center {
    display: flex;
    justify-content: center;
}

/* ---------- Buttons: black rectangles with an arrow ---------- */

.btn {
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-large {
    font-size: 1rem;
    padding: 0.95rem 1.6rem;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}

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

.btn-primary::after {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10h11M10.5 5.5 15 10l-4.5 4.5' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10h11M10.5 5.5 15 10l-4.5 4.5' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 180ms ease;
}

.btn-primary:hover::after { transform: translateX(2px); }

.btn-secondary,
.btn-hero-light {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-secondary:hover,
.btn-hero-light:hover {
    background: var(--ink);
    color: #fff;
}

/* ---------- Header ---------- */

.navbar {
    top: var(--frame);
    left: var(--frame);
    right: var(--frame);
    height: var(--navbar-height);
    background: rgb(255 255 255 / 0.88);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    box-shadow: none;
}

.nav-container {
    max-width: 1320px;
    padding: 0 1.25rem;
}

.nav-logo {
    gap: 0.6rem;
    color: var(--ink);
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* The wordmark: typed "AIffi", Archivo, mixed case */
.wordmark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.nav-menu {
    gap: 0.15rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link.active::after {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 6px;
    height: 2px;
    background: var(--accent);
}

.btn-download,
.nav-link.btn-download {
    margin-left: 0.6rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: #fff !important;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-download:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ---------- Home hero: a rounded card over the drawn paddock ---------- */

.hero-v2 {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: max(640px, calc(100svh - 2 * var(--frame)));
    overflow: hidden;
    border-radius: 0 0 34px 34px;
    background: var(--canvas-deep);
}

.hero-v2 .hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    z-index: -2;
    animation: art-breathe 16s ease-in-out infinite alternate;
}

.hero-v2 .hero-wash {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.8) 0%, rgb(255 255 255 / 0.3) 52%, rgb(24 50 29 / 0.06) 100%),
        radial-gradient(circle at 50% 40%, rgb(255 255 255 / 0.5), transparent 52%);
}

.hero-v2 .hero-inner {
    width: min(1120px, calc(100% - 40px));
    padding: calc(var(--navbar-height) + 4.5rem) 0 6rem;
    text-align: center;
}

.hero-v2 .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgb(255 255 255 / 0.7);
    border: 1px solid var(--rule);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-v2 .hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-v2 h1 {
    max-width: 1080px;
    margin: 0 auto;
    font-size: clamp(3rem, 7.4vw, 7rem);
    font-weight: 820;
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-wrap: balance;
    color: var(--ink);
    text-shadow: none;
}

/* The tag line as the home headline: three set lines, sized so
   "Agricultural Intelligence" holds one line on a wide screen */
.hero-v2 h1.hero-tagline {
    max-width: none;
    font-size: clamp(2.5rem, 6.3vw, 6.1rem);
    line-height: 0.92;
}

.hero-v2 h1.hero-tagline > span { display: block; }

.hero-v2 .hero-lede {
    max-width: 660px;
    margin: 1.75rem auto 0;
    color: rgb(23 23 23 / 0.74);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    text-wrap: balance;
}

.hero-v2 .hero-buttons {
    justify-content: center;
    margin-top: 2.25rem;
}

.hero-coordinate {
    position: absolute;
    right: 28px;
    bottom: 22px;
    color: rgb(255 255 255 / 0.82);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* "What's on today?" — a speech bubble over the paddock, in the farmer's
   voice (the transcript's user bubble: ink, white text, tail bottom-right).
   Floats over the field on wide screens; sits under the buttons otherwise,
   so it can never cover them. */
.hero-callout {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

.hero-callout-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.9vw, 1.6rem);
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1;
    padding: 0.95rem 1.35rem 1rem 1.1rem;
    border-radius: 22px 22px 6px 22px;
    box-shadow: 0 22px 44px -20px rgb(24 37 26 / 0.55);
    animation: callout-float 5.5s ease-in-out infinite alternate;
}

.hero-callout-bubble::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 16px;
    height: 16px;
    background: var(--ink);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.hero-callout-bubble svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    color: #bfe0b7;
}

@keyframes callout-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-7px); }
}

@media (min-width: 1200px) {
    .hero-callout {
        position: absolute;
        right: clamp(2rem, 7vw, 7.5rem);
        bottom: clamp(4rem, 11vh, 7rem);
        margin: 0;
    }
}

/* ---------- Page headers on inner pages ---------- */

.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--navbar-height) + clamp(4rem, 9vw, 7.5rem));
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
    border-radius: 0 0 28px 28px;
    background: var(--canvas-deep) url("../images/field-art.svg?v=a0ba3079") center 62% / cover no-repeat;
    color: var(--ink);
    text-align: left;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.84) 0%, rgb(255 255 255 / 0.55) 60%, rgb(255 255 255 / 0.2) 100%);
}

.page-header .container {
    max-width: 1200px;
}

.page-header h1 {
    max-width: 16ch;
    color: var(--ink);
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
    margin-bottom: 1.25rem;
}

.page-header p {
    max-width: 640px;
    opacity: 1;
    color: rgb(23 23 23 / 0.74);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.5;
}

/* ---------- Sections ---------- */

.thesis-section,
.features-overview,
.proof-section,
.modules-preview,
.pricing-angle,
.feature-detail,
.pricing-section,
.faq-section,
.legal-content,
.content-section {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}

.thesis-section,
.modules-preview,
.feature-detail.alt {
    background: var(--canvas);
}

.section-title {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 780;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-wrap: balance;
    max-width: 22ch;
    margin: 0 auto 1.25rem;
}

.section-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ink-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.thesis-headline {
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.thesis-lead {
    color: var(--ink-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.thesis-lead strong { color: var(--ink); }

/* Statement: one large display paragraph */
.statement-section {
    padding: clamp(6rem, 12vw, 11rem) max(1.25rem, 6vw);
    background: #fff;
}

.statement-section .statement-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.statement-copy {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.8vw, 5rem);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 1;
    text-wrap: balance;
    color: var(--ink);
}

/* A long statement, still display type: sized to sit on three lines rather
   than filling the screen. */
.statement-copy.statement-copy-long {
    font-size: clamp(1.8rem, 3.6vw, 3.5rem);
    font-weight: 740;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.statement-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    border-top: 1px solid var(--rule);
    padding-top: 1.75rem;
}

.statement-body p {
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.statement-body strong { color: var(--ink); }

/* Section heading: index on the left, display heading on the right */
.section-heading {
    display: grid;
    grid-template-columns: 0.62fr 1.38fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--rule);
    padding-top: 1.25rem;
}

.section-heading h2 {
    max-width: 820px;
    font-size: clamp(2.2rem, 4.4vw, 4.4rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 0.95;
    text-wrap: balance;
}

.section-heading p.section-lede {
    grid-column: 2;
    max-width: 640px;
    color: var(--ink-muted);
    font-size: 1.08rem;
    line-height: 1.6;
    margin-top: -1.5rem;
}

.content-section { background: #fff; }
.content-section.tint { background: var(--canvas); }
.content-section > .wrap { max-width: 1280px; margin: 0 auto; padding: 0 max(1.25rem, 3vw); }

/* Outcome rows: name · example · description on hairlines */
.outcome-list {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--rule);
}

.outcome-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    border-bottom: 1px solid var(--rule);
    padding: clamp(2rem, 3.5vw, 3.25rem) 0;
}

/* The next section opens with its own hairline, so the last row doesn't draw
   one as well — two rules a section's padding apart read as a stray line. */
.outcome-row:last-child { border-bottom: 0; }

.outcome-number {
    display: block;
    color: var(--ink-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.outcome-row h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
}

/* A second ask on its own line, with a little air so it reads as deliberate
   rather than as another wrap of the line above. */
.outcome-example .example-next {
    display: block;
    margin-top: 0.5em;
}

.outcome-example {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
}

.outcome-description {
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.outcome-description + .outcome-description { margin-top: 0.75rem; }

.outcome-description a { font-weight: 600; }

/* ---------- Cards ---------- */

.feature-card,
.proof-card,
.module-chip,
.fit-card,
.pricing-card,
.summary-card,
.faq-item {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
}

.feature-card:hover,
.pricing-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-card h3,
.module-chip h3,
.fit-card h3 {
    font-weight: 760;
    letter-spacing: -0.03em;
}

.feature-icon {
    border-radius: 0;
    background: var(--canvas) !important;
    color: var(--ink) !important;
}

.benefit-text {
    color: var(--accent);
    font-weight: 600;
}

/* Proof: figures on a hairline grid */
.proof-grid {
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.proof-card {
    border-top: 0;
    border-left: 0;
    padding: 1.6rem 1.5rem 1.75rem;
}

.proof-figure {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3.4vw, 3.4rem);
    font-weight: 820;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.proof-unit {
    font-size: 0.45em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-muted);
}

.proof-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 0.75rem 0;
}

/* Modules: hairline chips */
.module-chip-grid {
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    justify-content: flex-start;
}

.module-chip {
    flex: 0 1 25%;
    border-top: 0;
    border-left: 0;
    padding: 1.4rem 1.35rem;
}

.module-chip h3 { font-size: 1.25rem; }

.chip-status {
    border-radius: 0;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
}

.chip-status.live {
    background: var(--canvas);
    color: var(--accent);
    border: 1px solid rgb(33 112 41 / 0.25);
}

/* Annotation: an honest aside */
.annotation {
    background: var(--canvas);
    border-left: 2px solid var(--ink);
    padding: 1.25rem 1.4rem;
    color: var(--ink-muted);
    line-height: 1.65;
}

.annotation > strong:first-child {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

/* A quoted farmer (third-party research, attributed). Never a testimonial. */
.field-quote {
    max-width: 780px;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    border-left: 2px solid var(--rule);
    padding-left: clamp(1rem, 2vw, 1.5rem);
}

.field-quote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    font-weight: 620;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
    text-wrap: pretty;
}

.field-quote cite {
    display: block;
    margin-top: 0.9rem;
    color: var(--ink-subtle);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Dark bands ---------- */

.pull-quote-section,
.status-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--forest);
    color: #fff;
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.pull-quote-section::after,
.status-section::after {
    content: "";
    position: absolute;
    inset: -20% 0 -20% 52%;
    z-index: -1;
    opacity: 0.22;
    transform: skewX(-12deg);
    background:
        linear-gradient(transparent, #a7d19d 20%, #a7d19d 80%, transparent) 12% 0 / 1px 100% no-repeat,
        linear-gradient(transparent, #a7d19d 20%, #a7d19d 80%, transparent) 36% 0 / 1px 100% no-repeat,
        linear-gradient(transparent, #a7d19d 20%, #a7d19d 80%, transparent) 60% 0 / 1px 100% no-repeat,
        linear-gradient(transparent, #a7d19d 20%, #a7d19d 80%, transparent) 84% 0 / 1px 100% no-repeat;
}

.pull-quote {
    max-width: 1080px;
    text-align: left;
}

.pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: #fff;
}

.pull-quote strong {
    font-weight: 800;
    color: #bfe0b7;
}

.status-inner {
    max-width: 980px;
    text-align: left;
}

.status-section .eyebrow { color: var(--light-muted); }

.status-section h2 {
    color: #fff;
    font-size: clamp(2.4rem, 5.6vw, 5.6rem);
    font-weight: 820;
    letter-spacing: -0.06em;
    line-height: 0.9;
    margin-bottom: 1.75rem;
}

.status-lead,
.status-close,
.status-column li {
    color: var(--light-muted);
    line-height: 1.7;
}

.status-lead { font-size: 1.15rem; }

.status-section .btn-primary {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.status-section .btn-primary:hover {
    background: #bfe0b7;
    border-color: #bfe0b7;
    color: var(--ink);
}

.status-section .btn-secondary {
    border-color: rgb(255 255 255 / 0.55);
    color: #fff;
}

.status-column h3 {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom-color: var(--rule-light);
}

/* ---------- Closing call to action over the drawn paddock ---------- */

.cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #dcebd7 url("../images/field-art.svg?v=a0ba3079") center 80% / cover no-repeat;
    color: var(--ink);
    padding: clamp(6rem, 12vw, 10rem) 0;
    text-align: center;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 40%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.55) 48%, rgb(255 255 255 / 0.2) 80%);
}

.cta-section h2 {
    max-width: 18ch;
    margin: 0 auto 1.25rem;
    color: var(--ink);
    font-size: clamp(2.4rem, 5.6vw, 5.4rem);
    font-weight: 820;
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-wrap: balance;
}

.cta-section p {
    max-width: 620px;
    margin: 0 auto 2rem;
    color: var(--ink-muted);
    opacity: 1;
    font-size: 1.1rem;
}

.cta-section .btn-secondary,
.cta-section .btn-primary { margin: 0.25rem; }

.cta-buttons { justify-content: flex-start; }
.cta-section .cta-buttons,
.features-cta { justify-content: center; }

/* A longer closing line, set as the title: still display type, sized to sit
   on three lines rather than five. */
.cta-section h2.cta-title-long {
    max-width: 26ch;
    font-size: clamp(1.9rem, 4.2vw, 3.6rem);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.cta-signoff {
    max-width: 640px;
    margin: 2.25rem auto 0 !important;
    color: var(--ink-muted) !important;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 620;
    letter-spacing: -0.02em;
}

.cta-signoff strong { color: var(--ink); }

/* ---------- Feature detail blocks ---------- */

.feature-badge {
    border-radius: 0;
    background: var(--canvas);
    color: var(--accent);
    border: 1px solid rgb(33 112 41 / 0.25);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.6rem;
}

.feature-detail-text h2 {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 780;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-wrap: balance;
}

.feature-detail-text > p { line-height: 1.7; }

/* A second block inside one module section (Livestock carries pasture and
   grazing), so its heading sits below the module's own h2. */
.feature-detail-text h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 780;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-bottom: var(--spacing-md);
    text-wrap: balance;
}


.feature-list li::before {
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.feature-list strong { color: var(--ink); }

.feature-photo,
.feature-screenshot,
.shot-figure img,
.chart-figure img {
    border-radius: 6px;
    border: 1px solid var(--rule);
    box-shadow: 0 24px 60px -30px rgb(24 37 26 / 0.35);
}

.shot-figure figcaption,
.chart-figure figcaption {
    color: var(--ink-subtle);
}

/* ---------- Ask AIffi transcript ---------- */

.chat-user .bubble {
    background: var(--ink);
    border-radius: 16px 16px 4px 16px;
}

.chat-alffi .bubble {
    border: 1px solid var(--rule);
    border-radius: 16px 16px 16px 4px;
}

/* The speaker label can hold the name: sans, mixed case, never uppercase (0.5) */
.chat-speaker {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ink-subtle);
}

.approval-card {
    border: 1px solid var(--ink);
    border-radius: 4px;
}

.approval-head {
    background: var(--canvas);
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.approval-btn { border-radius: 0; }
.approval-btn.approve { background: var(--ink); }

/* A table inside an AIffi reply. Seven columns scroll sideways on a phone
   rather than squash. */
.bubble-table-wrap {
    overflow-x: auto;
    margin: 0.5rem 0 0.9rem;
}

.bubble-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bubble-table th,
.bubble-table td {
    text-align: left;
    padding: 0.42rem 0.9rem 0.42rem 0;
    border-bottom: 1px solid var(--rule);
}

.bubble-table th { font-weight: 700; color: var(--ink); }
.bubble-table td:first-child { font-weight: 600; color: var(--ink); }

/* The irrigation log card: long field names, a note, a warning, and the
   state it ended in — Recorded — instead of the Approve/Decline buttons. */
/* Photos sent with a message: a tag in the farmer's bubble, or thumbnails once
   the pictures are in (location stripped before they're published). */
.bubble-attach {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.08rem 0.55rem;
    border: 1px solid rgb(255 255 255 / 0.4);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: 0.08em;
}

.bubble-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.bubble-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
}

/* The headline figure in a reply, such as the grazing days. */
.chat-alffi .bubble .bubble-lead { font-size: 1.12rem; color: var(--ink); }

/* A long status line (the pasture result) wraps rather than overflows. */
.approval-status { flex-wrap: wrap; line-height: 1.4; }

.approval-card--log .approval-key { min-width: 9.5rem; }

.approval-note,
.approval-warn {
    margin: 0.8rem 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.approval-note { color: var(--ink-muted); }

.approval-warn {
    padding: 0.55rem 0.75rem;
    background: #fff8e6;
    border-left: 3px solid #b7791f;
    color: #6b4410;
}

.approval-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--rule);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.approval-status::before { content: "\2713"; }

.approval-card--compact .approval-body { padding-bottom: 0.7rem; }
.approval-card--compact .approval-title { margin-bottom: 0.2rem; }
.approval-card--compact .approval-val {
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.annotation ul {
    margin: 0.65rem 0 0.8rem 1.15rem;
    list-style: disc;
}

.annotation li { margin-bottom: 0.3rem; }

@media (max-width: 560px) {
    .approval-card--log .approval-key { min-width: 7.25rem; }
}

/* ---------- Pricing ---------- */

.pricing-card.featured {
    border: 1px solid var(--ink);
    transform: none;
}

.pricing-badge {
    border-radius: 0;
    background: var(--ink);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.pricing-price,
.price {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
    color: var(--ink);
}

.addon-table th {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.addon-table td.addon-price-col {
    color: var(--ink);
    font-family: var(--font-display);
}

.notice-band {
    background: #fbf6e3;
    border-bottom: 1px solid #eadfb5;
}

/* ---------- "Does it pay for itself?" — the payback calculator ---------- */

.payback-calc {
    max-width: 1080px;
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.payback-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem 1.5rem;
    border: 1px solid var(--rule);
    background: var(--canvas);
    padding: 1.4rem 1.5rem;
}

.payback-rates h3 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.payback-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.payback-field input {
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: #fff;
    padding: 0.5rem 0.6rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.payback-field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.payback-rows {
    border-top: 1px solid var(--rule);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.payback-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    border-bottom: 1px solid var(--rule);
    padding: 1.4rem 0;
}

.payback-what h4 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.payback-what p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.payback-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
}

.payback-amount {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 780;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-align: right;
    min-width: 6ch;
}

.payback-ai {
    border: 0;
    color: var(--accent);
    font-size: 0.8em;
    text-decoration: none;
    cursor: help;
}

.payback-totals {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.payback-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    color: var(--ink-muted);
}

.payback-totals output {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.payback-net {
    border-top: 1px solid var(--rule);
    padding-top: 0.8rem;
    color: var(--ink) !important;
    font-weight: 600;
}

.payback-net output {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 820;
    color: var(--accent);
}

.payback-ratio {
    margin: 0.2rem 0 0;
    color: var(--ink-subtle);
    font-size: 0.9rem;
}

.payback-note {
    margin-top: 1.5rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.payback-note strong { color: var(--ink); }

@media (max-width: 860px) {
    .payback-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .payback-amount { text-align: left; }
}

/* ---------- Footer ---------- */

.footer {
    background: var(--ink-strong);
    color: #fff;
    border-top: 1px solid var(--rule-light);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand .brand-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand .wordmark { color: #fff; font-size: 1.6rem; }

.footer-brand p {
    color: var(--light-muted);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-logo { width: 44px; height: 44px; border-radius: 10px; }

/* The tag line: "Agricultural Intelligence For Farmers in your own words".
   Its capitals spell A-I-F-F and the lowercase "in" is the name's final i,
   so keep it exactly as typed and never uppercase it. The i-phrase sits on
   its own line. */
.tagline-end { display: block; }

/* A·I·F·F·i — the initials that spell the name, in green so the link to
   "AIffi" reads at a glance. Brand green on light grounds; a lighter green
   on the dark footer, where #217029 falls below legible contrast. */
.tagline .ac,
.hero-tagline .ac,
.cta-signoff .ac { color: var(--accent); }
.footer .tagline .ac { color: #86d07c; }

.footer-column h4 {
    color: var(--light-subtle);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-column a { color: var(--light-muted); }
.footer-column a:hover { color: #fff; }

.footer-bottom {
    border-top-color: var(--rule-light);
    color: var(--light-subtle);
    text-align: left;
}

/* ---------- Modal ---------- */

.modal-content {
    border-radius: 4px;
    border: 1px solid var(--rule);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.form-group input {
    border-radius: 0;
    border: 1px solid var(--rule);
    font-family: var(--font-sans);
}

.form-group input:focus { border-color: var(--ink); }

/* ---------- Placeholder frame for a capture the PO still owes ---------- */

.capture-owed {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 2rem;
    border: 1px dashed rgb(11 11 9 / 0.35);
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgb(33 112 41 / 0.05) 14px 15px),
        var(--canvas);
    color: var(--ink-muted);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

.capture-owed span {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---------- Motion: reveal from a visible resting state ---------- */

@keyframes art-breathe {
    from { transform: scale(1.03) translate3d(-0.35%, 0, 0); }
    to   { transform: scale(1.055) translate3d(0.35%, -0.4%, 0); }
}

@keyframes reveal-in {
    from { opacity: 0.86; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
    .outcome-row,
    .proof-card,
    .module-chip,
    .feature-card,
    .statement-copy {
        animation: reveal-in 1ms cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-timeline: view();
        animation-range: entry 0% cover 26%;
    }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .nav-link { padding: 0.5rem 0.5rem; font-size: 0.88rem; }
    .nav-link.active::after { left: 0.5rem; right: 0.5rem; }
    .btn-download, .nav-link.btn-download { margin-left: 0.35rem; }
}

@media (max-width: 992px) {
    .module-chip { flex-basis: 50%; }
    .outcome-row { grid-template-columns: 1fr 1fr; }
    .outcome-row .outcome-description { grid-column: 1 / -1; }
    .section-heading { grid-template-columns: 1fr; gap: 1rem; }
    .section-heading p.section-lede { grid-column: 1; margin-top: 0; }
}

@media (max-width: 900px) {
    /* Six links plus the button no longer fit: use the menu */
    .nav-menu {
        position: fixed;
        top: calc(var(--navbar-height) + var(--frame));
        left: var(--frame);
        right: var(--frame);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--rule);
        box-shadow: 0 24px 40px -28px rgb(0 0 0 / 0.35);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-menu.active { transform: none; opacity: 1; visibility: visible; }
    .nav-toggle { display: flex; }
    .nav-link { font-size: 1.05rem; }
    .nav-link.active::after { display: none; }
    .btn-download, .nav-link.btn-download { margin: 0.5rem 0 0; justify-content: center; }
}

@media (max-width: 768px) {
    :root { --frame: 0px; --navbar-height: 60px; }

    body { border-width: 0; }

    .hero-v2 {
        min-height: max(600px, 100svh);
        border-radius: 0 0 24px 24px;
    }

    .hero-v2 .hero-inner {
        width: min(100% - 32px, 680px);
        padding: calc(var(--navbar-height) + 3rem) 0 3.5rem;
    }

    .hero-v2 h1 { font-size: clamp(2.7rem, 12.5vw, 4.2rem); line-height: 0.92; }
    .hero-v2 .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-coordinate { display: none; }


    .statement-body { grid-template-columns: 1fr; }
    .outcome-row { grid-template-columns: 1fr; gap: 1rem; }

    .page-header { border-radius: 0 0 22px 22px; }
    .page-header h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }

    .module-chip { flex-basis: 100%; }
    .proof-grid { grid-template-columns: 1fr; }

    .pull-quote-section::after,
    .status-section::after { left: 30%; }
}
