/* Shared theme for Dossier AI website pages. */

:root {
  --bg: #060a07;
  --bg-2: #0a0f0b;
  --ink: #f3efe1;
  --ink-soft: rgba(243, 239, 225, 0.72);
  --ink-faint: rgba(243, 239, 225, 0.45);
  --gold: #d4b87a;
  --gold-bright: #ecd9ae;
  --gold-deep: #a5834a;
  --amber: #f0950f;
  --teal: #5ab8a8;
  --line-soft: rgba(212, 184, 122, 0.14);
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --serif: "Instrument Serif", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pages-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
header.site, main, footer.site { position: relative; z-index: 1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
main.wrap { max-width: 860px; }
main.wrap.wide { max-width: 1080px; }

::selection { background: rgba(212, 184, 122, 0.3); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0.5rem 0 1.1rem; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); margin: 0 0 1rem; }
h3 { font-size: 1.06rem; margin: 0 0 0.45rem; }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-bright); }
p { color: var(--ink-soft); margin-bottom: 1rem; }
strong, b { color: var(--ink); font-weight: 600; }
a { color: var(--gold-bright); }
a:hover { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.updated { font-size: 0.8rem; color: var(--ink-faint); margin-top: -0.4rem; margin-bottom: 2rem; }

/* readability veil over the constellation */
section, .page-head { position: relative; }
section::before, .page-head::before {
  content: ""; position: absolute; inset: -8% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 72% 78% at 50% 42%, rgba(5, 8, 6, 0.88), rgba(5, 8, 6, 0.45) 62%, transparent 85%);
}

.page-head { padding: clamp(4.5rem, 9vh, 7rem) 0 2.5rem; }
.page-head .lede { max-width: 40em; font-size: 1.05rem; }
.live-content { padding-top: clamp(4.5rem, 9vh, 7rem); }
.live-content > h1:first-child { margin-top: 0; }
section { padding: 1.6rem 0; }
section + section { border-top: 1px solid transparent; }
hr.hairline { border: 0; height: 1px; margin: 2.2rem 0; background: linear-gradient(90deg, transparent, var(--line-soft), transparent); }

/* ---------- nav ---------- */

header.site { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(6, 10, 7, 0.72); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0; }
.brand {
  font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand-mark { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 14px rgba(240, 149, 15, 0.18); }
.brand .dot { color: var(--gold); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-size: 0.84rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--gold-bright); }
.nav-cta {
  color: var(--ink) !important; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.45em 1.1em; transition: border-color 0.2s ease, background 0.2s ease !important;
}
.nav-cta:hover { border-color: var(--gold); background: rgba(212, 184, 122, 0.08); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-size: 0.92rem; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 0.85em 1.7em; cursor: pointer; border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep)); color: #131f18; box-shadow: 0 6px 30px rgba(212, 184, 122, 0.22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 38px rgba(212, 184, 122, 0.32); color: #131f18; }
.btn-ghost { border: 1px solid var(--line-soft); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 1rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1.2rem; }
.trust-row span { font-size: 0.78rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- prose / legal ---------- */

.prose h2 { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.prose h2:first-of-type { border-top: 0; margin-top: 1.2rem; padding-top: 0; }
.prose h2 .num { color: var(--gold); font-family: var(--serif); font-style: italic; font-weight: 400; margin-right: 0.5rem; }
.prose h3 { margin-top: 1.6rem; color: var(--ink); }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.3rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--gold); }
.prose a { text-decoration: none; border-bottom: 1px solid rgba(212, 184, 122, 0.35); }
.prose a:hover { border-bottom-color: var(--gold); }
.callout {
  border: 1px solid var(--line-soft); border-left: 2px solid var(--gold); border-radius: 12px;
  background: rgba(255, 255, 255, 0.025); padding: 1rem 1.2rem; margin: 1.2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr !important; } }

.card {
  border: 1px solid var(--line-soft); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 1.4rem 1.3rem;
}
.card p:last-child { margin-bottom: 0; }
.card .k { display: block; font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.card .tag { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.55rem; }
.card .scenario { font-family: var(--serif); font-style: italic; color: var(--gold-bright); font-size: 0.95rem; margin-top: 0.7rem; }
.role-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.role-link:hover, .role-link:focus-visible {
  color: inherit;
  border-color: rgba(212, 184, 122, 0.38);
  background: linear-gradient(160deg, rgba(212, 184, 122, 0.08), rgba(255, 255, 255, 0.012));
  transform: translateY(-2px);
}
.role-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 16px; margin: 1.4rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(212, 184, 122, 0.05); }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

