/* Shared styles for the Forma Studio resource pages (/studio/resources and the guides it links to).
   Same look as the Studio and Security pages. Each guide prints cleanly: "Download PDF" opens the
   browser's print dialog (Save as PDF), with a wide left margin for hole-punching. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --dark: #0F172A; --dark-mid: #1E293B; --light: #F8FAFC; --light-mid: #E2E8F0;
  --text-on-dark: #F1F5F9; --text-on-light: #1E293B; --text-muted-dark: #94A3B8; --text-muted-light: #64748B;
  --accent: #EC4899; --accent-hover: #DB2777; --ok: #047857; --ok-bg: #ECFDF5; --wip: #B45309; --wip-bg: #FFFBEB;
  --max-width: 1100px; --read-width: 820px;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 18px; line-height: 1.6; color: var(--text-on-light); background: var(--light); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-hover); }

/* NAV (same as the rest of the site) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 15px; font-weight: 600; letter-spacing: 2.5px; color: var(--text-on-dark); text-transform: uppercase; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: var(--text-muted-dark); text-decoration: none; font-size: 15px; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-on-dark); }
.nav-cta { background: var(--accent) !important; color: white !important; padding: 10px 24px; border-radius: 6px; font-weight: 600 !important; font-size: 14px !important; }
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-on-dark); margin: 6px 0; }

/* HERO */
.hero { background: var(--dark); padding: 152px 32px 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -40%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 70%); pointer-events: none; }
.hero .inner { position: relative; z-index: 1; }
.inner { max-width: var(--max-width); margin: 0 auto; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.1; color: var(--text-on-dark); max-width: 820px; margin-bottom: 20px; }
.hero p.sub { font-size: 20px; color: var(--text-muted-dark); max-width: 680px; line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.hero-micro { margin-top: 18px; font-size: 14px; color: var(--text-muted-dark); }
.btn-primary { display: inline-block; background: var(--accent); color: white; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { display: inline-block; color: var(--text-on-dark); border: 1px solid rgba(255,255,255,0.25); padding: 13px 26px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; background: none; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { border-color: var(--text-on-dark); }

/* DOCUMENT BODY */
.doc { padding: 72px 32px 88px; }
.doc .inner { max-width: var(--read-width); }
.doc h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; line-height: 1.2; margin: 56px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
.doc p { margin-bottom: 16px; color: var(--text-on-light); }
.doc p.lede { font-size: 20px; color: var(--text-muted-light); line-height: 1.7; }
.doc ul, .doc ol { margin: 0 0 18px 24px; }
.doc li { margin-bottom: 8px; }
.doc strong { font-weight: 600; }
.note { background: white; border: 1px solid var(--light-mid); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 22px; margin: 24px 0; font-size: 17px; }
.note p:last-child { margin-bottom: 0; }

/* TABLES */
.table-wrap { margin: 20px 0 8px; background: white; border: 1px solid var(--light-mid); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted-light); background: var(--light); padding: 14px 20px; border-bottom: 1px solid var(--light-mid); }
td { padding: 16px 20px; border-bottom: 1px solid var(--light-mid); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; }
td.price, th.price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { background: var(--dark); color: var(--text-on-dark); font-weight: 600; }
.fine { font-size: 14px; color: var(--text-muted-light); line-height: 1.7; margin-top: 10px; }

/* NUMBERED STEPS */
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.steps > li { counter-increment: step; background: white; border: 1px solid var(--light-mid); border-radius: 12px; padding: 22px 24px 22px 76px; position: relative; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: rgba(236,72,153,0.10); color: var(--accent-hover); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps > li h3 { margin: 0 0 4px; font-size: 20px; }
.steps > li p { margin-bottom: 8px; color: var(--text-muted-light); font-size: 17px; }
.steps > li p:last-child { margin-bottom: 0; }
.who { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--light); border: 1px solid var(--light-mid); color: var(--text-muted-light); margin-right: 6px; vertical-align: 2px; }
.who.you { background: var(--dark); border-color: var(--dark); color: white; }

/* CHECKLIST */
.checklist { list-style: none; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checklist > li { background: white; border: 1px solid var(--light-mid); border-radius: 12px; padding: 22px 24px 22px 68px; position: relative; margin: 0; }
.checklist > li::before { content: ''; position: absolute; left: 24px; top: 24px; width: 24px; height: 24px; border: 2px solid var(--text-muted-light); border-radius: 5px; background: white; }
.checklist h3 { margin: 0 0 4px; font-size: 20px; }
.checklist p { margin-bottom: 8px; color: var(--text-muted-light); font-size: 17px; }
.checklist p:last-child { margin-bottom: 0; }
.checklist .meta { font-size: 15px; color: var(--text-on-light); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; line-height: 1.5; white-space: nowrap; vertical-align: 2px; margin-left: 6px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.wip { background: var(--wip-bg); color: var(--wip); }

/* FAQ */
.qa { border-bottom: 1px solid var(--light-mid); padding: 24px 0; }
.qa:first-of-type { border-top: 1px solid var(--light-mid); }
.qa h3 { margin: 0 0 8px; font-size: 21px; }
.qa p { margin-bottom: 10px; color: var(--text-muted-light); }
.qa p:last-child { margin-bottom: 0; }

/* HUB CARDS */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.card { display: block; background: white; border: 1px solid var(--light-mid); border-radius: 12px; padding: 28px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.1s; }
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card .kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 8px; }
.card h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.card p { font-size: 16px; color: var(--text-muted-light); margin: 0; }
.card .go { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent-hover); }
.card.soon { background: var(--light); border-style: dashed; }
.card.soon .kicker { color: var(--text-muted-light); }

/* CLOSING + FOOTER */
.closing { background: var(--dark); text-align: center; padding: 88px 32px; }
.closing h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; color: var(--text-on-dark); margin-bottom: 12px; }
.closing p { color: var(--text-muted-dark); font-size: 19px; }
.closing .hero-ctas { justify-content: center; }
.more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--light-mid); font-size: 16px; color: var(--text-muted-light); }
footer { padding: 40px 32px; background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 14px; color: var(--text-muted-dark); }
.footer-right { display: flex; gap: 24px; align-items: center; }
.footer-right a { font-size: 14px; color: var(--text-muted-dark); text-decoration: none; }
.footer-right a:hover { color: var(--text-on-dark); }
.footer-divider { color: rgba(255,255,255,0.15); }
.print-only { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 72px; left: 0; right: 0; background: var(--dark); padding: 24px 32px; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 20px; }
  .hero { padding: 128px 24px 56px; }
  .doc { padding: 48px 24px 64px; }
  .cards { grid-template-columns: 1fr; }
  .steps > li { padding: 20px 20px 20px 66px; }
  .steps > li::before { left: 18px; }
  .checklist > li { padding: 20px 20px 20px 60px; }
  .checklist > li::before { left: 20px; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { padding: 16px 20px; border-bottom: 1px solid var(--light-mid); }
  tr:last-child { border-bottom: none; }
  td { padding: 0; border: none; }
  td:first-child { margin-bottom: 4px; }
  td.price { text-align: left; margin-top: 6px; }
  tr.total { background: var(--dark); }
  tr.total td { background: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { flex-wrap: wrap; justify-content: center; }
}

/* PRINT / SAVE AS PDF: plain, black on white, wide left margin for a 3-hole punch */
@page { margin: 0.6in 0.7in 0.6in 1.25in; }
@media print {
  nav, .hero-ctas, .closing, footer, .more, .hero::before { display: none !important; }
  body { background: white; font-size: 10pt; line-height: 1.42; }
  .hero { background: white; padding: 0 0 8pt; border-bottom: 1.5pt solid #1E293B; margin-bottom: 12pt; }
  .hero h1 { color: #1E293B; font-size: 21pt; margin-bottom: 4pt; }
  .hero p.sub { color: #475569; font-size: 11pt; line-height: 1.45; max-width: none; }
  .eyebrow { margin-bottom: 4pt; font-size: 8.5pt; }
  .hero-micro { color: #475569; margin-top: 6pt; font-size: 9pt; }
  .doc { padding: 0; }
  .doc .inner { max-width: none; }
  .doc h2 { font-size: 14pt; margin: 13pt 0 4pt; break-after: avoid; }
  .doc h3 { font-size: 11.5pt; margin: 10pt 0 3pt; break-after: avoid; }
  .doc p { margin-bottom: 6pt; orphans: 3; widows: 3; }
  .doc p.lede { font-size: 11.5pt; line-height: 1.45; }
  .doc ul, .doc ol { margin-bottom: 8pt; }
  .doc li { margin-bottom: 3pt; }
  table, .steps > li p, .checklist p, .note, .qa p { font-size: 9.5pt; }
  th { padding: 6pt 10pt; font-size: 8pt; }
  td { padding: 6pt 10pt; }
  td:first-child { white-space: nowrap; }
  .table-wrap { margin: 6pt 0 4pt; border-radius: 6pt; }
  .fine { margin-top: 4pt; font-size: 8.5pt; }
  .steps, .checklist { gap: 5pt; margin-top: 6pt; }
  .steps > li { padding: 7pt 12pt 7pt 44pt; border-radius: 6pt; }
  .steps > li::before { left: 12pt; top: 7pt; width: 20pt; height: 20pt; font-size: 9.5pt; }
  .checklist > li { padding: 7pt 12pt 7pt 40pt; border-radius: 6pt; }
  .checklist > li::before { left: 13pt; top: 8pt; width: 14pt; height: 14pt; }
  .steps > li h3, .checklist h3, .qa h3 { font-size: 11.5pt; margin: 0 0 2pt; }
  .steps > li p, .checklist p { margin-bottom: 3pt; }
  .qa { padding: 8pt 0; }
  .note { padding: 7pt 12pt; margin: 8pt 0; }
  .steps > li, .checklist > li, .qa, .note, .card, tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .print-only { display: block; margin-top: 12pt; font-size: 8.5pt; color: #475569; border-top: 0.75pt solid #CBD5E1; padding-top: 6pt; }
}
