/* Automatiza: the easyweb look on the automation business. Same paper, same type, same
   restraint; the wordmark is a logo file and the argument is a ledger of what gets automated. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 5.5rem; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: var(--lh-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-display); margin: 0; font-weight: var(--heading-weight, 500); }
h1 { font-size: var(--step-5); line-height: 0.96; letter-spacing: -0.038em; }
h2 { font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.026em; }
h3 { font-size: var(--step-1); line-height: 1.18; letter-spacing: -0.012em; }
p { margin: 0; max-width: var(--measure); }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-3xl); }
@media (max-width: 760px) { .section { padding-block: var(--space-2xl); } }
.lede { margin-block-start: var(--space-lg); font-size: var(--step-1); line-height: 1.45;
  color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }

/* header */
.ag-head { position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.ag-head__in { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); min-height: 4.25rem; }
.ag-brand { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  letter-spacing: -0.02em; }
.ag-brand span { color: var(--muted); font-weight: 500; }
.ag-nav { display: flex; gap: var(--space-lg); font-size: var(--step--1); font-weight: 500; }
.ag-head__end { display: flex; align-items: center; gap: var(--space-md); }
/* language switcher: quiet, but never hidden, because half the island reads another one */
.ag-lang { display: flex; gap: var(--space-xs); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted); }
.ag-lang a { padding: 0.15rem 0.4rem; border-radius: 6px; color: var(--muted); }
.ag-lang a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 560px) { .ag-lang { display: none; } }
.ag-nav a:hover { color: var(--accent-deep); }
/* The shared mobile menu appears at 800px. Hiding this nav any earlier leaves a band of
   widths with no navigation at all — it was 880px, so 801-880px had none (Luke, 21 Sep). */
@media (max-width: 800px) { .ag-nav { display: none; } }

/* Dropdowns. Hover for pointers, focus-within for keyboards; no JavaScript, and the group
   heading stays a real link so it works when neither happens. */
.ag-nav__group { position: relative; display: inline-flex; align-items: center; }
.ag-nav__top { display: inline-flex; align-items: center; gap: 0.3rem; }
.ag-nav__chev { transition: transform var(--dur-short) var(--ease-out); }
.ag-nav__group:hover .ag-nav__chev,
.ag-nav__group:focus-within .ag-nav__chev { transform: rotate(180deg); }
.ag-nav__menu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 90;
  display: none; flex-direction: column; min-width: 15rem; padding: var(--space-xs) 0;
  background: var(--paper); border: 1px solid var(--rule, #0001); border-radius: 10px;
  box-shadow: 0 8px 28px #0000001f; }
.ag-nav__group:hover .ag-nav__menu,
.ag-nav__group:focus-within .ag-nav__menu { display: flex; }
/* A gap between the heading and the panel would close the menu as the pointer crosses it. */
.ag-nav__menu::before { content: ""; position: absolute; inset-inline: 0; top: -0.5rem; height: 0.5rem; }
.ag-nav__menu a { padding: var(--space-xs) var(--space-md); white-space: nowrap;
  font-weight: 500; color: var(--ink); }
.ag-nav__menu a:hover { background: var(--paper-2); color: var(--accent-deep); }

.ag-btn { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600;
  font-size: var(--step--1); padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--ink); border-radius: 999px;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out); }
