/* ============================================================
   Possing Technology — homepage styles
   Clean / minimal, navy accent (#1f3a5f, matches Typst docs).
   Plain CSS, no build step, no external runtime dependencies.
   ============================================================ */

:root {
  --navy: #1f3a5f;
  --navy-deep: #142838;
  --navy-700: #2c4d76;
  --accent: #2f6fb3;
  --ink: #1a2230;
  --body: #3a4453;
  --muted: #6b7480;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --bg-tint: #eef2f7;
  --white: #ffffff;
  --radius: 12px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(20, 40, 56, .04), 0 8px 28px rgba(20, 40, 56, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--navy);
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--navy-700); text-decoration: none; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-tint); box-shadow: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--navy); display: block; }
.brand-name { letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--body); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav .btn { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-muted { background: var(--bg-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-lede { font-size: 1.18rem; color: var(--body); margin-top: 1rem; }
.section-close { font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(47, 111, 179, .08) 0%, rgba(47, 111, 179, 0) 55%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 800px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--body); max-width: 660px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 1.25rem; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Problem ---------- */
.pain-list { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 14px; }
.pain-list li {
  position: relative; padding-left: 34px; font-size: 1.1rem; color: var(--ink);
}
.pain-list li::before {
  content: "?"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-tint); color: var(--navy);
  font-weight: 700; font-size: 0.85rem; text-align: center; line-height: 22px;
}

/* ---------- Cards (value props) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(20, 40, 56, .1); }
.card-num { display: block; font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.card-tag { color: var(--navy); font-weight: 600; font-size: 0.92rem; margin: 0 0 0.9rem; }
.card p:last-child { margin-bottom: 0; color: var(--body); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--body); margin: 0; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cases:has(> .case:only-child) { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.case-kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin: 0 0 0.6rem; }
.case h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.case p:last-child { margin: 0; color: var(--body); }
.proof-bio { max-width: 720px; margin: 36px auto 0; color: var(--body); font-size: 1.05rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.proof-bio p { margin: 0; }
.bio-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 20px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.4rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* ---------- Final CTA ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dbe6f1;
}
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-final .section-lede { color: #c3d3e4; }
.cta-final .btn {
  background: #fff; color: var(--navy); border-color: #fff; margin-top: 1rem;
}
.cta-final .btn:hover { background: var(--bg-tint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aebccd; padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; font-weight: 700; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-meta { margin: 6px 0 0; font-size: 0.9rem; color: #8da0b5; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.92rem; }
.footer-links a { color: #cddaea; }
.footer-copy { color: #7e91a8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards, .steps, .cases { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { padding: 7px 12px; font-size: 0.82rem; }
  .footer-inner { align-items: flex-start; }
  .footer-links { align-items: flex-start; }
}

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