/* ========================================================================
   documentas.com - per-site overrides (the umbrella page.css)

   Load order: brand.css (documentas-brand-css) -> blocks.css (documentas-blocks-css) -> this file.
   brand.css and blocks.css are verbatim copies of the umbrella system and are never edited here.

   Everything below is a one-off this site needs and the shared blocks do not have: the
   dropdown nav, phone frames, the signer journey strip, trust stats, long-form legal text,
   and the AI prompt block. Tokens only: no new colours,
   fonts or radii. Every class here is emitted by tools/documentas-site/gen.py.

   House rule: plain ASCII hyphens in comments.
   ======================================================================== */

:root { --brand-accent: var(--blue); --brand-accent-dark: var(--blue-2); }

/* ---- nav: dropdowns as native details, shadow once scrolled ---- */
nav.nav-scrolled { box-shadow: 0 1px 20px rgba(16,25,66,0.08); }
.nav-links { gap: 2rem; }
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; font-size: 0.85rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: color 0.15s; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.nav-drop[open] > summary { color: var(--ink); }
.nav-drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop > summary:hover { color: var(--ink); }
.drop-panel { position: absolute; top: calc(100% + 18px); left: -1.25rem; z-index: 210; background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(16,25,66,0.12); padding: 1.25rem 1.5rem; min-width: 260px; display: grid; gap: 0.5rem 2rem; }
.drop-panel-2 { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.drop-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.drop-col a { display: block; padding: 6px 0; font-size: 0.85rem; color: var(--ink-2); }
.drop-col a:hover { color: var(--blue); }
.drop-title { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.drop-more { grid-column: 1 / -1; border-top: 1px solid var(--paper-3); padding-top: 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--blue); }
.drawer-title { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.75rem; }
.nav-drawer { max-height: calc(100vh - 60px); overflow-y: auto; }
.nav-drawer ul { gap: 0.9rem; }

/* ---- cards that link, section notes ---- */
.card-link { display: flex; flex-direction: column; }
.card-link p { flex-grow: 1; }
.card-more { display: inline-block; margin-top: 1rem; font-size: 0.82rem; font-weight: 500; color: var(--s-accent); }
.card-more::after { content: ' \2192'; }
.section-note { margin-top: 2rem; font-size: 0.85rem; color: var(--s-muted); text-align: center; }
.section-note a, .split-body p a, .prose a, .feature-card p a { color: var(--s-accent); text-decoration: underline; text-underline-offset: 3px; }
.track-steps { list-style: none; counter-reset: track; display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.track-steps li { counter-increment: track; display: flex; gap: 0.9rem; font-size: 0.85rem; color: var(--ink-2); line-height: 1.6; }
.track-steps li::before { content: counter(track, decimal-leading-zero); font-family: var(--serif); font-weight: 900; color: var(--blue); flex: 0 0 1.6rem; }
.group-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.9rem; }
.group-list li { font-size: 0.85rem; color: var(--ink-2); line-height: 1.7; }
.group-list strong { color: var(--heading); font-weight: 600; display: block; }
.split-text { grid-template-columns: minmax(0, var(--prose)); }
.steps-shot { margin-top: 3.5rem; }
.table-wrap { overflow-x: auto; }
.callout { max-width: var(--prose); margin: 0 auto; border: 1px solid var(--s-border); border-left: 3px solid var(--blue); border-radius: var(--r-lg); background: var(--s-card); padding: 2rem 2.25rem; }
.callout h2 { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; color: var(--s-heading); margin-bottom: 0.75rem; }
.callout p { font-size: 0.95rem; color: var(--s-text); line-height: 1.8; }

/* ---- phone screenshots ---- */
.phone-row { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; }
.phone { border: 6px solid var(--night); border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: var(--s-shadow-lg); flex: 0 1 220px; }
.phone img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.hero-phones .phone-row { gap: 0; }
.hero-phones .phone { flex-basis: 38%; max-width: 250px; }
.hero-phones .phone:nth-child(2) { transform: translateY(-28px); margin: 0 -22px; z-index: 1; }
.hero-phones .phone:only-child { flex: 0 0 auto; width: 250px; max-width: 70%; transform: none; margin: 0; }
.surface-dark .phone { border-color: rgba(255,255,255,0.12); }
.hero-shot { padding-bottom: 4rem; }
/* A .shot in the flex hero column has no width of its own and would collapse to nothing. */
.hero-shot .shot { width: 100%; max-width: 560px; }
.shot-portrait { max-width: 380px; margin: 0 auto; }
.hero-shot .shot-portrait { max-width: 380px; }

/* ---- signer journey ---- */
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.journey-step .phone { margin-bottom: 1.1rem; border-width: 5px; border-radius: 22px; }
.journey-step h3 { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--s-heading); margin-bottom: 0.4rem; }
.journey-step p { font-size: 0.82rem; color: var(--s-text); line-height: 1.7; }