.ag-btn:hover { transform: translateY(-1px); }
.ag-btn--fill { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.ag-btn--fill:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.ag-btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ag-btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* hero: type left, a live stack of the real example sites right */
.ag-hero { padding-block: var(--space-2xl) var(--space-xl); }
.ag-hero__grid { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 980px) { .ag-hero__grid { grid-template-columns: 1.02fr 0.98fr; } }
.ag-hero h1 { max-width: 13ch; }
.ag-hero__acts { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-block-start: var(--space-xl); }
.ag-hero__note { margin-block-start: var(--space-lg); font-size: var(--step--1); color: var(--muted); }
/* Four real example sites, cascading. The portrait crop was mangling the shape
   of a browser window, so these keep the window's own proportions and stagger
   down and to the right, the way the original pair of stacked windows did. */
.ag-fan { position: relative; aspect-ratio: 4 / 2.7; }
.ag-fan img {
  position: absolute; width: 58%; aspect-ratio: 1200 / 770;
  object-fit: cover; object-position: top;
  border-radius: 9px; border: 1px solid var(--rule); background: var(--paper);
  box-shadow: 0 16px 38px oklch(25% 0.03 var(--hue) / 0.19);
  transition: transform var(--dur-long) var(--ease-out),
              box-shadow var(--dur-long) var(--ease-out); }
.ag-fan img:nth-child(1) { inset-inline-start: 0;   inset-block-start: 0;   z-index: 1;
  transform: rotate(-3.4deg); }
.ag-fan img:nth-child(2) { inset-inline-start: 14%; inset-block-start: 8%;  z-index: 2;
  transform: rotate(-1.1deg); }
.ag-fan img:nth-child(3) { inset-inline-start: 28%; inset-block-start: 16%; z-index: 3;
  transform: rotate(1.1deg); }
.ag-fan img:nth-child(4) { inset-inline-start: 42%; inset-block-start: 24%; z-index: 4;
  transform: rotate(3.4deg); }
/* opens a little under the cursor so the ones behind are readable */
.ag-fan:hover img:nth-child(1) { transform: translate(-4%, -4%) rotate(-5deg); }
.ag-fan:hover img:nth-child(2) { transform: translate(-1.4%, -1.4%) rotate(-1.6deg); }
.ag-fan:hover img:nth-child(3) { transform: translate(1.4%, 1.4%) rotate(1.6deg); }
.ag-fan:hover img:nth-child(4) { transform: translate(4%, 4%) rotate(5deg);
  box-shadow: 0 22px 48px oklch(25% 0.03 var(--hue) / 0.24); }
@media (max-width: 979px) {
  .ag-fan { aspect-ratio: 4 / 3.05; }
  .ag-fan img { width: 72%; }
  .ag-fan img:nth-child(1) { inset-inline-start: 0;   inset-block-start: 0; }
  .ag-fan img:nth-child(2) { inset-inline-start: 9%;  inset-block-start: 8%; }
  .ag-fan img:nth-child(3) { inset-inline-start: 18%; inset-block-start: 16%; }
  .ag-fan img:nth-child(4) { inset-inline-start: 27%; inset-block-start: 24%; }
}
@media (prefers-reduced-motion: reduce) { .ag-fan img { transition: none; } }

/* the work: full-width, big, one per row on desktop alternating */
.ag-work { display: grid; gap: var(--space-2xl); }
.ag-case { display: grid; gap: var(--space-lg); align-items: center; }
@media (min-width: 900px) {
  .ag-case { grid-template-columns: 1.35fr 0.65fr; gap: var(--space-2xl); }
  /* alternate the side the screenshot sits on, but keep it in the WIDE column */
  .ag-case:nth-child(even) { grid-template-columns: 0.65fr 1.35fr; }
  .ag-case:nth-child(even) > figure { order: 2; }
  .ag-case:nth-child(even) > div { order: 1; }
}
.ag-case figure { margin: 0; }
.ag-case figure img { border-radius: 10px; border: 1px solid var(--rule);
  box-shadow: 0 14px 34px oklch(25% 0.03 var(--hue) / 0.12);
  transition: transform var(--dur-long) var(--ease-out); }
.ag-case:hover figure img { transform: translateY(-4px); }
.ag-case__k { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); }
.ag-case h3 { margin-block-start: var(--space-xs); font-size: var(--step-2); }
.ag-case p { margin-block-start: var(--space-md); color: var(--muted); }
.ag-case__link { display: inline-flex; align-items: center; gap: var(--space-2xs);
  margin-block-start: var(--space-lg); font-weight: 600; border-bottom: 1px solid var(--accent);
  padding-block-end: 2px; }
.ag-case__link:hover { color: var(--accent-deep); }

/* what you get: an ordered ledger, not cards */
.ag-list { border-top: 1px solid var(--ink); margin-block-start: var(--space-xl); }
.ag-row { display: grid; gap: var(--space-sm); padding-block: var(--space-lg);
  border-bottom: 1px solid var(--rule); }
@media (min-width: 840px) { .ag-row { grid-template-columns: 3.5rem 1fr 1.3fr; gap: var(--space-xl);
  align-items: baseline; } }
.ag-row__n { font-family: var(--font-display); color: var(--accent-deep); font-weight: 600; }
.ag-row p { color: var(--muted); }

/* steps on ink */
.ag-dark { background: var(--ink); color: var(--paper); }
.ag-dark h2, .ag-dark h3 { color: var(--paper); }
/* Derive from the section's own foreground, not a fixed lightness, or this text
   stays pale when a theme inverts paper and ink and the section turns light. */
.ag-dark .lede, .ag-dark p { color: color-mix(in oklab, currentColor 82%, transparent); }
.ag-steps { display: grid; gap: var(--space-xl); margin-block-start: var(--space-2xl); }
@media (min-width: 820px) { .ag-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); } }
.ag-step__n { font-family: var(--font-display); font-size: var(--step-3); line-height: 1;
  color: oklch(72% 0.14 var(--hue-accent)); }
.ag-step h3 { margin-block-start: var(--space-md); }
.ag-step p { margin-block-start: var(--space-sm); }

/* pricing: one main card, two plain columns */
.ag-prices { display: grid; gap: var(--space-lg); margin-block-start: var(--space-xl); }
@media (min-width: 900px) { .ag-prices { grid-template-columns: 1.25fr 1fr 1fr; gap: var(--space-xl); } }
.ag-price { padding: var(--space-xl); border: 1px solid var(--rule); border-radius: 14px;
  display: flex; flex-direction: column; gap: var(--space-sm); background: var(--paper); }
.ag-price--main { border: 2px solid var(--ink); }
.ag-price__amt { font-family: var(--font-display); font-size: var(--step-3); line-height: 1;
  letter-spacing: -0.03em; }
.ag-price__amt small { font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }
.ag-price ul { margin: var(--space-sm) 0 0; padding-inline-start: 1.1rem; color: var(--muted);
  font-size: var(--step--1); }
.ag-price li + li { margin-block-start: var(--space-2xs); }
.ag-price .ag-btn { margin-block-start: auto; align-self: start; }

/* live style picker */
.ag-picker { padding: var(--space-xl); border-radius: 14px; background: var(--paper-2);
  border: 1px solid var(--rule); }
