/* GapFree public-site prototype. Tokens from docs/brand. */

:root {
  --navy: #0a2540;
  --teal: #00c4b4;
  --teal-deep: #007a70;
  --mist: #e6faf8;
  --cloud: #f5f8fa;
  --line: #d5dde5;
  --ink: #1d2733;
  --slate: #44525f;
  --white: #fff;
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.logo {
  display: block;
  height: 52px;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.96);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.field span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.form-note,
.held {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 16px;
}

.sample {
  border: 1px dashed var(--teal-deep);
  border-radius: 16px;
  background: var(--white);
  padding: 18px 20px;
}

.sample-kicker {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sample ul {
  margin: 0;
  padding-left: 1.1em;
}

.sample p {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 15px;
}

html.lock,
html.lock body {
  height: 100%;
  overflow: hidden;
}

/* ——— A. The letter ——— */

.va {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 140px;
}

.va h1 {
  margin: 28px 0 16px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.va .lede {
  margin: 0 0 28px;
  font-size: 1.25rem;
  line-height: 1.45;
}

.va figure {
  margin: 8px 0 36px;
}

.va figcaption {
  margin-top: 10px;
  color: var(--slate);
  font-size: 16px;
}

.va h2 {
  margin: 40px 0 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.va p {
  margin: 0 0 16px;
}

.va ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.va ol li {
  margin: 0 0 12px;
}

.va-band {
  margin: 36px -24px;
  padding: 28px 24px;
  background: var(--mist);
}

.va form,
.vc form,
.vb form {
  margin-top: 8px;
}

.va-foot {
  margin-top: 48px;
  color: var(--slate);
  font-size: 15px;
}

/* ——— B. The desk ——— */

.vb {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100vh;
  background: var(--cloud);
}

.vb-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 28px 22px 120px;
  background: var(--navy);
  color: var(--white);
  overflow: auto;
}

.vb-rail nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vb-rail button {
  width: 100%;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.vb-rail button[aria-current="true"] {
  background: rgba(0, 196, 180, 0.16);
  box-shadow: inset 3px 0 0 var(--teal);
}

.vb-rail .logo {
  width: 100%;
  height: auto;
}

.vb-rail .rail-price {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.vb-rail .rail-price strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.vb-canvas {
  height: 100vh;
  overflow: auto;
  padding: 48px 48px 140px;
}

.vb-canvas h1 {
  margin: 0 0 12px;
  max-width: 16ch;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.vb-canvas .pane {
  max-width: 640px;
}

.vb-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vb-steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.vb-steps b {
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ——— C. The walk ——— */

.vc {
  height: 100vh;
  overflow: auto;
  scroll-snap-type: y mandatory;
  background: var(--navy);
}

.vc-chapter {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 72px 88px 120px 48px;
  scroll-snap-align: start;
}

.vc-chapter h1,
.vc-chapter h2 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.vc-1 {
  background: var(--navy);
  color: var(--white);
}

.vc-1 p,
.vc-3 p,
.vc-4 p {
  max-width: 38rem;
  font-size: 1.25rem;
}

.vc-2 {
  background: var(--cloud);
  color: var(--ink);
}

.vc-2 .vc-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.vc-2 h2 {
  color: var(--navy);
  max-width: 12ch;
}

.vc-3 {
  background: var(--mist);
  color: var(--ink);
}

.vc-3 h2 {
  color: var(--navy);
}

.vc-4 {
  background: var(--white);
  color: var(--ink);
}

.vc-4 h2 {
  color: var(--navy);
}

.vc-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}

.vc-rail button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.12);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vc-1 .vc-rail button,
.vc-rail button.on-navy {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.vc-rail button[aria-current="true"] {
  background: var(--teal);
  color: var(--navy);
}

.vc-rail.on-dark button {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.vc-rail.on-dark button[aria-current="true"] {
  background: var(--teal);
  color: var(--navy);
}

input[readonly] {
  background: var(--cloud);
  color: var(--slate);
}

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

/* ——— Prototype chrome. Not part of the brand. ——— */

.proto {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(560px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.proto-bar,
.proto-state {
  pointer-events: auto;
}

.proto-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 13px;
}

.proto-bar button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.proto-label {
  min-width: 180px;
  padding: 0 8px;
  text-align: center;
}

.proto-state {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #141414;
  color: #d5d5d5;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
}

@media (max-width: 800px) {
  .vb {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
  }

  .vb-rail {
    height: auto;
    padding: 12px 12px 8px;
    gap: 8px;
  }

  .vb-rail nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .vb-rail button {
    width: auto;
    white-space: nowrap;
  }

  .vb-rail .rail-price {
    display: none;
  }

  .vb-canvas {
    height: auto;
    padding: 24px 18px 150px;
  }

  .vc-chapter {
    padding: 64px 18px 150px;
  }

  .vc-2 .vc-split {
    grid-template-columns: 1fr;
  }

  .vc-rail {
    top: 12px;
    right: auto;
    bottom: auto;
    left: 50%;
    flex-direction: row;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .vc {
    scroll-snap-type: none;
  }
}
