:root {
  /* LYBL brand — calm, welcoming, modern teals + warm butter accents */
  --bg: #f7faf9;
  --bg-soft: #fbfdfc;
  --paper: #ffffff;
  --ink: #171a21;
  --ink-2: #3d434f;
  --ink-3: #7a8290;
  --rule: #e3eceb;
  --rule-soft: #eef4f3;

  /* Primary — deep teal */
  --moss: #007780;
  --moss-2: #3eb6ac;
  --moss-soft: #aae1d0;

  /* Accent — warm butter yellow */
  --terracotta: #d49314;   /* readable yellow for small text/labels */
  --terracotta-bright: #fdb735;  /* bright brand yellow — large decorative only */
  --terracotta-soft: #fed486;

  --butter: #fdb735;
  --butter-soft: #feeecb;

  --rose: #007780;

  --shadow-sm: 0 1px 0 rgba(23, 26, 33, 0.04), 0 1px 2px rgba(23, 26, 33, 0.04);
  --shadow-md: 0 1px 0 rgba(23, 26, 33, 0.04), 0 6px 18px -8px rgba(0, 119, 128, 0.14);
  --shadow-lg: 0 1px 0 rgba(23, 26, 33, 0.04), 0 24px 48px -24px rgba(0, 119, 128, 0.22);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(253, 183, 53, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(170, 225, 208, 0.32), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid var(--moss-soft);
  transition: border-color 160ms ease, color 160ms ease;
}
a:hover {
  border-bottom-color: var(--moss);
}

/* Layout shell */
.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 22px 160px;
}
@media (min-width: 720px) {
  .shell {
    padding: 56px 32px 200px;
  }
}

/* Header */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  position: relative;
  box-shadow: inset 0 0 0 3px var(--bg);
}
.brand-dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--terracotta-bright);
  border-radius: 50%;
}
.brand-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Hero */
.hero {
  position: relative;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--moss);
}
.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-name {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px 7px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-name-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-name-input {
  border: none;
  background: none;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  width: 140px;
  padding: 0;
}
.hero-name-input::placeholder {
  color: var(--ink-3);
  font-style: italic;
}

/* Progress card */
.progress {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}
.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.progress-count {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.progress-count em {
  font-style: normal;
  color: var(--ink-3);
  font-size: 18px;
  margin-left: 2px;
}
.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--moss) 0%, var(--moss-2) 100%);
  border-radius: 999px;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-pellets {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pellet {
  flex: 1 1 0;
  min-width: 22px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  transition: all 220ms ease;
  position: relative;
}
.pellet.done {
  background: var(--moss);
  border-color: var(--moss);
  color: #f6f1e8;
}
.pellet.active {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

/* Reassurance strip */
.reassure {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--moss-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 36px;
  border: 1px solid rgba(47, 74, 59, 0.12);
}
.reassure-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  margin-top: 1px;
}
.reassure-text {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.reassure-text strong {
  color: var(--ink);
  font-weight: 500;
}

/* Section header */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 48px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.section-head-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.section-head-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Step card */
.step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.step.open {
  box-shadow: var(--shadow-md);
  border-color: var(--rule);
}
.step.completed {
  background: var(--moss-soft);
  border-color: rgba(47, 74, 59, 0.18);
}
.step.completed .step-num {
  background: var(--moss);
  color: #f6f1e8;
  border-color: var(--moss);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  width: 100%;
  text-align: left;
}
.step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  transition: all 220ms ease;
}
.step-titles {
  flex: 1;
  min-width: 0;
}
.step-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.step.completed .step-eyebrow {
  color: var(--moss);
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.step-chev {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}
.step.open .step-chev {
  transform: rotate(180deg);
  color: var(--ink);
}

.step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.step.open .step-body {
  grid-template-rows: 1fr;
}
.step-body-inner {
  overflow: hidden;
}
.step-body-pad {
  padding: 4px 20px 22px 20px;
}
@media (min-width: 720px) {
  .step-body-pad {
    padding: 4px 28px 26px 72px;
  }
}

.step-summary {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  text-wrap: pretty;
}

/* Task / checklist */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px 18px;
}
.task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 8px;
  border-radius: 10px;
  transition: background 160ms ease;
  cursor: pointer;
}
.task:hover {
  background: var(--bg);
}
.task-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 180ms ease;
}
.task.done .task-check {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--bg-soft);
}
.task-check svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.task.done .task-check svg {
  opacity: 1;
  transform: scale(1);
}
.task-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding-top: 1px;
}
.task.done .task-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--rule);
}
.task-text small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 2px;
  text-decoration: none;
}

