/* ============================================================
   MaskWise.ai — Support page
   Obsidian theme: purple accent + Inter / Source Code Pro
   Tokens sourced from MaskWise/DESIGN.md
   ============================================================ */

@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/Inter-Regular.otf') format('opentype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/Inter-Medium.otf') format('opentype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/Inter-SemiBold.otf') format('opentype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/Inter-Bold.otf') format('opentype')}
@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/SourceCodePro-Regular.otf') format('opentype')}
@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/SourceCodePro-Medium.otf') format('opentype')}

:root {
  --ink:        #23282f;
  --ink-soft:   #4a515a;
  --slate:      #646b75;
  --slate-300:  #9aa1ab;
  --line:       #e2e3e7;
  --line-soft:  #eef0f3;
  --paper:      #f5f6f8;
  --card:       #ffffff;

  --accent:      #705dcf;
  --accent-deep: #6c56c8;
  --accent-hover:#7a6ae6;
  --accent-tint: #ede9fe;
  --accent-line: #d9d1f5;

  --amber:      #b8841f;
  --amber-deep: #946818;
  --amber-tint: #faf1da;
  --amber-line: #ecdcae;

  /* PII highlight palette — warm/varied = a real value, purple = a token */
  --hl-name:    #f7ecc9;
  --hl-email:   #dbe7fb;
  --hl-phone:   #d2efe0;
  --hl-money:   #f8dde2;
  --hl-addr:    #e3ddf2;
  --hl-date:    #f6dcea;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(30,34,46,.04), 0 8px 28px rgba(30,34,46,.07);
  --maxw:       980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(245,246,248,.85);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: .02em; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; display: block; }
.topbar nav a { color: var(--slate); font-weight: 600; font-size: 16px; margin-left: 26px; }
.topbar nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .topbar nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Source Code Pro', monospace;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-tint); border: 1px solid var(--accent-line);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 800; }
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 660px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 17px; font-weight: 700;
  padding: 13px 24px; border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(112,93,207,.3); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--accent-line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; transform: translateY(-1px); }

/* ---------- Token demo strip ---------- */
.demo { margin: 44px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); background: var(--line-soft); }
.demo-head .lamp { width: 11px; height: 11px; border-radius: 50%; background: #D6DCE4; }
.demo-head .lamp:nth-child(2){ background:#E2E7EE; } .demo-head .lamp:nth-child(3){ background:#EBEFF4; }
.demo-head .label { margin-left: 10px; font-family: 'Source Code Pro', monospace; font-size: 13px; color: var(--slate); letter-spacing: .02em; }
.demo-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 26px 22px; }
@media (max-width: 760px) { .demo-body { grid-template-columns: 1fr; } .demo-arrow { transform: rotate(90deg); margin: 4px auto; } }
.demo-col .tag { font-family: 'Source Code Pro', monospace; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-300); margin-bottom: 12px; }
.demo-line { font-size: 16px; line-height: 2.0; }
mark { border-radius: 5px; padding: 2px 6px; color: var(--ink); background: var(--hl-name); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.m-email { background: var(--hl-email); }
mark.m-phone { background: var(--hl-phone); }
mark.m-money { background: var(--hl-money); }
.tok { font-family: 'Source Code Pro', monospace; font-size: 14px; font-weight: 500; background: var(--accent-tint); color: var(--accent-deep); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.demo-arrow { color: var(--accent); font-size: 26px; font-weight: 700; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 56px 0; }
.pt-30 { padding-top: 30px; }
.kicker { font-family: 'Source Code Pro', monospace; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 10px; }
h2.section-title { font-size: clamp(28px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 12px; font-weight: 800; }
.section-sub { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 0 36px; }

/* ---------- Quick help cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px){ .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .cards { grid-template-columns: 1fr; } }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 2px 4px rgba(30,34,46,.05), 0 14px 36px rgba(112,93,207,.14); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-tint); }
.card .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.9; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--ink); }
.card p { margin: 0; font-size: 16px; color: var(--slate); line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; position: relative; box-shadow: var(--shadow); }
.step .n { font-family: 'Source Code Pro', monospace; font-size: 15px; font-weight: 500; color: var(--accent-deep); background: var(--accent-tint); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 16px; }
.step h4 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; font-size: 16px; color: var(--slate); line-height: 1.55; }
.step p code { font-family: 'Source Code Pro', monospace; font-size: 14px; background: var(--accent-tint); padding: 1px 6px; border-radius: 5px; color: var(--accent-deep); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 40px; }
.faq-group > h3 { font-family: 'Source Code Pro', monospace; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-tint); }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
details.qa[open] { border-color: var(--accent-line); box-shadow: var(--shadow); }
details.qa summary { list-style: none; cursor: pointer; padding: 19px 56px 19px 22px; position: relative; font-size: 18px; font-weight: 700; color: var(--ink); user-select: none; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; position: absolute; right: 22px; top: 24px; width: 11px; height: 11px; border-right: 2px solid var(--slate-300); border-bottom: 2px solid var(--slate-300); transform: rotate(45deg); transition: transform .18s ease; }
details.qa[open] summary::after { transform: rotate(-135deg); top: 27px; }
details.qa summary:hover { color: var(--accent); }
.qa-body { padding: 0 22px 22px; font-size: 17px; color: var(--ink-soft); line-height: 1.66; }
.qa-body p { margin: 0 0 12px; } .qa-body p:last-child { margin-bottom: 0; }
.qa-body ul { margin: 4px 0 12px; padding-left: 22px; } .qa-body li { margin-bottom: 7px; }
.qa-body code, .qa-body .tok-inline { font-family: 'Source Code Pro', monospace; font-size: 15px; background: var(--accent-tint); color: var(--accent-deep); padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.callout { border-left: 3px solid var(--amber); background: var(--amber-tint); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 14px 0 4px; font-size: 16px; color: #6A4E12; }
.callout strong { color: #4F3A0C; }

/* ---------- Contact ---------- */
.contact-panel { background: linear-gradient(150deg, #fff 0%, var(--accent-tint) 135%); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 760px){ .contact-panel { grid-template-columns: 1fr; padding: 34px 26px; } }
.contact-panel h2 { font-size: clamp(26px, 4vw, 32px); margin: 0 0 12px; letter-spacing: -.02em; font-weight: 800; }
.contact-panel p { font-size: 18px; color: var(--ink-soft); margin: 0 0 8px; }
.contact-meta { font-size: 16px; color: var(--slate); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.contact-card .row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-card .row:last-child { margin-bottom: 0; }
.contact-card .row > div { min-width: 0; }
.contact-card .ic2 { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-tint); display: grid; place-items: center; }
.contact-card .ic2 svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.9; }
.contact-card .lab { font-size: 14px; color: var(--slate); margin-bottom: 2px; }
.contact-card .val { font-size: 17px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-card .val a { font-weight: 700; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 38px 0 56px; color: var(--slate); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer .links a { color: var(--slate); margin-right: 22px; font-weight: 600; }
footer .links a:hover { color: var(--accent); text-decoration: none; }
footer .copy { font-size: 15px; color: var(--slate-300); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
