/* Goodgent v5 — conversion-focused, mobile-first marketing system */
:root {
  --paper: #faf9f5;
  --paper-2: #f1f0e9;
  --white: #fff;
  --ink: #10120f;
  --ink-2: #343730;
  --muted: #74776e;
  --line: #dfddd2;
  --line-dark: #c7c4b6;
  --accent: #f4e985;
  --accent-hover: #f8ef9c;
  --green: #237d50;
  --green-soft: #eaf5ee;
  --dark: #111410;
  --dark-2: #181c17;
  --blue: #2186c4;
  --max: 1180px;
  --display: 'Manrope', sans-serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }

/* Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,249,245,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(223,221,210,.8); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font: 800 24px/1 var(--display); letter-spacing: -.055em; }
.navlinks { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-2); }
.navlinks a:hover, .navlinks a[aria-current='page'] { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff !important; border-radius: 99px; padding: 10px 18px; font-weight: 650; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 23px; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: #fff; font-weight: 650; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-1px); background: #292c27; }
.btn.secondary { background: var(--white); color: var(--ink); border-color: var(--line-dark); }
.btn.secondary:hover { border-color: var(--ink); background: var(--paper); }
.btn.accent { background: var(--accent); color: var(--ink); border-color: #d9cc5c; }
.btn.accent:hover { background: var(--accent-hover); }

/* Hero */
.hero { padding: 82px 24px 54px; text-align: center; }
.hero h1 { max-width: 900px; margin: 0 auto 22px; font: 650 clamp(42px, 5.8vw, 74px)/.98 var(--display); letter-spacing: -.065em; }
.hero-copy { max-width: 740px; margin: 0 auto; color: var(--ink-2); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.52; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin: 30px 0 20px; }
.hero-reassurance { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font: 500 12px/1.4 var(--mono); }
.hero-reassurance span::before { content: '✓'; color: var(--green); margin-right: 6px; font-weight: 700; }

/* Product demo */
.demo-shell { margin-bottom: 88px; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 8px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--paper-2); }
.demo-label { display: flex; align-items: center; gap: 8px; font: 600 11px/1.3 var(--mono); color: var(--ink-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(35,125,80,.1); }
.demo-tabs { display: none; padding: 3px; border-radius: 99px; background: rgba(16,18,15,.06); }
.demo-tab { border: 0; border-radius: 99px; padding: 6px 11px; background: transparent; color: var(--muted); font: 600 10px/1 var(--mono); }
.demo-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.replay-btn { border: 1px solid var(--line-dark); border-radius: 7px; background: var(--white); color: var(--ink-2); padding: 6px 10px; font: 600 10px/1 var(--mono); }
.demo-stage { position: relative; overflow: hidden; padding: 28px; border: 1px solid #314135; border-radius: 0 0 22px 22px; background: linear-gradient(112deg,#103e38 0%,#2b684e 38%,#6b753e 67%,#1d281f 100%); box-shadow: 0 24px 60px rgba(24,38,27,.18); }
.demo-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 16% 74%,rgba(121,190,204,.66),transparent 29%),radial-gradient(circle at 82% 14%,rgba(174,183,92,.45),transparent 34%); }
.demo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 18px; min-height: 460px; }

