/* Pirdel landing page. Palette and fonts follow the brand basics doc. */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #121C24;
  --ink-2: #1A2832;
  --paper: #F5F3EE;
  --paper-2: #ECE9E1;
  --slate: #556572;
  --teal: #1F9E92;
  --teal-deep: #12766D;
  --orange: #E4572E;
  --orange-deep: #C2410C;
  --soft: #C9CFD3;
  --line: #D9D5CA;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: "Outfit", "Inter", sans-serif; font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 36rem; }
.small { font-size: 0.9375rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange-deep); color: #fff; }
.btn-primary:hover { background: #A63608; color: #fff; }
.btn-ghost { border-color: var(--soft); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); color: var(--paper); }

/* Hero */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.nav .logo img { height: 38px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.nav a:hover { color: var(--paper); }
.nav .btn { min-height: 42px; padding: 0.5rem 1.25rem; color: #fff; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; padding-block: 4rem 9rem; }
.hero h1 { color: var(--paper); margin-bottom: 1.5rem; }
.hero .lede { color: var(--soft); }
.hero .status { color: var(--soft); font-size: 0.9375rem; margin-top: 1.25rem; }
.hero .status::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-right: 0.6rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* Tick strip along the bottom of the hero */
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; display: flex; align-items: flex-end; gap: 6px; padding-inline: 0; pointer-events: none; }
.ticks i { flex: 1 1 0; min-width: 4px; border-radius: 3px 3px 0 0; background: var(--teal); opacity: 0.32; height: var(--h); transform-origin: bottom; }
.ticks i.spike { background: var(--orange); opacity: 1; }

/* The example report (the one memorable thing on the page) */
.slip { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.slip-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--slate); font-size: 0.875rem; margin-bottom: 1.25rem; }
.slip h2 { font-size: 1.55rem; line-height: 1.2; margin-bottom: 1.25rem; }
.causes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.7rem; }
.causes li { display: grid; grid-template-columns: 8.5rem 1fr 2.75rem; gap: 0.75rem; align-items: center; font-size: 0.9375rem; }
.causes .track { background: var(--paper-2); border-radius: 6px; height: 14px; overflow: hidden; }
.causes .fill { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 6px; transform-origin: left; }
.causes .top .fill { background: var(--orange); }
.causes .pct { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; }
.fixes { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--line); }
.fixes li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.pill { flex: none; padding: 0.15rem 0.7rem; border-radius: 999px; font-weight: 600; font-size: 0.8125rem; }
.pill.safe { background: #D8EBDF; color: #1E5A38; }
.pill.test { background: #F4E4BC; color: #6F4708; }
.pill.hw { background: #DDE5EA; color: #33444F; }
.slip-note { font-size: 0.9375rem; color: var(--ink); margin: 0 0 0.75rem; }
.slip-caption { font-size: 0.8125rem; color: var(--slate); margin: 0; }

/* Sections */
section { padding-block: 5.5rem; }
.band { background: var(--paper-2); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head p { color: var(--slate); font-size: 1.125rem; margin-top: 1rem; }

/* Steps: the content really is a sequence, so the numbers stay */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--teal); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font: 700 2.5rem/1 "Outfit", sans-serif; color: var(--teal-deep); margin-bottom: 0.75rem; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--slate); margin: 0; }

/* Two-column text blocks */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.split h2 { margin-bottom: 1.25rem; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points strong { display: block; font-family: "Outfit", sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.points span { color: var(--slate); }

.pilot { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 2rem; margin-top: 2.5rem; }
.pilot h3 { color: var(--paper); margin-bottom: 0.75rem; font-size: 1.5rem; }
.pilot p { color: var(--soft); }
.pilot .btn { margin-top: 0.5rem; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; }
.principles h3 { margin-bottom: 0.4rem; }
.principles p { color: var(--slate); margin: 0; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.2rem "Outfit", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--teal-deep); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.75rem 0 0; color: var(--slate); max-width: 38rem; }

/* Join form */
.join { background: var(--ink); color: var(--paper); }
.join .split { align-items: center; }
.join h2 { color: var(--paper); }
.join p { color: var(--soft); }
form.card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-deep); outline: none; box-shadow: 0 0 0 3px rgba(31, 158, 146, 0.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-msg.ok { color: #1E5A38; }
.form-msg.err { color: #9A2B22; }

/* Footer */
footer { background: var(--ink); color: var(--soft); padding-block: 2.5rem; border-top: 1px solid #243643; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.foot img { height: 30px; width: auto; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--paper); }
.foot p { margin: 0; font-size: 0.9375rem; }

/* Privacy page */
.doc { padding-block: 4rem 6rem; max-width: 42rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.25rem 0 0.6rem; }
.doc ul { padding-left: 1.25rem; }

/* The one entrance: bars rise, the orange spike lands last, the report fills in */
@media (prefers-reduced-motion: no-preference) {
  .ticks i { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 12ms); }
  .ticks i.spike { animation-delay: 1.1s; animation-duration: 0.5s; }
  .causes .fill { animation: grow 0.8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(0.5s + var(--n) * 120ms); }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Smaller screens */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; padding-block: 2.5rem 8rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .principles { grid-template-columns: 1fr; gap: 1.75rem; }
  .nav ul li:not(:last-child) { display: none; }
  section { padding-block: 4rem; }
}
@media (max-width: 480px) {
  .causes li { grid-template-columns: 6.5rem 1fr 2.5rem; font-size: 0.875rem; }
  .slip { padding: 1.25rem; }
  .ticks { height: 110px; gap: 4px; }
  .btn { width: 100%; }
}

.nav .btn { width: auto; }
