:root {
  --paper: #FBF8F3;
  --paper-deep: #F3EEE5;
  --ink: #1A1A1A;
  --ink-soft: #5E5A54;
  --rule: rgba(26, 26, 26, 0.12);
  --accent: #1F5C4A;
  --accent-deep: #184A3B;
  --card: #FFFEFB;
  --warn: #8A3B2C;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(31, 92, 74, 0.16);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

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

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

/* Top bar */

.topbar {
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-link {
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topbar-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 11vh, 7rem) 0 clamp(4rem, 10vh, 6rem);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 2.2rem + 5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.signup {
  margin-top: 2.5rem;
  max-width: 30rem;
  display: flex;
  gap: 0.5rem;
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup input::placeholder {
  color: rgba(26, 26, 26, 0.42);
}

.signup input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 92, 74, 0.16);
}

.signup button {
  flex: 0 0 auto;
  height: 3.25rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.signup button:hover {
  background: var(--accent-deep);
}

.signup button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.signup button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.note {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.note.is-ok {
  color: var(--accent);
}

.note.is-error {
  color: var(--warn);
}

.price {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* Steps */

.steps-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.step h3 {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.step p {
  margin-top: 0.5rem;
  max-width: 24ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* Hero: copy and pass card, stacked on mobile, side by side from 1024px */

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.hero-card {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

/* Pass card (shared by index and sample) */

.credential {
  --tilt: -2deg;
  position: relative;
  width: min(660px, 100%);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: var(--card);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.05),
    0 18px 32px -12px rgba(26, 26, 26, 0.16),
    0 44px 80px -30px rgba(26, 26, 26, 0.28);
  transform: rotate(var(--tilt));
  animation: drift 10s ease-in-out infinite alternate;
}

.credential::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(31, 92, 74, 0.16);
  border-radius: 3px;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: rotate(var(--tilt)) translateY(0);
  }
  to {
    transform: rotate(var(--tilt)) translateY(-10px);
  }
}

.credential-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.credential-head .wordmark {
  font-size: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

.credential-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}

.credential-title {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 2.6vw, 1.375rem);
  line-height: 1.35;
  color: var(--ink-soft);
}

.credential-examiner {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.credential-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.credential-date {
  font-size: 0.9375rem;
}

.credential-id {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.625rem;
  line-height: 1;
  color: var(--accent);
}

/* Footer */

.site-foot {
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

.site-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-foot p {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Sample record */

.record-main {
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 7rem);
}

.record {
  --tilt: 0deg;
  width: min(880px, 100%);
  margin: 0 auto;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  text-align: center;
  transform: none;
  animation: none;
}

.record .credential-head {
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.record .credential-head .wordmark {
  font-size: 1.75rem;
}

.record-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.record .credential-title {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
}

.record .credential-examiner {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.record-line {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.record-foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.record-foot .verdict {
  font-size: 2.25rem;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  font-size: 0.9375rem;
}

.record-meta .credential-id {
  margin-top: 0;
}

.record-foot .record-line {
  margin-top: 0;
}

/* Wide screens: two columns in the hero */

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

  .hero-card {
    margin-top: 0;
  }
}

/* Small screens */

@media (max-width: 760px) {
  .topbar-inner {
    height: 64px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .signup {
    flex-direction: column;
  }

  .signup button {
    width: 100%;
  }

  .credential {
    --tilt: -1deg;
    gap: 1.75rem;
  }

  .credential-foot {
    align-items: flex-end;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 2.25rem);
  }

  .credential-head .wordmark {
    font-size: 1.125rem;
  }

  .verdict {
    font-size: 1.375rem;
  }

  .record-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credential {
    animation: none;
  }

  .topbar-link,
  .signup input,
  .signup button {
    transition: none;
  }
}