.ag-swatches { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-block-start: var(--space-lg); }
.ag-sw { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: pointer;
  padding: var(--space-xs) var(--space-md); border-radius: 999px; background: var(--paper);
  border: 1px solid var(--rule); font: inherit; font-size: var(--step--1); font-weight: 500;
  color: var(--ink); transition: border-color var(--dur-short) var(--ease-out); }
.ag-sw:hover { border-color: var(--ink); }
.ag-sw.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ag-sw i { width: 12px; height: 12px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 1px oklch(20% 0 0 / 0.1); }

/* faq */
.ag-faq { display: grid; gap: var(--space-lg); margin-block-start: var(--space-xl); }
@media (min-width: 840px) { .ag-faq { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } }
.ag-faq h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; }
.ag-faq p { margin-block-start: var(--space-xs); color: var(--muted); font-size: var(--step--1); }

/* contact + footer */
.ag-contact { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .ag-contact { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); } }
.ag-form { display: grid; gap: var(--space-md); }
.ag-form label { display: grid; gap: var(--space-2xs); font-size: var(--step--1); font-weight: 600; }
.ag-form input, .ag-form textarea { font: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  padding: var(--space-sm) var(--space-md); }
.ag-form textarea { min-height: 6.5rem; resize: vertical; }
.ag-form input:focus, .ag-form textarea:focus { outline: none; border-color: var(--accent); }
.ag-hp { position: absolute; left: -9999px; }
.ag-foot { background: var(--ink); color: color-mix(in oklab, var(--paper) 68%, transparent);
  padding-block: var(--space-xl); font-size: var(--step--1); }
.ag-foot__in { display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-between; }
.ag-foot a:hover { color: var(--paper); }

/* ---- full-site previews: the whole page in the frame, scrolling on hover ---- */
.ag-case figure { position: relative; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--paper-2);
  box-shadow: 0 14px 34px oklch(25% 0.03 var(--hue) / 0.12); }
.ag-case { --ar: 3.4; --frame: clamp(340px, 52svh, 560px); }
.ag-case figure a { display: block; height: var(--frame); overflow: hidden; }
/* One fixed duration made a 3000px page crawl and a 5600px page race. The travel
   is proportional to --ar, so the duration has to be too. About 1.9s per screen. */
.ag-case figure img { border: 0; border-radius: 0; box-shadow: none; width: 100%;
  transition: transform calc(var(--ar) * 1.9s) cubic-bezier(0.33, 0, 0.4, 1); }
.ag-case:hover figure img { transform: translateY(calc(-100% + var(--frame))); }
.ag-case:hover figure { transform: none; }
.ag-case figure::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0;
  height: 3.5rem; pointer-events: none;
  background: linear-gradient(to top, var(--paper), transparent); }
.ag-case__hint { position: absolute; inset-block-end: var(--space-sm); inset-inline-end: var(--space-md);
  font-size: var(--step--1); color: var(--muted); z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ag-case:hover figure img { transform: none; } }
/* the fan is built from viewport crops, so they need no height cap */
/* three tiers: the middle one is visibly the answer */
.ag-prices { align-items: stretch; }
@media (min-width: 900px) { .ag-prices { grid-template-columns: 1fr 1.18fr 1fr; } }
.ag-price--main { position: relative; background: var(--paper-2);
  box-shadow: 0 18px 44px oklch(25% 0.03 var(--hue) / 0.14); }
.ag-price__flag { align-self: start; display: inline-block; background: var(--accent);
  color: var(--paper); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  padding: var(--space-2xs) var(--space-md); border-radius: 999px; }
.ag-price__foot { margin-block-start: var(--space-md); padding-block-start: var(--space-md);
  border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.ag-price:not(.ag-price--main) .ag-price__amt { color: var(--muted); }

/* ---- blog: the same paper and type as the sales page, not the base theme ----
   The agencia skin had no blog templates, so both blog pages fell through to the
   base skin, whose templates fill a "main" block this base.html never renders.
   The result was a valid, completely blank page. */
.ag-page-head { padding-block: var(--space-2xl) var(--space-lg); }
.ag-page-head h1 { max-width: 20ch; }
.ag-crumb { font-size: var(--step--1); color: var(--muted); margin-block-end: var(--space-md);
  letter-spacing: 0.04em; }
.ag-crumb span { opacity: 0.5; margin-inline: 0.35rem; }
.ag-crumb a:hover { color: var(--accent-deep); }

.ag-posts { display: grid; gap: var(--space-2xl); }
@media (min-width: 700px) { .ag-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ag-posts { grid-template-columns: repeat(3, 1fr); } }
.ag-post__img { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--rule); }
.ag-post__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out); }
.ag-post:hover .ag-post__img img { transform: scale(1.03); }
.ag-post h2 { margin-block-start: var(--space-md); font-size: var(--step-1); line-height: 1.25; }
.ag-post p { margin-block-start: var(--space-sm); color: var(--muted); font-size: var(--step--1); }
.ag-post .ag-case__link { margin-block-start: var(--space-md); font-size: var(--step--1); }

.ag-post__meta { margin-block-start: var(--space-md); font-size: var(--step--1); color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; }
.ag-post__hero { margin: 0 auto; padding-block-end: var(--space-xl); }
.ag-post__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--rule); }

