/* LzyReply landing — three colors: near-black text, white bg, one accent.
   Grays are tints of black. Accent (indigo) lives almost only on buttons. */
:root {
  --ink: #18181b;
  --bg: #ffffff;
  --accent: #008060;
  --accent-dark: #006e52;
  --muted: #6b7280;
  --line: #e7e8ec;
  --surface: #f7f7f9;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
.center { text-align: center; }
h2.center { margin-left: auto; margin-right: auto; }
.hl { color: var(--accent); }
.muted { color: var(--muted); }
em { font-style: normal; background: linear-gradient(transparent 60%, #cdeede 60%); }

/* Buttons — the one accent */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; padding: .7rem 1.2rem; border-radius: 10px;
  border: none; cursor: pointer; transition: background .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.big { padding: .95rem 1.7rem; font-size: 1.08rem; border-radius: 12px; }
.btn.full { display: block; width: 100%; text-align: center; }
.btn-ghost { font-weight: 600; color: var(--ink); padding: .9rem .6rem; }
.btn-ghost:hover { color: var(--accent); }

/* Nav */
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand span { color: var(--accent); }
.nav-links { flex: 1; justify-content: center; display: flex; gap: 1.8rem; align-items: center; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.nav-login {
  margin-left: auto; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: .55rem 1.15rem; border-radius: 10px;
  transition: background .15s, transform .15s;
}
.nav-login:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* Hero */
.hero { max-width: 880px; margin: 0 auto; padding: 3rem 1.25rem 1rem; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 1rem; }
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.6rem; }
.cta-row { display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-note { color: var(--muted); font-size: .92rem; margin-top: .8rem; }

/* Interactive demo — faithful replica of the real LzyReply app UI.
   The app's CSS is ported here scoped under .app-demo with its green Polaris
   palette, so it matches the product and never touches the landing's own
   (indigo) .btn/.card/.avatar components. */
.demo {
  max-width: 1000px; margin: 2.5rem auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(24,24,40,.35); overflow: hidden; text-align: left;
}
.demo-chrome { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #ededf2; border-bottom: 1px solid #d9d9e0; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.demo-url { margin-left: .6rem; color: var(--muted); font-size: .85rem; }

/* "Interactive demo" hand-note pointing at the window's top-right */
.demo-wrap { position: relative; max-width: 1000px; margin: 3.4rem auto 0; }
.demo-wrap .demo { margin-top: 0; }
.demo-tag {
  position: absolute; top: -30px; right: 24px; z-index: 2;
  display: inline-flex; align-items: flex-start; gap: 4px;
  font-style: italic; font-weight: 600; color: var(--muted); font-size: .95rem;
  white-space: nowrap;
}
.demo-tag svg { width: 34px; height: 26px; color: var(--accent); margin-top: 2px; }
@media (max-width: 760px) { .demo-tag { font-size: .82rem; right: 12px; } }

/* "Click a ticket" hint riding the right edge of the first ticket card */
.app-demo .row-hint {
  margin-left: auto; flex-shrink: 0; color: var(--accent); font-weight: 700;
  font-size: 13px; white-space: nowrap; animation: nudge 1.1s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@media (max-width: 560px) { .app-demo .row-hint { display: none; } }

/* ── the real app, in its own green palette ── */
.app-demo {
  --accent: #008060; --accent-hover: #006e52;
  --abg: #f6f6f7; --asurface: #fff; --aborder: #e1e3e5;
  --atext: #202223; --asub: #6d7175; --arad: 10px;
  background: var(--abg); color: var(--atext); font-size: 14px; line-height: 1.5;
}
.app-demo a { color: var(--accent); text-decoration: none; cursor: pointer; }

/* topnav */
.app-demo .topnav { display: flex; align-items: center; gap: 4px; padding: 0 12px; background: var(--asurface); border-bottom: 1px solid var(--aborder); overflow-x: auto; }
.app-demo .topnav .brand { font-weight: 700; color: var(--atext); padding: 13px 10px 13px 4px; white-space: nowrap; }
.app-demo .topnav .brand b { color: var(--accent); }
.app-demo .topnav .nav-link { color: var(--asub); padding: 13px 10px; border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.app-demo .topnav .nav-link.active { color: var(--atext); border-bottom-color: var(--accent); }
.app-demo .topnav .spacer { flex: 1; }
.app-demo .topnav .ghost-btn { border: 1px solid #c9ccd1; border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--atext); white-space: nowrap; }
.app-demo .hint { margin: 0 8px; font-weight: 700; color: var(--accent); animation: bob 1.4s ease-in-out infinite; white-space: nowrap; }
.app-demo .hint.gone { opacity: 0; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.app-demo .app-page { padding: 16px; min-height: 440px; }

/* buttons */
.app-demo .btn { display: inline-block; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.app-demo .btn:hover { background: var(--accent-hover); }
.app-demo .btn.secondary { background: var(--asurface); color: var(--atext); border: 1px solid #8c9196; }
.app-demo .btn.small { padding: 6px 12px; font-size: 13px; }
.app-demo .btn:disabled { opacity: .5; cursor: default; }

/* filterbar */
.app-demo .filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; justify-content: center; }
.app-demo .filterbar a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--asurface); border: 1px solid var(--aborder); color: var(--asub); }
.app-demo .filterbar a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* bulk bar + list */
.app-demo .bulk-bar { display: flex; align-items: center; gap: 12px; padding: 6px 2px 10px; max-width: 760px; margin: 0 auto; }
.app-demo .bulk-all-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--atext); }
.app-demo .bulk-bar .btn.small { background: #7fc0aa; }
.app-demo .ticket-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.app-demo .ticket-row { display: flex; align-items: center; gap: 12px; background: var(--asurface); border: 1px solid var(--aborder); border-radius: var(--arad); padding: 12px 14px; cursor: pointer; transition: border-color .12s; }
.app-demo .ticket-row:hover { border-color: var(--accent); }
.app-demo .ticket-item { display: block; flex: 1; min-width: 0; color: var(--atext); }
.app-demo .ticket-check { width: 18px; height: 18px; flex-shrink: 0; }
.app-demo .line1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.app-demo .subject { font-weight: 600; }
.app-demo .meta { color: var(--asub); font-size: 13px; margin-top: 2px; }
.app-demo .blur { filter: blur(4px); }

/* badges */
.app-demo .badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.app-demo .badge.pending { background: #fff1e3; color: #8a5100; }
.app-demo .badge.sent { background: #effaf5; color: #054f31; }
.app-demo .badge.closed { background: #f1f2f3; color: var(--asub); }

/* ── ticket detail ── */
.app-demo .backlink { display: inline-block; margin-bottom: 12px; font-weight: 600; }
.app-demo .ticket-head-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-demo .ticket-head-bar h3 { margin: 0; font-size: 17px; }
.app-demo .ticket-layout { display: flex; gap: 16px; align-items: flex-start; }
.app-demo .ticket-main { flex: 1 1 auto; min-width: 0; }
.app-demo .ticket-sidebar { flex: 0 0 230px; width: 230px; }
.app-demo .card { background: var(--asurface); border: 1px solid var(--aborder); border-radius: var(--arad); padding: 14px 16px; margin-bottom: 12px; }
.app-demo .cust-head { display: flex; align-items: center; gap: 10px; }
.app-demo .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.app-demo .cust-id strong { display: block; }
.app-demo .cust-id span { font-size: 13px; color: var(--asub); }
.app-demo .side-h { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--asub); font-weight: 700; margin: 0 0 8px; }
.app-demo .order-chip2 { display: inline-flex; gap: 6px; background: #effaf5; color: #054f31; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }

/* chat (Facebook-style bubbles, exactly like the app) */
.app-demo .chat { display: flex; flex-direction: column; gap: 10px; }
.app-demo .chat .msg { display: flex; flex-direction: column; max-width: 80%; }
.app-demo .chat .msg.in { align-self: flex-start; align-items: flex-start; }
.app-demo .chat .msg.out { align-self: flex-end; align-items: flex-end; }
.app-demo .chat .bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.app-demo .chat .msg.in .bubble { background: #eceef1; color: var(--atext); border-bottom-left-radius: 5px; }
.app-demo .chat .msg.out .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.app-demo .chat .meta { font-size: 12px; color: var(--asub); margin: 3px 8px 0; }
.app-demo .chat .receipt { color: var(--accent); font-weight: 600; }

/* composer */
.app-demo .composer h4 { margin: 0 0 6px; font-size: 13px; color: var(--accent); }
.app-demo .editor { background: var(--asurface); border: 1px solid #8c9196; border-radius: 8px; padding: 10px 12px; min-height: 2.6em; }
.app-demo .editor.empty { color: var(--asub); font-style: italic; }
.app-demo .actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.app-demo .replied { color: #054f31; font-weight: 700; }
.app-demo .fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Bands / sections */
.band { padding: 4.5rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.band.alt { background: var(--surface); max-width: none; }
.band.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.band h2 { max-width: 760px; }
.band.alt h2, .band.alt > .lead { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 680px; }
.center.lead { margin-left: auto; margin-right: auto; }

.steps { padding: 4.5rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.step-grid, .out-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.out-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
.step, .out { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.band.alt .out { background: #fff; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: .8rem; }
.out p, .step p { color: var(--muted); margin: 0; }

/* Comparison */
.table-wrap { overflow-x: auto; margin-top: 2rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: .9rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 600; }
.compare thead th { font-size: .95rem; color: var(--muted); }
.compare th.us, .compare td.us { background: #effaf5; color: var(--accent-dark); font-weight: 800; }
.compare tbody tr:last-child td { border-bottom: none; font-weight: 700; }

/* Quote */
.quote { max-width: 760px; margin: 0 auto; padding: 4.5rem 1.25rem; text-align: center; }
.quote blockquote { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; margin: 0 0 1.6rem; letter-spacing: -0.01em; }
.byline { display: flex; gap: .8rem; align-items: center; justify-content: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.2rem; }
.byline strong { display: block; }
.byline span { color: var(--muted); font-size: .9rem; }

/* Pricing */
.bill-toggle { display: flex; gap: .3rem; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .3rem; width: fit-content; margin: 1.6rem auto 2rem; }
.bt { border: none; background: transparent; font-weight: 700; padding: .55rem 1.1rem; border-radius: 9px; cursor: pointer; color: var(--muted); }
.bt.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px -2px rgba(0,0,0,.15); }
.save { font-size: .72rem; color: var(--accent); }
.price-card { max-width: 420px; margin: 0 auto; background: #fff; border: 2px solid var(--accent); border-radius: 18px; padding: 2rem; box-shadow: 0 30px 60px -34px rgba(0,128,96,.4); }
.price-head { text-align: center; }
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); font-weight: 600; }
.price-sub { text-align: center; color: var(--muted); margin-top: .2rem; }
.price-feats { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .6rem; }
.price-feats li { padding-left: .2rem; }
.cta-note.center { margin-top: .7rem; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; padding: 4.5rem 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

/* Final CTA */
.final { text-align: center; padding: 5rem 1.25rem; background: var(--ink); color: #fff; }
.final h2 { color: #fff; }
.final p { color: #c9c9d2; margin-bottom: 1.6rem; }

/* Footer */
.foot { text-align: center; padding: 3rem 1.25rem; }
.foot-line { font-size: 1.15rem; font-weight: 600; max-width: 520px; margin: 0 auto 1.2rem; }
.foot .brand { font-size: 1.4rem; }
.foot-links { display: flex; gap: 1.3rem; justify-content: center; margin: 1rem 0; font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.foot-fine { color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.foot-fine a { color: var(--muted); text-decoration: underline; font-weight: 600; }
.foot-fine a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .step-grid, .out-grid { grid-template-columns: 1fr; }
  /* Demo (real-app replica): stack the ticket page so the chat isn't squeezed */
  .app-demo .ticket-layout { flex-direction: column; }
  .app-demo .ticket-sidebar { flex: 0 0 auto; width: 100%; }
  .app-demo .app-page { padding: 12px; }
  .app-demo .chat .msg { max-width: 92%; }
  .app-demo .actions-row { gap: 6px; }
  .app-demo .actions-row .btn { font-size: 12px; padding: 6px 10px; }
  .app-demo .ticket-head-bar h3 { font-size: 15px; }
  /* Let flex children shrink so cards never run past the screen edge */
  .app-demo .ticket-main, .app-demo .card { min-width: 0; max-width: 100%; }
  .app-demo .order-chip2 { white-space: normal; }
}

/* Knowledge spotlight + features strip */
.know { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.know-copy .eyebrow { margin-bottom: .6rem; }
.know-lead { font-weight: 600; margin: 1.3rem 0 .9rem; }
.know-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.know-list li { display: flex; gap: .75rem; align-items: flex-start; }
.kl-ic { font-size: 1.25rem; line-height: 1.3; flex-shrink: 0; }
.kl-txt { display: flex; flex-direction: column; }
.kl-txt strong { font-weight: 700; }
.kl-txt { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.kl-txt strong { color: var(--ink); font-size: 1rem; }
.know-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(24,24,40,.3); overflow: hidden; }
.kc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--surface); }
.kc-ready { font-size: 12px; font-weight: 600; color: var(--accent); background: #effaf5; padding: 2px 8px; border-radius: 999px; }
.kc-src { display: flex; gap: 8px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kc-src .ok { color: var(--accent); font-weight: 800; }
.kc-qa { padding: 14px 16px; background: #f7faf9; }
.kc-q { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.kc-a { font-size: 14px; color: var(--ink); line-height: 1.5; }
.kc-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }

.feat-strip { max-width: var(--maxw); margin: 2rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feat-ic { font-size: 1.7rem; margin-bottom: .5rem; }
.feat h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feat p { color: var(--muted); margin: 0; font-size: .95rem; }

@media (max-width: 760px) {
  .know { grid-template-columns: 1fr; gap: 1.6rem; }
  .feat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) { .feat-strip { grid-template-columns: 1fr; } }

/* About / founder — founder card left, story right */
.about { max-width: 940px; margin: 0 auto; padding: 4.5rem 1.25rem;
  display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.about-who { text-align: center; position: sticky; top: 1.5rem; }
.about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 10px 28px -10px rgba(0,0,0,.3); }
.about-name { font-weight: 800; font-size: 1.2rem; margin: .9rem 0 0; }
.about-title { color: var(--muted); margin: .15rem 0 .35rem; }
.about-handle { color: var(--accent); font-weight: 600; }
.about-main h2 { margin: 0 0 1.1rem; }
.about-body p { margin: 0 0 1rem; line-height: 1.75; }
.about-body em { background: none; font-style: italic; color: var(--muted); }
.about .btn.big { margin-top: 1.2rem; }
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-who { position: static; }
  .about-main h2 { text-align: center; }
}
