/*
 * Lilytrap marketing site: "Studio". Warm daylight interiors, natural greens, oak and ochre.
 * Photographs carry the mood; UI stays quiet with pill buttons and soft rounded cards.
 * Fonts: Inter Tight (headings), Inter (body), IBM Plex Mono (code).
 */
:root {
  --bg: #f4efe4;
  --surface: #fffdf8;
  --paper: #faf6ec;
  --bar: #efe8d8;
  --ink: #1d2a1f;
  --ink-2: #4a5546;
  --muted: #7b8073;
  --line: #e6dfcf;
  --line-2: #d5ccb6;
  --moss: #2f5a35;
  --moss-deep: #1f3f25;
  --leaf: #74b043;
  --leaf-soft: #e5eed6;
  --sage: #c9d3b4;
  --honey: #d4951f;
  --honey-deep: #9b6a10;
  --honey-soft: #f6e6bf;
  --oak: #d8b685;
  --alert: #c4482c;
  --alert-deep: #8f2f1a;
  --alert-soft: #f8e1d8;
  --green: var(--moss);
  --green-soft: var(--leaf-soft);
  --blue: #2f5a35;
  --night: #121a14;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow: 0 30px 60px -40px rgba(45, 38, 20, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
code, .mono { font-family: var(--mono); }
p code, li code { font-size: 0.86em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.04em; }
h3 { font-size: 18px; letter-spacing: -0.015em; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.eyebrow { margin: 0 0 14px; font: 600 13px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); }

/* Buttons: soft pills. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--moss-deep); background: var(--moss); color: #f7f3e8;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--moss-deep); }
.btn:active { transform: scale(0.98); }
.btn.honey { background: var(--moss); border-color: var(--moss-deep); color: #f7f3e8; }
.btn.honey:hover { background: var(--moss-deep); }
.btn.ghost { background: rgba(255, 253, 248, 0.7); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn.small { padding: 9px 15px; font-size: 13.5px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.chip { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 11.5px/1.5 var(--font); color: var(--ink-2); }
.chip.llm { border-color: #ecb7a6; background: var(--alert-soft); color: var(--alert-deep); }

/* Windows */
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.window-bar { padding: 11px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font: 500 12.5px var(--mono); color: var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 228, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(213, 204, 182, 0.6); }
.nav-in { display: flex; align-items: center; gap: 28px; width: min(1240px, 100%); height: 64px; margin: 0 auto; padding: 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 19px var(--display); letter-spacing: -0.03em; }
.menu { display: flex; gap: 2px; }
.menu a { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.menu a:hover, .menu a[aria-current] { background: rgba(29, 42, 31, 0.06); color: var(--ink); }
.nav .btn { margin-left: auto; }

/* Hero: a photograph with the words on its quiet side. */
.hero { padding-top: 20px; }
.hero-photo { position: relative; display: grid; align-items: start; min-height: min(80vh, 700px); border-radius: var(--r-xl); overflow: hidden; background: #e9e1cf url("../shared/photos/hero-wide.webp") 72% 50% / cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(246, 240, 230, 0.7) 0%, rgba(246, 240, 230, 0.35) 40%, rgba(246, 240, 230, 0) 60%); }
.hero-copy { position: relative; max-width: 720px; padding: clamp(28px, 5.5vw, 72px); }
.hero-copy h1 { max-width: 13em; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; }
.lede { margin: 20px 0 30px; max-width: 26em; font-size: 20px; line-height: 1.5; color: var(--ink-2); }


/* Works with */
.works { display: flex; align-items: center; justify-content: center; gap: 12px 36px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 8px; }
.works p { margin: 0; font-size: 14px; color: var(--muted); }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 0; padding: 0; list-style: none; }
.works li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.works img { opacity: 0.7; filter: grayscale(1) sepia(0.3); }

/* Sections */
.section { padding-top: 128px; }
#private { padding-top: 112px; }
.section > h2 + * { margin-top: 20px; }
.section-head { max-width: 640px; }
.section-head p { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); }
.lede-2 { max-width: 44em; margin: 16px 0 32px; font-size: 18px; color: var(--ink-2); }

.install { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 72px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); }
.install .window { box-shadow: none; }
.code { margin: 0; padding: 18px 20px; font: 500 13px/1.75 var(--mono); color: var(--ink); overflow-x: auto; }
.code .k { color: var(--moss); }
.code .s { color: var(--honey-deep); font-weight: 600; }
.code .c { color: var(--muted); }
.agent-callout h3 { margin-bottom: 14px; font-size: 22px; }
.copy-line { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.copy-line code { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; }

/* Photo bands */
.photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--bar); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .photo { aspect-ratio: 4 / 3; }
.split-copy p { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); max-width: 26em; }
.split-copy p + p { margin-top: 6px; }
.split-copy .fine-print { margin-top: 20px; font-size: 14px; color: var(--muted); }


