/* ============================================================
   EnQuote — Inner page system
   ============================================================ */

/* ---- page hero ---- */
.phero { position: relative; padding: clamp(2.4rem, 5vw, 4.5rem) 0 clamp(2.4rem, 5vw, 4rem); overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 80% 0%, var(--accent-soft), transparent 70%),
              radial-gradient(45% 50% at 0% 20%, var(--brand-soft), transparent 70%);
  opacity: 0.7;
}
.phero .wrap { position: relative; z-index: 1; }
.phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.phero-grid.solo { grid-template-columns: 1fr; max-width: 760px; }
.phero-eyebrow { margin-bottom: 1rem; }
.phero-title { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.phero-sub { color: var(--ink-soft); font-size: var(--step-1); margin-top: 1.1rem; max-width: 46ch; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.phero-visual { filter: drop-shadow(0 26px 54px oklch(0.3 0.02 75 / 0.16)); }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }

/* ---- feature rows (alternating) ---- */
.frow { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.frow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.frow.flip .frow-text { order: 2; }
.frow-h { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.03em; margin-top: 0.7rem; }
.frow-body { color: var(--ink-soft); font-size: 1.06rem; margin-top: 0.9rem; }
.frow-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.frow-points li { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 500; }
.frow-points .pp-check { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 880px) {
  .frow-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .frow.flip .frow-text { order: 0; }
}

/* alternating section bg */
.band-soft { background: var(--paper-2); border-block: 1px solid var(--line); }

/* ---- feature grid ---- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fgrid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .fgrid, .fgrid.two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fgrid, .fgrid.two { grid-template-columns: 1fr; } }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; }
.step { position: relative; text-align: center; }
.step-n { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-on); display: grid; place-items: center; font-weight: 800; font-family: var(--font-mono); margin: 0 auto 0.9rem; }
.step h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { color: var(--ink-soft); margin-top: 0.4rem; font-size: 0.96rem; }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---- stat band ---- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.statband .st b { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.04em; color: var(--brand-deep); }
.statband .st span { color: var(--ink-faint); font-size: 0.92rem; }
.statband .st b em { color: var(--accent-deep); font-style: normal; }
@media (max-width: 700px) { .statband { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; } }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 1.3rem; font-size: 1.05rem; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: var(--font-display); }
.faq-q .fq-ic { transition: transform 0.25s var(--ease); color: var(--ink-faint); flex-shrink: 0; }
.faq-item.open .fq-ic { transform: rotate(45deg); color: var(--accent-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---- page CTA band ---- */
.pcta { padding: clamp(3rem, 6vw, 5rem) 0; }
.pcta-card { text-align: center; background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: var(--brand-on); border-radius: var(--radius-xl); padding: clamp(2.4rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.pcta-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 82% -10%, oklch(0.78 0.142 73 / 0.32), transparent 60%); pointer-events: none; }
.pcta-h { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; color: var(--brand-on); position: relative; }
.pcta-sub { color: oklch(0.88 0.004 80); margin: 0.8rem auto 0; max-width: 48ch; position: relative; font-size: var(--step-1); }
.pcta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; position: relative; }
.pcta-primary { background: var(--accent); color: oklch(0.26 0.01 75); }
.pcta-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px oklch(0 0 0 / 0.35); }
.pcta-wa { background: oklch(1 0 0 / 0.12); color: var(--brand-on); border: 1px solid oklch(1 0 0 / 0.25); }
.pcta-wa:hover { background: oklch(1 0 0 / 0.2); transform: translateY(-2px); }

/* ---- prose / breadcrumb ---- */
.crumb { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.crumb a:hover { color: var(--ink); }

/* section heading block (centered option) */
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .sec-lead { margin-inline: auto; }

/* ---- framed site image ---- */
/* ---- docs / tutorials viewer ---- */
.docs-wrap { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.docs-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.3rem; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 0.4rem; }
.docs-cat { display: flex; flex-direction: column; gap: 2px; }
.docs-cat-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0.7rem 0.4rem; font-weight: 500; }
.docs-link { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 9px; color: var(--ink-soft); font-size: 0.93rem; font-weight: 500; line-height: 1.3; transition: background 0.15s, color 0.15s; cursor: pointer; border: none; background: none; text-align: left; font-family: var(--font-display); width: 100%; }
.docs-link:hover { background: var(--paper-2); color: var(--ink); }
.docs-link.on { background: var(--brand); color: var(--brand-on); font-weight: 600; }
.docs-link .dl-ic { flex-shrink: 0; opacity: 0.7; }
.docs-link.on .dl-ic { opacity: 1; }

