/* Shared chrome for Deep Door's inner pages (privacy, support).
   The home page keeps its own inline styles; this file mirrors its nav, pills and footer. */

:root { --glass: rgba(26, 35, 39, .55); --edge: rgba(250, 248, 244, .09); color-scheme: dark; }
body { background: #0A0F11; color: var(--stone-50); }
[id] { scroll-margin-top: 96px; }   /* clear the sticky nav on in-page jumps */

/* ---------- nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px clamp(16px, 4vw, 48px); background: rgba(10, 15, 17, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand .keyhole { color: var(--teal-200); width: 14px; height: 22px; }
.links { display: flex; gap: 30px; font-size: 14px; color: var(--stone-300); }
.links a:hover { color: var(--stone-50); }
.right { display: flex; gap: 8px; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--edge); transition: background .25s, color .25s, border-color .25s; }
.pill:hover { border-color: rgba(250, 248, 244, .3); }
.pill.solid { background: var(--stone-50); color: var(--ink-900); border-color: var(--stone-50); }
.pill.solid:hover { background: var(--teal-200); border-color: var(--teal-200); }

/* ---------- page head ---------- */
.page-head { position: relative; isolation: isolate; text-align: center; padding: clamp(72px, 10vw, 120px) 16px clamp(44px, 6vw, 72px); }
.page-head::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 520px; background: radial-gradient(ellipse 46% 70% at 50% 0%, rgba(47, 125, 118, .26), transparent 72%); pointer-events: none; }
.page-head > * { opacity: 0; transform: translateY(14px); animation: in 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.page-head > :nth-child(2) { animation-delay: .08s; }
.page-head > :nth-child(3) { animation-delay: .16s; }
.page-head > :nth-child(n+4) { animation-delay: .24s; }
@keyframes in { to { opacity: 1; transform: none; } }
.kicker { color: var(--teal-200); }
h1 { font-weight: 500; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 16px auto 18px; }
.sub { color: var(--stone-300); max-width: 580px; margin: 0 auto; }
.meta { color: var(--stone-500); margin-top: 22px; }
.head-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; }
.head-actions .mail { color: var(--stone-300); font-size: 15px; border-bottom: 1px solid rgba(250, 248, 244, .25); }
.head-actions .mail:hover { color: var(--teal-200); border-color: var(--teal-200); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.block { margin-top: clamp(64px, 9vw, 110px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-head h2 { font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.15; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(26, 35, 39, .7), rgba(26, 35, 39, .35)); border: 1px solid var(--edge); border-radius: 18px; padding: 24px; overflow: hidden; }
.card .label { color: var(--teal-200); }
.card h3 { font-weight: 500; font-size: 19px; letter-spacing: -.015em; line-height: 1.3; margin: 22px 0 8px; }
.card p { color: var(--stone-300); font-size: 15px; }
.card .act { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.cards.two .card { padding: 28px; }
.cards.two .card h3 { font-size: 22px; margin-top: 28px; }
a.card { transition: border-color .3s, transform .3s; }
a.card:hover { border-color: rgba(107, 165, 160, .45); transform: translateY(-3px); }

.note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px 24px; border-radius: 18px; background: rgba(15, 59, 56, .45); border: 1px solid rgba(107, 165, 160, .35); }
.note .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-50); color: var(--ink-900); font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.note b { font-weight: 500; color: var(--stone-50); }
.note p { color: var(--stone-200); }
.note p + p { margin-top: 6px; }

/* ---------- long-form document ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc .label { display: block; color: var(--stone-500); margin-bottom: 14px; }
.toc ol { list-style: none; border-left: 1px solid var(--edge); }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--stone-500); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--stone-200); }
.toc a.on { color: var(--teal-200); border-left-color: var(--teal-200); }

.prose { max-width: 720px; color: var(--stone-200); }
.prose section { scroll-margin-top: 96px; }
.prose section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--edge); }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-weight: 500; font-size: clamp(22px, 2.3vw, 27px); letter-spacing: -.02em; line-height: 1.2; color: var(--stone-50); margin-bottom: 16px; }
.prose h2 .n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--teal-200); flex: none; }
.prose h3 { font-weight: 500; font-size: 17px; color: var(--stone-50); margin: 22px 0 6px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }
.prose strong { font-weight: 500; color: var(--stone-50); }
.prose a, .faq a, .card p a, .note a { color: var(--teal-200); border-bottom: 1px solid rgba(174, 207, 203, .35); }
.prose a:hover, .faq a:hover, .card p a:hover, .note a:hover { color: var(--stone-50); border-color: var(--stone-50); }
.prose .note { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--edge); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 400; color: var(--teal-200); transition: transform .3s, border-color .3s; }
.faq summary:hover::after { border-color: rgba(107, 165, 160, .45); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--stone-300); max-width: 720px; padding: 0 52px 24px 0; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; color: var(--stone-200); padding-bottom: 12px; border-bottom: 1px solid var(--edge); }
.checklist li::before { content: "✓"; color: var(--teal-200); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.lead { color: var(--stone-300); margin-bottom: 22px; }
.fine { color: var(--stone-500); font-size: 14px; margin-top: 18px; }
.card .keys { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.card .keys li { display: flex; align-items: center; gap: 14px; color: var(--stone-200); font-size: 15px; }
.card .keys .kbd { min-width: 64px; text-align: center; }
.kbd { font-family: var(--font-mono); font-weight: 500; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: rgba(250, 248, 244, .08); border: 1px solid var(--edge); color: var(--stone-50); }

/* ---------- footer ---------- */
footer { max-width: 1200px; margin: clamp(80px, 10vw, 120px) auto 0; padding: 28px clamp(16px, 4vw, 48px) 36px; border-top: 1px solid var(--edge); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--stone-500); }
footer .legal { color: var(--stone-50); font-weight: 500; display: flex; align-items: center; gap: 10px; }
footer .keyhole { color: var(--teal-200); width: 10px; height: 16px; }
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--stone-50); }
.foot-mail { color: var(--stone-200); border-bottom: 1px solid rgba(250, 248, 244, .25); }
.foot-mail:hover { color: var(--teal-200) !important; border-color: var(--teal-200); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .links { display: none; }
  .site-nav { grid-template-columns: 1fr auto; }
  .doc, .split { grid-template-columns: 1fr; }
  .toc { position: static; padding: 20px 22px; border: 1px solid var(--edge); border-radius: 18px; background: rgba(26, 35, 39, .35); }
  .toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .faq details p { padding-right: 0; }
  .block-head { flex-direction: column; gap: 6px; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-nav, .toc, footer, .page-head::before { display: none; }
  .page-head { padding: 0 0 24px; text-align: left; }
  .page-head > * { opacity: 1; transform: none; animation: none; }
  .doc { display: block; }
  .prose, .prose h2, .prose strong, .sub, .meta, .kicker, .prose .note p, .prose .note b { color: #000; }
  .prose a { color: #000; border: 0; text-decoration: underline; }
  .prose section + section { border-color: #ccc; }
  .prose .note { background: none; border-color: #999; }
}
