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

:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f5f5f5;
  --muted: #cfcfcf;
  --line: #262626;
  --blue: #0058fc;
  --blue-text: #a9c7ff;
  --danger: #ffb4b0;
  --header: 4.4rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  color: #050505;
  padding: 0.45rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1, h2, .card h3, .step h3, .who-list li, .btn-primary, .btn-secondary, .header-cta, button {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
}

h1, h2 { text-wrap: balance; line-height: 0.9; margin: 0; }

h1 {
  font-size: clamp(3.15rem, 12vw, 6.5rem);
  padding-bottom: 0.08em;
}

h2 { font-size: clamp(2.35rem, 7vw, 4.3rem); }

h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: Outfit, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.25;
}

.card h3, .step h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 0.95;
}

p { margin: 0; }

.kicker {
  margin: 0 0 0.8rem;
  color: var(--blue-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede, .intro {
  max-width: 40rem;
  color: #e4e4e4;
  font-size: 1.125rem;
}

.lede { margin-top: 1.25rem; }
.lede strong { color: #fff; font-weight: 700; background-image: linear-gradient(var(--blue), var(--blue)); background-repeat: no-repeat; background-size: 100% 0.14em; background-position: 0 95%; }

.intro { margin-top: 1rem; }

.accent {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-size: 100% 0.11em;
  background-position: 0 90%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0.7rem 1.25rem;
  background: rgba(5, 5, 5, 0.92);
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid #1c1c1c;
  backdrop-filter: blur(16px);
}

.logo { display: flex; min-width: 0; }
.logo img { height: 34px; width: auto; max-width: 46vw; }

.nav { display: none; gap: 1.25rem; margin-left: auto; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: Outfit, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.nav a:hover { color: var(--blue-text); }

.header-cta, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.05rem;
  text-decoration: none;
  line-height: 1;
  font-size: 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.header-cta, .btn-primary { background: #fff; color: #050505; }
.header-cta:hover, .btn-primary:hover { background: var(--blue-text); }
.header-cta .short { display: none; }

.btn-secondary { background: transparent; color: #fff; border-color: #3a3a3a; }
.btn-secondary:hover { border-color: #fff; }

button:disabled { opacity: 0.65; cursor: wait; }

.hero { padding: 2.4rem 0 3.2rem; }
.hero-grid { display: grid; gap: 1.75rem; align-items: end; }
.hero-mark { width: min(210px, 56vw); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.form-actions, .quote-layout .cta-row .btn-primary { }

.section {
  border-top: 1px solid #1c1c1c;
  padding: 4.25rem 0;
}

#problem, #work, #how, #who, #book, #quote, #testimonials { scroll-margin-top: calc(var(--header) + 0.75rem); }

.problems, .cards, .steps {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.problems article, .card, .step, .admin-card, .thanks, .noscript {
  background: #0a0a0a;
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.25rem;
}

.problems p, .card p, .step p { color: var(--muted); }

.problem-index {
  margin: 0;
  color: var(--blue-text);
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
}

.card:hover, .problems article:hover, .step:hover { border-color: var(--blue); }

.steps { list-style: none; padding: 0; margin-top: 1.8rem; }

.who-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}
.who-list li {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1;
}
.who-list li::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  background: var(--blue);
  transform: skewX(-18deg) translateY(-0.08em);
}

#testimonials .btn-secondary { margin-top: 1.4rem; }

.quote-layout { display: grid; gap: 1.6rem; }
.mailto-line, .privacy, .fine { color: var(--muted); }
.mailto-line { margin-top: 1rem; }
.mailto-line a, .privacy a, .site-footer a, .fine a, .admin-card a, .page-narrow a {
  color: #fff;
  text-underline-offset: 0.18em;
}

.form-status:not(:empty) {
  margin-bottom: 0.9rem;
  color: var(--danger);
}

form { display: grid; gap: 0.95rem; }
.form-row { display: grid; gap: 0.95rem; }
.field { display: grid; gap: 0.4rem; }

label, .label-text {
  font-size: 0.95rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--muted); }

input, textarea {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid #2e2e2e;
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a3a3a3; }
input:focus, textarea:focus { border-color: var(--blue); }

.field-error { color: var(--danger); font-size: 0.92rem; }
.field-error:empty { display: none; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy { font-size: 0.95rem; }

.thanks h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 0.95;
}

.noscript { margin-bottom: 1rem; }

.quote-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin: 1.4rem 0 0; }
.quote-list figure { margin: 0; border-left: 4px solid var(--blue); padding-left: 1rem; }
.quote-list blockquote { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.quote-list figcaption { margin-top: 0.55rem; color: var(--muted); }

.site-footer { border-top: 1px solid #1c1c1c; padding: 2.4rem 0 3rem; }
.footer-grid { display: flex; gap: 1rem; align-items: flex-start; }
.footer-grid img { width: 36px; height: 36px; }
.footer-name {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.site-footer p { color: var(--muted); }

.page-narrow { padding: 2.5rem 0 4rem; }
.page-narrow > h1 { margin-bottom: 1rem; }
.stack { max-width: 28rem; }
.logout { margin: 1rem 0 1.2rem; }
.admin-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.admin-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0.25rem 0 0.45rem; }
.meta {
  color: var(--blue-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.msg { white-space: pre-wrap; margin-top: 0.7rem; }


.book-card {
  margin-top: 1.6rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.7rem;
  overflow: hidden;
}
.book-card iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.book-card + .mailto-line { margin-top: 1rem; }
#book .fine { margin-top: 0.7rem; }

@media (max-width: 719px) {
  .book-card iframe { height: 800px; }
}

@media (max-width: 420px) {
  .header-cta .full { display: none; }
  .header-cta .short { display: inline; }
}

@media (min-width: 720px) {
  .logo img { height: 42px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .problems, .cards { grid-template-columns: 1fr 1fr; }
  .quote-layout .btn-primary { width: auto; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.7fr);
    align-items: center;
    gap: 2rem;
  }
  .hero-mark { width: min(100%, 420px); justify-self: end; }
  .section { padding: 6rem 0; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .quote-layout { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
}

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