.docs-content { min-width: 0; }
.doc-cat-tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
.doc-title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.6rem 0 0.5rem; }
.doc-read { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.8rem; }
.doc-video { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #000; display: block; box-shadow: 0 18px 44px oklch(0.3 0.02 75 / 0.12); aspect-ratio: 16/9; }
.doc-steps { display: flex; flex-direction: column; gap: 1.8rem; }
.doc-step { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.doc-step-n { width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: var(--brand-on); display: grid; place-items: center; font-weight: 800; font-family: var(--font-mono); }
.doc-step-body p { font-size: 1.05rem; color: var(--ink); }
.doc-step-body img { margin-top: 0.9rem; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 28px oklch(0.3 0.02 75 / 0.1); }
.doc-pending { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); text-align: center; }
.doc-pending .dp-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin: 0 auto 1rem; }
.doc-pending p { color: var(--ink-soft); max-width: 46ch; margin: 0.4rem auto 1.2rem; }
.doc-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc-nav a { display: flex; flex-direction: column; gap: 2px; padding: 0.8rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color 0.15s, background 0.15s; max-width: 48%; }
.doc-nav a:hover { border-color: var(--ink-faint); background: var(--surface); }
.doc-nav a.next { text-align: right; margin-left: auto; }
.doc-nav .dn-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.doc-nav .dn-title { font-weight: 600; font-size: 0.96rem; }
@media (max-width: 820px) {
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-side { position: static; max-height: none; overflow: visible; flex-direction: column; }
}

/* ---- legal pages ---- */
.legal { max-width: 760px; margin-inline: auto; }
.legal .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; margin: 2.2rem 0 0.7rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.65; }
.legal ul { color: var(--ink-soft); margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; line-height: 1.6; }
.legal li { padding-left: 0.2rem; }
.legal a { color: var(--accent-deep); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 650; }

/* ---- knowledge base ---- */
.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 820px) { .kb-grid { grid-template-columns: 1fr; } }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.kb-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.kb-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex-shrink: 0; }
.kb-head h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.kb-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.kb-list { display: flex; flex-direction: column; }
.kb-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.72rem 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.97rem; transition: color 0.15s; }
.kb-link:first-child { border-top: none; }
.kb-link .kb-doc { color: var(--ink-faint); flex-shrink: 0; }
.kb-link .kb-go { margin-left: auto; color: var(--ink-faint); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.15s; flex-shrink: 0; }
.kb-link:hover { color: var(--accent-deep); }
.kb-link:hover .kb-go { opacity: 1; transform: none; color: var(--accent-deep); }
.kb-link:hover .kb-doc { color: var(--accent-deep); }

.hero-shot {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 2px 6px oklch(0.3 0.01 75 / 0.06), 0 26px 54px -20px oklch(0.28 0.01 75 / 0.32);
  background: var(--paper-2);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* ---- framed site image ---- */
.site-img {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; padding: clamp(1rem, 2.5vw, 2rem); overflow: hidden;
  box-shadow: 0 18px 44px oklch(0.3 0.02 75 / 0.1);
  background-image: radial-gradient(120% 100% at 50% 0%, var(--paper-2), var(--surface) 70%);
}
.site-img img { display: block; border-radius: 8px; }

/* ---- contact / demo form ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); transition: border-color 0.18s, box-shadow 0.18s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.form-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-line { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-line .cl-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex-shrink: 0; }
.contact-line b { display: block; font-size: 0.98rem; }
.contact-line a, .contact-line span { color: var(--ink-soft); font-size: 0.95rem; }
.contact-line a:hover { color: var(--brand-deep); }
.form-success { background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 0.8rem; align-items: center; color: var(--brand-deep); font-weight: 600; }

/* ---- insights cards ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 880px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease); display: flex; flex-direction: column; }
.post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px oklch(0.3 0.02 75 / 0.1); }
.post-thumb { aspect-ratio: 16/9; background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 12px, var(--surface) 12px, var(--surface) 24px); position: relative; overflow: hidden; }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cat { position: absolute; top: 12px; left: 12px; z-index: 1; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--surface); border: 1px solid var(--line); color: var(--accent-deep); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.post-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-body h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.post-body p { color: var(--ink-soft); font-size: 0.95rem; }
.post-meta { margin-top: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); }