/* How it works: a left, right, left trail */
.trail { position: relative; display: grid; gap: 96px; margin: 64px 0 0; padding: 0; list-style: none; }
.trail::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1px; background: var(--line-2); }
.tstep { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) 88px minmax(0, 7fr); align-items: center; }
.tstep.flip { grid-template-columns: minmax(0, 7fr) 88px minmax(0, 4fr); }
.tstep .tcopy { grid-column: 1; grid-row: 1; text-align: right; }
.tstep .tnode { grid-column: 2; grid-row: 1; }
.tstep .tvis { grid-column: 3; grid-row: 1; }
.tstep.flip .tcopy { grid-column: 3; text-align: left; }
.tstep.flip .tvis { grid-column: 1; }
.tcopy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; }
.tcopy p { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }
.tcopy p + p { margin-top: 4px; }
.tstep:not(.flip) .tcopy { padding-right: 8px; }
.tstep.flip .tcopy { padding-left: 8px; }
.tnode { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 0 0 8px var(--bg); font: 600 16px var(--display); color: var(--moss); }

/* Photo scenes: a real UI card floats in the air over each photo. */
.scene { position: relative; }
.scene-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 40px 70px -46px rgba(45, 38, 20, 0.6); }
.scene .float { position: absolute; top: -34px; width: min(58%, 400px); z-index: 1; animation: drift 7s ease-in-out infinite; box-shadow: 0 30px 60px -24px rgba(29, 42, 31, 0.45), 0 2px 6px rgba(29, 42, 31, 0.08); }
.scene-tl .float { left: 20px; }
.scene-tr .float { right: 20px; animation-delay: -3.5s; }
.scene .float.gh, .scene .float.catchcard { background: rgba(255, 253, 248, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-color: rgba(255, 255, 255, 0.7); }
.scene .float.gh .gh-head { background: rgba(250, 246, 236, 0.7); }
.scene .float.ed { background: rgba(17, 25, 19, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.scene .float.ed .ed-code { font-size: 11.5px; }
@keyframes drift { 50% { transform: translateY(-8px); } }

/* Step 1: GitHub Actions run */
.gh { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.gh-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.gh-meta { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); }
.gh-steps { margin: 0; padding: 6px 0; list-style: none; font: 500 13px var(--mono); }
.gh-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: var(--ink-2); }
.gh-steps time { margin-left: auto; color: var(--muted); font-size: 12px; }
.gh-steps li.lt { background: var(--leaf-soft); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--leaf); }
.gh-steps li.lt em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--moss); margin-left: 4px; }
.ok-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #3f8a46 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Step 2: honeypots in code */
.ed { background: #111913; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(18, 26, 20, 0.7); }
.ed-tabs { display: flex; background: #1a241c; border-bottom: 1px solid #263228; font: 500 12px var(--mono); overflow: hidden; }
.ed-tabs span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: #8d9889; border-right: 1px solid #263228; white-space: nowrap; }
.ed-tabs span.on { background: #111913; color: #fff; }
.ed-tabs i { width: 7px; height: 7px; border-radius: 50%; background: #e0a42c; box-shadow: 0 0 8px #e0a42c; }
.ed-code { margin: 0; padding: 16px; font: 500 12.5px/1.75 var(--mono); color: #dfe3d8; overflow-x: auto; }
.ed-code code { padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; }
.ed-code .c { color: #82907d; }
.ed-code .k { color: #9fd36a; }
.ed-code .s { color: #f0c977; }
.ed-code .hp { display: inline-block; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; background: rgba(212, 149, 31, 0.15); box-shadow: inset 3px 0 0 #e0a42c; }
.ed-code .hp b { float: right; margin-top: 4px; padding: 0 8px; border-radius: 999px; background: #e0a42c; color: #1d2a1f; font: 700 10px/1.7 var(--font); }

/* Step 3: the catch */
.catchcard { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; }
.cc-head .chip { margin-left: auto; }
.catchcard dl { display: grid; gap: 6px; margin: 0 0 18px; }
.catchcard dl div { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.catchcard dt { font: 600 11px/1.9 var(--mono); text-transform: uppercase; color: var(--muted); }
.catchcard dd { margin: 0; font: 500 13px/1.7 var(--mono); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions .btn { cursor: default; }
.btn.danger { background: var(--alert); border-color: var(--alert-deep); color: #fff; }
.btn.danger:hover { background: var(--alert-deep); }


.fine-print { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.plan { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan.featured { background: var(--moss); border-color: var(--moss-deep); color: #f4efe4; }
.plan.featured h3, .plan.featured .price span, .plan.featured ul { color: rgba(244, 239, 228, 0.78); }
.plan.featured li::before { border-color: #b6e08c; }
.plan.featured .btn { background: #f4efe4; border-color: #f4efe4; color: var(--moss-deep); }
.plan.featured .btn:hover { background: #fff; }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.price { margin: 8px 0 18px; font: 600 46px/1 var(--display); letter-spacing: -0.04em; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { flex: 1; display: grid; align-content: start; gap: 9px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--ink-2); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

/* Final + footer */
.final { padding-top: 128px; padding-bottom: 72px; }
.final-photo { position: relative; display: grid; align-items: center; min-height: 560px; border-radius: var(--r-xl); overflow: hidden; background: #2b3a2c url("../shared/photos/final.webp") 75% 50% / cover no-repeat; }
.final-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 22, 15, 0.72) 0%, rgba(14, 22, 15, 0.35) 42%, rgba(14, 22, 15, 0) 62%); }
.final-copy { position: relative; display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 5vw, 56px); color: #f7f3e8; }
.final-copy h2 { max-width: 12em; }
.final-copy .btn.honey { background: #f4efe4; border-color: #f4efe4; color: var(--moss-deep); }
.final-copy .btn.honey:hover { background: #fff; }
.final-copy .btn.ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.footer { display: flex; align-items: center; gap: 22px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Agent setup page */
.setup-page { width: min(920px, 100%); margin: 0 auto; padding: 48px 16px 72px; }
.setup-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center; }
.setup-head .photo { aspect-ratio: 1; border-radius: var(--r-lg); }
.setup-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; }
.setup-callout { margin-top: 32px; }
.setup-callout p { margin: 10px 0 0 16px; font-size: 14px; color: var(--muted); }
.steps-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0; padding: 0; list-style: none; }
.steps-mini li { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps-mini p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.md-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.md-bar p { margin: 0; font: 500 12.5px var(--mono); color: var(--ink-2); }
.md-bar .cta-row { gap: 8px; }
.md { margin: 0; padding: 20px 22px; max-height: 70vh; overflow: auto; font: 500 13px/1.65 var(--mono); white-space: pre-wrap; }

/* Responsive */
@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 820px) {
  .hero-photo { min-height: 660px; background-position: 86% 100%; background-size: auto 56%; background-color: var(--bg); }
  .hero-photo { align-items: start; }
  .hero-photo::before { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 42%, rgba(244, 239, 228, 0) 62%); }
  .trail { gap: 56px; }
  .trail::before { left: 22px; }
  .tstep, .tstep.flip { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 18px; }
  .tstep .tnode, .tstep.flip .tnode { grid-column: 1; grid-row: 1; align-self: start; }
  .tstep .tcopy, .tstep.flip .tcopy { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tstep .tvis, .tstep.flip .tvis { grid-column: 2; grid-row: 2; }
  .scene .float { position: relative; top: auto; left: auto; right: auto; width: auto; margin: -22px 10px 0; animation: none; }
  .gh-steps li.lt em { display: none; }
  .menu { display: none; }
  .plans, .install, .steps-mini { grid-template-columns: minmax(0, 1fr); }
  .install { padding: 16px; }
  .section { padding-top: 88px; }
  .setup-head { grid-template-columns: minmax(0, 1fr); }
  .setup-head .photo { display: none; }
  .final-photo { min-height: 480px; align-items: end; background-position: 80% 50%; }
  .final-photo::before { background: linear-gradient(0deg, rgba(14, 22, 15, 0.8) 0%, rgba(14, 22, 15, 0.3) 50%, rgba(14, 22, 15, 0) 75%); }
}
@media (max-width: 640px) {
  .hero { padding-top: 12px; }
  .hero-photo { border-radius: var(--r-lg); }
}
@media (max-width: 560px) {
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