/* ---------- pricing ---------- */

.billing-toggle { display: inline-flex; border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px; gap: 4px; margin: 0.4rem 0 1.6rem; background: rgba(255, 255, 255, 0.02); }
.billing-toggle button {
  font-family: var(--body); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 0; border-radius: 999px; padding: 0.55em 1.2em; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #131f18; }
.billing-toggle .save { color: var(--teal); font-weight: 600; margin-left: 0.4em; }
.billing-toggle button[aria-pressed="true"] .save { color: #131f18; }

.plan { position: relative; display: flex; flex-direction: column; }
.plan .price { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--ink); margin: 0.3rem 0 0.1rem; }
.plan .price small { font-size: 0.85rem; font-weight: 400; color: var(--ink-faint); }
.plan .ribbon {
  position: absolute; top: -11px; right: 16px; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #131f18;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-radius: 999px; padding: 0.35em 0.9em;
}
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; flex: 1; }
.plan li { color: var(--ink-soft); font-size: 0.88rem; padding-left: 1.4rem; position: relative; margin-bottom: 0.55rem; }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.plan .note { font-size: 0.78rem; color: var(--ink-faint); }
body[data-billing="monthly"] .yearly-price, body[data-billing="yearly"] .monthly-price { display: none; }

/* ---------- FAQ ---------- */

details.faq { border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255, 255, 255, 0.02); margin-bottom: 0.7rem; }
details.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem;
  font-family: var(--display); font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; font-weight: 400; transition: transform 0.25s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 1.2rem 1.1rem; }
details.faq .faq-a p { margin-bottom: 0.5rem; font-size: 0.9rem; }

/* ---------- confirmation (alpha-thanks) ---------- */

.confirm-wrap { min-height: 62vh; display: grid; place-items: center; padding: 4rem 0 3rem; }
.confirm-card { max-width: 560px; text-align: center; padding: 3rem 2.4rem; }
.confirm-card .seal { width: 74px; height: 74px; margin: 0 auto 1.4rem; display: block; }
.confirm-card h1 { margin-top: 0.8rem; }
.confirm-card .quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-bright); margin: 1.4rem 0; }
.confirm-card .micro { font-size: 0.8rem; color: var(--ink-faint); }
.back-link { display: inline-block; margin-top: 1.8rem; font-size: 0.85rem; text-decoration: none; }

/* ---------- graph view ---------- */

.graph-shell { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: stretch; margin: 1.4rem 0 2rem; }
@media (max-width: 980px) { .graph-shell { grid-template-columns: 1fr; } }
.graph-canvas-box {
  position: relative; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse 90% 90% at 50% 40%, rgba(10, 15, 11, 0.6), rgba(6, 10, 7, 0.9));
  min-height: 480px;
}
.graph-canvas-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.graph-hint { position: absolute; left: 14px; bottom: 12px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); pointer-events: none; }
.graph-detail { display: flex; flex-direction: column; }
.graph-detail .type { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.graph-detail h3 { font-family: var(--display); font-size: 1.3rem; margin: 0.35rem 0 0.6rem; }
.graph-detail .conn-summary { font-size: 0.78rem; color: var(--gold-bright); margin: 0.9rem 0 0.4rem; }
.graph-detail ul { list-style: none; padding: 0; margin: 0.3rem 0 0; }
.graph-detail li { font-size: 0.84rem; color: var(--ink-soft); padding: 0.5rem 0; border-top: 1px solid var(--line-soft); }
.graph-detail li b { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* ---------- typical users ---------- */

.cluster-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin: 1.8rem 0 0.8rem; }
.notecard {
  border: 1px solid var(--line-soft); border-radius: 16px; padding: 1.4rem 1.3rem;
  background: linear-gradient(160deg, rgba(212, 184, 122, 0.07), rgba(255, 255, 255, 0.01));
}
.notecard .stamp { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.7rem; }
.notecard .brief { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.55; }
.kept-list { margin-top: 1rem; display: grid; gap: 0.55rem; }
.kept-list div { font-size: 0.86rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 0.55rem; }
.kept-list b { color: var(--gold-bright); font-weight: 500; margin-right: 0.4rem; }

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--line-soft); margin-top: 3.5rem; padding: 1.8rem 0 2.2rem; }
footer .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-faint); }
.foot-mark { width: 22px; height: 22px; border-radius: 6px; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
