/* home.css — Policygraphy homepage styles
   Reuses design tokens from style.css; only contains marketing-page components.
   --------------------------------------------------------------- */

body.home {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}

body.home .topbar { position: sticky; top: 0; z-index: 50; }

/* -------- Nav -------- */
.home-nav .topbar-inner { padding: 16px 32px; max-width: 1280px; }
.brand-link { text-decoration: none; color: inherit; }
.brand-link:hover { opacity: 0.85; }

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.home-nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color .15s ease;
}
.home-nav-links a:hover { color: var(--fg); }
.home-nav-links .nav-cta {
  color: var(--accent-fg);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
}
.home-nav-links .nav-cta:hover {
  background: oklch(from var(--accent) calc(l - 0.05) c h);
  color: var(--accent-fg);
}
.nav-lang-btn {
  min-height: 32px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-lang-btn:hover { background: var(--bg-sunken); color: var(--fg); border-color: var(--border-strong); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--fg-muted);
}
.nav-toggle:hover { background: var(--bg-sunken); color: var(--fg); }

@media (max-width: 860px) {
  .home-nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .home-nav-links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; right: 16px; left: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-md);
    gap: 4px;
    align-items: stretch;
  }
  .home-nav-links.is-open a { padding: 10px 12px; border-radius: var(--radius-sm); }
  .home-nav-links.is-open a:hover { background: var(--bg-sunken); }
  .home-nav-links.is-open .nav-cta { margin-top: 4px; text-align: center; }
}

/* -------- Section system -------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-sunken); }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 8px 0 14px;
  color: var(--fg);
}
.section-sub {
  color: var(--fg-muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 4px;
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
}

/* -------- HERO -------- */
.hero {
  background:
    radial-gradient(ellipse at top right, oklch(from var(--accent) l c h / 0.06), transparent 60%),
    var(--bg);
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.primary-cta {
  font-size: 15px !important;
  padding: 12px 24px !important;
  min-height: 48px !important;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.primary-cta:hover {
  background: oklch(from var(--accent) calc(l - 0.05) c h) !important;
}
.secondary-cta {
  font-size: 14px !important;
  padding: 12px 20px !important;
  min-height: 48px !important;
  background: transparent !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--fg) !important;
}
.secondary-cta:hover {
  background: var(--bg-sunken) !important;
  border-color: var(--fg-muted) !important;
}
.hero-foot {
  font-size: 12.5px;
  color: var(--fg-faint);
  margin: 8px 0 0;
}
.hero-foot a { color: var(--accent); text-decoration: none; }

/* Mock browser-ish preview */
.hero-visual { position: relative; }
.hero-mock {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 40px -16px oklch(20% 0.02 250 / 0.18);
  overflow: hidden;
}
.hero-mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}
.hero-mock-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.hero-mock-bar .d1 { background: #ff5f57; }
.hero-mock-bar .d2 { background: #febc2e; }
.hero-mock-bar .d3 { background: #28c840; }
.hero-mock-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.hero-mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
}
.hm-sidebar {
  background: var(--bg-sunken);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.hm-sb-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-faint);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.hm-sb-chip {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--fg-muted);
  background: transparent;
}
.hm-sb-chip.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 500;
}
.hm-sb-chip.muted { color: var(--fg-faint); font-size: 11px; padding-left: 8px; }

.hm-feed { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.hm-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--bg-elev);
}
.hm-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
  font-size: 10.5px;
}
.hm-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-sunken);
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hm-tag.accent {
  background: oklch(from var(--accent) l c h / 0.12);
  color: var(--accent);
}
.hm-time { color: var(--fg-faint); }
.hm-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 3px;
}
.hm-desc { font-size: 11.5px; color: var(--fg-muted); line-height: 1.45; }

/* trust strip */
.trust-strip {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.trust-cell {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 8px;
}
.trust-cell:last-child { border-right: none; }
.trust-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--fg);
  font-feature-settings: "tnum";
  margin-bottom: 4px;
}
.trust-cell span {
  font-size: 12.5px;
  color: var(--fg-faint);
  letter-spacing: 0.3px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; }
}
@media (max-width: 560px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .trust-cell { border-right: none; }
  .trust-cell:nth-child(odd) { border-right: 1px solid var(--border); }
}

