/* Crypto Protection Consulting — direction: Recovery Sheet
   Fonts: Besley (headlines), Public Sans (everything else). See DIRECTION.md. */

:root {
  --paper: #F4F4F1;
  --white: #FFFFFF;
  --ink: #1B1D1F;
  --slate: #5B6160;
  --rule: #C8CAC5;
  --banknote: #2F5D4A;
  --banknote-deep: #24493A;
  --mint: #E4ECE6;

  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --t-small: 0.875rem;   /* 14 */
  --t-body: 1.0625rem;   /* 17 */
  --t-lede: 1.25rem;     /* 20 */
  --t-h3: 1.5rem;        /* 24 */
  --t-h2: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3.4vw, 3.5rem);

  --measure: 66ch;
  --wrap: 1120px;
  --gutter: 24px;
  --section: clamp(64px, 5vw + 32px, 104px);
}

/* Base ------------------------------------------------------------------- */

*, *::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: 400 var(--t-body) / 1.6 var(--sans);
  font-feature-settings: "kern", "liga";
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: var(--t-h1); line-height: 1.08; }
h2 { font-size: var(--t-h2); line-height: 1.15; }
h3 { font-size: var(--t-h3); line-height: 1.25; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Buttons and links ------------------------------------------------------ */

.button {
  display: inline-block;
  padding: 15px 24px;
  background: var(--banknote);
  color: var(--white);
  font: 600 1rem / 1 var(--sans);
  text-decoration: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.button:hover { background: var(--banknote-deep); }
.button:focus-visible { outline-offset: 4px; }
.button-small { padding: 11px 18px; font-size: 0.9375rem; }

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.text-link:hover { color: var(--banknote); text-decoration-color: currentColor; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
}

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 150ms ease;
}
.site-nav a:hover { color: var(--ink); }

@media (min-width: 760px) {
  .site-nav { display: block; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding-block: clamp(48px, 6vw, 96px);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy .lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  margin-top: 28px;
  max-width: 52ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.note {
  margin-top: 20px;
  font-size: var(--t-small);
  color: var(--slate);
  max-width: 48ch;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
  }
}

/* The recovery sheet ----------------------------------------------------- */

.sheet { margin: 0; }

.sheet-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 20px 24px 24px;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--slate);
}
.sheet-head span:first-child { color: var(--ink); }

.slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  counter-reset: slot;
}

.slots li {
  counter-increment: slot;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-bottom: 1px solid var(--rule);
}

.slots li::before {
  content: counter(slot);
  flex: 0 0 1.6em;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
  text-align: right;
}

.bar {
  display: block;
  height: 10px;
  width: var(--w, 55%);
  background: var(--ink);
  border-radius: 1px;
  transform-origin: left center;
  animation: print 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 120ms);
}

@keyframes print {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sheet figcaption {
  margin-top: 14px;
  font-size: var(--t-small);
  color: var(--slate);
  max-width: 46ch;
}

@media (min-width: 480px) {
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Statement -------------------------------------------------------------- */

.statement {
  border-top: 1px solid var(--rule);
  padding-block: clamp(40px, 5vw, 72px);
}

.statement p {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.4;
  max-width: 34ch;
}

/* Sections --------------------------------------------------------------- */

.section {
  border-top: 1px solid var(--rule);
  padding-block: var(--section);
  scroll-margin-top: 64px;
}

.section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.section-head p {
  margin-top: 16px;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--slate);
  max-width: 56ch;
}

/* Services --------------------------------------------------------------- */

.services {
  display: grid;
  gap: 0;
}

.service {
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.service:first-child { border-top: 0; padding-top: 0; }

.service-summary {
  margin-top: 12px;
  font-weight: 500;
}

.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 1px;
  background: var(--banknote);
}

.service-meta {
  margin-top: 20px;
  font-size: var(--t-small);
  color: var(--slate);
}

@media (min-width: 800px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service {
    padding: 0 32px;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .service:first-child { padding-left: 0; border-left: 0; }
  .service:last-child { padding-right: 0; }
}

/* Who it is for ---------------------------------------------------------- */

.who-grid {
  display: grid;
  gap: 32px;
}

.who h3 { margin-bottom: 12px; }

.not-for {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  max-width: var(--measure);
}

@media (min-width: 800px) {
  .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

/* How it works ----------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  padding: 24px 0 32px;
  border-top: 1px solid var(--ink);
}

.step-number {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--banknote);
  margin-bottom: 16px;
}

.steps h3 { font-size: var(--t-lede); margin-bottom: 10px; }
.steps p { font-size: 1rem; }

@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding-bottom: 0; }
}

/* How we work ------------------------------------------------------------ */

.principles-grid {
  display: grid;
  gap: 48px;
}

.principles {
  margin: 0;
  display: grid;
  gap: 24px;
}

.principles div {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.principles dt {
  font-weight: 600;
  margin-bottom: 6px;
}
.principles dd {
  margin: 0;
  color: var(--slate);
  max-width: 48ch;
}

.panel {
  background: var(--mint);
  padding: 32px;
  align-self: start;
}
.panel h3 {
  font-size: var(--t-lede);
  margin-bottom: 16px;
}
.panel p { font-size: 1rem; }

@media (min-width: 880px) {
  .principles-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .panel { position: sticky; top: 96px; }
}

/* Booking ---------------------------------------------------------------- */

.book-grid {
  display: grid;
  gap: 40px;
}

.book-copy p { margin-top: 16px; }
.book-copy p + p { margin-top: 0; }

.booking {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 32px 28px;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--slate); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--slate);
  border-radius: 3px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231B1D1F' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--banknote);
  outline-offset: 2px;
  border-color: var(--banknote);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 28px;
}
.field-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--banknote);
}
.field-check label { margin: 0; font-weight: 500; }

.form-note {
  margin-top: 16px;
  font-size: var(--t-small);
  color: var(--slate);
}

@media (min-width: 880px) {
  .book-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .booking { padding: 40px; }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 48px 40px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-contact { margin-top: 6px; font-size: 0.9375rem; }
.footer-contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
}
.footer-contact a:hover { color: var(--banknote); text-decoration-color: currentColor; }

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.site-footer nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--slate);
}
.site-footer nav a:hover { color: var(--ink); }

.footer-warning {
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  max-width: 60ch;
}

.footer-legal {
  font-size: var(--t-small);
  color: var(--slate);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 48px;
  }
  .footer-warning, .footer-legal { grid-column: 1 / -1; }
}

/* Narrow screens --------------------------------------------------------- */

@media (max-width: 479px) {
  :root { --gutter: 16px; }
  .header-row { gap: 16px; }
  .site-header .wordmark {
    white-space: normal;
    font-size: 0.9375rem;
    line-height: 1.15;
    max-width: 11em;
  }
  .sheet-card { padding: 16px 16px 20px; }
  .slots { column-gap: 16px; }
  .booking { padding: 24px 18px; }
  .actions .button { width: 100%; text-align: center; }
}

/* Reduced motion --------------------------------------------------------- */

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