/* ============================================================================
   AgWizard homepage redesign — flat, grid-driven, ruled.
   Brand palette from the logo: teal (primary/interactive) + green (accent).
   No rounded corners, no shadows, no gradients. 2px rules, Archivo type.
   Scoped under .agw so it never touches the rest of the marketing site.
   ========================================================================== */

/* No Bootstrap on the redesign layout, so zero out the browser's default
   body margin — otherwise an 8px white gap frames the whole page. */
html,
body.agw { margin: 0; padding: 0; }

.agw {
    --teal: #013840;
    --teal-hover: #02545e;
    --green: #44896F;
    --ground: #f3f2f2;
    --ink: #201e1d;
    --divider: rgba(32, 30, 29, 0.40);
    --divider-thin: rgba(32, 30, 29, 0.18);
    --muted: rgba(32, 30, 29, 0.78);
    --faint: rgba(32, 30, 29, 0.55);
    --maxw: 1200px;
    --gutter: clamp(20px, 5vw, 72px);

    background: var(--ground);
    color: var(--ink);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.agw *,
.agw *::before,
.agw *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Base link colors use :where() (zero specificity) so component classes
   (.agw-btn, .agw-nav__link, …) always win — otherwise `.agw a` would
   override them and render, e.g., teal button text on a teal fill. */
.agw a { text-decoration: none; }
:where(.agw a) { color: var(--teal); }
:where(.agw a:hover) { color: var(--green); }

/* --- Shared layout primitives ------------------------------------------- */
.agw-container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    width: 100%;
}

/* Every major band gets a full-bleed 2px rule beneath it. */
.agw-section { border-bottom: 2px solid var(--divider); }
.agw-section--pad { padding-block: clamp(56px, 8vw, 96px); }

.agw-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.agw h1, .agw h2, .agw h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

.agw-lead { font-size: 19px; line-height: 1.5; }
.agw-muted { color: var(--muted); }

/* --- Buttons ------------------------------------------------------------- */
.agw-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 15px 26px;
    border: 2px solid var(--teal);
    border-radius: 4px;   /* matches the field radius, as in the signed-in app */
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.agw-btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
.agw-btn svg { width: 16px; height: 16px; flex: none; }

.agw-btn--outline { background: transparent; color: var(--teal); }
.agw-btn--outline:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.agw-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.agw-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--teal); }

/* --- Nav ----------------------------------------------------------------- */
/* Starts transparent, overlaying the full-screen hero photo (light logo +
   white links). On scroll a JS-toggled .is-scrolled turns it into the solid
   light bar with the dark logo + ink links + bottom rule. */
.agw-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: background .25s ease, border-color .25s ease;
}
.agw-nav.is-scrolled {
    background: var(--ground);
    border-bottom-color: var(--divider);
}
.agw-nav__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px var(--gutter);
}
.agw-brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
}
.agw-brand img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);   /* white logo over the photo */
    transition: filter .25s ease;
}
.agw-nav.is-scrolled .agw-brand img { filter: none; }  /* full-color when solid */
.agw-nav__links { display: flex; align-items: center; gap: 24px; }
.agw-nav__link { font-size: 15px; font-weight: 600; color: #fff; }
.agw-nav__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.agw-nav.is-scrolled .agw-nav__link { color: var(--ink); }
.agw-nav.is-scrolled .agw-nav__link:hover { color: var(--teal); }
.agw-nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: #fff; }
.agw-nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }
.agw-nav.is-scrolled .agw-nav__toggle,
.agw-nav--solid .agw-nav__toggle { color: var(--ink); }

/* Interior pages: solid nav in normal flow (no photo hero behind it). */
.agw-nav.agw-nav--solid {
    position: sticky;
    background: var(--ground);
    border-bottom-color: var(--divider);
}
.agw-nav--solid .agw-brand img { filter: none; }
.agw-nav--solid .agw-nav__link { color: var(--ink); }
.agw-nav--solid .agw-nav__link:hover { color: var(--teal); }

/* --- Interior page header ------------------------------------------------ */
.agw-pagehead { text-align: left; }
.agw-pagehead h1 { font-size: clamp(34px, 5vw, 56px); margin: 6px 0 18px; }
.agw-pagehead__lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* --- Image cards (Features) ---------------------------------------------- */
.agw-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.agw-card__img { border: 2px solid var(--divider); width: 100%; height: auto; display: block; margin-bottom: 16px; }
.agw-card h3 { font-size: 18px; margin-bottom: 10px; }
.agw-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .agw-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .agw-cards { grid-template-columns: 1fr; } }