.ag-article { display: grid; gap: var(--space-2xl); padding-block-end: var(--space-2xl); }
@media (min-width: 1000px) { .ag-article { grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--space-2xl); } }
.ag-prose { max-width: 68ch; font-size: var(--step-0); line-height: 1.65; }
.ag-prose h2 { margin-block: var(--space-2xl) var(--space-sm); font-size: var(--step-2); }
.ag-prose h3 { margin-block: var(--space-xl) var(--space-xs); font-size: var(--step-1); }
.ag-prose p, .ag-prose ul, .ag-prose ol { margin-block-start: var(--space-md); color: var(--ink-soft); }
.ag-prose ul, .ag-prose ol { padding-inline-start: 1.25rem; }
.ag-prose li { margin-block-start: var(--space-xs); }
.ag-prose strong { color: var(--ink); font-weight: 600; }
.ag-prose a { border-bottom: 1px solid var(--accent); }
.ag-prose a:hover { color: var(--accent-deep); }

.ag-postcta { margin-block-start: var(--space-2xl); background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: var(--space-xl); }
.ag-postcta h2 { margin-block-start: 0; color: var(--paper); font-size: var(--step-2); }
.ag-postcta p { color: color-mix(in oklab, currentColor 82%, transparent);
  margin-block-start: var(--space-sm); }
.ag-postcta .ag-btn { margin-block-start: var(--space-lg); }

.ag-side { align-self: start; display: grid; gap: var(--space-xl); }
@media (min-width: 1000px) { .ag-side { position: sticky; top: 5.5rem; } }
.ag-side__cta { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px;
  padding: var(--space-lg); }
.ag-side__cta h3 { font-size: var(--step-0); }
.ag-side__cta p { margin-block-start: var(--space-sm); color: var(--muted); font-size: var(--step--1); }
.ag-side__rel ul { margin-block-start: var(--space-md); display: grid; gap: var(--space-sm);
  list-style: none; padding: 0; }
.ag-side__rel a { font-size: var(--step--1); border-bottom: 1px solid var(--rule); padding-block-end: 2px; }
.ag-side__rel a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* legal pages: one narrow column, nothing else competing for attention */
.ag-legal { padding-block-end: var(--space-2xl); }
.ag-legal .ag-prose { max-width: 62ch; }
.ag-legal .ag-prose h2:first-child { margin-block-start: 0; }

/* consent: required before a form that collects personal data may be sent */
.ag-consent { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm);
  align-items: start; font-size: var(--step--1); color: var(--muted); }
.ag-consent input { margin-block-start: 0.2rem; width: 1rem; height: 1rem; accent-color: var(--ink); }
.ag-consent a { border-bottom: 1px solid var(--accent); }
.ag-consent a:hover { color: var(--accent-deep); }

/* motion: brisk, this page has to sell */
:root { --rv-dist: 18px; --rv-dur: 560ms; --rv-step: 65ms; }

/* ---- automatiza-specific ---- */
.ag-brand--logo img { height: 2.6rem; width: auto; display: block; }
@media (max-width: 560px) { .ag-brand--logo img { height: 2.1rem; } }
.ag-eyebrow { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; }
.ag-eyebrow + h1, .ag-eyebrow + h2 { margin-block-start: var(--space-sm); }
/* hero: copy left; the three-stage process as a quiet numbered stack right, no icons */
.ag-hero__sub { margin-block-start: var(--space-md); color: var(--muted); max-width: 52ch; }
.ag-stack { display: grid; gap: var(--space-md); align-self: center; }
.ag-stage { display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--space-md); align-items: start;
  padding: var(--space-lg); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.ag-stage:nth-child(2) { background: var(--paper-2); border-color: var(--ink); }
.ag-stage__n { font-family: var(--font-display); font-size: var(--step-2); line-height: 1; color: var(--accent-deep); }
.ag-stage h3 { font-size: var(--step-0); font-weight: 600; }
.ag-stage p { margin-block-start: var(--space-2xs); color: var(--muted); font-size: var(--step--1); }
.ag-stack__note { font-size: var(--step--1); color: var(--muted); }
.ag-stack__note strong { color: var(--ink); font-weight: 600; }
/* the statement strip after the hero */
.ag-statement { padding-block: var(--space-xl) var(--space-2xl); border-top: 1px solid var(--rule); }
.ag-statement h2 { font-size: var(--step-2); max-width: 30ch; }
.ag-statement p { margin-block-start: var(--space-md); color: var(--ink-soft); max-width: 66ch; }
.ag-statement--scenes .ag-split { align-items: center; }
.ag-statement--scenes h2 { font-size: var(--step-3); max-width: none; }
.ag-statement--scenes p, .ag-statement--scenes li { hyphens: manual; text-wrap: pretty; max-width: none; }
.ag-statement ul.ag-statement__scenes { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.ag-statement ul.ag-statement__scenes li { padding: var(--space-md) var(--space-lg); background: var(--paper); border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--accent); border-radius: var(--radius); color: var(--ink); font-weight: 500; line-height: 1.45; }
.ag-statement .ag-statement__answer { margin-block-start: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius); background: var(--accent-wash); }
.ag-statement .ag-statement__answer p { margin: 0; color: var(--ink); }
.ag-statement .ag-statement__answer p + p.ag-statement__punch { margin-block-start: var(--space-sm); }
.ag-statement .ag-statement__answer p.ag-statement__punch { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; font-weight: 700; color: var(--accent-deep); }
.ag-statement p.ag-statement__close { margin-block-start: var(--space-md); color: var(--muted); }
.ag-statement--scenes .ag-split.ag-split--photo .ag-split__img { aspect-ratio: 4 / 5; position: static; }
.ag-statement--scenes .ag-split__img img { object-position: 50% 30%; }
/* callout: one sentence, then the five verbs as a flow */
.ag-callout { margin-block-start: var(--space-2xl); padding: var(--space-xl); border-radius: 22px;
  background: var(--accent-deep); color: var(--paper); display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .ag-callout { grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--space-2xl); padding: var(--space-2xl); } }
