/* Shared styles for spincoater.com content pages. Matches the v2 landing page. */
:root {
  --bg: #0e1218;
  --panel: #131820;
  --grid: rgba(150, 175, 210, 0.055);
  --line: rgba(170, 190, 215, 0.14);
  --ink: #a9bbd2;
  --ink-dim: rgba(169, 187, 210, 0.45);
  --text: #e9eef4;
  --body: #b7c1ce;
  --muted: #8793a3;
  --magenta: #e5007d;
  --magenta-hi: #ff3ba1;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--magenta-hi); outline-offset: 3px; }
.prose a, a.inline { color: var(--text); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .3s var(--ease); }
.prose a:hover, a.inline:hover { color: var(--magenta-hi); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.nav a { text-decoration: none; }
.brand { font-weight: 700; font-stretch: 112%; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; font: 600 15px/1 "Archivo", sans-serif; font-stretch: 108%; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .35s var(--ease), border-color .35s var(--ease), transform .4s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-hi); }
.btn-line { border-color: var(--line); color: var(--text); background: rgba(14,18,24,.6); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- On-page subnav ---------- */
.subnav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; align-items: center; padding: 0 var(--gutter); height: 52px; overflow-x: auto; scrollbar-width: none; background: rgba(14,18,24,.82); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.subnav::-webkit-scrollbar { display: none; }
.subnav b { font-size: 14px; font-weight: 600; font-stretch: 108%; margin-right: 16px; white-space: nowrap; }
.subnav a { position: relative; flex: none; text-decoration: none; font-size: 14px; color: var(--muted); padding: 6px 10px; white-space: nowrap; transition: color .3s var(--ease); }
.subnav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -9px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.subnav a:hover { color: var(--text); }
.subnav a.on { color: var(--text); }
.subnav a.on::after { transform: none; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(40px, 7vw, 104px) var(--gutter) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(52px, 8vw, 124px); line-height: .9; font-weight: 800; font-stretch: 118%; letter-spacing: -0.04em; max-width: 11ch; animation: spread 1.8s var(--ease) both; }
@keyframes spread { from { font-stretch: 70%; opacity: 0; } 35% { opacity: 1; } to { font-stretch: 118%; } }
.byline { margin-top: 24px; font-size: 14px; color: var(--muted); animation: fade 1.2s var(--ease) .5s both; }
.answer { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; color: var(--text); max-width: 40ch; animation: fade 1.2s var(--ease) .4s both; }
.answer + .answer { margin-top: 16px; font-size: 18px; color: var(--body); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 40px; animation: fade 1.2s var(--ease) .6s both; }
.glance div { padding: 16px 16px 0 0; }
.glance div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.glance dt { font-size: 13px; color: var(--muted); }
.glance dd { font-size: 17px; font-weight: 600; font-stretch: 108%; line-height: 1.35; margin-top: 4px; }

/* ---------- Sections and prose ---------- */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
h2.big { font-size: clamp(36px, 4.6vw, 66px); font-weight: 700; font-stretch: 118%; line-height: .98; letter-spacing: -0.03em; max-width: 16ch; }
.sub { color: var(--body); max-width: 52ch; margin-top: 20px; font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { color: var(--body); max-width: 66ch; }
.prose p + p { margin-top: 14px; }
.side-h { font-size: 21px; font-weight: 600; font-stretch: 110%; letter-spacing: -0.01em; line-height: 1.25; }
.prose h3 { font-size: 21px; font-weight: 600; font-stretch: 110%; letter-spacing: -0.01em; line-height: 1.25; color: var(--text); }

/* Hairline lists: rows with a short title and an explanation */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 19px; font-weight: 600; font-stretch: 110%; line-height: 1.3; }
.rows p { color: var(--body); }
.rows .note { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; font-stretch: 108%; transition: color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--magenta-hi); }
.faq summary i { flex: none; position: relative; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .a { overflow: hidden; }
.faq .a p { color: var(--body); max-width: 66ch; padding-bottom: 22px; }

/* ---------- Closing CTA ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.related a { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .4s var(--ease), transform .6s var(--ease); }
.related a:hover { border-color: var(--magenta); transform: translateY(-3px); }
.related small { display: block; color: var(--muted); font-size: 13px; }
.related b { font-size: 22px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }

footer { padding: 32px var(--gutter) 48px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .page-hero, .split, .closing { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr; }
  .glance div + div { padding-left: 0; border-left: 0; }
  .glance div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rows > li { grid-template-columns: 1fr; gap: 6px; }
  .related { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}