/* ---- trust band ---- */
.pga-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--s-heading); margin-bottom: 1.25rem; }
.pga-icon { width: 28px; height: auto; flex-shrink: 0; }
.trust-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.iso-seal { display: block; width: 120px; border-radius: 50%; background: var(--paper); padding: 6px; }
.iso-seal img { border: 0; border-radius: 50%; }
.trust-stats { display: grid; gap: 1px; width: 100%; background: var(--s-border); border: 1px solid var(--s-border); border-radius: var(--r-lg); overflow: hidden; }
.trust-stat { background: var(--s-bg); padding: 1.1rem 1.4rem; }
.trust-stat-num { font-family: var(--serif); font-weight: 900; font-size: 1.75rem; color: var(--s-heading); line-height: 1; }
.trust-stat-label { font-size: 0.78rem; color: var(--s-muted); margin-top: 4px; }

/* ---- customer stories ---- */
.quote-grid.cols-1 { grid-template-columns: minmax(0, 680px); justify-content: center; }
.story-logo { width: 64px; height: 64px; object-fit: contain; background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--r-lg); }
.story-context { font-size: 0.82rem; color: var(--s-muted); line-height: 1.7; }

/* ---- AI prompt ---- */
.prompt { max-width: var(--prose); background: var(--night); color: rgba(255,255,255,0.85); border-radius: var(--r-lg); padding: 1.5rem 1.75rem; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; }
.prompt + .section-note { text-align: left; max-width: var(--prose); }

/* ---- long-form text: legal pages, about, security, the e-signature law guide ---- */
.prose { max-width: var(--prose); margin: 0 auto; }
.prose h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--s-heading); margin: 3rem 0 1rem; line-height: 1.15; }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--s-heading); margin: 1.75rem 0 0.6rem; }
.prose p, .prose li { font-size: 0.95rem; color: var(--s-text); line-height: 1.8; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose .table-wrap { margin: 1.5rem 0; }
.prose-note { border-left: 3px solid var(--blue); background: var(--s-card); padding: 1rem 1.25rem; border-radius: var(--r); font-size: 0.88rem !important; }
.prose-toc { border: 1px solid var(--s-border); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.prose-toc ol { margin: 0.5rem 0 0 1.25rem; gap: 0.3rem; }
.prose-toc a { color: var(--s-accent); font-size: 0.88rem; }

/* ---- FAQ: some answers run past the umbrella 300px cap ---- */
.faq-item.open .faq-a { max-height: 640px; }
.faq-a a { color: var(--blue); text-decoration: underline; }

/* ---- footer: legal links wrap on small screens ---- */
.footer-bottom-links { flex-wrap: wrap; }

/* ---- responsive, at the umbrella breakpoints only ---- */
@media (max-width: 900px) {
  .nav-right { display: none; }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .trust-side { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .journey { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .callout { padding: 1.5rem; }
  /* The phone screenshots stay legible at 375px, unlike detailed SVG, so they stay visible. */
  .hero-visual.hero-phones { display: flex; padding-bottom: 2.5rem; }
  .spec-table { font-size: 0.8rem; }
  .spec-table th, .spec-table td { padding: 0.75rem 0.6rem; }
}