/* -------- AUDIENCE -------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.audience-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.audience-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.audience-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--fg);
}
.audience-card .role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  font-weight: 500;
}
.audience-card .desc {
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 720px) { .audience-grid { grid-template-columns: 1fr; } }

/* -------- OUTPUT -------- */
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.output-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column;
}
.output-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--fg);
}
.output-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.feature-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
}
.feature-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* output mock */
.output-mock {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 12.5px;
  min-height: 180px;
}
.om-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.om-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.4px;
}
.om-tag.urgent { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.om-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-faint);
}
.om-h {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 8px;
  line-height: 1.4;
}
.om-list { list-style: none; padding: 0; margin: 0; font-size: 11.5px; color: var(--fg-muted); line-height: 1.7; }
.om-list .bullet { color: var(--accent); margin-right: 6px; }
.om-list .muted { color: var(--fg-faint); font-style: italic; padding-left: 14px; }
.om-body {
  font-size: 11.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 6px 0 10px;
}
.om-meta {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--fg-faint);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.om-meta .om-link { color: var(--accent); }
.om-rows {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 10px;
}
.om-row {
  display: flex; justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.om-row:last-child { border-bottom: none; }
.om-k { color: var(--fg-muted); }
.om-v {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}
.om-note {
  font-size: 11px;
  color: var(--fg-faint);
  font-style: italic;
  margin: 6px 0 0;
  line-height: 1.5;
}

@media (max-width: 900px) { .output-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* -------- METHOD -------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.method-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
}
.method-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: oklch(from var(--accent) l c h / 0.08);
  color: var(--accent);
  margin-bottom: 14px;
}
.method-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg);
}
.method-card p {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
}
.method-card strong { color: var(--fg); font-weight: 600; }
.method-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.method-disclaimer strong { color: var(--fg); }
@media (max-width: 900px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method-grid { grid-template-columns: 1fr; } }

/* -------- SAMPLES -------- */
.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.sample-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sample-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.sample-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.sample-source {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--bg-sunken);
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1px solid var(--border);
}
.sample-source.official { background: oklch(from var(--accent) l c h / 0.1); color: var(--accent); border-color: oklch(from var(--accent) l c h / 0.3); }
.sample-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.sample-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
  margin: 0 0 6px;
}
.sample-title a {
  color: inherit;
  text-decoration: none;
}
.sample-title a:hover { color: var(--accent); }
.sample-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sample-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sample-topics {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.sample-topic {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-sunken);
  color: var(--fg-muted);
  letter-spacing: 0.2px;
}
.sample-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}
.sample-link:hover { text-decoration: underline; }

.samples-foot {
  max-width: 1100px;
  margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.samples-updated {
  font-size: 12.5px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
}

/* skeleton in samples */
.sample-card.skeleton {
  border-color: var(--border);
  opacity: 0.7;
}
.sample-card.skeleton .sk {
  background: linear-gradient(90deg, var(--bg-sunken), var(--border), var(--bg-sunken));
  background-size: 200% 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: shimmer 1.4s infinite;
}
.sample-card.skeleton .sk-tag { height: 18px; width: 60px; }
.sample-card.skeleton .sk-title { height: 22px; width: 90%; margin-top: 4px; }
.sample-card.skeleton .sk-line { height: 12px; width: 100%; }
.sample-card.skeleton .sk-line.short { width: 70%; }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 900px) { .samples-grid { grid-template-columns: 1fr; max-width: 480px; } }
@media (max-width: 720px) {
  .samples-foot { flex-direction: column; gap: 12px; align-items: stretch; }
  .samples-foot .secondary-btn { text-align: center; }
}

/* -------- PILOT -------- */
.pilot-section {
  background:
    radial-gradient(ellipse at top left, oklch(from var(--accent) l c h / 0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pilot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
}
.pilot-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin: 8px 0 16px;
}
.pilot-copy .section-sub { margin-bottom: 24px; }
.pilot-bullets {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  font-size: 15px;
  color: var(--fg-muted);
}
.pilot-bullets li { padding: 5px 0; }
.pilot-bullets li::first-letter { color: var(--accent); font-weight: 700; }

.pilot-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.pilot-spec {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.ps-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.ps-row:last-child { border-bottom: none; padding-bottom: 0; }
.ps-k { color: var(--fg-faint); flex-shrink: 0; font-size: 12.5px; letter-spacing: 0.3px; }
.ps-v { color: var(--fg); font-weight: 500; text-align: right; }
.ps-v a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .pilot-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* -------- FOOTER -------- */
.site-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.fn-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg);
  margin: 0 0 14px;
  font-weight: 600;
}
.fn-col a {
  display: block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 13.5px;
  padding: 4px 0;
  transition: color .15s ease;
}
.fn-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--fg-faint);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