/* Callout */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0;
  border: 1px solid transparent;
}
.callout strong {
  font-weight: 500;
  color: var(--ink);
}
.callout-info {
  background: var(--butter-soft);
  border-color: rgba(212, 147, 20, 0.22);
  color: #7a5c10;
}
.callout-warn {
  background: var(--terracotta-soft);
  border-color: rgba(212, 147, 20, 0.32);
  color: #6f4a08;
}
.callout-tip {
  background: var(--moss-soft);
  border-color: rgba(0, 119, 128, 0.22);
  color: #00565c;
}
.callout-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  margin-top: -1px;
}
.callout-info .callout-icon {
  background: var(--terracotta-bright);
  color: #fff;
}
.callout-warn .callout-icon {
  background: var(--terracotta);
  color: #fff;
}
.callout-tip .callout-icon {
  background: var(--moss);
  color: #fff;
}

/* Credential pair (login boxes) */
.creds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}
@media (min-width: 520px) {
  .creds {
    grid-template-columns: 1fr 1fr;
  }
}
.cred {
  background: var(--bg-soft);
  border: 1px dashed var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cred-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.cred-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}
.cred-copy {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: all 160ms ease;
}
.cred-copy:hover {
  color: var(--moss);
  border-color: var(--moss);
}
.cred-copy.copied {
  background: var(--moss);
  color: var(--bg-soft);
  border-color: var(--moss);
}