/* Telegram product panel */
.tg-panel, .work-panel { background: #14171a; border: 1px solid #3a3d43; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 48px rgba(0,0,0,.4); }
.panel-bar { min-height: 44px; display: flex; align-items: center; padding: 0 15px; border-bottom: 1px solid #303239; background: #191c20; color: #dfe2e7; font-size: 12px; }
.panel-bar strong { color: #8dcaff; }
.panel-status { margin-left: auto; color: #8f939d; font: 500 9px/1 var(--mono); }
.tg-body { height: calc(100% - 44px); padding: 16px; background: #17242d; display: flex; flex-direction: column; gap: 10px; font-size: 11.5px; }
.tg-message { max-width: 92%; padding: 10px 12px; border-radius: 4px 12px 12px; background: #263e4c; color: #eef4f6; line-height: 1.42; }
.tg-message.user { margin-left: auto; border-radius: 12px 4px 12px 12px; background: #2b5749; }
.tg-message small { display: block; margin-top: 5px; color: #8ca6ae; text-align: right; font-size: 8px; }
.approval-box { margin-top: 8px; padding: 9px; border: 1px solid #3b5260; border-radius: 7px; background: rgba(0,0,0,.2); }
.approval-box p { margin-bottom: 8px; font-style: italic; }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.approval-actions button { border: 1px solid #466778; border-radius: 5px; background: #2d4c5d; color: #fff; padding: 7px 5px; font-size: 9px; font-weight: 650; }
.approval-actions .approve { grid-column: 1 / -1; background: #326c56; border-color: #438c72; color: #c1ffe1; }
.approved-state { display: none; margin-top: 8px; color: #adf0cd; font: 600 9px/1.4 var(--mono); }

/* Work output product panel */
.work-panel { display: flex; flex-direction: column; }
.work-body { display: grid; grid-template-columns: 180px minmax(0,1fr); flex: 1; background: #141619; }
.work-sidebar { padding: 16px 12px; border-right: 1px solid #292c32; background: #111316; color: #747984; font-size: 10px; }
.work-sidebar b { display: block; margin-bottom: 14px; color: #f0f1f3; font-size: 13px; }
.work-sidebar span { display: block; padding: 6px 7px; border-radius: 5px; }
.work-sidebar span.active { background: #272a30; color: #fff; }
.work-main { padding: 17px; display: flex; flex-direction: column; gap: 12px; }
.request-box, .progress-box { border: 1px solid #2f323a; border-radius: 8px; background: #1b1e23; padding: 12px 13px; color: #e6e8ec; font-size: 11px; line-height: 1.45; }
.request-box small, .progress-box small { display: block; margin-bottom: 5px; color: #7d828e; font: 500 8px/1 var(--mono); }
.progress-box { background: #111316; }
.progress-line { padding: 3px 0; color: #aeb3bd; }
.progress-line::before { content: '✓'; color: #75d6a0; margin-right: 7px; font-weight: 700; }
.output-card { margin-top: auto; display: flex; align-items: center; gap: 13px; border: 1px solid #3b3f48; border-radius: 9px; background: #1b1e24; padding: 14px; color: #fff; }
.file-icon { flex: 0 0 auto; width: 38px; height: 44px; border-radius: 5px; display: grid; place-items: center; background: #db554e; font-size: 10px; font-weight: 800; }
.file-info { min-width: 0; flex: 1; }
.file-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-info small { color: #8c919c; font: 500 8px/1.4 var(--mono); }
.file-link { flex: 0 0 auto; border-radius: 6px; background: var(--accent); color: var(--ink); padding: 8px 10px; font-size: 10px; font-weight: 700; }

/* Problem */
.problem { padding: 78px 24px; border-top: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.problem h2 { font: 650 clamp(34px,4.2vw,52px)/1.05 var(--display); letter-spacing: -.055em; }
.problem-copy { color: var(--warm); font-size: 17px; }
.problem-copy p + p { margin-top: 14px; }
.problem-list { margin-top: 24px; border-top: 1px solid var(--line); }
.problem-row { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.problem-row strong { font: 700 12px/1.4 var(--mono); color: var(--green); }
.problem-row span { color: var(--ink-2); }

/* Shared sections */
.section { padding: 82px 24px; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin-bottom: 12px; font: 650 clamp(31px,3.8vw,48px)/1.08 var(--display); letter-spacing: -.055em; }
.section-head p { color: var(--warm); font-size: 17px; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.capability { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.cap-num { font: 700 11px/1.3 var(--mono); color: var(--green); }
.capability h3 { margin-bottom: 7px; font: 700 19px/1.2 var(--display); letter-spacing: -.025em; }
.capability p { color: var(--warm); font-size: 14px; }
.capability ul { list-style: none; margin-top: 12px; columns: 2; color: var(--muted); font-size: 12px; }
.capability li { break-inside: avoid; padding: 2px 0; }
.capability li::before { content: '•'; color: var(--ink); margin-right: 6px; }

/* Comparison */
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; max-width: 960px; margin: 0 auto; }
.compare-card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 28px; }
.compare-card.good { border: 2px solid var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.compare-card h3 { margin: 6px 0 14px; font: 700 23px/1.2 var(--display); letter-spacing: -.04em; }
.compare-card p { color: var(--warm); font-size: 14px; }
.compare-card ul { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.compare-card li { padding: 6px 0; color: var(--ink-2); font-size: 13px; }
.compare-card li::before { content: '—'; color: var(--muted); margin-right: 8px; }
.compare-card.good li::before { content: '✓'; color: var(--green); font-weight: 700; }
.compare-note { max-width: 680px; margin: 24px auto 0; padding: 12px 18px; text-align: center; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font: 600 12px/1.4 var(--mono); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.step { padding: 24px 22px; border-top: 2px solid var(--ink); background: var(--white); }
.step span { font: 700 10px/1 var(--mono); color: var(--green); }
.step h3 { margin: 12px 0 7px; font: 700 18px/1.2 var(--display); }
.step p { color: var(--warm); font-size: 14px; }

/* Artifact proof */
.artifact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; }
.artifact-copy h2 { margin-bottom: 14px; font: 650 clamp(32px,3.9vw,48px)/1.06 var(--display); letter-spacing: -.055em; }
.artifact-copy p { color: var(--warm); font-size: 16px; }
.artifact-actions { display: flex; gap: 10px; margin-top: 22px; }
.artifact-card { border-radius: 14px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 36px rgba(0,0,0,.06); padding: 26px; }
.artifact-card .doc-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.artifact-card h3 { font: 700 20px/1.25 var(--display); }
.artifact-card .doc-body { padding-top: 18px; color: var(--ink-2); font-size: 14px; }
.artifact-card .doc-body strong { display: block; margin: 14px 0 4px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.plan.primary { border: 2px solid var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.07); }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 9px; border-radius: 99px; background: var(--ink); color: #fff; font: 700 9px/1.4 var(--mono); }
.plan-label { color: var(--muted); font: 700 10px/1.4 var(--mono); letter-spacing: .08em; }
.plan h3 { margin: 7px 0 14px; font: 700 22px/1.2 var(--display); }
.price { font: 750 45px/1 var(--display); letter-spacing: -.06em; }
.price small { font: 400 13px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.founding { margin: 8px 0 16px; color: var(--green); font-size: 12px; font-weight: 700; }
.plan p { color: var(--warm); font-size: 14px; }
.plan ul { flex: 1; list-style: none; margin: 18px 0 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan li { padding: 5px 0; color: var(--ink-2); font-size: 13px; }
.plan li::before { content: '✓'; color: var(--green); margin-right: 7px; font-weight: 700; }
.guarantee { text-align: center; margin-top: 22px; color: var(--muted); font: 500 11px/1.4 var(--mono); }

/* Trust and FAQ */
.trust-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 860px; }
.trust-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-2); font-size: 14px; }
.trust-item::before { content: '✓'; color: var(--green); margin-right: 8px; font-weight: 700; }
.faq { max-width: 800px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 2px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
details p { padding: 0 2px 18px; color: var(--warm); font-size: 14px; }

/* Final CTA/Footer */
.final-cta { padding: 94px 24px 110px; text-align: center; border-top: 1px solid var(--line); }
.final-cta h2 { margin-bottom: 13px; font: 650 clamp(38px,5vw,62px)/1 var(--display); letter-spacing: -.06em; }
.final-cta p { max-width: 580px; margin: 0 auto 26px; color: var(--warm); font-size: 17px; }
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 42px 24px 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand p { max-width: 430px; margin-top: 8px; color: var(--warm); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 21px; color: var(--muted); font-size: 12px; }
.mobile-cta { display: none; }

/* Checkout */
.checkout-page { max-width: 980px; margin: 0 auto; padding: 54px 24px 90px; }
.checkout-intro { text-align: center; margin-bottom: 34px; }
.checkout-intro h1 { font: 650 clamp(38px,5vw,58px)/1.02 var(--display); letter-spacing: -.06em; }
.checkout-intro p { max-width: 600px; margin: 12px auto 0; color: var(--warm); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkout-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.plan-choice { display: block; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; color: var(--ink); }
.plan-choice + .plan-choice { margin-top: 10px; }
.plan-choice.active { border: 2px solid var(--ink); background: var(--white); }
.plan-choice b { display: flex; justify-content: space-between; font-size: 14px; }
.plan-choice small { display: block; margin-top: 5px; color: var(--muted); }
.next-list { margin-top: 20px; border-top: 1px solid var(--line); }
.next-row { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--warm); font-size: 13px; }
.next-row strong { display: block; color: var(--ink); }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.field input { width: 100%; border: 1px solid var(--line-dark); border-radius: 8px; background: var(--white); color: var(--ink); padding: 12px 13px; outline: none; }
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,18,15,.06); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-note { margin-top: 14px; color: var(--muted); text-align: center; font-size: 11px; }
.success { display: none; margin-top: 16px; padding: 13px; border: 1px solid #b8dfc7; border-radius: 8px; background: var(--green-soft); color: #185f3e; font-size: 13px; }

/* Supporting pages */
.page-hero { padding: 76px 24px 58px; text-align: center; }
.page-hero h1 { max-width: 850px; margin: 0 auto 16px; font: 650 clamp(40px,5vw,64px)/1.02 var(--display); letter-spacing: -.06em; }
.page-hero p { max-width: 680px; margin: 0 auto; color: var(--warm); font-size: 18px; }
.content { max-width: 860px; margin: 0 auto; }
.content-block { padding: 48px 0; border-top: 1px solid var(--line); }
.content-block h2 { margin-bottom: 12px; font: 700 28px/1.2 var(--display); letter-spacing: -.04em; }
.content-block p { color: var(--warm); margin-bottom: 12px; }
.content-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.content-list div { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink-2); font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .menu-toggle { display: block; }
  .nav.menu-open .navlinks { display: flex; position: absolute; top: 76px; left: 18px; right: 18px; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
  .demo-tabs { display: flex; }
  .demo-label span:last-child { display: none; }
  .demo-grid { grid-template-columns: 1fr; min-height: 0; }
  .demo-grid.mode-chat .work-panel { display: none; }
  .demo-grid.mode-work .tg-panel { display: none; }
  .problem-grid, .artifact, .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .cap-grid, .compare-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .mobile-cta { display: flex; position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px 10px 15px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(0,0,0,.16); backdrop-filter: blur(12px); }
  .mobile-cta span { font-size: 12px; color: var(--ink-2); }
  .mobile-cta a { padding: 10px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .hero { padding: 54px 18px 38px; }
  .hero h1 { font-size: clamp(38px,11vw,52px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; max-width: 320px; margin-inline: auto; }
  .hero-actions .btn { width: 100%; }
  .demo-toolbar { gap: 8px; padding: 8px 10px; }
  .replay-btn { display: none; }
  .demo-stage { padding: 14px; border-radius: 0 0 16px 16px; }
  .tg-body { min-height: 440px; }
  .work-body { grid-template-columns: 1fr; min-height: 450px; }
  .work-sidebar { display: none; }
  .work-main { padding: 13px; }
  .output-card { flex-wrap: wrap; }
  .file-link { width: 100%; text-align: center; }
  .section, .problem { padding: 64px 18px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 32px; }
  .capability { grid-template-columns: 38px 1fr; padding: 21px 18px; }
  .capability ul { columns: 1; }
  .artifact-actions { flex-direction: column; }
  .artifact-actions .btn { width: 100%; }
  .trust-grid, .content-list { grid-template-columns: 1fr; }
  .final-cta { padding: 74px 18px 100px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer { padding-bottom: 96px; }
}