/* --- Prose (About / Terms / Privacy) ------------------------------------- */
.agw-prose { max-width: 68ch; }
.agw-prose h2 { font-size: 26px; margin: 40px 0 14px; }
.agw-prose h3 { font-size: 20px; margin: 28px 0 10px; }
.agw-prose p { margin-bottom: 16px; color: var(--muted); }
.agw-prose ul, .agw-prose ol { margin: 0 0 16px 22px; color: var(--muted); }
.agw-prose li { margin-bottom: 8px; }
.agw-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* --- FAQ ----------------------------------------------------------------- */
.agw-faq {
    border-top: 2px solid var(--divider);
    /* Full container width, matching the feature-list box above; the answer text
       stays readable via its own 68ch cap (.agw-faq__a). */
}
.agw-faq__item { border-bottom: 2px solid var(--divider); }
.agw-faq__q {
    list-style: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    padding: 22px 40px 22px 0;
    cursor: pointer;
    position: relative;
}
.agw-faq__q::-webkit-details-marker { display: none; }
.agw-faq__q::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--teal);
}
.agw-faq__item[open] .agw-faq__q::after { content: "\2013"; }
.agw-faq__a { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.agw-faq__a p { margin-bottom: 12px; }

/* --- Worked example (home) ------------------------------------------------ */
.agw-example__head { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 14px; }
.agw-example__lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin-bottom: 30px; }

.agw-example__table { border: 2px solid var(--divider-thin); background: #fff; }
.agw-example__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr 1.2fr;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--divider-thin);
    font-variant-numeric: tabular-nums;
}
.agw-example__row:last-child { border-bottom: 0; }
.agw-example__row--head {
    background: var(--ground);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--faint);
}
.agw-example__be { font-weight: 800; color: var(--teal); }
.agw-example__note { font-size: 14px; color: var(--faint); margin-top: 12px; }

/* --- Comparison grid (spreadsheet / QuickBooks / AgWizard) ---------------- */
.agw-compare-wrap { overflow-x: auto; margin: 40px 0 0; }
.agw-compare {
    min-width: 560px;
    max-width: 860px;
    margin-inline: auto;
    border-top: 2px solid var(--divider);
    border-left: 2px solid var(--divider);
}
/* minmax(0,…) pins each track's floor to 0 so the fr ratios size every row
   identically — without it the fr tracks grow to their own content's min-width,
   so the wide header words and the tiny cell marks computed different widths per
   row and the column borders drifted out of line. */
.agw-compare__row { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)); }
.agw-compare__row > span {
    border-right: 2px solid var(--divider);
    border-bottom: 2px solid var(--divider);
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-align: center;
}
.agw-compare__row > span:first-child { justify-content: flex-start; text-align: left; font-weight: 600; }
.agw-compare__row--head > span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.agw-compare__us { background: rgba(1, 56, 64, 0.05); }
.agw-compare__row--head .agw-compare__us { background: var(--teal); color: #fff; }
.agw-compare__yes { color: var(--teal); font-weight: 800; }
.agw-compare__no { color: var(--faint); }
.agw-compare__partial { color: var(--muted); font-size: 13px; }
/* Phones: let the table shrink to fit instead of forcing a horizontal scroll
   that clipped the AgWizard column mid-cell. Tighter padding/type keeps all
   four columns on screen; long capability labels wrap to two lines. */
@media (max-width: 560px) {
    .agw-compare { min-width: 0; }
    /* 1.15fr rather than 1.9fr: the capability labels wrap happily, the header
       words do not, so the three comparison columns need the room more. At a
       390px phone this leaves ~76px of content per column against the 71px
       "Spreadsheet" needs — margin enough that Safari's metrics, which differ
       slightly from the Chrome ones this was measured in, still fit on one
       line. */
    .agw-compare__row { grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); }
    .agw-compare__row > span { padding: 11px 6px; font-size: 13px; }
    .agw-compare__row > span:first-child { font-size: 13px; }
    /* At 800 weight and uppercase, "SPREADSHEET" is wider than its own column,
       and with no space to break at it spilled over the neighbor instead of
       wrapping. Mixed case at normal tracking is about a quarter narrower.
       Below 390px it still has to wrap, so the markup carries a <wbr> at each
       compound boundary ("Spread|sheet", "Quick|Books") — that keeps the break
       deterministic instead of letting the browser chop mid-word. */
    .agw-compare__row--head > span {
        font-size: 11px;
        font-weight: 700;
        text-transform: none;
        letter-spacing: 0;
        padding: 10px 4px;
        overflow-wrap: break-word;
    }
    .agw-compare__row--head > span:first-child { font-size: 11px; }
    .agw-compare__partial { font-size: 12px; }
}
.agw-example__punch {
    margin-top: 34px;
    border-left: 4px solid var(--green);
    padding: 4px 0 4px 22px;
    max-width: 68ch;
}
.agw-example__punch p { font-size: 19px; margin: 0; }