.ag-callout .ag-eyebrow { color: color-mix(in oklab, var(--paper) 78%, transparent); }
.ag-callout h2 { font-size: var(--step-3); color: var(--paper); hyphens: manual; text-wrap: balance; }
.ag-callout p { margin-block-start: var(--space-md); color: color-mix(in oklab, var(--paper) 88%, transparent); hyphens: manual; text-wrap: pretty; }
/* the flow reads as three numbered steps, one under the other */
.ag-flow { display: grid; gap: var(--space-sm); list-style: none; margin: 0; padding: 0; counter-reset: ag-step; }
.ag-flow li { counter-increment: ag-step; display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg); border-radius: var(--radius); color: var(--paper);
  background: color-mix(in oklab, var(--paper) 12%, transparent); border: 1px solid color-mix(in oklab, var(--paper) 26%, transparent);
  font-size: var(--step-0); font-weight: 600; hyphens: manual; }
.ag-flow li::before { content: counter(ag-step); flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--paper); color: var(--accent-deep); font-weight: 700; }
.ag-flow li img { display: none; }
.ag-callout p.ag-flow__title { margin: 0 0 var(--space-md); color: var(--paper); font-weight: 700; font-size: var(--step-0); }
.ag-callout p.ag-stack__note { margin-block-start: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-weight: 500; }
.ag-callout p.ag-stack__note strong { display: block; margin-block-start: var(--space-2xs); color: var(--accent-deep); font-size: var(--step-1); line-height: 1.25; }
/* four-up cards (benefits, IA services) */
.ag-cards { display: grid; gap: var(--space-lg); margin-block-start: var(--space-xl); }
@media (min-width: 700px) { .ag-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ag-cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }
.ag-card { padding: var(--space-lg); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  display: flex; flex-direction: column; gap: var(--space-xs); }
.ag-card__n { font-family: var(--font-display); color: var(--accent-deep); font-weight: 600; }
.ag-card h3 { font-size: var(--step-1); }
.ag-card__sub { color: var(--ink); font-weight: 600; font-size: var(--step--1); }
.ag-card p { color: var(--muted); font-size: var(--step--1); }
/* process: three dark steps, then four plain facts */
.ag-facts { display: grid; gap: var(--space-lg); margin-block-start: var(--space-2xl);
  padding-block-start: var(--space-2xl); border-top: 1px solid color-mix(in oklab, currentColor 22%, transparent); }
@media (min-width: 820px) { .ag-facts { grid-template-columns: repeat(4, 1fr); } }
.ag-facts h3 { font-size: var(--step-0); font-weight: 600; }
.ag-facts p { margin-block-start: var(--space-xs); font-size: var(--step--1); }
/* pricing intro link, blog panel */
.ag-inline { border-bottom: 1px solid var(--accent); font-weight: 600; }
.ag-inline:hover { color: var(--accent-deep); }
.ag-panel { padding: var(--space-xl); border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--rule); }
.ag-panel .ag-hero__acts { margin-block-start: var(--space-lg); }
.ag-form__note { font-size: var(--step--1); color: var(--muted); }

/* sectors: prose left, the three commitments as a bordered list right */
.ag-sectors { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .ag-sectors { grid-template-columns: 1.2fr 1fr; gap: var(--space-2xl); align-items: start; } }
.ag-sectors h2 { font-size: var(--step-2); }
.ag-sectors__p { margin-block-start: var(--space-md); color: var(--muted); }
.ag-sectors__aside { padding: var(--space-xl); border: 1px solid var(--ink); border-radius: var(--radius); }
.ag-sectors__aside ul { margin: var(--space-md) 0 0; padding-inline-start: 1.1rem; color: var(--ink-soft); display: grid; gap: var(--space-sm); }

/* amounts like "3.000 a 6.000 €" are long; one size down keeps the euro on the line */
.ag-price__amt { font-size: var(--step-2); }

/* ---- life: icons, colour tones, illustrations, gradients (the old page's vocabulary on the new type) ---- */
:root { --tone-blue: 260; --tone-teal: 200; --tone-purple: 289; --tone-orange: 61; }
.ag-tone-blue   { --tone: var(--tone-blue); }
.ag-tone-teal   { --tone: var(--tone-teal); }
.ag-tone-purple { --tone: var(--tone-purple); }
.ag-tone-orange { --tone: var(--tone-orange); }
.ag-ico { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 18px; flex: none;
  background: linear-gradient(180deg, oklch(98% 0.01 var(--tone, var(--hue))), oklch(94% 0.03 var(--tone, var(--hue))));
  border: 1px solid oklch(88% 0.05 var(--tone, var(--hue)));
  box-shadow: 0 8px 20px oklch(30% 0.05 var(--tone, var(--hue)) / 0.08); }