/* Action button */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 180ms ease;
  text-decoration: none;
  border-bottom: none;
}
.btn-primary {
  background: var(--moss);
  color: var(--bg-soft);
}
.btn-primary:hover {
  background: #005a62;
  border-bottom: none;
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-secondary:hover {
  border-color: var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
}

/* Browser bar mockup */
.browser {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.browser-bar {
  flex: 1;
  margin-left: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-bar-lock {
  color: var(--moss);
  font-size: 11px;
}
.browser-bar-emph {
  color: var(--moss);
  font-weight: 500;
}
.browser-body {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(31, 28, 23, 0.025) 12px 13px);
  min-height: 120px;
  text-align: center;
}
.browser-logo {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.browser-logo em {
  color: var(--moss);
  font-style: italic;
}
.browser-form {
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.browser-input {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: left;
}
.browser-btn {
  background: var(--moss);
  color: var(--bg-soft);
  border-radius: 6px;
  padding: 7px;
  font-size: 11px;
  text-align: center;
  font-weight: 500;
}

/* Module grid (Etrainu) */
.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}
@media (min-width: 520px) {
  .modules {
    grid-template-columns: 1fr 1fr;
  }
}
.module {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition: all 180ms ease;
}
.module:hover {
  border-color: var(--ink-3);
}
.module.done {
  background: var(--moss-soft);
  border-color: rgba(47, 74, 59, 0.2);
}
.module.done .module-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(47, 74, 59, 0.4);
}
.module-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.module.done .module-num {
  background: var(--moss);
  color: var(--bg-soft);
  border-color: var(--moss);
}
.module-text {
  flex: 1;
  color: var(--ink);
}

/* Final celebration */
.celebrate {
  background: linear-gradient(160deg, var(--moss) 0%, #003a40 100%);
  color: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  margin: 48px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.celebrate-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 14px;
}
.celebrate-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.celebrate-title em {
  color: var(--butter);
  font-style: italic;
}
.celebrate-text {
  font-size: 15.5px;
  color: rgba(246, 241, 232, 0.78);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* Support footer */
.support {
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.support-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
  font-weight: 400;
  color: var(--ink);
}
.support-lede {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 20px;
  max-width: 50ch;
}
.support-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .support-list {
    grid-template-columns: 1fr 1fr;
  }
}
.support-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
}
.support-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.support-item-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

/* Sticky mobile progress */
.sticky-prog {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  transform: translateY(120%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-prog.visible {
  transform: translateY(0);
}
.sticky-prog-text {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
}
.sticky-prog-text small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sticky-prog-bar {
  flex: 0 0 60px;
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.sticky-prog-fill {
  height: 100%;
  background: var(--moss);
  border-radius: 999px;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 720px) {
  .sticky-prog {
    display: none;
  }
}

/* Reset button */
.reset {
  margin-top: 32px;
  text-align: center;
}
.reset button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  transition: all 160ms ease;
}
.reset button:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Misc helpers */
.divider {
  height: 1px;
  background: var(--rule);
  margin: 22px 0;
  border: none;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--butter-soft);
  color: #7a5c10;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
.tag-urgent {
  background: var(--terracotta-soft);
  color: #6f4a08;
}

/* Field block: e.g. employment items */
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 18px;
}
@media (min-width: 520px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 180ms ease;
}
.field:hover {
  border-color: var(--ink-3);
}
.field.done {
  background: var(--moss-soft);
  border-color: rgba(47, 74, 59, 0.18);
}
.field.done .field-name {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(47, 74, 59, 0.35);
}
.field-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.field.done .field-check {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--bg-soft);
}
.field-name {
  color: var(--ink);
}

/* Small heading inside step body */
.sub-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Footer signature */
.signoff {
  text-align: center;
  padding: 40px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}
.signoff em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  display: block;
  margin-top: 6px;
}

/* ============================================================
   LYBL Logomark — used across acknowledge.html
   ============================================================ */

.lybl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.lybl-mark {
  position: relative;
  display: block;
  border-radius: 50%;
  background: var(--moss);
  flex: 0 0 auto;
}
.lybl-mark::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--terracotta-bright);
}
.lybl-mark::before {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: var(--moss);
}
.lybl-wordmark {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lybl-wordmark em {
  font-style: italic;
  color: var(--moss);
}
.lybl-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1;
}

/* Letterhead variant — large + with tagline */
.lybl-letterhead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.lybl-letterhead .lybl-mark {
  width: 44px;
  height: 44px;
}
.lybl-letterhead .lybl-wordmark {
  font-size: 26px;
}
.lybl-letterhead-meta {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lybl-letterhead-meta strong {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 2px;
}

/* Signature pad watermark logo */
.sig-watermark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  opacity: 0.18;
  pointer-events: none;
}
.sig-watermark::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--terracotta-bright);
}

/* Acknowledgment seal — circular mark with thin teal ring */
.ack-seal {
  position: absolute;
  top: -28px;
  right: 26px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ack-seal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--moss);
}
.ack-seal-inner {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ack-seal-inner::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--terracotta-bright);
}

/* Unlock card — small logo lockup */
.unlock-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.18);
}
.unlock-lockup .lybl-mark {
  width: 24px;
  height: 24px;
  background: var(--bg-soft);
}
.unlock-lockup .lybl-mark::after {
  background: var(--terracotta-bright);
}
.unlock-lockup .lybl-mark::before {
  background: var(--bg-soft);
}
.unlock-lockup-text {
  font-family: var(--font-display);
  color: var(--bg-soft);
  font-size: 16px;
}
.unlock-lockup-text em {
  color: var(--butter);
  font-style: italic;
}

/* Footer signoff lockup */
.signoff-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0;
}
.signoff-logo .lybl-mark {
  width: 28px;
  height: 28px;
}

