/* wiin.agency: shared styles for generated pages (agents, integrations, 404).
 * Tokens, nav, buttons and footer follow /sales-brain (brandbook: Satoshi for
 * display, Inter for text, AI Blue #2962ff, Acid Green #22c55e on #0d0d0f). */
:root {
  --bg: #0d0d0f;
  --bg-2: #131316;
  --surface: #16161a;
  --surface-2: #1c1c22;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --text-2: #b0b0b0;
  --text-3: #8a8a93;
  --accent: #2962ff;
  --accent-2: #22c55e;
  --accent-glow: color-mix(in oklab, var(--accent) 38%, transparent);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --pad: clamp(16px, 4vw, 64px);
  --maxw: 1180px;
  --font-display: "Satoshi", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 1px 2px rgba(41, 98, 255, 0.06), 0 12px 32px -18px rgba(41, 98, 255, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: var(--r-md); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* labels */
.lbl { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.ac { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px; border-radius: 11px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font: 500 15px/1.2 var(--font-body);
  cursor: pointer; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, transform .25s var(--spring);
}
.btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 8px 30px -12px var(--accent-glow); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); border-color: color-mix(in oklab, var(--accent) 88%, white); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.btn-lg { min-height: 54px; padding: 16px 30px; font-size: 16px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: rgba(7, 7, 10, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .brand { flex: 0 0 auto; }
.nav .brand img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-links a { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); padding: 8px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .cta-mini { min-height: 40px; padding: 9px 15px; font-size: 13px; }
.nav .login-link { background: rgba(255, 255, 255, 0.03); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav .registration-link { display: none; } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--text-2); transition: color .2s ease; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-3); overflow-wrap: anywhere; }

/* page hero */
.page-hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 86% -12%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 68%),
    radial-gradient(560px 360px at 0% 10%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 62%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero .crumbs { margin-bottom: 28px; }
.kick { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.02); margin-bottom: 22px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.kick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: 0 0 auto; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.035em;
  margin: 0; max-width: 18ch; text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}
.page-hero .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); margin: 22px 0 0; max-width: 58ch; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cta-gift { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--accent-2); display: flex; align-items: center; gap: 8px; }
.cta-gift::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); flex: 0 0 auto; }

/* sections */
.block { padding: clamp(48px, 7vw, 96px) 0 0; }
.block h2, .section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 4.2vw, 48px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0; max-width: 22ch; text-wrap: balance;
}
.block .intro { color: var(--text-2); margin: 16px 0 0; max-width: 62ch; font-size: clamp(16px, 1.3vw, 18px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* short answer (quotable summary) */
.answer {
  margin-top: 8px; padding: clamp(20px, 3vw, 32px);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line-2)); border-radius: var(--r-xl);
  background: linear-gradient(140deg, color-mix(in oklab, var(--accent) 10%, var(--surface)), var(--surface) 70%);
  box-shadow: var(--shadow-card);
}
.answer h2 { font-size: 13px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.answer p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 70ch; }

/* cards */
.grid { display: grid; gap: 14px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 24px; min-width: 0;
  transition: border-color .25s ease, background-color .25s ease, transform .3s var(--spring);
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.card p { margin: 0; font-size: 16px; color: var(--text-2); line-height: 1.55; }
a.card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
a.card:hover { border-color: color-mix(in oklab, var(--accent) 34%, var(--line-2)); background: var(--surface-2); transform: translateY(-3px); }
a.card:active { transform: translateY(-1px); }
.card .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.card .status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--accent-2); }
.card .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card .status.admin { color: var(--text-2); }

/* check list */
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 52px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in oklab, var(--accent-2) 18%, var(--surface)); }
.checks li::after {
  content: ""; position: absolute; left: 24px; top: 23px; width: 11px; height: 11px; background: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/></svg>") center/11px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/></svg>") center/11px no-repeat;
}
.limits { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.limits li { position: relative; padding-left: 26px; color: var(--text-2); }
.limits li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 10px; height: 2px; border-radius: 2px; background: var(--text-3); }
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-2); padding: clamp(20px, 3vw, 32px); }
.panel h3 { margin: 0; font-size: 18px; font-weight: 600; }

/* steps */
.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }

/* integration chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.chips a, .chips span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: 15px; color: var(--text); overflow-wrap: anywhere;
}
.chips a { cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .25s var(--spring); }
.chips a:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line-2)); background: var(--surface-2); transform: translateY(-2px); }
.chips a:active { transform: translateY(0); }
.chips a::after { content: "→"; color: var(--accent); }

/* pricing */
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.price .card b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.2vw, 40px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px; }
.price .card b.green { color: var(--accent-2); }
.note { margin: 18px 0 0; font-size: 14px; color: var(--text-3); max-width: 70ch; }

/* faq */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 18px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text-2); transition: transform .3s var(--spring), border-color .2s ease; }
.faq summary:hover::after { border-color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); max-width: 72ch; }

/* reading list */
.reading { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.reading a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.reading a:hover { border-color: var(--line-2); background: var(--surface-2); }
.reading a span { min-width: 0; overflow-wrap: break-word; }
.reading a small { flex: 0 0 auto; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }

/* final call to action */
.cta-band {
  margin-top: clamp(56px, 8vw, 104px); padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 22%, var(--surface)) 0%, var(--surface) 62%);
}
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 22px 22px; }
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4vw, 46px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; max-width: 20ch; }
.cta-band p { color: var(--text-2); margin: 14px 0 0; max-width: 56ch; }

/* table */
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); }
tr:last-child td { border-bottom: none; }
td a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* prose links */
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* 404 */
.not-found { padding: clamp(64px, 12vw, 160px) 0 0; }
.not-found .code { font-family: var(--font-display); font-weight: 900; font-size: clamp(88px, 18vw, 220px); line-height: .85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin: 0 0 12px; }

/* footer */
footer.ft { margin-top: clamp(80px, 11vw, 136px); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.ft-top { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1.1fr; gap: 32px; }
.ft-brand img { height: 26px; width: auto; margin-bottom: 16px; }
.ft-brand p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; max-width: 36ch; line-height: 1.5; }
.ft-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-soc a { font-size: 13px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); transition: color .2s ease, background-color .2s ease; }
.ft-soc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.ft-col h2 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ft-col a { display: block; font-size: 15px; color: var(--text-2); padding: 4px 0; margin-bottom: 4px; transition: color .2s ease; overflow-wrap: break-word; }
.ft-col a:hover { color: var(--text); }
.ft-col span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; line-height: 1.45; }
.ft-legal { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); line-height: 1.8; }
.ft-legal a { color: var(--text-2); }

@media (max-width: 960px) {
  .grid-3, .price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .price { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .ft-top { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.not-found .intro { color: var(--text-2); max-width: 56ch; margin: 16px 0 0; }
.card .card-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.panel .panel-gap { margin-top: 24px; }
.panel .panel-text { margin: 10px 0 0; color: var(--text-2); }
.panel .actions { margin-top: 20px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-split .answer { margin-top: 0; }
.hero-split .answer p { font-size: clamp(16px, 1.3vw, 18px); }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; } }