.ag-ico img { width: 2.6rem; height: 2.6rem; }
.ag-ico--sm { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.ag-ico--sm img { width: 1.5rem; height: 1.5rem; }

/* hero: tinted panel with the flow of three cards */
.ag-hero__panel { padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 28px;
  background: radial-gradient(circle at 80% 15%, oklch(93% 0.05 var(--tone-teal) / 0.9), transparent 42%),
              radial-gradient(circle at 10% 90%, oklch(94% 0.04 var(--tone-blue) / 0.9), transparent 40%),
              linear-gradient(180deg, oklch(98% 0.008 var(--hue)), oklch(96% 0.012 var(--hue)));
  border: 1px solid var(--rule); box-shadow: 0 22px 55px oklch(30% 0.05 var(--hue) / 0.08); }
.ag-stack { position: relative; padding-inline: clamp(0rem, 2vw, 1.5rem); }
.ag-flowline { position: absolute; inset-inline: 12%; top: 50%; height: 6rem; transform: translateY(-50%); z-index: 0;
  border-radius: 999px; filter: blur(14px);
  background: linear-gradient(90deg, oklch(80% 0.10 var(--tone-blue) / 0.35), oklch(85% 0.10 var(--tone-teal) / 0.45), oklch(85% 0.08 var(--tone-teal) / 0.2)); }
.ag-stage { position: relative; z-index: 1; grid-template-columns: 2rem 2.6rem 1fr; background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(4px); border-radius: 20px; box-shadow: 0 10px 28px oklch(30% 0.05 var(--hue) / 0.06); }
.ag-stage:nth-child(2) { background: color-mix(in oklab, var(--paper) 92%, transparent); border-color: var(--rule); }
.ag-stage--core { transform: scale(1.04); border-color: oklch(80% 0.10 var(--tone-teal)); box-shadow: 0 24px 50px oklch(45% 0.10 var(--tone-teal) / 0.14); z-index: 2; }
.ag-stage--core h3 { color: var(--accent-deep); }

/* rows with an icon tile and an alternating tone */
.ag-row--ico { align-items: center; }
@media (min-width: 840px) { .ag-row--ico { grid-template-columns: 4.25rem 3rem 1fr 1.3fr; } }
.ag-row--ico:hover { background: oklch(97% 0.015 var(--tone)); }
.ag-row--ico h3 { color: oklch(30% 0.09 var(--tone)); }

/* toned cards with an illustration at the foot */
.ag-card--tone { border-color: oklch(85% 0.07 var(--tone)); border-radius: 22px;
  background: linear-gradient(180deg, var(--paper) 0%, oklch(97% 0.02 var(--tone)) 100%);
  box-shadow: 0 16px 40px oklch(30% 0.05 var(--tone) / 0.07); }
.ag-card__top { display: flex; align-items: center; justify-content: space-between; margin-block-end: var(--space-sm); }
.ag-card--tone .ag-ico { width: 3.6rem; height: 3.6rem; border-radius: 16px; }
.ag-card--tone .ag-ico img { width: 1.9rem; height: 1.9rem; }
.ag-card--tone .ag-card__n { color: oklch(55% 0.12 var(--tone)); }
.ag-card--tone h3 { color: oklch(28% 0.08 var(--tone)); }
.ag-card__illus { margin: auto 0 0; padding-block-start: var(--space-md); }
.ag-card__illus img { width: 100%; height: auto; max-height: 7.5rem; object-fit: contain; object-position: left bottom; }

/* the flow chips carry their icon */
.ag-flow li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.ag-flow li img { width: 1.35rem; height: 1.35rem; }

/* process: three cards with a visual, on the dark band */
.ag-step--card { padding: var(--space-lg); border-radius: 20px; background: color-mix(in oklab, var(--paper) 7%, transparent);
  box-shadow: inset 0 0 0 1px oklch(70% 0.10 var(--tone) / 0.55); }
.ag-step__visual { margin: var(--space-md) 0; }
.ag-step__visual img { width: 100%; max-height: 8rem; object-fit: contain; object-position: left; }
.ag-fact { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-md); align-items: start; }
.ag-fact img { width: 3rem; height: 3rem; }

/* the gradient the old page used for its darkest cards */
.ag-gradient, .ag-price--dark { color: var(--paper); border: 0;
  background: linear-gradient(135deg, oklch(24% 0.06 var(--tone-blue)) 0%, oklch(50% 0.19 var(--tone-blue)) 58%, oklch(72% 0.13 var(--tone-teal)) 100%); }
.ag-price--dark h3, .ag-price--dark .ag-price__amt, .ag-price--dark .ag-case__k, .ag-gradient h2, .ag-gradient .ag-eyebrow { color: var(--paper); }
.ag-price--dark .ag-price__amt small, .ag-price--dark .muted, .ag-gradient ul { color: var(--paper); }
.ag-price:not(.ag-price--main).ag-price--dark .ag-price__amt { color: var(--paper); }
.ag-price { border-radius: 22px; }
.ag-price--main { border-radius: 24px; }

/* ---- phone: the display type has to fit the narrowest column it lands in ----
   A grid item defaults to min-width:auto, so it refuses to shrink below its
   longest word. "Automatización" at --step-5 is ~360px, wider than a 390px
   screen minus gutters and panel padding, so the hero overflowed to the right.
   Fix the cause (min-width) and cap the type, rather than hiding the overflow. */