/* Custom uploaded logo (image) - replaces .lybl-mark */
.lybl-mark.lybl-mark-img {
  background: transparent;
  overflow: hidden;
}
.lybl-mark.lybl-mark-img::after,
.lybl-mark.lybl-mark-img::before {
  display: none;
}
.lybl-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ack-seal.has-img {
  background: var(--paper);
}
.ack-seal.has-img .ack-seal-inner {
  background: transparent;
  inset: 12px;
  overflow: hidden;
}
.ack-seal.has-img .ack-seal-inner::after {
  display: none;
}
.ack-seal.has-img .ack-seal-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sig-watermark.has-img {
  background: transparent;
  opacity: 0.25;
  width: 28px;
  height: 28px;
}
.sig-watermark.has-img::after { display: none; }
.sig-watermark.has-img img {
  width: 100%; height: 100%; object-fit: contain;
}

/* Logo uploader (inside tweaks panel) */
.twk-uploader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 7px;
  background: rgba(255,255,255,.5);
}
.twk-uploader-preview {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--moss);
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}
.twk-uploader-preview img { width: 100%; height: 100%; object-fit: contain; }
.twk-uploader-preview.empty::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--terracotta-bright);
}
.twk-uploader label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 6px 8px;
  background: rgba(0,0,0,.06);
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
}
.twk-uploader label:hover { background: rgba(0,0,0,.1); }
.twk-uploader input[type="file"] { display: none; }
.twk-uploader button {
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(0,0,0,.06);
  border-radius: 6px;
  color: var(--ink-3);
}
.twk-uploader button:hover { color: var(--terracotta); }

/* ============================================================
   Acknowledgment letter (acknowledge.html)
   ============================================================ */

.letter-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .letter-section {
    grid-template-columns: 84px 1fr;
    gap: 32px;
    padding: 36px 0;
  }
}
.letter-section:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.letter-section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--terracotta-bright);
  letter-spacing: -0.02em;
}
@media (min-width: 720px) {
  .letter-section-num {
    font-size: 54px;
    padding-top: 4px;
  }
}

.letter-section-body {
  min-width: 0;
}
.letter-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.letter-section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 400;
  text-wrap: balance;
}
.letter-section-prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.letter-section-prose p {
  margin: 0 0 14px;
}
.letter-section-prose p:last-child {
  margin-bottom: 0;
}
.letter-section-prose strong {
  color: var(--ink);
  font-weight: 500;
}
.letter-section-prose ul {
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
}
.letter-section-prose li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15.5px;
  line-height: 1.55;
}
.letter-section-prose li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta-bright);
}
.letter-section-prose li strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   Acknowledgment & signature block
   ============================================================ */

.ack {
  margin-top: 56px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
@media (min-width: 720px) {
  .ack {
    padding: 40px;
  }
}
.ack-stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  border-radius: 999px;
}
.ack-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.ack-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 400;
  text-wrap: balance;
}
.ack-lede {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 56ch;
  text-wrap: pretty;
}

.ack-declaration {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 22px;
  cursor: pointer;
  transition: all 180ms ease;
}
.ack-declaration:hover {
  border-color: var(--ink-3);
}
.ack-declaration.checked {
  background: var(--moss-soft);
  border-color: rgba(47, 74, 59, 0.22);
}
.ack-declaration-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  margin-top: 1px;
  transition: all 180ms ease;
}
.ack-declaration.checked .ack-declaration-check {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--bg-soft);
}
.ack-declaration-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.ack-declaration-text small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 3px;
}

.ack-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
@media (min-width: 560px) {
  .ack-fields {
    grid-template-columns: 1.4fr 1fr;
  }
}
.ack-field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.ack-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: all 160ms ease;
}
.ack-input:focus {
  border-color: var(--moss);
  background: var(--paper);
}
.ack-date {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-2);
}

/* Signature pad */
.sig-wrap {
  margin-bottom: 22px;
}
.sig-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sig-clear {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: all 160ms ease;
}
.sig-clear:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.sig-clear:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sig-pad {
  position: relative;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  height: 140px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}
