/* Parvaz Lab. The landing page is white and quiet; the lab is the same brand at night:
   ink background, one green accent, mono labels, and the application as a white sheet. */

:root {
  --ink: #0C100F;
  --ink-2: #131816;
  --ink-3: #1B211F;
  --line: rgba(242, 245, 243, 0.10);
  --line-strong: rgba(242, 245, 243, 0.22);
  --text: #F2F5F3;
  --muted: #A7B0AB;
  --subtle: #78827D;
  --green: #00BD7D;
  --green-hover: #00C986;
  --green-edge: #00885A;
  --green-ink: #00754D;
  --green-dim: rgba(0, 189, 125, 0.14);
  --paper: #FFFFFF;
  --paper-ink: #111827;
  --paper-muted: #4B5563;
  --paper-line: #D1D5DB;
  --paper-soft: #F3F4F6;
  --danger: #F87171;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 8px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main > section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 112px) var(--gutter); border-top: 1px solid var(--line); }
main > section.hero { border-top: 0; }

/* labels: mono, uppercase, green, like the landing page */
.label {
  margin: 0 0 16px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: 10px;
}
.label-sep { width: 18px; height: 1px; background: var(--green); opacity: .6; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-lede { margin: 16px 0 0; color: var(--muted); font-size: 1.0625rem; }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(12, 16, 15, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-brand img { width: 96px; height: auto; }
.top-tag {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--green); padding: 2px 7px; border-radius: 4px;
}
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 0.875rem; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--text); }
.top-nav .top-cta { color: var(--text); border-bottom: 1px solid var(--green); padding-bottom: 1px; }
@media (max-width: 640px) { .top-nav a:not(.top-cta) { display: none; } }

/* buttons: the landing page's block buttons, on ink */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease-out, box-shadow .15s ease-out, background-color .15s;
}
.btn-primary { background: var(--green); color: var(--paper-ink); box-shadow: 0 4px 0 var(--green-edge); }
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 5px 0 var(--green-edge); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-edge); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }

/* hero */
.hero { padding-top: clamp(56px, 9vw, 104px); }
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
.lede { margin: 24px 0 0; max-width: 58ch; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }

/* the rail: 16 blocks in four parts, with the New Year gap */
.rail { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: flex; align-items: flex-end; gap: 18px; }
.rail-act { display: flex; flex-direction: column; gap: 10px; flex: var(--n) 1 0; min-width: 0; }
.rail-name { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.rail-blocks { display: flex; gap: 6px; }
.rail-blocks a {
  flex: 1 1 0; min-width: 0; aspect-ratio: 1; max-height: 64px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--ink-2);
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.rail-blocks a:hover { background: var(--green-dim); border-color: var(--green); color: var(--text); transform: translateY(-2px); }
.rail-blocks a.rail-demo { background: var(--green); border-color: var(--green); color: var(--paper-ink); font-weight: 600; }
.rail-cont { margin-left: -6px; }
.rail-break { flex: none; }

.rail-break {
  align-self: stretch; display: flex; align-items: flex-end; padding: 0 4px;
  border-left: 1px dashed var(--line-strong); border-right: 1px dashed var(--line-strong);
}
.rail-break span { font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.3; color: var(--subtle); padding: 0 8px 4px; }
.rail-foot { margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--subtle); }
.rail-foot span::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--green); margin-right: 8px; vertical-align: 0; }
/* on phones the rail folds into two rows: find and build, then sell and fund */
@media (max-width: 760px) {
  .rail { flex-wrap: wrap; gap: 16px 14px; }
  .rail-act { flex: none; }
  .rail-blocks { gap: 5px; }
  .rail-blocks a { flex: none; width: 34px; font-size: 0.75rem; }
  .rail-break { display: none; }
  .rail-cont { margin-left: -9px; }
}
.facts {
  margin: clamp(40px, 6vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.facts div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 16px; }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; white-space: normal; text-align: center; padding: 12px 18px; } }

/* who it is for */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.who-col { background: var(--ink); padding: clamp(24px, 4vw, 40px); }
.who-col h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.who-col p { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 760px) { .who-grid { grid-template-columns: 1fr; } }