.ag-hero__grid > *, .ag-stack, .ag-card, .ag-row, .ag-step, .ag-price,
.ag-sectors > *, .ag-contact > * { min-width: 0; }
/* Never break or hyphenate a headline. "Automatización" is 14 characters and
   has to fit its column whole, so the display size is capped to suit the
   narrower two-column hero rather than the full page width. */
.ag-hero h1 { font-size: var(--step-4); }
@media (min-width: 980px) { .ag-hero__grid { grid-template-columns: 1.12fr 0.88fr; } }
@media (max-width: 720px) {
  .ag-hero h1 { font-size: clamp(2.1rem, 9.2vw, 3rem); letter-spacing: -0.028em; }
  .ag-page-head h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .ag-hero__panel { padding: var(--space-lg) var(--space-md); border-radius: 20px; }
  .ag-hero { padding-inline: 0; }
  .lede { font-size: var(--step-0); }
  .ag-stack { padding-inline: 0; }
  .ag-stage { grid-template-columns: 1.6rem 2.2rem 1fr; gap: var(--space-sm); padding: var(--space-md); }
  .ag-stage--core { transform: none; }
  .ag-flowline { display: none; }
  .ag-callout, .ag-sectors__aside, .ag-panel, .ag-price { padding: var(--space-lg); }
  .ag-price__amt { font-size: var(--step-1); }
  .ag-row--ico { grid-template-columns: 3rem 1fr; align-items: start; }
  .ag-row--ico .ag-ico { width: 3rem; height: 3rem; border-radius: 12px; }
  .ag-row--ico .ag-ico img { width: 1.8rem; height: 1.8rem; }
  .ag-row--ico .ag-row__n { grid-column: 2; font-size: var(--step--1); }
  .ag-row--ico h3, .ag-row--ico p { grid-column: 2; }
  .ag-fact { grid-template-columns: 2.4rem 1fr; }
  .ag-fact img { width: 2.4rem; height: 2.4rem; }
}

/* ---- phone: the header CTA was wrapping to two lines and eating the bar ---- */
@media (max-width: 720px) {
  .ag-head__in { min-height: 3.75rem; gap: var(--space-sm); }
  .ag-brand--logo img { height: 1.9rem; }
  .ag-head .ag-btn--fill { padding: var(--space-xs) var(--space-md); font-size: var(--step--1);
    white-space: nowrap; line-height: 1.1; }
}
/* the CTA carries a short label for phones: truncating the long one with an
   ellipsis is not a label, it is a bug that looks deliberate */
.ag-cta-short { display: none; }
@media (max-width: 560px) {
  .ag-cta-long { display: none; }
  .ag-cta-short { display: inline; }
}

/* ---- content without icons: the grids must not keep an empty column ----
   The agent's first client had no icon on its hero cards, and the text fell into
   the 2.6rem icon column, one word per line. A skin may not assume decoration. */
.ag-stage:not(:has(.ag-ico)) { grid-template-columns: 2rem 1fr; }
@media (min-width: 840px) { .ag-row--ico:not(:has(.ag-ico)) { grid-template-columns: 3rem 1fr 1.3fr; } }
@media (max-width: 720px) { .ag-row--ico:not(:has(.ag-ico)) { grid-template-columns: 1fr; }
  .ag-row--ico:not(:has(.ag-ico)) .ag-row__n, .ag-row--ico:not(:has(.ag-ico)) h3, .ag-row--ico:not(:has(.ag-ico)) p { grid-column: 1; } }
.ag-card__top:not(:has(.ag-ico)) { justify-content: flex-end; }

/* Price cards share one height; the featured one stands out by colour and flag, not size. */
.ag-price { display: flex; flex-direction: column; }

/* Photos: optional per section (S.intro / S.ia / S.domotica .photo), never assumed. */
.ag-photo { margin: 0; border-radius: 22px; overflow: hidden; background: var(--paper-2); max-width: 100%; }
.ag-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-photo--band { margin-block-start: var(--space-xl); aspect-ratio: 21 / 9; }
@media (max-width: 720px) { .ag-photo--band { aspect-ratio: 4 / 3; } }
.ag-split { display: grid; gap: var(--space-xl); align-items: start; }
.ag-split > * { min-width: 0; }
.ag-split__img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .ag-split--photo { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-2xl); }
  .ag-split--photo .ag-split__img { aspect-ratio: 4 / 5; position: sticky; top: 6rem; }
  .ag-split--wide { grid-template-columns: 1fr 1fr; align-items: center; }
  .ag-split--wide .ag-split__img { aspect-ratio: 3 / 2; position: static; }
}

/* A checklist: the form IA takes, so it cannot read as the benefit cards beside it. */
.ag-checks { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.ag-checks li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-sm); padding-block: var(--space-md);
  border-bottom: 1px solid var(--rule); }
.ag-checks li::before { content: ""; width: .5rem; height: .95rem; margin: .25rem 0 0 .55rem;
  border: solid var(--accent-deep); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ag-checks h3 { font-size: var(--step-0); margin: 0; }
.ag-checks__sub { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.ag-checks p { margin: var(--space-2xs) 0 0; color: var(--muted); }
@media (min-width: 900px) { .ag-split:not(.ag-split--photo) .ag-checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }

/* Hero: the three steps cascade down and across like a flow, each numbered on a brand-coloured
   disc, ending in the result. A straight stack of equal grey boxes reads as a list, not a process. */
.ag-stage .ag-stage__n { display: grid; margin: 0; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--paper); font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; }
.ag-stage.ag-stage--core .ag-stage__n { background: var(--accent-deep); color: var(--paper); }
.ag-stack__note { padding: var(--space-sm) var(--space-md); border-radius: 14px; text-align: center;
  background: var(--accent-wash); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); color: var(--ink-soft); }
