/* Punk//Body Studio website. The colours and fonts are the app's
   (crates/cps-app/src/theme.rs and the user guide's). Dark only. */

@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Rajdhani-Medium.12ff7dcfe4.ttf") format("truetype"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Rajdhani-SemiBold.94bbd25a18.ttf") format("truetype"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Rajdhani-Bold.691470dd32.ttf") format("truetype"); }
@font-face { font-family: "Share Tech Mono"; font-display: swap; src: url("/assets/fonts/ShareTechMono-Regular.9ceab1f874.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #08090e; --panel: #0e1018; --surface: #171b26; --line: #2a3142;
  --text: #dde8ee; --dim: #8fa0b0; --yellow: #fcee0a; --cyan: #2df4ff; --red: #ff455a;
  --mono: "Share Tech Mono", Consolas, monospace;
  --wrap: 1160px;
  --cut: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 18px/1.55 "Rajdhani", "Segoe UI", system-ui, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--surface); padding: 1px 5px; border-radius: 2px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 5px; border-radius: 3px; background: var(--panel); }
.ui { color: var(--yellow); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); letter-spacing: 1px; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; margin: 0 0 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--yellow); color: var(--bg); padding: 8px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--panel); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: 1px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.top nav { margin-left: auto; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 16px; }
.top nav a:hover { color: var(--yellow); }
.top nav a.btn, .top nav a.btn:hover { color: var(--bg); }
.top nav .btn { font-size: 15px; padding: 6px 16px; }
@media (max-width: 720px) {
  .top .wrap { gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
  .top nav { margin-left: 0; width: 100%; }
  .top nav ul { gap: 8px 18px; }
  .top nav .opt { display: none; }
}

/* Cut-corner buttons. The yellow is on ::before so the focus outline,
   which clip-path would cut off, stays whole. */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--bg); background: none; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 26px; border: 0; font-family: inherit; font-size: 18px; line-height: 1.2;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { background: #fff35a; }
.btn:active::before { background: var(--cyan); }
.btn-big { font-size: 28px; padding: 16px 44px; --cut: 20px; }
.btn-big svg { width: 28px; height: 28px; }

/* Hero */
.hero { padding: 56px 0 40px; background:
  radial-gradient(ellipse 70% 60% at 75% 40%, rgba(45, 244, 255, 0.07), transparent 70%),
  linear-gradient(180deg, var(--panel), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(44px, 6.4vw, 76px); line-height: 0.95; color: var(--yellow); letter-spacing: 1px; font-weight: 700; }
.hero h1 span { display: block; }
.pitch { font-size: 22px; line-height: 1.45; margin: 0 0 28px; max-width: 34ch; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-meta { font-family: var(--mono); font-size: 14px; color: var(--dim); letter-spacing: 1px; margin: 0; }
.cta-meta strong { color: var(--text); font-weight: 400; }
.preview-note { margin: 26px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: var(--surface); font-size: 17px; max-width: 46ch; }
.badge { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--bg); background: var(--cyan); padding: 2px 8px; margin-right: 8px; vertical-align: 2px; }
.guide-link { margin: 18px 0 0; font-weight: 600; }
.shot { position: relative; margin: 0; border: 1px solid var(--line); background: var(--panel); }
.shot::after { /* HUD corner brackets */
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background:
    linear-gradient(var(--yellow), var(--yellow)) left top / 22px 2px,
    linear-gradient(var(--yellow), var(--yellow)) left top / 2px 22px,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 22px 2px,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 2px 22px;
  background-repeat: no-repeat;
}
.shot figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--dim); padding: 6px 10px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* Safe strip */
.safe { background: var(--surface); border-bottom: 1px solid var(--line); }
.safe .wrap { display: flex; gap: 16px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.safe svg { flex: none; width: 34px; height: 34px; color: var(--cyan); }
.safe p { margin: 0; }
.safe strong { color: var(--cyan); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(30px, 4vw, 40px); font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 8px; line-height: 1.1;
}
.lede { color: var(--dim); font-size: 20px; margin: 0 0 40px; max-width: 60ch; }
h3 { font-size: 24px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px; line-height: 1.15; }
p { margin: 0 0 14px; }

.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; align-items: center; margin: 0 0 64px; }
.feature:last-of-type { margin-bottom: 0; }
.feature:nth-of-type(even) .shot { order: 2; }
.feature .num { font-family: var(--mono); color: var(--dim); font-size: 14px; letter-spacing: 2px; margin: 0 0 6px; }
.feature ul { margin: 0; padding-left: 20px; }
.feature li { margin: 4px 0; }
.feature .note { color: var(--dim); font-size: 16px; }
.feature-narrow { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.feature-narrow:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature-narrow .shot { justify-self: center; max-width: 300px; width: 100%; }
@media (max-width: 860px) {
  .feature, .feature-narrow, .feature-narrow:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feature:nth-of-type(even) .shot { order: 0; }
}

.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  margin: 64px 0 0; padding: 24px 28px; background: var(--surface); border-left: 3px solid var(--cyan);
}
.callout svg { width: 44px; height: 44px; color: var(--cyan); }
.callout p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .callout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; } .callout svg { width: 36px; height: 36px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); padding: 24px 22px; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 34px; color: var(--yellow); line-height: 1; margin-bottom: 14px;
}
.steps li::after { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 3px; background: var(--yellow); }
.steps p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Requirements and FAQ */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.req { list-style: none; margin: 0; padding: 0; }
.req li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.req li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; background: var(--cyan); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.req strong { color: var(--text); font-weight: 700; }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; font-size: 20px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-family: var(--mono); font-size: 24px; color: var(--yellow); }
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--yellow); }
details > div { padding: 0 0 16px; }

.links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.links a { display: block; height: 100%; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.links a:hover { border-color: var(--yellow); }
.links a strong { display: block; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; font-size: 19px; }
.links a span { color: var(--dim); font-size: 16px; }

.final { text-align: center; }
.final .cta { align-items: center; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--panel); padding: 36px 0 44px; color: var(--dim); font-size: 16px; }
footer p { margin: 0 0 8px; max-width: 90ch; }
footer a { color: var(--text); }

/* 404 */
.lost { min-height: 70vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(44px, 8vw, 88px); color: var(--yellow); margin: 0 0 8px; line-height: 1; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 28px; }
