/* Agentica — site styles. No frameworks, no web fonts. */

:root {
  --bg: #f5f4f0;
  --ink: #141414;
  --ink-2: #47453f;
  --ink-3: #6b6862;
  --line: rgba(20, 20, 20, 0.14);
  --accent: #b9471c;

  --dark: #131312;
  --dark-ink: #f2f1ec;
  --dark-ink-2: #a9a7a0;
  --dark-line: rgba(242, 241, 236, 0.16);
  --accent-on-dark: #ef8a5c;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --space: clamp(72px, 10vw, 144px);
  --radius: 4px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p, ul, ol, dl, dd, figure { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

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

main:focus { outline: none; }

[id] { scroll-margin-top: 24px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.65em 1em;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  text-decoration: none;
}

.skip:focus { top: 12px; color: var(--bg); }

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

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  flex-shrink: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.9375rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 8px;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 1.1rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.h-section {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.h-product {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 30em;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.prose p {
  max-width: 36em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.prose p + p { margin-top: 1em; }

.prose .first {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.small {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---------- Buttons and links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0.7em 1.2em;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
}

.btn:hover { background: #000; color: var(--bg); }

.textlink {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 10px;
}

.textlink span { display: inline-block; margin-left: 0.3em; transition: transform 0.2s ease; }
.textlink:hover span { transform: translateX(3px); }

/* ---------- Media ---------- */

.shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e4e2dc;
}

.app-icon {
  width: 104px;
  height: 104px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22.5%;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

/* ---------- Page intro (all pages) ---------- */

.intro {
  padding-top: clamp(56px, 9vw, 128px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.intro .display { max-width: 15em; }
.intro .lead { margin-top: clamp(20px, 2.5vw, 32px); }
.intro .actions { margin-top: clamp(28px, 3.5vw, 44px); }

/* ---------- Home: featured game ---------- */

.feature-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px clamp(32px, 6vw, 96px);
  padding-top: clamp(24px, 3vw, 36px);
}

.feature-text .actions { margin-top: 24px; }

/* ---------- Section heads ---------- */

.section { padding-top: var(--space); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Home: product index ---------- */

.index {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index li { border-bottom: 1px solid var(--line); }

.index a {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 2fr) 24px;
  gap: 8px clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 32px);
  text-decoration: none;
}

.index .name {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.index .desc { color: var(--ink-2); }
.index .kind { font-size: 0.875rem; color: var(--ink-3); }
.index .arrow { justify-self: end; color: var(--ink-3); transition: transform 0.2s ease, color 0.2s ease; }

.index a:hover { color: var(--ink); }
.index a:hover .name,
.index a:hover .arrow { color: var(--accent); }
.index a:hover .arrow { transform: translateX(3px); }

/* ---------- Home: shader pair ---------- */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.pair a { display: block; text-decoration: none; }

.pair figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  font-size: 0.9375rem;
}

.pair figcaption span:last-child { color: var(--ink-3); }

/* ---------- Two-column editorial split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 6vw, 96px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.points {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.points div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 4px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.points dt { font-weight: 600; }
.points dd { color: var(--ink-2); }

.split .actions { margin-top: 28px; }

/* ---------- Products page ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 8px;
}

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

.product { padding-bottom: var(--space); }
.product:last-child { padding-bottom: 0; }

/* Hairline above each product, aligned to the content column */
.product::before {
  content: "";
  display: block;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  margin: 0 auto var(--space);
  border-top: 1px solid var(--line);
}

.product > .wrap:not(.gwc) > * + * { margin-top: clamp(32px, 4vw, 56px); }

.p-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px clamp(20px, 3vw, 40px);
}

.p-head--plain { grid-template-columns: minmax(0, 1fr) auto; }

.p-sub {
  margin-top: 10px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.p-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.price {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.p-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}

.poster {
  max-width: 600px;
  width: 100%;
  justify-self: end;
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.specs {
  border-top: 1px solid var(--line);
}

.prose + .specs,
.prose + .links { margin-top: clamp(28px, 3vw, 40px); }
.specs + .links { margin-top: 28px; }

.specs div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4px 24px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.specs dt { color: var(--ink-3); }
.specs dd { color: var(--ink); }

.links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

/* Dark band (Generator Wattage Calculator) */

.product--dark {
  padding-top: var(--space);
  background: var(--dark);
  color: var(--dark-ink);
}

.product--dark::before,
.product--dark + .product::before { display: none; }
.product--dark + .product { padding-top: var(--space); }

.product--dark .eyebrow { color: var(--accent-on-dark); }
.product--dark .p-sub,
.product--dark .prose p { color: var(--dark-ink-2); }
.product--dark .prose .first { color: var(--dark-ink); }
.product--dark .specs,
.product--dark .specs div { border-color: var(--dark-line); }
.product--dark .specs dt { color: var(--dark-ink-2); }
.product--dark .specs dd { color: var(--dark-ink); }
.product--dark .textlink { color: var(--dark-ink); }
.product--dark a:hover { color: var(--accent-on-dark); }
.product--dark .btn { background: var(--dark-ink); color: var(--dark); }
.product--dark .btn:hover { background: #fff; color: var(--dark); }
.product--dark :focus-visible { outline-color: var(--accent-on-dark); }

.gwc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: center;
}

.gwc-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 320px;
  width: 100%;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}

.gwc-art .app-icon {
  width: 104px;
  height: 104px;
  outline-color: rgba(255, 255, 255, 0.1);
}

.gwc .p-sub { margin-top: 10px; }
.gwc .prose { margin-top: 28px; }
.gwc .actions { margin-top: 32px; }

/* ---------- Support page ---------- */

/* Let the address wrap at the domain instead of shrinking the contact text. */
.email {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  padding-block: 8px;
  font-size: clamp(1.25rem, 0.75rem + 1.7vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.checklist {
  padding: 0;
  list-style-position: inside;
  border-top: 1px solid var(--line);
}

.checklist li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.checklist li::marker {
  color: var(--ink-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.contact-grid h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.contact-grid .small { margin-top: 18px; }
.contact-grid .checklist-intro { margin-top: 32px; margin-bottom: 12px; }

.topics { padding-top: var(--space); }
.intro + .topics { padding-top: 0; }
.topics .split + .split { margin-top: clamp(56px, 7vw, 96px); }
.topics h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; }
.topics .p-sub {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

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

.site-footer {
  margin-top: var(--space);
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(32px, 6vw, 96px);
}

.foot .brand { color: var(--ink); font-size: 0.9375rem; }
.foot p + p { margin-top: 6px; }
.foot .privacy { max-width: 40em; }

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

@media (max-width: 900px) {
  .feature-text,
  .split,
  .p-body,
  .gwc,
  .contact-grid,
  .foot { grid-template-columns: minmax(0, 1fr); }

  .index a { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; }
  .index .kind { grid-column: 1; grid-row: 1; }
  .index .name { grid-column: 1; grid-row: 2; }
  .index .arrow { grid-column: 2; grid-row: 2; }
  .index .desc { grid-column: 1 / -1; grid-row: 3; }

  .poster { justify-self: start; max-width: 440px; }
  .gwc-art { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .p-head,
  .p-head--plain { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .p-head--plain .p-title { grid-column: 1 / -1; }
  .p-cta { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .app-icon { width: 72px; height: 72px; }
  .gwc-art .app-icon { width: 68px; height: 68px; }

  .pair,
  .gallery { grid-template-columns: minmax(0, 1fr); }

  .points div,
  .specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 360px) {
  .site-header .wrap { gap: 0 16px; }
  .nav { width: 100%; justify-content: space-between; gap: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* EX-022 cross-site strip */
.foot > .xsite { grid-column: 1 / -1; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.xsite-title { margin: 0 0 6px; color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.xsite ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.xsite a { display: inline-block; padding-block: 4px; color: var(--ink-3); text-decoration: none; }
.xsite a:hover, .xsite a:focus-visible { color: var(--accent); text-decoration: underline; }
.xsite-title a, .xsite-title a:hover, .xsite-title a:focus-visible { display: inline; min-height: 0; padding: 0; color: inherit; }
.xsite-title a:hover, .xsite-title a:focus-visible { text-decoration: underline; }

/* EX-065 (2026-10-28): n8n cards and FAQ */
.h-sub { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.p-body .actions { margin-top: 20px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin-top: 10px; color: var(--ink-2); max-width: 46em; }