/* Stack into labelled rows on small screens — a 5-column grid can't survive. */
@media (max-width: 720px) {
    .agw-example__row { grid-template-columns: 1fr; gap: 4px; }
    .agw-example__row--head { display: none; }
    .agw-example__row span::before {
        content: attr(data-label) " — ";
        font-size: 12px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--faint);
    }
}

/* --- Crop insurance block -------------------------------------------------- */
.agw-insurance__list { margin: 20px 0; padding: 0; list-style: none; }
.agw-insurance__list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.agw-insurance__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 12px;
    background: var(--green);
}
.agw-insurance__note { font-size: 16px; color: var(--muted); border-top: 2px solid var(--divider-thin); padding-top: 16px; }

/* --- Product screenshots --------------------------------------------------- */
.agw-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 34px; }
.agw-shot { margin: 0; }
.agw-shot img { width: 100%; height: auto; display: block; border: 2px solid var(--divider-thin); }
.agw-shot figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
.agw-shot figcaption strong { color: var(--ink); display: block; }
/* Stand-in until the real capture is dropped in; keeps the layout final. */
.agw-shot__pending {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--divider);
    background: var(--ground);
    color: var(--faint);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- Forms (Material outlined, matching the signed-in app) ---------------- */

/* The app's fields are Bootstrap .form-floating; these are bare semantic inputs,
   so the same look is rebuilt here against this site's own markup and tokens.
   The label sits BEFORE the input in the DOM (correct for a11y and for forms
   without JS), which a sibling selector can't walk backwards — :has() on the row
   is what lets the label react to the input's state with no markup reordering.

   Floating requires the input to expose :placeholder-shown, so every field
   carries placeholder=" ". A field without one simply keeps its label raised. */
.agw-form {
    --field-outline: var(--divider);
    --field-accent: var(--green);
    --field-radius: 4px;
    --field-ease: cubic-bezier(0.2, 0, 0, 1);

    max-width: 640px;
}

.agw-form__row { position: relative; margin-bottom: 22px; }

.agw-form__row > label {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 0 5px;
    background: #fff;
    color: var(--faint);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transform: translateY(14px);
    transition: transform .18s var(--field-ease), font-size .18s var(--field-ease), color .18s var(--field-ease);
}

/* Raised: on focus, once filled, and always for controls with no empty state. */
.agw-form__row:has(input:focus) > label,
.agw-form__row:has(textarea:focus) > label,
.agw-form__row:has(select:focus) > label,
.agw-form__row:has(input:not(:placeholder-shown)) > label,
.agw-form__row:has(textarea:not(:placeholder-shown)) > label,
.agw-form__row:has(select) > label {
    transform: translateY(-8px);
    font-size: 13px;
}

.agw-form__row:has(input:focus) > label,
.agw-form__row:has(textarea:focus) > label,
.agw-form__row:has(select:focus) > label { color: var(--field-accent); }

.agw-form input:not([type="checkbox"]):not([type="radio"]),
.agw-form select,
.agw-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--field-outline);
    border-radius: var(--field-radius);
    padding: 20px 14px 10px;
    transition: border-color .18s var(--field-ease), box-shadow .18s var(--field-ease);
}
.agw-form input:not([type="checkbox"]):not([type="radio"]):hover,
.agw-form select:hover,
.agw-form textarea:hover { border-color: var(--ink); }

/* Thicken via an inset shadow so focus costs no layout shift. */
.agw-form input:focus,
.agw-form select:focus,
.agw-form textarea:focus {
    outline: none;
    border-color: var(--field-accent);
    box-shadow: inset 0 0 0 1px var(--field-accent);
}
.agw-form textarea { min-height: 140px; resize: vertical; }

.agw-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agw-form__grid3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 20px; }

/* --- Checkboxes ----------------------------------------------------------- */
.agw-check-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.agw-check-row label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.agw-check-row input[type="checkbox"] {
    appearance: none;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid var(--divider);
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    transition: background-color .18s var(--field-ease), border-color .18s var(--field-ease), box-shadow .18s var(--field-ease);
}
.agw-check-row input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
    /* Tick drawn in the box rather than shipped as an asset. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E");
    background-size: 100%;
}
/* M3 state layer */
.agw-check-row input[type="checkbox"]:hover,
.agw-check-row input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 7px rgba(68, 137, 111, 0.16);
    outline: none;
}

