/* Penny: public landing page (/penny). Standalone from the TitleRelay styles. */

:root {
  --bg: #090d14;
  --bg-alt: #0c121c;
  --card: #121a27;
  --line: #1f2a3c;
  --text: #e8eef7;
  --muted: #8b9bb3;
  --blue: #3b82f6;
  --blue-hover: #5b97f8;
  --copper: #e0a050;
  --review: #e0a050;
  --failed: #f07171;
  --radius: 16px;
  --wrap: 1160px;
  --measure: 720px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.p-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout */

.p-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.p-narrow {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.p-wrap.p-narrow {
  max-width: calc(var(--measure) + 48px);
}

.p-center { text-align: center; }
.p-muted { color: var(--muted); }

.p-band {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.p-band-alt { background: var(--bg-alt); }

.p-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.p-eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Coin mark */

.p-coin {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2c27e 0%, var(--copper) 55%, #b97a33 100%);
  box-shadow: inset 0 0 0 2px rgba(9, 13, 20, 0.22), inset 0 0 0 4px rgba(242, 194, 126, 0.35);
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.p-coin-sm {
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
}

.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.p-brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Buttons and links */

.p-btn-primary,
.p-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.p-btn-primary {
  padding: 14px 26px;
  border: 0;
  background: var(--blue);
  color: #fff;
}

.p-btn-primary:hover { background: var(--blue-hover); }
.p-btn-primary:disabled { opacity: 0.6; cursor: progress; }

.p-btn-outline {
  padding: 8px 16px;
  border: 1.5px solid var(--copper);
  background: transparent;
  color: var(--copper);
  font-size: 0.92rem;
  white-space: nowrap;
}

.p-btn-outline:hover {
  background: rgba(224, 160, 80, 0.12);
}

.p-btn-block { width: 100%; }

.p-link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.p-link:hover { text-decoration: underline; }

/* Header */

.p-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 20, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.p-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.p-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.p-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.p-nav a:hover { color: var(--text); }

.p-nav .p-nav-home {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.p-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.p-menu-toggle svg { width: 24px; height: 24px; }

/* Hero */

.p-hero { padding: 96px 0 112px; }

.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.p-lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.2rem;
}

.p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 32px 0 20px;
}

.p-fineprint {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Dashboard still */

.p-dash {
  margin: 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.p-dash-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.p-dash-title { font-weight: 600; }

.p-dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.p-dash-counts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.p-dash-counts div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.p-dash-counts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.p-dash-counts dd {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.p-dash-now {
  padding: 12px 14px;
  border-left: 3px solid var(--copper);
  border-radius: 8px;
  background: rgba(224, 160, 80, 0.07);
  font-size: 0.95rem;
}

/* Problem */

.p-h-sm {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.p-statement {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

/* Steps */

.p-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.p-step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-size: 0.9rem;
  font-weight: 600;
}

.p-steps p,
.p-roles p,
.p-outcome p { color: var(--muted); }

/* Stops and hands back */

.p-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.p-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.p-tag-review {
  background: rgba(224, 160, 80, 0.14);
  color: var(--review);
}

.p-tag-failed {
  background: rgba(240, 113, 113, 0.14);
  color: var(--failed);
}

/* Training */

.p-note {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.95rem;
}

/* What the office sees */

.p-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 48px 0 32px;
  padding: 0;
  list-style: none;
}

.p-metrics .p-card {
  padding: 22px 20px;
  font-weight: 500;
  text-align: center;
}

/* Roles */

.p-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* Trust */

.p-trust {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.p-trust li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--line);
}

.p-trust li:last-child { border-bottom: 0; }

.p-trust li::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
}

/* Questions */

.p-faq { margin-top: 24px; }

.p-faq details {
  border-bottom: 1px solid var(--line);
}

.p-faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.p-faq summary::-webkit-details-marker { display: none; }

.p-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 400;
}

.p-faq details[open] summary::after { content: "\2212"; }

.p-faq details p {
  padding-bottom: 20px;
  color: var(--muted);
}

/* Close and form */

.p-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.p-close-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.1rem;
}

.p-form {
  display: grid;
  gap: 18px;
}

.p-field {
  display: grid;
  gap: 6px;
}

.p-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.p-field label {
  color: var(--muted);
  font-size: 0.9rem;
}

.p-field input,
.p-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.p-field select { appearance: auto; }

.p-field input:focus,
.p-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.p-field input[aria-invalid="true"] { border-color: var(--failed); }

.p-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.p-form-msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.p-form-msg.is-ok {
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
}

.p-form-msg.is-error {
  background: rgba(240, 113, 113, 0.12);
  color: #fca5a5;
}

/* Footer */

.p-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.p-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.p-footer-inner .p-link { margin-left: auto; }

.p-footer-home {
  color: var(--muted);
  text-decoration: none;
}

.p-footer-home:hover { color: var(--text); }

.p-disclaimer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.p-brand-static .p-brand-name { font-size: 1rem; }

/* Responsive */

@media (max-width: 1024px) {
  .p-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .p-header-inner { gap: 12px; }

  .p-header-actions { margin-left: auto; }

  .p-menu-toggle { display: inline-flex; }

  .p-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .p-nav.is-open { display: flex; }

  .p-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1rem;
  }

  .p-nav a:last-child { border-bottom: 0; }

  .p-nav .p-nav-home {
    padding-left: 0;
    border-left: 0;
    color: var(--muted);
  }

  .p-hero { padding: 56px 0 72px; }

  .p-hero-grid,
  .p-close {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-band { padding: 72px 0; }

  .p-steps,
  .p-roles { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .p-wrap,
  .p-header-inner { padding-left: 18px; padding-right: 18px; }

  .p-brand-name { font-size: 1.1rem; }

  .p-outcomes,
  .p-field-row { grid-template-columns: 1fr; }

  .p-metrics { grid-template-columns: 1fr 1fr; }
  .p-metrics .p-card:last-child { grid-column: 1 / -1; }

  .p-card { padding: 22px; }

  .p-footer-inner .p-link { margin-left: 0; }
}
