@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --ink: #091113;
  --ink-soft: #314447;
  --ink-muted: #68797c;
  --paper: #f6f3ee;
  --paper-soft: #fbfaf7;
  --paper-warm: #ede8df;
  --teal: #0b6772;
  --teal-dark: #061a1d;
  --teal-soft: #dcecee;
  --gold: #b08a4a;
  --clay: #8d5f4b;
  --line: rgba(9, 17, 19, 0.12);
  --line-dark: rgba(246, 243, 238, 0.16);
  --shadow: 0 24px 80px rgba(6, 26, 29, 0.14);
  --max: 1180px;
  --radius: 8px;
  --font-title: 'Sora', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--teal-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(246, 243, 238, 0.12);
  background: rgba(6, 26, 29, 0.92);
  color: var(--paper);
  backdrop-filter: blur(14px);
}

.site-header.light {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 238, 0.92);
  color: var(--ink);
}

.nav-inner {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 142px;
  height: auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--teal);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.nav-actions a {
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.86;
}

.hero-capture {
  background: var(--teal-dark);
  color: var(--paper);
  position: relative;
}

.hero-capture::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 243, 238, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 243, 238, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.62fr);
  gap: 56px;
  align-items: start;
}

.hero-logo {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #9fd0d5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 750;
}

h3 {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 700;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(246, 243, 238, 0.76);
  font-size: clamp(18px, 1.8vw, 22px);
}

.hero-list {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 12px;
  color: rgba(246, 243, 238, 0.86);
}

.check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159, 208, 213, 0.44);
  border-radius: 50%;
  color: #9fd0d5;
  font-weight: 800;
  line-height: 1;
}

.capture-card {
  border: 1px solid rgba(246, 243, 238, 0.14);
  border-radius: var(--radius);
  background: rgba(246, 243, 238, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.capture-card-header {
  padding: 26px 26px 0;
}

.capture-card h2 {
  font-size: 24px;
}

.capture-card p {
  margin: 10px 0 0;
  color: var(--ink-muted);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px 26px 26px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(9, 17, 19, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 103, 114, 0.12);
}

.choice-field {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0 2px;
  border: 0;
}

.choice-field legend {
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(9, 17, 19, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.choice-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.button,
.copy-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #084e57, #0b6772);
  color: #fff;
  padding: 13px 20px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.button:hover,
.copy-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button.light {
  background: var(--paper);
  color: var(--teal-dark);
}

.microcopy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-status {
  min-height: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.success-panel {
  display: grid;
  gap: 14px;
  margin: 0 26px 26px;
  padding: 20px;
  border: 1px solid rgba(11, 103, 114, 0.18);
  border-radius: var(--radius);
  background: var(--teal-soft);
}

.success-panel[hidden] {
  display: none;
}

.success-panel h3 {
  font-size: 22px;
}

.success-panel p {
  margin: 0;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 84px 0;
}

.section.compact {
  padding: 56px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.56fr);
  gap: 48px;
  align-items: start;
}

.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
}

.value-grid,
.library-grid,
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.value-item,
.library-card,
.signal-card,
.note-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 22px;
}

.value-item strong,
.signal-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
}

.value-item p,
.signal-card p,
.library-card p {
  margin: 0;
  color: var(--ink-muted);
}

.profile-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-top {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.mock-body {
  padding: 22px;
}

.mock-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 750;
}

.mock-specialty {
  margin-top: 4px;
  color: var(--teal);
  font-weight: 700;
}

.mock-bio {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
}

.mock-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.mock-actions span {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 14px;
}

.dark-band {
  background: var(--teal-dark);
  color: var(--paper);
}

.dark-band .section {
  width: min(100% - 32px, var(--max));
}

.dark-band .kicker,
.dark-band .eyebrow {
  color: #9fd0d5;
}

.dark-band .lead,
.dark-band p {
  color: rgba(246, 243, 238, 0.74);
}

.dark-band .signal-card {
  border-color: var(--line-dark);
  background: rgba(246, 243, 238, 0.05);
}

.dark-band .signal-card p {
  color: rgba(246, 243, 238, 0.68);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--ink-muted);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.guide-layout {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 48px 0 96px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.86);
}

.guide-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}

.guide-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.guide-hero {
  padding: 72px 0 44px;
  background: var(--teal-dark);
  color: var(--paper);
}

.guide-hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.guide-hero p {
  max-width: 760px;
  color: rgba(246, 243, 238, 0.76);
  font-size: 20px;
}

.guide-content {
  display: grid;
  gap: 24px;
}

.guide-section {
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: clamp(24px, 4vw, 44px);
}

.guide-section > p {
  color: var(--ink-soft);
}

.numbered-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.numbered-title span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
}

.prep-list,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.prep-list li,
.plain-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  color: var(--ink-soft);
}

.prep-list li::before,
.plain-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--teal);
}

.timebar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.timebar div {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 12px;
}

.timebar strong {
  display: block;
  color: var(--teal);
  font-family: var(--font-title);
}

.template-box,
.copy-box,
.example-box {
  position: relative;
  margin-top: 18px;
  border: 1px solid rgba(11, 103, 114, 0.18);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}

.template-box pre,
.copy-box pre {
  overflow-x: auto;
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-button {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
}

.box-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.example-box {
  margin-top: 0;
}

.example-box .label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swap-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.swap-table th,
.swap-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.swap-table th {
  background: var(--teal-dark);
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 13px;
}

.swap-table tr:last-child td {
  border-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
}

.cta-band {
  border-radius: var(--radius);
  background: var(--teal-dark);
  color: var(--paper);
  padding: clamp(26px, 5vw, 46px);
}

.cta-band p {
  color: rgba(246, 243, 238, 0.74);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error {
  color: #9b2f20;
}

@media (max-width: 920px) {
  .hero-inner,
  .split,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid,
  .library-grid,
  .signal-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }

  .timebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-inner {
    min-height: 64px;
  }

  .brand img {
    width: 118px;
  }

  .nav-actions {
    display: none;
  }

  .hero-inner {
    padding: 58px 0 48px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .field-grid,
  .choice-field,
  .guide-nav,
  .timebar {
    grid-template-columns: 1fr;
  }

  .capture-card-header,
  .lead-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .swap-table {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  .site-header,
  .guide-nav,
  .cta-actions,
  .copy-button,
  .footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .guide-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .guide-section {
    break-inside: avoid;
    border-color: #ddd;
    margin-bottom: 18px;
  }
}
