/* Agent Hooks marketing site. Shares the product's palette, type and radius. */
:root {
  --bg: #fcfbfa;
  --surface: #fff;
  --ink: #191a24;
  --muted: #5c5e6b;
  --line: #e4e2e6;
  --accent: #4640c9;
  --accent-ink: #3a35ad;
  --accent-soft: #eeecfb;
  --green: #27643e;
  --green-bg: #edf6e9;
  --amber: #885815;
  --amber-bg: #fbf2df;
  --radius: 9px;
  --wrap: 1120px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid #9d99ea; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 720; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 20; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 8px;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  font-size: 1rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.button:active { transform: translateY(1px); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: #c9c6d2; color: var(--ink); background: var(--surface); }
.button.small { min-height: 38px; padding: 7px 14px; font-size: .94rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(252, 251, 250, .88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header:has(+ main .legal) { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 720; font-size: 1.22rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-actions .signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; padding: 8px 10px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .86rem; font-weight: 600; margin-bottom: 22px; }
.hero p.lede { font-size: 1.22rem; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* Product illustration (pure HTML/CSS, mirrors the real app) */
.demo { position: relative; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(25, 26, 36, .04), 0 18px 44px -18px rgba(70, 64, 201, .28); padding: 22px; }
.demo-card + .demo-card { margin-top: 16px; margin-left: 44px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo-title { font-weight: 650; font-size: 1rem; }
.demo-sub { font-size: .84rem; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.good { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.checks li { display: flex; align-items: center; gap: 10px; }
.tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c9c6d2; flex: none; display: grid; place-items: center; }
.tick.on { background: var(--accent); border-color: var(--accent); }
.tick.on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.select { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: .93rem; }
.select small { color: var(--muted); font-size: .8rem; display: block; }
.mail { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; color: var(--muted); }
.mail strong { color: var(--ink); font-weight: 600; }
.demo-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.pill { padding: 7px 13px; border-radius: 7px; font-size: .86rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.pill.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Works with */
.works { padding: 28px 0 8px; }
.works p { font-size: .9rem; color: var(--muted); text-align: center; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .93rem; font-weight: 550; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.1rem; color: var(--muted); }
.kicker { color: var(--accent); font-weight: 650; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 16px; }
.steps p, .features p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.feature svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }

/* Split: text beside a list */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.modes { display: grid; gap: 12px; }
.mode { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.mode b { font-weight: 650; }
.mode span { grid-column: 2; color: var(--muted); font-size: .95rem; }
.mode i { grid-row: span 2; font-style: normal; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center; }
.mode:nth-child(1) i { background: #b9b6c4; }
.mode:nth-child(4) i { background: var(--amber); }
.plain { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.plain li { padding-left: 28px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Code */
pre { margin: 0; background: #17182a; color: #e6e4f5; border-radius: 12px; padding: 20px 22px; overflow-x: auto; font: .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre .c { color: #8f8cb5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 44px -22px rgba(70, 64, 201, .45); }
.plan .tag { align-self: flex-start; margin-bottom: 10px; }
.plan h3 { font-size: 1.15rem; }
.price { margin: 14px 0 4px; font-size: 2.3rem; font-weight: 720; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: .94rem; min-height: 3em; }
.plan ul { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .48em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan li.no { color: #9a9ba6; }
.plan li.no::before { border: 0; width: 10px; height: 2px; background: #c9c6d2; transform: none; top: .75em; }
.plan .button { margin-top: auto; width: 100%; }
.pricing-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 620; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 36px 22px 0; color: var(--muted); }

/* Closing call to action */
.closing { text-align: center; }
.closing .panel { background: var(--accent); color: #fff; border-radius: 20px; padding: 64px 28px; }
.closing h2 { color: #fff; }
.closing p { margin: 14px auto 28px; max-width: 34em; color: #dedcf7; font-size: 1.1rem; }
.closing .button { background: #fff; color: var(--accent-ink); border-color: #fff; }
.closing .button:hover { background: #f1f0fd; color: var(--accent-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: .94rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.site-footer .brand { font-size: 1.05rem; margin-bottom: 8px; }
.site-footer .brand svg { width: 24px; height: 24px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal .updated { color: var(--muted); margin: 10px 0 34px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal p, .legal li { color: #3b3d4a; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }

@media (max-width: 960px) {
  .hero { padding-top: 44px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { gap: 12px; min-height: 60px; }
  .nav-links { display: none; }
  .nav-actions .signin { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .demo-card + .demo-card { margin-left: 16px; }
  .cta-row .button { flex: 1 1 100%; }
  .closing .panel { padding: 44px 20px; border-radius: 16px; }
  .plan .for { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* In-page links stop below the sticky header. */
section[id], main[id] { scroll-margin-top: 68px; }

/* The "Most popular" tag sits on the card's edge so all four prices line up. */
.plan { position: relative; }
.plan .tag { position: absolute; top: -12px; left: 22px; margin: 0; }