/* sessions */
.act + .act { margin-top: clamp(40px, 6vw, 64px); }
.act-name {
  margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
}
.act-name span {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-right: 12px;
}
.session { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.session summary {
  display: grid; grid-template-columns: clamp(52px, 8vw, 88px) 1fr 24px; align-items: baseline; gap: 12px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.session summary::-webkit-details-marker { display: none; }
.session summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.125rem; color: var(--subtle); justify-self: end;
  transition: transform .2s ease-out, color .15s;
}
.session[open] summary::after { transform: rotate(45deg); color: var(--green); }
.s-num { font-family: var(--font-mono); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 500; color: var(--subtle); line-height: 1; transition: color .15s; }
.s-title { font-size: clamp(1.0625rem, 2vw, 1.375rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.session summary:hover .s-num, .session[open] .s-num { color: var(--green); }
.session-demo .s-num { color: var(--green); }
.s-body {
  display: grid; grid-template-columns: 3fr 2fr; gap: 24px 40px;
  padding: 0 0 28px clamp(64px, calc(8vw + 12px), 100px);
}
.s-body p { margin: 0; color: var(--muted); }
.s-body .s-key { margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.s-body div:last-child p:last-child { color: var(--text); }
@media (max-width: 760px) {
  .s-body { grid-template-columns: 1fr; padding-left: 0; }
}
.trainers-note { margin: 32px 0 0; color: var(--muted); font-size: 0.9375rem; }

/* rules */
.rules-list { list-style: none; counter-reset: rule; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.rules-list li { counter-increment: rule; padding: 24px 0 28px; border-top: 1px solid var(--line); }
.rules-list li::before {
  content: counter(rule, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--green);
}
.rules-list p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 760px) { .rules-list { grid-template-columns: 1fr; } }

/* apply: the form is a white sheet with a hard green shadow */
.sheet {
  background: var(--paper); color: var(--paper-ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--green); padding: clamp(24px, 4vw, 48px);
  max-width: 820px;
}
.sheet .notify, .sheet .apply-form { display: none; }
.sheet[data-state="closed"] .notify { display: block; }
.sheet[data-state="open"] .apply-form { display: block; }
.sheet[data-state="loading"] { min-height: 120px; }
.sheet[data-state="done"] .done { display: block; }

.field { display: block; margin-top: 18px; }
.field-label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; color: var(--paper-ink); }
.field-label em { font-style: normal; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6B7280; margin-left: 6px; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: inherit; font-size: 0.9375rem; color: var(--paper-ink); background: var(--paper);
  border: 1px solid var(--paper-line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9CA3AF; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--paper-ink); box-shadow: 0 0 0 3px rgba(0, 189, 125, 0.25); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .chips { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.check.invalid span { color: #B91C1C; }

.notify-row { display: flex; gap: 12px; }
.notify-row input { flex: 1; }
@media (max-width: 520px) { .notify-row { flex-direction: column; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

fieldset { border: 0; margin: 0; padding: 0; }
fieldset + fieldset { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--paper-soft); }
/* float the legend so it sits inside the fieldset instead of on its border */
legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
legend span {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  font-family: var(--font-mono); font-size: 0.75rem; background: var(--paper-ink); color: var(--paper);
}
legend + * { clear: both; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: var(--radius); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 14px; font-size: 0.875rem;
  border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .15s, background-color .15s;
}
.chips label:hover span { border-color: var(--paper-ink); }
.chips input:checked + span { background: #E6F8F1; border-color: var(--green-ink); color: var(--paper-ink); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 0.9375rem; color: var(--paper-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green-ink); flex: none; }
.check a { color: var(--paper-ink); text-decoration-color: var(--green); }

.form-foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { margin: 10px 0 0; font-size: 0.875rem; color: var(--paper-muted); min-height: 1.4em; }
.form-foot .form-msg { margin: 0; }
.form-msg.error { color: #B91C1C; }
.form-msg.ok { color: var(--green-ink); }

.done { display: none; }
.done h3 { font-size: 1.5rem; margin-top: 16px; }
.done p { margin: 10px 0 0; color: var(--paper-muted); }
.done-mark { width: 40px; height: 40px; margin: 0; background: var(--green); clip-path: polygon(0 100%, 48% 0, 100% 0, 100% 100%); }

/* faq */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 18px 32px 18px 0; cursor: pointer; list-style: none; font-weight: 500; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-family: var(--font-mono); color: var(--subtle); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-list p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }
.faq-list a { text-decoration-color: var(--green); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) 56px; max-width: var(--max); margin: 0 auto; color: var(--subtle); font-size: 0.875rem; }
.foot img { width: 88px; margin-bottom: 16px; }
.foot p { margin: 6px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px !important; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