@media (min-width: 980px) {
  .ag-stage:nth-of-type(1) { margin-inline-end: 16%; }
  .ag-stage:nth-of-type(2) { margin-inline: 8%; }
  .ag-stage:nth-of-type(3) { margin-inline-start: 16%; }
}
@media (min-width: 980px) { .ag-hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); } }

/* The process takes as many columns as it has steps: four never leave one orphaned below three. */
@media (min-width: 820px) { .ag-steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ag-steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }
/* Same for prices: four tiers sit 2×2, then four across; never three and an orphan. */
@media (min-width: 900px) { .ag-prices:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ag-prices:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }

/* Hero with a photo (S.hero.photo): the image takes the right column in place of the steps,
   which the process section already shows in full. */
.ag-hero__photo { margin: 0; border-radius: 22px; overflow: hidden; background: var(--paper-2);
  aspect-ratio: 4 / 3; max-width: 100%; box-shadow: 0 24px 60px oklch(30% 0.04 var(--hue) / .16); }
.ag-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) { .ag-hero__photo { aspect-ratio: 5 / 6; align-self: stretch; } }

/* Sector pages hub (S.sectors.links) and linked service titles (items[].href). */
.ag-sector-links { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.ag-sector-links a, .ag-sector-links__item { display: grid; gap: var(--space-2xs); height: 100%; padding: var(--space-md); border-radius: 14px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease; }
.ag-sector-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.ag-sector-links strong { color: var(--accent-deep); }
.ag-sector-links a strong::after { content: "\00a0→"; }
.ag-sector-links span { color: var(--muted); font-size: var(--step--1); }
.ag-rowlink { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s ease; }
.ag-rowlink:hover { background-size: 100% 1px; color: var(--accent-deep); }
.ag-rowlink::after { content: "\00a0→"; color: var(--accent); }

/* A card may point somewhere (b.link): e.g. the product a real case grew into. */
.ag-card__link { display: inline-block; margin-block-start: var(--space-sm); font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.ag-card__link::after { content: "\00a0→"; }
.ag-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* How to reach the business, beside the form and tappable. Without somewhere to put these, a
   builder typed them into the built page by hand and the next build deleted them (13 Sep). */
.ag-contact__facts { display: grid; gap: var(--space-2xs); margin-block-start: var(--space-lg); }
.ag-contact__facts dt { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-contact__facts dd { margin: 0 0 var(--space-sm); font-size: var(--step-0); }
.ag-contact__facts a { color: inherit; text-underline-offset: .2em; }


/* A service page with a photograph reuses the home hero panel rather than a second
   treatment of its own: same tinted panel, same 5:6 photo column (Luke, 21 Sep —
   "it might be better integrated into a hero section... like on the homepage").
   Only the breadcrumb and the heading width differ. */
.ag-page-hero .ag-crumb { margin-block-end: var(--space-sm); }
@media (min-width: 980px) { .ag-page-hero h1 { max-width: 20ch; } }
}
/* price cards: the note sits on its own line under the figure, and nothing breaks mid-word */
.ag-price__amt { display: block; white-space: nowrap; }
.ag-price__amt small { white-space: normal; }
.ag-price__amt small { display: block; margin-block-start: var(--space-2xs); line-height: 1.3; }
.ag-price, .ag-price p, .ag-price li, .ag-price h3 { hyphens: manual; }
@media (min-width: 1200px) { .ag-prices:has(> :nth-child(4):last-child) .ag-price__amt { font-size: var(--step-1); white-space: nowrap; }
  .ag-prices:has(> :nth-child(4):last-child) .ag-price__amt small { white-space: normal; } }
.ag-sector-links span, .ag-sector-links strong { hyphens: manual; }
.ag-list__group { margin: var(--space-xl) 0 var(--space-xs); font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--accent-deep); }
.ag-list__group:first-child { margin-block-start: 0; }
/* a way to get in touch at the end of every section */
.ag-section-cta { margin-block-start: var(--space-xl); }
.ag-statement .ag-statement__answer p.ag-statement__cta { margin-block-start: var(--space-md); }
.ag-row h3, .ag-card h3 { hyphens: manual; }
/* contact: a short form that fits on one screen */
.ag-contact h2 { font-size: var(--step-2); }
.ag-contact .lede { font-size: var(--step-0); margin-block-start: var(--space-sm); }
.ag-form { gap: var(--space-sm); }
.ag-form input, .ag-form textarea { padding: .55rem .75rem; }
.ag-form textarea { min-height: 4.5rem; }
@media (min-width: 600px) { .ag-form { grid-template-columns: 1fr 1fr; column-gap: var(--space-md); }
  .ag-form > label:has(textarea), .ag-form > .ag-consent, .ag-form > .ag-hp, .ag-form > button, .ag-form > .ag-form__note { grid-column: 1 / -1; } }
.ag-form > * { min-width: 0; }
.ag-form input, .ag-form textarea { width: 100%; box-sizing: border-box; min-width: 0; }
