/* ---------------------------------------------------------------------------
   EasyHelp - single-page site.
   Design notes: restrained editorial feel. Off-white warm base, deep forest
   accent, slate text. No gradients, no glows, no AI-trope purples.
--------------------------------------------------------------------------- */

:root {
  --bg:            #faf9f5;   /* warm off-white */
  --bg-alt:        #f3f1ea;   /* slightly deeper, for alt sections */
  --card:          #ffffff;
  --ink:           #0f1a17;   /* near-black with a green undertone */
  --ink-2:         #2b3734;
  --muted:         #5c6a66;
  --line:          #e4e2d7;
  --line-2:        #d8d5c6;
  --accent:        #1a6c52;   /* deep forest */
  --accent-ink:    #0e3a2d;
  --accent-soft:   #e8f1ec;
  --warn:          #c65d2a;
  --code-bg:       #0f1b19;
  --code-ink:      #e6ece8;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-1:      0 1px 2px rgba(15, 26, 23, .04), 0 1px 1px rgba(15, 26, 23, .03);
  --shadow-2:      0 4px 16px rgba(15, 26, 23, .06), 0 2px 4px rgba(15, 26, 23, .04);
  --font:          ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:    ui-serif, Georgia, "Iowan Old Style", "Apple Garamond", serif;
  --font-mono:     ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ----- reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
h1, h2, h3, h4 { letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.18; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }
code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: #edeae0;
  padding: .1em .4em;
  border-radius: 4px;
  color: var(--ink);
}
pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
ul { margin: 0 0 1em; padding: 0 0 0 1.1em; }
ol { margin: 0 0 1em; padding: 0 0 0 1.1em; }
li { margin-bottom: .4em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.1em;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-lg { font-size: 1rem; padding: .85em 1.35em; }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55em;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 7px;
}
.brand-word { }

.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links > a {
  padding: 8px 12px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 6px;
}
.nav-links > a:hover {
    color: var(--accent) !important;
    background: rgba(15, 26, 23, 0.04);
    text-decoration: none;
}
.nav-links .btn { margin-left: 6px; padding: .55em .95em; font-size: .9rem; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 4px;
  width: 36px; height: 36px; padding: 8px;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 7px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
}

/* ----- hero ----- */
.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 820px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.underlined {
  background-image: linear-gradient(to top, var(--accent-soft) 48%, transparent 48%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .15em;
}
.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cta-row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px;
}
.hero-meta {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  color: var(--muted);
  font-size: .9rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; margin-right: .35em; }
.hero-meta li { position: relative; }
.hero-meta li + li::before {
  content: ""; position: absolute; left: -16px; top: 50%;
  width: 3px; height: 3px; background: var(--line-2); border-radius: 50%;
  transform: translateY(-50%);
}

.hero-art {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.hero-art svg { filter: drop-shadow(0 18px 40px rgba(15, 26, 23, 0.08)); }

/* ----- trust strip ----- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px 18px;
  padding: 16px 24px;
  color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.trust-item { color: var(--ink-2); font-weight: 500; letter-spacing: .04em; }
.trust .dot {
  width: 3px; height: 3px; background: var(--line-2); border-radius: 50%;
}

/* ----- sections ----- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { margin-bottom: 12px; }
.section-lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ----- grids ----- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----- cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.card-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  margin-bottom: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  justify-content: space-between;
}
.card-head .card-icon { margin-bottom: 0; }
.card h3 { margin: 0 0 6px; }
.card p  { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  font-size: .88rem;
  color: var(--ink-2);
}
.card-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.card-list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 10px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.card-accent { border-color: var(--accent-soft); background: linear-gradient(180deg, #fff, #fbfdfb); }
.card-accent .card-icon { background: var(--accent); color: #fff; }
.tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0;
}

/* ----- split sections ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-rev .split-copy { order: 2; }
.split-rev .split-visual { order: 1; }
.split-copy h2 { margin-top: 8px; }
.feature-list { list-style: none; padding: 0; margin-top: 20px; }
.feature-list > li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .97rem;
}
.feature-list > li:first-child { border-top: none; padding-top: 0; }
.feature-list strong { color: var(--ink); display: block; margin-bottom: 2px; font-weight: 600; }

/* ----- code card ----- */
.code-card {
  margin: 0;
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0a1413;
}
.code-dots { display: inline-flex; gap: 6px; }
.code-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a3835;
}
.code-dots span:nth-child(1) { background: #4e3a33; }
.code-dots span:nth-child(2) { background: #4e4834; }
.code-dots span:nth-child(3) { background: #1f3a2e; }
.code-title {
  color: #7d8985; font-family: var(--font-mono); font-size: .8rem;
}
.code-card > pre {
  margin: 0;
  padding: 18px 20px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.65;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.t-tag  { color: #f5a48b; }
.t-attr { color: #c0d29b; }
.t-str  { color: #8fc6b3; }

/* ----- chat mock ----- */
.chat-mock {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.chat-name { font-weight: 600; font-size: .95rem; }
.chat-status { font-size: .78rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7bd3a3; box-shadow: 0 0 0 2px rgba(123, 211, 163, .3);
}
.chat-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #fafaf7;
}
.msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.5;
}
.msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-user code { background: rgba(255,255,255,0.15); color: #fff; }
.msg-agent {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-bottom-left-radius: 4px;
}

/* ----- flow ----- */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: flex; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.flow-step strong { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.flow-step p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.flow-num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600;
  border-radius: 6px;
}
.flow-arrow {
  width: 1px; height: 20px; background: var(--line-2);
  margin-left: 30px;
}
.flow-step-accent {
  background: var(--accent);
  border-color: var(--accent);
}
.flow-step-accent strong { color: #fff; }
.flow-step-accent p { color: rgba(255,255,255,.85); }
.flow-step-accent .flow-num { background: rgba(255,255,255,.18); color: #fff; }
.flow-step-muted .flow-num { background: #edeae0; color: var(--muted); }
.flow-step-muted strong { color: var(--ink-2); }

/* ----- spec (under-the-hood) ----- */
.spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}
.spec h3 { margin-bottom: 6px; }
.spec p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ----- migration plugin card ----- */
.spec-plugin {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.spec-plugin-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #f3f4f6;
  border: 1px solid var(--line);
}
.spec-plugin-body { flex: 1; min-width: 0; }

/* ----- steps ----- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps > li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ----- CTA ----- */
.cta {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.72); font-size: 1.05rem; margin-bottom: 24px; }
.cta .btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.cta .btn-primary { background: var(--accent); border-color: var(--accent); }
.cta .btn-primary:hover { background: #23876a; border-color: #23876a; }

/* ----- footer ----- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand p { max-width: 300px; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink); margin-bottom: 12px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  flex-wrap: wrap; gap: 10px;
}

/* ----- responsive ----- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps  { grid-template-columns: 1fr; }
  .split  { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-copy { order: 1; }
  .split-rev .split-visual { order: 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .split-visual { overflow-x: auto; }
  .code-card { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: min-content; }
  .code-card > pre { white-space: pre; font-size: .75rem; min-width: 100%; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 10px 12px; }
  .nav-links .btn { margin-left: 0; margin-top: 4px; justify-content: center; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: 16px; }
  .hero-meta li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
