:root {
  --rr-paper: #f4f2eb;
  --rr-surface: #fbfaf5;
  --rr-ink: #14161a;
  --rr-noir: #0f1110;
  --rr-noir-soft: #181b17;
  --rr-cream: #f4f2ea;
  --rr-purple: #6d28d9;
  --rr-purple-deep: #5b21b6;
  --rr-lime: #ace132;
  --rr-lime-deep: #93c61f;
  --rr-line-light: rgba(20, 22, 26, 0.16);
  --rr-line-dark: rgba(244, 242, 234, 0.17);
  --rr-display: "Bricolage Grotesque", sans-serif;
  --rr-body: "Instrument Sans", sans-serif;
  --rr-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html { background: var(--rr-noir); }

body {
  margin: 0;
  color: var(--rr-ink);
  background:
    linear-gradient(90deg, rgba(20, 22, 26, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--rr-paper);
  font-family: var(--rr-body);
  font-size: 17px;
  line-height: 1.55;
}

button,
input { font: inherit; }

.site-header {
  position: relative;
  z-index: 4;
  min-height: 78px;
  padding: 16px clamp(22px, 5vw, 72px);
  color: var(--rr-cream);
  background: var(--rr-noir);
  border-bottom: 1px solid var(--rr-line-dark);
}

.site-header img { max-height: 38px; width: auto; }

.site-header a,
.site-header button { color: inherit; }

main { width: 100%; max-width: none; margin: 0; padding: 0; }

.landing,
.course-home,
.invalid-access {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  background: var(--rr-noir);
}

.landing-copy {
  min-height: 650px;
  padding: clamp(68px, 9vw, 132px) clamp(28px, 7vw, 112px);
  color: var(--rr-cream);
  background:
    radial-gradient(circle at 14% 22%, rgba(172, 225, 50, 0.12), transparent 25%),
    linear-gradient(135deg, var(--rr-noir) 0%, var(--rr-noir-soft) 100%);
  border-right: 1px solid var(--rr-line-dark);
}

.landing-copy::before,
.course-home::before {
  display: block;
  margin-bottom: 28px;
  color: var(--rr-lime);
  font-family: var(--rr-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-copy::before { content: "Free diagnostic series / 5 lessons"; }

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--rr-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.landing h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 7.6vw, 7.3rem);
}

.landing-copy p { max-width: 670px; color: rgba(244, 242, 234, 0.76); }

.access-card {
  align-self: stretch;
  min-height: 650px;
  margin: 0;
  padding: clamp(62px, 8vw, 118px) clamp(28px, 6vw, 88px);
  background:
    linear-gradient(90deg, var(--rr-line-light) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--rr-paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.access-card::before {
  content: "Access the course";
  display: block;
  margin-bottom: 24px;
  color: var(--rr-purple);
  font-family: var(--rr-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.access-card h2 { font-size: clamp(2.1rem, 4vw, 4rem); }

label {
  color: var(--rr-ink);
  font-family: var(--rr-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--rr-ink);
  background: var(--rr-surface);
  border: 1px solid rgba(20, 22, 26, 0.3);
  border-radius: 9px;
  outline: none;
}

input:focus {
  border-color: var(--rr-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

button,
.button,
[type="submit"] {
  min-height: 50px;
  padding: 13px 20px;
  color: #fff;
  background: var(--rr-purple);
  border: 1px solid var(--rr-purple);
  border-radius: 9px;
  box-shadow: none;
  font-family: var(--rr-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

button:hover,
.button:hover,
[type="submit"]:hover { background: var(--rr-purple-deep); border-color: var(--rr-purple-deep); }

.landing::after {
  content: "One leak at a time. See what is costing the business before you buy another tactic.";
  grid-column: 1 / -1;
  display: block;
  padding: 30px clamp(28px, 7vw, 112px);
  color: var(--rr-cream);
  background: var(--rr-noir-soft);
  border-top: 1px solid var(--rr-line-dark);
  font-family: var(--rr-display);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.course-home {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  color: var(--rr-cream);
  background: var(--rr-noir);
}

.course-home::before {
  content: "Your diagnostic path";
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px clamp(28px, 6vw, 88px);
  border-bottom: 1px solid var(--rr-line-dark);
}

.course-home > :not(.course-map) {
  padding-left: clamp(28px, 6vw, 88px);
  padding-right: clamp(28px, 6vw, 88px);
}

.course-home h1,
.course-home h2 { color: var(--rr-cream); }

.course-home > h1,
.course-home > p,
.course-home > .course-ready {
  grid-column: 1 / -1;
}

.course-home > h1 {
  margin: 0;
  padding-top: clamp(58px, 8vw, 110px);
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.course-home > p { margin: 0; padding-top: 18px; color: rgba(244, 242, 234, 0.72); }

.course-map {
  grid-column: 1 / -1;
  margin-top: clamp(54px, 7vw, 92px);
  padding: clamp(54px, 7vw, 96px) clamp(28px, 6vw, 88px);
  color: var(--rr-ink);
  background:
    linear-gradient(90deg, var(--rr-line-light) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--rr-paper);
  border-radius: 0;
}

.course-map h2 { color: var(--rr-ink); font-size: clamp(2.2rem, 4.2vw, 4.4rem); }

.course-map article,
.course-map li {
  background: var(--rr-surface);
  border-color: var(--rr-line-light);
  border-radius: 14px;
  box-shadow: none;
}

.course-ready,
.return-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 42px;
  padding-bottom: 42px;
  color: var(--rr-cream);
  background: var(--rr-noir-soft);
  border-top: 1px solid var(--rr-line-dark);
}

.course-ready button,
.course-ready .button { color: var(--rr-noir); background: var(--rr-lime); border-color: var(--rr-lime); }
.course-ready button:hover,
.course-ready .button:hover { background: var(--rr-lime-deep); border-color: var(--rr-lime-deep); }

.invalid-access {
  min-height: calc(100vh - 78px);
  padding: clamp(80px, 10vw, 150px) clamp(28px, 7vw, 112px);
  color: var(--rr-cream);
  background: var(--rr-noir);
}

.invalid-access h1 { font-size: clamp(3rem, 6vw, 6rem); }

.eyebrow,
.kicker,
.meta,
.helper-text {
  font-family: var(--rr-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .landing { grid-template-columns: 1fr; }
  .landing-copy,
  .access-card { min-height: auto; }
  .landing-copy { border-right: 0; border-bottom: 1px solid var(--rr-line-dark); }
  .landing h1 { font-size: clamp(3.1rem, 16vw, 5.7rem); }
  .course-home { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { min-height: 68px; padding: 14px 20px; }
  .landing-copy,
  .access-card { padding: 56px 22px; }
  .landing::after { padding: 26px 22px; }
  .course-home::before,
  .course-home > :not(.course-map),
  .course-map { padding-left: 22px; padding-right: 22px; }
  button,
  .button,
  [type="submit"] { width: 100%; }
}

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