:root {
  --forest: #171c26;
  --forest-2: #1f55d5;
  --ink: #171c26;
  --muted: #555d68;
  --paper: #fff8ed;
  --paper-2: #f1eadf;
  --card: #ffffff;
  --lime: #ffbe2e;
  --mint: #22b8a7;
  --amber: #ffbe2e;
  --coral: #f05a47;
  --blue: #1f55d5;
  --teal: #22b8a7;
  --sun: #ffbe2e;
  --plum: #9b356d;
  --line: #9b917f;
  --white: #ffffff;
  --shadow: 0 10px 0 rgba(23, 28, 38, .10);
  --radius: 8px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
::selection { color: var(--ink); background: var(--sun); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--sun); color: var(--ink); font-weight: 800; border: 2px solid var(--ink); border-radius: 4px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--white); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; border: 2px solid currentColor; border-radius: 5px; font-family: Georgia, serif; font-size: 18px; transform: rotate(-3deg); }
.brand-mark span { color: var(--lime); font-size: 11px; line-height: 1; }
nav { display: flex; gap: 28px; }
nav a { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; background: var(--sun); transition: right .18s ease; }
nav a:hover { color: var(--white); }
nav a:hover::after { right: 0; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--blue); padding: 140px 0 82px; }
.hero::after { content: ""; position: absolute; width: 220px; height: 58px; right: -42px; bottom: 30px; border: 2px solid var(--ink); background: var(--coral); transform: rotate(-6deg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 72px; align-items: start; }
.hero-grid > div:first-child { animation: hero-in .55s cubic-bezier(.2,.8,.2,1) both; }
.kicker { margin: 0 0 20px; font-size: 12px; font-weight: 850; letter-spacing: .18em; color: var(--white); }
.kicker.dark { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 25px; font-size: clamp(2.9rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.052em; font-weight: 760; }
h1 em { color: var(--lime); font-family: inherit; font-style: normal; font-weight: inherit; }
.hero-copy { max-width: 670px; margin-bottom: 34px; color: #eef1ff; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-search { max-width: 700px; margin: 32px 0 0; }
.hero-search > label { display: block; margin-bottom: 8px; color: var(--white); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero-search > div { display: flex; align-items: stretch; }
.hero-search input { min-width: 0; flex: 1; min-height: 52px; padding: 12px 15px; border: 2px solid var(--ink); border-right: 0; border-radius: 4px 0 0 4px; color: var(--ink); background: var(--white); }
.hero-search input::placeholder { color: #707684; }
.hero-search .button { min-width: 138px; border-radius: 0 4px 4px 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.hero-link { color: var(--white); font-size: 14px; font-weight: 800; text-underline-offset: 5px; }
.hero-note { margin: 20px 0 0; color: #dce3ff; font-size: 13px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 17px; border: 2px solid var(--ink); border-radius: 4px; text-decoration: none; cursor: pointer; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.button-light { background: var(--sun); color: var(--ink); }
.button-primary, .button-primary:visited { background: var(--forest); color: var(--white); }
.button-primary:hover { background: #352640; color: var(--white); }
.hero-panel { position: relative; z-index: 1; padding: 0 0 2px 28px; border-left: 2px solid rgba(255,255,255,.42); }
.hero-panel > p { color: #e2e6ff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.hero-checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.3); }
.hero-checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.3); color: var(--white); font-size: 14px; font-weight: 700; }
.hero-checklist span { color: var(--white); font-size: 11px; letter-spacing: .08em; }

.hero-mosaic { width: 154px; height: 78px; display: grid; grid-template-columns: 1.2fr .8fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; margin-bottom: 28px; }
.hero-mosaic span { display: block; border: 2px solid var(--ink); animation: mosaic-in .55s cubic-bezier(.2,.8,.2,1) both; }
.mosaic-sun { grid-row: 1 / -1; background: var(--sun); transform-origin: bottom; }
.mosaic-coral { background: var(--coral); animation-delay: 90ms !important; }
.mosaic-teal { grid-row: 1 / -1; background: var(--teal); animation-delay: 180ms !important; }
.mosaic-cream { background: var(--white); animation-delay: 270ms !important; }

.motion-strip { overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--sun); color: var(--ink); }
.motion-track { display: flex; animation: strip-in .7s cubic-bezier(.2,.8,.2,1) both; }
.motion-group { width: 100%; display: flex; flex: none; align-items: center; justify-content: space-around; }
.motion-group + .motion-group { display: none; }
.motion-group span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 27px; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.motion-group span::after { content: "■"; margin-left: 54px; color: var(--coral); font-size: 11px; }

.how-section { padding: 78px 0; border-bottom: 2px solid var(--ink); background: var(--card); }
.how-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 74px; align-items: start; }
.how-section h2 { max-width: 520px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.045em; }
.how-layout > div > p:last-child { max-width: 500px; margin-bottom: 0; color: var(--muted); }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border: 2px solid var(--ink); }
.how-steps li { min-width: 0; padding: 22px; border-right: 2px solid var(--ink); background: var(--paper); }
.how-steps li:last-child { border-right: 0; }
.how-steps li > span { width: 34px; height: 32px; display: grid; place-items: center; margin-bottom: 28px; border: 2px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--sun); font-weight: 850; }
.how-steps li:nth-child(2) > span { background: var(--teal); }
.how-steps li:nth-child(3) > span { background: var(--coral); }
.how-steps h3 { margin-bottom: 8px; font-size: 1rem; line-height: 1.2; }
.how-steps p { margin: 0; color: var(--muted); font-size: 13px; }

.finder-section { padding: 96px 0; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.finder-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 70px; align-items: end; margin-bottom: 42px; }
.finder-heading h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
.finder-heading > div:last-child > p { margin-bottom: 10px; color: var(--muted); }
.finder-heading .finder-caveat { margin-bottom: 0; padding-left: 14px; border-left: 4px solid var(--coral); font-size: 13px; }
.finder-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 22px; align-items: start; }
.finder-form { border: 2px solid var(--ink); background: var(--card); box-shadow: 7px 7px 0 var(--sun); }
.finder-form fieldset { margin: 0; padding: 25px; border: 0; border-bottom: 2px solid var(--ink); }
.finder-form legend { width: 100%; padding: 0 0 15px; color: var(--ink); font-size: 1rem; font-weight: 850; }
.finder-form legend span { display: inline-grid; place-items: center; width: 32px; height: 29px; margin-right: 7px; border: 2px solid var(--ink); border-radius: 3px; background: var(--sun); font-size: 12px; }
.finder-form fieldset:nth-child(2) legend span { background: var(--teal); }
.finder-form fieldset:nth-child(3) legend span { background: var(--coral); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-option { position: relative; min-width: 0; cursor: pointer; }
.choice-option input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; }
.choice-option span { min-height: 48px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--paper); font-size: 13px; font-weight: 730; line-height: 1.25; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.choice-option:hover span { border-color: var(--blue); color: var(--blue); }
.choice-option input:checked + span { border-color: var(--ink); color: var(--white); background: var(--blue); box-shadow: 3px 3px 0 var(--sun); transform: translate(-2px, -2px); }
.choice-option input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
.finder-actions { display: flex; align-items: center; gap: 18px; padding: 22px 25px 25px; }
.finder-results { min-height: 360px; padding: 30px; border: 2px solid var(--ink); color: var(--white); background: var(--blue); box-shadow: 7px 7px 0 var(--coral); }
.result-kicker { margin-bottom: 10px; color: var(--white); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.finder-results > h3 { margin-bottom: 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.035em; }
.finder-results > #finder-summary { margin-bottom: 22px; color: #eef1ff; }
#finder-result-list { display: grid; gap: 13px; }
.finder-result-card { padding: 20px; border: 2px solid var(--ink); border-radius: 5px; color: var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--sun); }
.finder-result-card + .finder-result-card { margin-top: 5px; }
.finder-result-label { margin-bottom: 7px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.finder-result-agent { margin-bottom: 2px; font-size: 1.55rem; line-height: 1.05; }
.finder-result-kind { margin-bottom: 13px; color: var(--muted); font-size: 12px; font-weight: 750; }
.finder-result-use { margin-bottom: 12px; }
.finder-result-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.finder-result-meta span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; font-weight: 750; }
.finder-result-reason { color: var(--blue); font-size: 13px; font-weight: 750; }
.finder-result-why, .finder-result-idea { margin: 13px 0; padding: 13px; border-left: 5px solid var(--teal); background: #d5f4ed; }
.finder-result-idea { border-left-color: var(--sun); background: #ffedb8; }
.finder-result-why strong, .finder-result-idea strong { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.finder-result-why p, .finder-result-idea p { margin: 0; font-size: 12px; }
.finder-result-card .button { width: 100%; margin-top: 4px; text-align: center; }
.noscript { display: block; margin: 22px 0 0; padding: 13px 15px; border: 2px solid #7b251f; border-radius: 4px; background: #fff1ed; color: #672019; text-align: center; }

.agent-map-section { padding: 96px 0; border-bottom: 2px solid var(--ink); background: var(--card); }
.agent-map-heading { margin-bottom: 55px; }
.agent-map-heading > div:last-child > p { color: var(--muted); }
.agent-map-heading .map-note { margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.agent-routes { border-top: 2px solid var(--ink); }
.agent-route { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr); gap: 34px; padding: 34px 0; border-bottom: 2px solid var(--ink); }
.agent-route-heading { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.agent-route-heading > span { display: grid; place-items: center; width: 38px; height: 34px; border: 2px solid var(--ink); border-radius: 3px; background: var(--sun); font-weight: 850; }
.agent-route:nth-child(2) .agent-route-heading > span { background: var(--teal); }
.agent-route:nth-child(3) .agent-route-heading > span { background: var(--coral); }
.agent-route-heading h3 { margin-bottom: 7px; font-size: 1.35rem; line-height: 1.1; }
.agent-route-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.agent-route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-left: 7px solid var(--blue); border-radius: 4px; background: var(--paper); }
.agent-route:nth-child(2) .agent-card { border-left-color: var(--teal); }
.agent-route:nth-child(3) .agent-card { border-left-color: var(--coral); }
.agent-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.agent-card-meta span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--white); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.agent-card h4 { margin: 0 0 9px; font-size: 1.45rem; line-height: 1.05; }
.agent-card p { margin-bottom: 15px; color: var(--muted); font-size: 13px; }
.agent-card p strong { color: var(--ink); }
.agent-card-link { color: var(--blue); font-size: 13px; font-weight: 850; text-underline-offset: 4px; }

.catalog-section { padding: 90px 0 104px; }
.catalog-section { position: relative; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .method-section h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { margin-bottom: 2px; color: var(--muted); }
.search-panel { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 14px; padding: 14px; border: 2px solid var(--ink); border-radius: 5px; background: var(--card); box-shadow: 5px 5px 0 var(--sun); }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 3px; background: var(--paper); }
.search-label { color: var(--forest-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #88938d; }
.select-row { display: flex; gap: 8px; }
.select-row label { position: relative; display: grid; gap: 2px; min-width: 116px; padding: 5px 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.select-row select { appearance: none; padding: 0 22px 0 0; border: 0; outline: 0; background: linear-gradient(45deg,transparent 50%,var(--ink) 50%) calc(100% - 6px) 55%/5px 5px no-repeat, linear-gradient(135deg,var(--ink) 50%,transparent 50%) calc(100% - 1px) 55%/5px 5px no-repeat; color: var(--ink); font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.filter-chip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 750; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--sun); }
.filter-chip[data-category="Automatización de negocios"].active { background: var(--amber); color: var(--ink); }
.filter-chip[data-category="Investigación"].active { background: var(--teal); color: var(--ink); }
.filter-chip[data-category="Productividad personal"].active { background: var(--coral); color: var(--ink); }
.filter-chip[data-category="Programación"].active { background: var(--blue); color: var(--white); }
.results-bar { display: flex; justify-content: space-between; align-items: center; min-height: 58px; color: var(--muted); font-size: 14px; }
.results-bar p { margin: 0; }
.text-button { border: 0; background: transparent; color: var(--forest-2); text-decoration: underline; cursor: pointer; font-weight: 750; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-card { --case-accent: var(--sun); position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 29px 25px 25px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: 5px 5px 0 var(--case-accent); transition: transform .18s ease, box-shadow .18s ease; animation: card-arrive .5s both; }
.case-card:nth-child(2) { animation-delay: 55ms; }
.case-card:nth-child(3) { animation-delay: 110ms; }
.case-card:nth-child(4) { animation-delay: 165ms; }
.case-card:nth-child(5) { animation-delay: 220ms; }
.case-card:nth-child(6) { animation-delay: 275ms; }
.case-card:nth-child(7) { animation-delay: 330ms; }
.case-card:nth-child(8) { animation-delay: 385ms; }
.case-card:nth-child(9) { animation-delay: 440ms; }
.case-card:nth-child(10) { animation-delay: 495ms; }
.case-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--case-accent); border-bottom: 2px solid var(--ink); }
.case-card[data-category="Automatización de negocios"] { --case-accent: var(--amber); }
.case-card[data-category="Investigación"] { --case-accent: var(--teal); }
.case-card[data-category="Productividad personal"] { --case-accent: var(--coral); }
.case-card[data-category="Programación"] { --case-accent: var(--blue); }
.case-card, .case-card * { overflow-wrap: anywhere; }
.case-card:hover, .case-card:focus-within { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--case-accent); }
.case-card.filter-enter { animation: filter-in .2s ease-out both; }
.case-card[hidden] { display: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.class-mark { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 3px; font-size: 11px; font-weight: 850; }
.class-a { background: #c9f1e8; color: #115b52; }
.class-b { background: #ffe89a; color: #624800; }
.case-card h2 { margin: 24px 0 13px; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
.card-evidence { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 2px 0 18px; padding: 11px 12px; border: 1px solid #75bfb3; border-radius: 4px; background: #e1f7f2; font-size: 11px; line-height: 1.35; }
.card-evidence strong { color: #115b52; }
.card-evidence span { color: var(--muted); text-align: right; }
.card-label, .agent-callout > span { display: block; margin-bottom: 7px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.card-purpose { margin-top: 6px; }
.card-problem { display: -webkit-box; overflow: hidden; margin-bottom: 0; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: var(--muted); }
.agent-callout { margin-top: 22px; padding: 15px; border: 2px solid var(--ink); border-left: 8px solid var(--case-accent); background: var(--paper); }
.agent-callout > span { margin-bottom: 3px; color: var(--muted); }
.agent-callout strong { display: block; color: var(--ink); font-size: 1.15rem; line-height: 1.15; }
.agent-callout small { display: -webkit-box; overflow: hidden; margin-top: 6px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 12px; }
.card-result { margin-top: 20px; }
.card-result p { display: -webkit-box; overflow: hidden; margin: 0; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: var(--ink); font-size: 13px; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.card-meta span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.card-actions > a:not(.button) { color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.card-actions .button-primary, .card-actions .button-primary:visited { color: var(--white); font-size: 14px; text-decoration: none; }
.card-actions > a:not(.button):hover { text-decoration: underline; }
.empty-state { padding: 70px 20px; border: 1px dashed #a9b4ae; border-radius: var(--radius); text-align: center; }
.empty-state > span { font-size: 44px; }
.empty-state h3 { margin: 5px 0; font-size: 1.5rem; }
.empty-state p { color: var(--muted); }

.method-section { position: relative; padding: 100px 0; color: var(--white); background: var(--plum); border-top: 2px solid var(--ink); }
.method-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: linear-gradient(90deg, var(--coral) 0 25%, var(--sun) 25% 50%, var(--teal) 50% 75%, var(--blue) 75%); }
.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.method-section .kicker.dark { color: var(--sun); }
.method-grid > div > p:last-child { max-width: 470px; margin-top: 27px; color: #f4ddec; }
.method-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.45); }
.method-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.45); }
.method-steps li > span { width: 38px; height: 32px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--sun); font: 800 14px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.method-steps li:nth-child(2) > span { background: var(--coral); }
.method-steps li:nth-child(3) > span { background: var(--teal); }
.method-steps li:nth-child(4) > span { color: var(--white); background: var(--blue); }
.method-steps h3 { margin: 0 0 4px; font-size: 1.1rem; }
.method-steps p { margin: 0; color: #f4ddec; }
.legend { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; margin-top: 70px; }
.legend > div { display: flex; align-items: center; gap: 12px; padding: 17px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 4px; }
.legend strong { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 4px; background: var(--sun); color: var(--ink); }
.legend span { font-size: 13px; font-weight: 750; }
.legend > p { margin: 0; padding: 15px 0 15px 20px; color: #f4ddec; font-size: 13px; border-left: 1px solid rgba(255,255,255,.45); }

.newsletter-section { position: relative; overflow: hidden; padding: 90px 0; color: var(--white); background: var(--blue); border-top: 2px solid var(--ink); }
.newsletter-section::after { content: ""; position: absolute; right: -55px; bottom: -45px; width: 210px; height: 150px; border: 2px solid var(--ink); background: var(--coral); transform: rotate(-8deg); }
.newsletter-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 70px; align-items: center; }
.newsletter-layout h2 { max-width: 680px; margin-bottom: 22px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.045em; }
.newsletter-layout > div > p:not(.kicker) { max-width: 650px; color: #eef1ff; }
.newsletter-layout ul { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.newsletter-layout li::before { content: "✓"; margin-right: 10px; color: var(--sun); font-weight: 900; }
.newsletter-form { padding: 26px; border: 2px solid var(--ink); border-radius: 5px; color: var(--ink); background: var(--paper); box-shadow: 7px 7px 0 var(--sun); }
.newsletter-form label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.newsletter-form > div { display: grid; gap: 10px; }
.newsletter-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 4px; color: var(--ink); background: var(--white); font-size: 16px; }
.newsletter-form p { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.newsletter-form a { color: var(--blue); font-weight: 750; }
.newsletter-form :disabled { cursor: not-allowed; opacity: .7; }
.newsletter-form input:disabled { color: var(--muted); background: var(--paper-2); }

footer { position: relative; padding: 40px 0 32px; background: var(--forest); color: var(--white); }
footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--coral) 0 25%, var(--sun) 25% 50%, var(--teal) 50% 75%, var(--blue) 75%); }
footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer p { margin: 0; color: #aabfb6; font-size: 13px; }
footer > div > a { color: var(--lime); font-size: 13px; font-weight: 750; text-decoration: none; }

dialog { width: min(1050px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 7px; color: var(--ink); background: var(--card); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
dialog::backdrop { background: rgba(23,28,38,.74); }
dialog[open] { animation: dialog-in .2s ease-out both; }
dialog[open]::backdrop { animation: backdrop-in .2s ease-out both; }
.dialog-shell { position: relative; padding: 38px; }
.dialog-close { position: absolute; top: 16px; right: 17px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; font-size: 28px; line-height: 1; }
.dialog-heading { padding: 3px 55px 30px 0; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { max-width: 790px; margin: 15px 0 12px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -.05em; }
.dialog-lead { max-width: 820px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.dialog-validation, .validation-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 11px 13px; border: 1px solid #75bfb3; border-radius: 4px; background: #e1f7f2; font-size: 12px; }
.dialog-validation strong, .validation-banner strong { color: #115b52; }
.dialog-validation span, .validation-banner span { color: var(--muted); }
.dialog-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.dialog-badges span { padding: 5px 9px; border-radius: 99px; background: var(--paper-2); font-size: 11px; font-weight: 800; }
.dialog-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 36px; padding-top: 30px; }
.dialog-columns section + section { margin-top: 30px; }
.dialog-columns h3 { margin-bottom: 9px; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; }
.dialog-main ol { padding-left: 22px; }
.dialog-main li { padding: 0 0 11px 8px; }
.dialog-agent strong, .detail-agent .agent-name { display: block; margin-bottom: 8px; color: var(--blue); font-size: 1.45rem; line-height: 1.1; }
.dialog-agent-kind, .detail-agent .agent-kind { display: inline-block; margin-bottom: 8px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--paper); font-size: 11px; font-weight: 800; }
.dialog-why, .dialog-starter { padding: 18px; border-left: 7px solid var(--teal); background: #d5f4ed; }
.dialog-starter { border-left-color: var(--sun); background: #ffedb8; }
.dialog-why p, .dialog-starter #dialog-starter { margin: 0; font-size: 14px; }
.dialog-starter > p { margin-bottom: 6px; color: #624800; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.evidence-box, .limits-box, #prompt-section { padding: 18px; border-radius: 5px; }
.evidence-box { background: #d5f4ed; }
.evidence-box p, .limits-box p { margin: 6px 0 0; font-size: 14px; }
.evidence-box .validation-state { margin-top: 13px; padding-top: 12px; border-top: 1px solid #75bfb3; }
#prompt-section { margin-top: 0; background: var(--forest); color: var(--white); }
.aside-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aside-title h3 { margin: 0; color: var(--lime); }
#copy-prompt { border: 1px solid rgba(255,255,255,.35); border-radius: 7px; background: transparent; color: white; cursor: pointer; font-size: 12px; padding: 5px 9px; }
.prompt-type { margin: 13px 0 8px; color: #bcd1c8; font-size: 12px; font-weight: 750; }
#dialog-prompt { max-height: 260px; overflow: auto; margin: 0 0 9px; padding: 13px; border-radius: 8px; background: rgba(0,0,0,.22); color: white; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
#prompt-section small { color: #a8bcb3; }
.limits-box { background: #ffedb8; color: #49390f; }
.source-button { width: 100%; margin-top: 15px; }
.detail-page { background: var(--paper); }
.detail-header { color: var(--white); background: var(--blue); }
.detail-header .nav-wrap { border-bottom: 0; }
.back-link { color: var(--lime); font-size: 14px; font-weight: 800; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-layout { min-height: 70vh; padding-top: 70px; padding-bottom: 100px; }
.detail-layout > article { max-width: 880px; margin: 0 auto; padding: clamp(24px, 5vw, 62px); border: 1px solid var(--line); border-radius: 7px; background: var(--card); overflow-wrap: anywhere; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.breadcrumb a, .breadcrumb a:visited { color: var(--blue); font-size: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a::after { display: none; }
.detail-layout h1 { max-width: none; margin: 22px 0 44px; color: var(--ink); font-size: clamp(2.7rem, 7vw, 5.3rem); line-height: .98; }
.detail-layout article > section { padding: 28px 0; border-top: 1px solid var(--line); }
.detail-layout article > section h2 { margin-bottom: 12px; font-size: 1rem; letter-spacing: .07em; text-transform: uppercase; }
.detail-layout article > section > p:last-child { margin-bottom: 0; }
.detail-layout .detail-lead { padding-top: 0; border-top: 0; color: var(--forest); font-size: 1.22rem; }
.detail-layout .why-agent-box { margin: 10px 0; padding: 24px; border: 0; border-left: 8px solid var(--teal); background: #d5f4ed; }
.detail-layout .starter-box { margin: 10px 0 28px; padding: 24px; border: 0; border-left: 8px solid var(--sun); background: #ffedb8; }
.detail-layout .starter-label { margin-bottom: 7px; color: #624800; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.detail-layout ol { padding-left: 25px; }
.detail-layout li { padding: 0 0 13px 8px; }
.detail-layout .evidence-box { margin-top: 22px; }
.detail-layout .detail-prompt { margin: 10px 0; padding: 26px; border: 0; border-radius: 15px; background: var(--forest); color: var(--white); }
.detail-prompt-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.detail-prompt-heading h2, .detail-prompt-heading .prompt-type { margin-bottom: 0; }
.copy-detail-prompt { min-height: 42px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; color: var(--white); background: transparent; cursor: pointer; font-weight: 800; }
.copy-detail-prompt:hover { color: var(--ink); background: var(--sun); }
.detail-layout .detail-prompt h2 { color: var(--lime); }
.detail-layout .detail-prompt pre { margin: 16px 0; padding: 17px; border-radius: 9px; background: rgba(0,0,0,.22); color: white; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.detail-layout .prompt-type, .detail-layout .prompt-note { color: #bfd1c9; font-size: 13px; }
.detail-layout .prompt-unavailable { background: var(--paper-2); color: var(--ink); }
.detail-layout .prompt-unavailable h2, .detail-layout .prompt-unavailable .prompt-type { color: var(--forest-2); }
.detail-layout .limits-box { margin-top: 28px; border: 0; }
.detail-source .button { margin-top: 8px; }
.commercial-options { margin-top: 28px; padding: 26px !important; border: 2px solid var(--ink) !important; border-radius: 5px; background: var(--paper); }
.commercial-kicker { margin-bottom: 6px; color: var(--plum); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.affiliate-disclosure { padding: 12px; border-left: 6px solid var(--sun); background: #ffedb8; font-size: 13px; }
.commercial-options ul { display: grid; gap: 12px; padding: 0; list-style: none; }
.commercial-options li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.commercial-options li p { margin: 4px 0; color: var(--muted); }
.commercial-options li small { color: var(--muted); }
.button-secondary { color: var(--ink); background: var(--sun); }
.clipboard-fallback { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.not-found-page { min-height: 100vh; display: grid; place-items: center; background: var(--paper); }
.not-found { max-width: 760px; padding-block: 80px; text-align: center; }
.not-found h1 { max-width: none; margin-bottom: 22px; color: var(--ink); }
.not-found p:not(.kicker) { margin-bottom: 28px; color: var(--muted); font-size: 1.1rem; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mosaic-in {
  from { opacity: 0; transform: translateY(12px) rotate(-3deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes strip-in {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes filter-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 850px) {
  .hero-grid, .section-heading, .method-grid, .how-layout, .finder-heading, .finder-layout, .agent-route, .newsletter-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .hero-panel { max-width: 420px; }
  .finder-heading { gap: 28px; }
  .finder-results { min-height: 0; }
  .agent-route { gap: 20px; }
  .search-panel { grid-template-columns: 1fr; }
  .select-row { padding-top: 12px; border-top: 1px solid var(--line); }
  .select-row label { flex: 1; border-left: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .method-grid { gap: 50px; }
  .how-layout { gap: 38px; }
  .legend { grid-template-columns: 1fr 1fr; }
  .legend > p { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #bfc2b9; padding-left: 0; }
  .dialog-columns { grid-template-columns: 1fr; }
  .motion-group { justify-content: flex-start; }
  .motion-group span { padding-inline: 20px; }
  .motion-group span:nth-child(n+4) { display: none; }
  .newsletter-layout { gap: 40px; }
  .newsletter-form { max-width: 600px; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header .brand > span:last-child { display: none; }
  nav { gap: 11px; }
  nav a { font-size: 11px; }
  .hero { padding: 128px 0 70px; }
  .hero::after { width: 125px; height: 36px; right: -36px; bottom: 18px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .catalog-section, .method-section, .finder-section, .agent-map-section, .newsletter-section { padding: 68px 0; }
  .finder-form fieldset { padding: 20px 16px; }
  .choice-grid, .agent-route-list { grid-template-columns: 1fr; }
  .finder-actions { align-items: stretch; flex-direction: column; padding: 20px 16px; }
  .finder-results { padding: 22px 16px; }
  .agent-map-heading { margin-bottom: 36px; }
  .agent-route { padding: 28px 0; }
  .select-row { display: grid; grid-template-columns: 1fr 1fr; }
  .select-row label:last-child { grid-column: auto; }
  .hero-search > div { display: grid; gap: 8px; }
  .hero-search input, .hero-search .button { width: 100%; border: 2px solid var(--ink); border-radius: 4px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { border-right: 0; border-bottom: 2px solid var(--ink); }
  .how-steps li:last-child { border-bottom: 0; }
  .how-steps li > span { margin-bottom: 16px; }
  .case-card { min-height: 0; padding: 20px; }
  .card-evidence, .dialog-validation, .validation-banner { align-items: flex-start; flex-direction: column; }
  .card-evidence span { text-align: left; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .card-actions a { text-align: center; padding: 8px; }
  .legend { grid-template-columns: 1fr; }
  .legend > p { grid-column: auto; }
  footer .shell { align-items: flex-start; flex-direction: column; }
  .dialog-shell { padding: 24px 19px; }
  .dialog-heading { padding-right: 38px; }
  .detail-layout { padding-top: 28px; padding-bottom: 58px; }
  .detail-layout > article { border-radius: 16px; }
  .detail-layout h1 { margin-bottom: 32px; }
  .detail-prompt-heading, .commercial-options li { align-items: stretch; flex-direction: column; }
  .copy-detail-prompt { width: 100%; }
  .motion-group span:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .case-card:hover, .case-card:focus-within { transform: none; }
}