.agw-form__error { color: #b3261e; font-size: 13px; margin-top: 6px; }
.agw-alert {
    border: 2px solid var(--green);
    background: #fff;
    padding: 16px 18px;
    margin-bottom: 24px;
    font-weight: 600;
    max-width: 640px;
}
/* Warning variant — tinted amber fill so it reads at a glance (e.g. the
   "signed out due to inactivity" notice), not just a hairline border. */
.agw-alert--warn {
    border-color: #c99a2e;
    background: #fbf1d3;
    color: #6b5310;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.agw-alert--warn::before {
    content: "\26A0";   /* ⚠ */
    font-size: 18px;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .agw-form__grid,
    .agw-form__grid3 { grid-template-columns: 1fr; }
}

/* --- Hero ---------------------------------------------------------------- */
.agw-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.agw-hero__title {
    font-size: clamp(38px, 5.2vw, 72px);
    line-height: 1.07;
    margin: 4px 0 22px;
}
.agw-hero__title span { display: block; }
.agw-hero__body { font-size: 17px; line-height: 1.65; max-width: 46ch; color: var(--muted); margin-bottom: 30px; }
.agw-panel { border: 2px solid var(--divider); background: #fff; }
.agw-panel img { width: 100%; height: auto; }
.agw-panel__cap {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--faint);
    padding: 10px 14px;
    border-top: 2px solid var(--divider);
}

/* --- Full-bleed photo hero (full screen on load) ------------------------- */
.agw-hero-photo {
    position: relative;
    background: #201e1d center / cover no-repeat;
}
/* Full-width top darkening so the transparent nav stays legible over sky. */
.agw-hero-photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(12, 20, 22, 0.55), rgba(12, 20, 22, 0));
    z-index: 1;
    pointer-events: none;
}
.agw-hero-photo__scrim {
    position: relative;
    z-index: 2;
    /* Teal scrim, heaviest on the left so the overlaid copy stays legible. */
    background: linear-gradient(90deg,
        rgba(1, 56, 64, 0.94) 0%,
        rgba(1, 56, 64, 0.78) 34%,
        rgba(1, 56, 64, 0.30) 64%,
        rgba(1, 56, 64, 0.00) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: clamp(96px, 12vh, 160px);   /* clears the fixed nav */
}
.agw-hero-photo__content { max-width: 620px; }
.agw-hero-photo .agw-kicker { color: rgba(255, 255, 255, 0.85); }
.agw-hero-photo .agw-hero__title { color: #fff; }
.agw-hero-photo .agw-hero__body { color: rgba(255, 255, 255, 0.88); }
.agw-hero__trust { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.01em; }

.agw .agw-btn--light { background: #fff; border-color: #fff; color: var(--teal); }
.agw .agw-btn--light:hover { background: var(--ground); border-color: var(--ground); color: var(--teal); }

@media (max-width: 880px) {
    .agw-hero-photo__scrim { background: rgba(1, 56, 64, 0.82); }
}

/* --- Centered statement -------------------------------------------------- */
.agw-statement { text-align: center; }
.agw-statement h2 { font-size: 32px; }
.agw-rule-sm { width: 120px; height: 2px; background: var(--ink); margin: 22px auto; }
.agw-statement__lead { font-weight: 700; font-size: 19px; max-width: 56ch; margin-inline: auto; }
.agw-credibility .agw-statement__lead { font-weight: 400; color: var(--muted); }
.agw-credibility__contact { margin-top: 18px; font-size: 15px; color: var(--faint); }
.agw-free__reassure { text-align: center; max-width: 640px; margin: 22px auto 0; font-size: 14px; color: var(--muted); }

/* --- Tools intro + feature grid ------------------------------------------ */
.agw-tools__intro { max-width: 720px; margin-inline: auto; text-align: center; }
.agw-tools__intro h2 { font-size: 32px; margin-bottom: 16px; }
.agw-tools__intro p { font-size: 15.5px; color: var(--muted); }

.agw-featuregrid {
    margin-top: 40px;
    border-top: 2px solid var(--divider);
    border-left: 2px solid var(--divider);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.agw-featuregrid__cell {
    border-right: 2px solid var(--divider);
    border-bottom: 2px solid var(--divider);
    padding: 30px 26px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 120px;
}
.agw-mark { width: 10px; height: 10px; background: var(--green); flex: none; margin-top: 6px; }
.agw-featuregrid__cell span { font-size: 16px; font-weight: 700; line-height: 1.35; }

.agw-center-cta { text-align: center; margin-top: 40px; }

/* --- Photo split --------------------------------------------------------- */
.agw-split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: center;
}
.agw-split h2 { font-size: 30px; margin-bottom: 20px; }
.agw-split p { color: var(--muted); margin-bottom: 16px; }
.agw-split__photo { aspect-ratio: 1920 / 1281; object-fit: cover; width: 100%; height: 100%; filter: grayscale(0.35) contrast(1.03); }

/* --- Partner callout ----------------------------------------------------- */
.agw-partner {
    border: 2px solid var(--divider);
    padding: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.agw-partner h3 { font-size: 24px; margin-bottom: 12px; }
.agw-partner p { color: var(--muted); max-width: 64ch; }

/* --- How it works -------------------------------------------------------- */
.agw-steps__head { text-align: center; max-width: 640px; margin-inline: auto; }
.agw-steps__head h2 { font-size: 32px; }
.agw-steps__grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.agw-step__num {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 12px;
}
.agw-step__num::before { content: ""; width: 9px; height: 9px; background: var(--teal); flex: none; }
.agw-step p { font-size: 15px; color: var(--muted); }

/* --- Everything-free (replaces the old pricing table) -------------------- */
.agw-free__head { text-align: center; max-width: 720px; margin-inline: auto; }
.agw-free__head h2 { font-size: 32px; margin-bottom: 16px; }
.agw-free__head p { font-size: 15.5px; color: var(--muted); }
.agw-free__list {
    margin: 40px 0;
    border-top: 2px solid var(--divider);
    border-left: 2px solid var(--divider);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.agw-free__item {
    border-right: 2px solid var(--divider);
    border-bottom: 2px solid var(--divider);
    padding: 16px 22px;
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}
.agw-check { color: var(--teal); font-weight: 800; flex: none; }

/* --- Closing banner ------------------------------------------------------ */
.agw-banner {
    background: var(--teal);
    color: #fff;
}
.agw-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-block: clamp(48px, 7vw, 80px);
}
.agw-banner h3 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -0.02em; max-width: 18ch; }

/* --- Footer -------------------------------------------------------------- */
.agw-footer { background: var(--ground); }
.agw-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-block: 56px;
}
.agw-footer h4 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.agw-footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.agw-footer p, .agw-footer a { font-size: 14px; color: var(--faint); line-height: 1.9; }
.agw-footer a:hover { color: var(--teal); }
.agw-footer__links { display: flex; flex-direction: column; }
.agw-footer__social { display: inline-flex; }
.agw-footer__social svg { width: 20px; height: 20px; fill: var(--faint); }
.agw-footer__social:hover svg { fill: var(--teal); }
.agw-footer__strip {
    border-top: 2px solid var(--divider);
    text-align: center;
    padding: 16px var(--gutter);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
}
/* Match the strip text (the general .agw-footer a rule forces 14px otherwise). */
.agw-footer__strip a { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 880px) {
    .agw-hero__grid,
    .agw-split { grid-template-columns: 1fr; gap: 36px; }
    .agw-featuregrid { grid-template-columns: repeat(2, 1fr); }
    .agw-steps__grid { grid-template-columns: repeat(2, 1fr); }
    .agw-free__list { grid-template-columns: 1fr; }
    .agw-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .agw-nav__links { gap: 16px; }
}

@media (max-width: 560px) {
    .agw-featuregrid,
    .agw-steps__grid { grid-template-columns: 1fr; }
    .agw-hero__title { font-size: clamp(34px, 11vw, 48px); }

    /* Collapse the links into a hamburger panel — they used to just vanish.
       Phone top bar is just logo (left) + hamburger (right); the links live in
       the panel (Sign Up Free / Login). */
    .agw-nav__inner { flex-wrap: wrap; column-gap: 14px; align-items: center; }
    .agw-brand { order: 1; }  /* base rule already pushes the toggle right (margin-right:auto) */
    .agw-nav__toggle { display: block; order: 2; }
    .agw-nav__links {
        order: 3;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 12px;
        border-top: 2px solid var(--divider);
    }
    .agw-nav.is-open .agw-nav__links { display: flex; }
    .agw-nav__links .agw-nav__link { padding: 13px 2px; }

    /* Open panel: go solid so the links read even over the hero photo (the nav
       is otherwise transparent until scrolled). Mirrors the .is-scrolled state. */
    .agw-nav.is-open { background: var(--ground); border-bottom-color: var(--divider); }
    .agw-nav.is-open .agw-brand img { filter: none; }
    .agw-nav.is-open .agw-nav__link { color: var(--ink); }
    .agw-nav.is-open .agw-nav__link:hover { color: var(--teal); }
    .agw-nav.is-open .agw-nav__toggle { color: var(--ink); }
}