.sig-pad.has-sig {
  border-style: solid;
  border-color: rgba(47, 74, 59, 0.25);
}
.sig-pad canvas {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, transparent calc(100% - 36px), var(--rule-soft) calc(100% - 36px), var(--rule-soft) calc(100% - 35px), transparent calc(100% - 35px));
}
.sig-pad-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-3);
  transition: opacity 200ms ease;
}
.sig-pad.has-sig .sig-pad-hint {
  opacity: 0;
}
.sig-pad-x {
  position: absolute;
  left: 18px;
  bottom: 28px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-3);
  font-size: 20px;
  pointer-events: none;
}

.ack-recipients {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.ack-recipients-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.ack-recipients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recipient-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.recipient-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.ack-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.ack-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--bg-soft);
  font-size: 15px;
  font-weight: 500;
  transition: all 180ms ease;
  border: none;
}
.ack-submit:hover:not(:disabled) {
  background: #005a62;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.ack-submit:disabled {
  background: var(--rule);
  color: var(--ink-3);
  cursor: not-allowed;
}
.ack-submit-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* Unlock card */
.unlock {
  margin-top: 28px;
  background: linear-gradient(160deg, var(--moss) 0%, #003a40 100%);
  color: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.unlock.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.unlock::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 217, 182, 0.18) 0%, transparent 70%);
}
.unlock-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.unlock-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.unlock-title em {
  color: var(--butter);
  font-style: italic;
}
.unlock-text {
  font-size: 15px;
  color: rgba(246, 241, 232, 0.78);
  margin: 0 0 22px;
  max-width: 48ch;
  line-height: 1.6;
}
.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}
.unlock-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: all 180ms ease;
  text-decoration: none;
  border: none;
}
.unlock-cta:hover {
  background: #ffce5d;
  transform: translateY(-1px);
  border-bottom: none;
}
.unlock-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--bg-soft);
  font-size: 14px;
  border: 1px solid rgba(246, 241, 232, 0.28);
  transition: all 180ms ease;
  text-decoration: none;
}
.unlock-secondary:hover {
  background: rgba(246, 241, 232, 0.08);
  border-color: rgba(246, 241, 232, 0.5);
  border-bottom: 1px solid rgba(246, 241, 232, 0.5);
}

.unlock-receipt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 232, 0.15);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(246, 241, 232, 0.62);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.unlock-receipt strong {
  color: var(--butter);
  font-weight: 400;
}

/* Lock state */
.lock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 14px;
}
.lock-row-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  flex: 0 0 auto;
}

/* TOC / Letter overview — clickable tabs */
.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 20px;
  padding: 0;
  background: transparent;
  border: none;
}
@media (min-width: 560px) {
  .toc {
    grid-template-columns: repeat(4, 1fr);
  }
}
.toc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
  text-decoration: none;
  transition: all 180ms ease;
  text-align: left;
  position: relative;
}
.toc-row:hover {
  color: var(--moss);
  border-color: var(--moss);
  border-bottom: 1px solid var(--moss);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.toc-row.active {
  background: var(--moss);
  color: var(--bg-soft);
  border-color: var(--moss);
}
.toc-row.active .toc-row-num {
  background: var(--bg-soft);
  color: var(--moss);
  border-color: transparent;
}
.toc-row.complete {
  border-color: rgba(0, 119, 128, 0.32);
  background: var(--moss-soft);
}
.toc-row.complete .toc-row-num {
  background: var(--moss);
  color: var(--bg-soft);
  border-color: var(--moss);
}
.toc-row-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  width: 24px;
  letter-spacing: 0;
  transition: all 180ms ease;
}
.toc-row-label {
  flex: 1;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

/* Top nav between pages */
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.crumb:hover {
  color: var(--moss);
  border-bottom: 1px solid var(--moss);
  border-color: var(--moss);
}
