body:has(#ks-draft) .content:not(:has(#ks-draft)){display:none!important}
body:has(#ks-draft){background:#081629!important}
#page:has(#ks-draft){padding:0!important}
.row:has(#ks-draft){margin-left:0!important;margin-right:0!important}
.col-md-12:has(#ks-draft){padding-left:0!important;padding-right:0!important}
.content:has(#ks-draft){overflow:clip!important}

.content:has(#ks-draft){padding:0!important;background:#081629!important;}
.container:has(#ks-draft){width:100%!important;max-width:none!important;padding:0!important;}
#page_background_color:has(#ks-draft){background:#081629!important;}
/* Recovery Year Playbook - Scoped Styles */
/* Matches The Better Traders site: Satoshi fonts, dark navy #081629, turquoise/green accents */
html { background: #081629; }
body { margin: 0; }

@font-face {
  font-family: 'Satoshi';
  src: url("/clone-assets/50dca57f0b77918e0fb7dac9.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url("/clone-assets/af02a72246f53ad49c44a591.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url("/clone-assets/353a7fbfb4475f0c31470a74.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url("/clone-assets/bd11b5820231420e78046c61.woff2") format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables - matches TBT Kinetic tokens */
#ks-draft {
  --dk: #081629;
  --dk-alt: #07111f;
  --ink: #ffffff;
  --muted: rgba(231, 231, 231, 0.74);
  --dim: rgba(231, 231, 231, 0.56);
  --line: rgba(255,255,255,0.09);
  --teal: #0dcab1;
  --green: #00cc00;
  --green-hi: #7ef348;
  --gold: #c8a96a;
  --blue: #1073c4;
  --navy: #003366;
  --grad: linear-gradient(90deg, var(--teal), var(--green));
  --display: 'Satoshi', system-ui, sans-serif;
  --body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --wrap: 1200px;
  --wrap-narrow: 800px;
  --section-py: clamp(48px, 8vw, 96px);
  --radius: 8px;
  --radius-lg: 16px;
}

/* Base reset scoped to page */
#ks-draft {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--dk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

#ks-draft img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ks-draft a {
  color: inherit;
  text-decoration: none;
}

#ks-draft button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* Skip link */
#ks-draft .ryp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--teal);
  color: var(--dk);
  padding: 8px 16px;
  font-weight: 600;
}
#ks-draft .ryp-skip:focus {
  left: 8px;
  top: 8px;
}



/* Production: when preview bar is removed, change header top to 0 and mobile nav top to 65px */

/* Wrap utility */
#ks-draft .ryp-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
#ks-draft .ryp-wrap--narrow {
  max-width: var(--wrap-narrow);
}

/* ========== HEADER ========== */
#ks-draft .ryp-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  background: linear-gradient(rgba(7,17,31,0.8), rgba(7,17,31,0.52));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

#ks-draft .ryp-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding-inline: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

#ks-draft .ryp-logo {
  flex: none;
  display: block;
  padding: 6px 0;
  --logo-h: 44px;
}
/* Stacked logo has 70px clear border around 252px artwork height, adjust margins */
#ks-draft .ryp-logo img {
  height: calc(var(--logo-h) * 392 / 252);
  width: auto;
  max-width: none;
  margin: calc(var(--logo-h) * -70 / 252);
}

#ks-draft .ryp-nav {
  margin-inline: auto;
  display: none;
}
@media (min-width: 1024px) {
  #ks-draft .ryp-nav {
    display: block;
  }
}

#ks-draft .ryp-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

#ks-draft .ryp-nav > ul > li {
  position: relative;
}

#ks-draft .ryp-nav > ul > li > a,
#ks-draft .ryp-nav > ul > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
#ks-draft .ryp-nav > ul > li > a:hover,
#ks-draft .ryp-nav > ul > li > button:hover,
#ks-draft .ryp-nav > ul > li > a:focus-visible,
#ks-draft .ryp-nav > ul > li > button:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}

/* Dropdown */
#ks-draft .ryp-dd__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--dk-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  list-style: none;
  margin: 4px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
#ks-draft .ryp-dd[data-open="true"] .ryp-dd__menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#ks-draft .ryp-dd__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
#ks-draft .ryp-dd__menu a:hover,
#ks-draft .ryp-dd__menu a:focus-visible {
  background: rgba(255,255,255,0.05);
}
#ks-draft .ryp-dd__menu strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
#ks-draft .ryp-dd__menu span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--dim);
}

/* Header CTA */
#ks-draft .ryp-header__cta {
  display: none;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1024px) {
  #ks-draft .ryp-header__cta {
    display: flex;
  }
}

#ks-draft .ryp-login {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
#ks-draft .ryp-login:hover {
  color: var(--ink);
}

/* Mobile nav toggle */
#ks-draft .ryp-mnav {
  display: block;
}
@media (min-width: 1024px) {
  #ks-draft .ryp-mnav {
    display: none;
  }
}

#ks-draft .ryp-mnav > summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}
#ks-draft .ryp-mnav > summary::-webkit-details-marker {
  display: none;
}
#ks-draft .ryp-mnav > summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
#ks-draft .ryp-mnav[open] > summary span:first-child {
  transform: translateY(7px) rotate(45deg);
}
#ks-draft .ryp-mnav[open] > summary span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

#ks-draft .ryp-mnav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  bottom: auto;
  height: calc(100dvh - 75px);
  background: var(--dk);
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
}

#ks-draft .ryp-mnav__group {
  margin-bottom: 24px;
}
#ks-draft .ryp-mnav__h {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin: 0 0 12px;
}
#ks-draft .ryp-mnav__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#ks-draft .ryp-mnav__panel li + li {
  margin-top: 4px;
}
#ks-draft .ryp-mnav__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
#ks-draft .ryp-mnav__panel a:hover,
#ks-draft .ryp-mnav__panel a:focus-visible {
  background: rgba(255,255,255,0.05);
}
#ks-draft .ryp-mnav__panel strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
#ks-draft .ryp-mnav__panel span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--dim);
}
#ks-draft .ryp-mnav__flat a {
  font-size: 15px;
  font-weight: 500;
}

#ks-draft .ryp-mnav__login {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ========== BUTTONS ========== */
#ks-draft .ryp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
#ks-draft .ryp-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

#ks-draft .ryp-btn--primary {
  background: var(--green);
  color: #132114;
  box-shadow: 0 10px 30px -10px #00cc0060;
}
#ks-draft .ryp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,212,191,0.3);
}

#ks-draft .ryp-btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
#ks-draft .ryp-btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

#ks-draft .ryp-btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

#ks-draft .ryp-btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

#ks-draft .ryp-btn__arrow {
  transition: transform 0.15s;
}
#ks-draft .ryp-btn:hover .ryp-btn__arrow {
  transform: translateX(4px);
}

/* ========== SECTIONS ========== */
#ks-draft .ryp-section {
  padding: var(--section-py) 0;
}

/* Scroll margin for anchor targets (accounts for sticky header + preview bar) */
#ks-draft [id] {
  scroll-margin-top: 90px;
}

#ks-draft .ryp-section--raised {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  border-block: 1px solid var(--line);
}

#ks-draft .ryp-head {
  margin-bottom: 48px;
}
#ks-draft .ryp-head--center {
  text-align: center;
}

#ks-draft .ryp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 12.48px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0 0 12px;
}
#ks-draft .ryp-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

#ks-draft .ryp-h1 {
  font-family: var(--display);
  font-size: clamp(36.8px, 4.6vw, 60.8px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}

#ks-draft .ryp-h2 {
  font-family: var(--display);
  font-size: clamp(35.2px, 5.4vw, 70.4px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}

#ks-draft .ryp-h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

#ks-draft .accent {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#ks-draft .ryp-lede {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ========== HERO ========== */
#ks-draft .ryp-hero {
  position: relative;
  isolation: isolate;
  padding: calc(68px + clamp(28px, 4vw, 56px)) 0 clamp(28px, 4vw, 52px);
  background:
    radial-gradient(120% 70% at 70% 0%, rgba(16, 115, 196, 0.35), transparent 60%),
    linear-gradient(180deg, #003366 0%, #05203d 38%, #081629 100%);
  overflow: hidden;
}

/* Subtle grid background */
#ks-draft .ryp-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
}

#ks-draft .ryp-hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  #ks-draft .ryp-hero__in {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

#ks-draft .ryp-hero__copy {
  position: relative;
  z-index: 1;
}

/* Badge pill */
#ks-draft .ryp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
#ks-draft .ryp-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
#ks-draft .ryp-pill b {
  font-weight: 700;
  color: var(--ink);
}

#ks-draft .ryp-hero__eyebrow {
  display: flex;
  margin-bottom: 8px;
}

#ks-draft .ryp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

#ks-draft .ryp-hero__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--dim);
}

/* Proof strip */
#ks-draft .ryp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
#ks-draft .ryp-proof__item {
  font-size: 14px;
  color: var(--muted);
}
#ks-draft .ryp-proof__item strong {
  color: var(--ink);
  font-weight: 600;
}

/* Book cover figure */
#ks-draft .ryp-hero__figure {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
}

#ks-draft .ryp-book {
  position: relative;
  max-width: 340px;
}

#ks-draft .ryp-book__cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* Halo effect behind book cover - matches shared ks-halo */
#ks-draft .ryp-halo {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 86%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
#ks-draft .ryp-halo::before,
#ks-draft .ryp-halo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
#ks-draft .ryp-halo::before {
  background: conic-gradient(from 0deg, #0dcab1, #00cc00, #1073c4, #43b0f1, #0dcab1);
  filter: blur(46px);
  opacity: 0.5;
  animation: ryp-halo-spin 16s linear infinite;
}
#ks-draft .ryp-halo::after {
  inset: 9%;
  border: 1px solid rgba(126, 243, 72, 0.35);
  background: radial-gradient(circle, rgba(8, 22, 41, 0.1), rgba(0, 51, 102, 0.55) 70%);
  box-shadow: 0 0 60px rgba(13, 202, 177, 0.25) inset;
}
@keyframes ryp-halo-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  #ks-draft .ryp-halo::before {
    animation: none;
  }
}

/* ========== BRIDGE SECTION ========== */
#ks-draft .ryp-bridge {
  text-align: center;
}

#ks-draft .ryp-bridge__quote {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 48px;
}

#ks-draft .ryp-benefits {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  #ks-draft .ryp-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

#ks-draft .ryp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

#ks-draft .ryp-benefit__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--grad);
  border-radius: 10px;
  font-size: 18px;
}

#ks-draft .ryp-benefit__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
#ks-draft .ryp-benefit__text strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ========== CYCLE BAND ========== */
#ks-draft .ryp-cycle {
  text-align: center;
}

#ks-draft .ryp-cycle__band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px auto;
  max-width: 600px;
}

#ks-draft .ryp-cycle__phase {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.2s;
}

#ks-draft .ryp-cycle__phase--active {
  color: var(--dk);
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(45,212,191,0.3);
}

#ks-draft .ryp-cycle__note {
  font-size: 14px;
  color: var(--dim);
  margin-top: 24px;
}

/* ========== CHECKLIST ========== */
#ks-draft .ryp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

#ks-draft .ryp-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

#ks-draft .ryp-checklist__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--grad);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--dk);
}

#ks-draft .ryp-checklist__content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
#ks-draft .ryp-checklist__content p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ========== WORKSHEETS ========== */
#ks-draft .ryp-worksheets {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  #ks-draft .ryp-worksheets {
    grid-template-columns: repeat(3, 1fr);
  }
}

#ks-draft .ryp-worksheet {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
#ks-draft .ryp-worksheet:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

#ks-draft .ryp-worksheet__img {
  position: relative;
  aspect-ratio: 440/622;
  overflow: hidden;
  cursor: pointer;
}
#ks-draft .ryp-worksheet__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#ks-draft .ryp-worksheet__img::after {
  content: 'Click to enlarge';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8,22,41,0.8);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
#ks-draft .ryp-worksheet__img:hover::after,
#ks-draft .ryp-worksheet__img:focus-visible::after {
  opacity: 1;
}

#ks-draft .ryp-worksheet__info {
  padding: 16px;
}
#ks-draft .ryp-worksheet__info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
#ks-draft .ryp-worksheet__info p {
  font-size: 14px;
  color: var(--dim);
  margin: 0;
}

/* ========== TABLE OF CONTENTS ========== */
#ks-draft .ryp-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  #ks-draft .ryp-toc {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }
}

#ks-draft .ryp-toc__item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
}

#ks-draft .ryp-toc__num {
  flex-shrink: 0;
  min-width: 2ch;
  font-family: var(--mono);
  font-size: 12.96px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--teal);
}

#ks-draft .ryp-toc__text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
#ks-draft .ryp-toc__text span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* ========== SIGNUP FORM ========== */
#ks-draft .ryp-form-section {
  text-align: center;
}

#ks-draft .ryp-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

#ks-draft .ryp-form__fields {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

#ks-draft .ryp-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: var(--body);
  color: var(--ink);
  background: var(--dk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
#ks-draft .ryp-input::placeholder {
  color: var(--dim);
}
#ks-draft .ryp-input:focus {
  outline: none;
  border-color: var(--teal);
}
#ks-draft .ryp-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

#ks-draft .ryp-form__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
}

#ks-draft .ryp-form__preview-note {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--gold);
}

/* Success panel */
#ks-draft .ryp-success {
  text-align: center;
  padding: 24px;
}
#ks-draft .ryp-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--grad);
  border-radius: 50%;
  font-size: 28px;
}
#ks-draft .ryp-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}
#ks-draft .ryp-success p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
#ks-draft .ryp-success__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

#ks-draft [hidden] {
  display: none !important;
}

/* ========== AUTHOR SECTION ========== */
#ks-draft .ryp-author {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  #ks-draft .ryp-author {
    grid-template-columns: 1fr 0.8fr;
  }
}

#ks-draft .ryp-author__img {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
#ks-draft .ryp-author__img img {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
#ks-draft .ryp-author__img::before {
  content: '';
  position: absolute;
  inset: 5% 5% 0 5%;
  background: radial-gradient(ellipse at center bottom, rgba(45,212,191,0.2) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

#ks-draft .ryp-author__copy .ryp-lede {
  margin-top: 16px;
  margin-bottom: 16px;
}
#ks-draft .ryp-author__copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}
#ks-draft .ryp-author__copy .ryp-btn {
  margin-top: 8px;
}

/* ========== FAQ ========== */
#ks-draft .ryp-faq {
  max-width: 720px;
  margin: 0 auto;
}

#ks-draft .ryp-faq__item {
  border-bottom: 1px solid var(--line);
}

#ks-draft .ryp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
#ks-draft .ryp-faq__item summary::-webkit-details-marker {
  display: none;
}
#ks-draft .ryp-faq__item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.2s;
}
#ks-draft .ryp-faq__item[open] summary::after {
  transform: rotate(45deg);
}

#ks-draft .ryp-faq__answer {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
#ks-draft .ryp-faq__answer a {
  color: var(--teal);
  text-decoration: underline;
}

/* ========== FINAL CTA ========== */
#ks-draft .ryp-final {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(180deg, var(--dk-alt) 0%, var(--dk) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

#ks-draft .ryp-final .ryp-h2 {
  margin-bottom: 16px;
}
#ks-draft .ryp-final .ryp-lede {
  margin: 0 auto 32px;
  max-width: 500px;
}
#ks-draft .ryp-final__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--dim);
}

/* ========== FOOTER ========== */
#ks-draft .ryp-footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--dk-alt);
}

#ks-draft .ryp-footer__top {
  display: grid;
  gap: 48px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  #ks-draft .ryp-footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

#ks-draft .ryp-footer__brand img {
  height: 32px;
  width: auto;
}
#ks-draft .ryp-footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 300px;
}

#ks-draft .ryp-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
#ks-draft .ryp-social a {
  font-size: 14px;
  color: var(--dim);
  transition: color 0.15s;
}
#ks-draft .ryp-social a:hover {
  color: var(--teal);
}

#ks-draft .ryp-footer__col h2 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 16px;
}
#ks-draft .ryp-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#ks-draft .ryp-footer__col li + li {
  margin-top: 10px;
}
#ks-draft .ryp-footer__col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
#ks-draft .ryp-footer__col a:hover {
  color: var(--ink);
}

#ks-draft .ryp-footer__news {
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#ks-draft .ryp-footer__news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--teal);
}
#ks-draft .ryp-footer__news-link:hover {
  text-decoration: underline;
}

#ks-draft .ryp-footer__disc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0 0 24px;
  max-width: 800px;
}

#ks-draft .ryp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
#ks-draft .ryp-footer__bottom p {
  font-size: 13px;
  color: var(--dim);
  margin: 0;
}
#ks-draft .ryp-footer__bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
#ks-draft .ryp-footer__bottom a {
  font-size: 13px;
  color: var(--dim);
  transition: color 0.15s;
}
#ks-draft .ryp-footer__bottom a:hover {
  color: var(--ink);
}

/* ========== DIALOG (Worksheet preview) ========== */
#ks-draft .ryp-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8,22,41,0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
#ks-draft .ryp-dialog[open] {
  opacity: 1;
  visibility: visible;
}
#ks-draft .ryp-dialog::backdrop {
  background: transparent;
}

#ks-draft .ryp-dialog__inner {
  position: relative;
  max-width: 600px;
  max-height: 90vh;
  overflow: auto;
  background: var(--dk-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

#ks-draft .ryp-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  font-size: 20px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
#ks-draft .ryp-dialog__close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--ink);
}

#ks-draft .ryp-dialog__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

#ks-draft .ryp-dialog__caption {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  #ks-draft *,
  #ks-draft *::before,
  #ks-draft *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== FOCUS VISIBLE ========== */
#ks-draft *:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ========== PRINT ========== */
@media print {
  #ks-draft .ryp-preview-bar,
  #ks-draft .ryp-header,
  #ks-draft .ryp-footer {
    display: none;
  }
}

/* Preview refinement and validated mobile layout. */
#ks-draft section[id], #ks-draft main { scroll-margin-top: 96px; }
#ks-draft .ryp-field { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
#ks-draft .ryp-consents { margin: 0 0 24px; display: grid; gap: 14px; color: var(--muted); font-size: 14px; text-align: left; }
#ks-draft .ryp-consents label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
#ks-draft .ryp-consents input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
#ks-draft .ryp-consents small { color: var(--dim); }
#ks-draft .ryp-consents a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; margin-left: 28px; font-size: 12px; }
#ks-draft .ryp-dialog { display: block; width: min(760px, 94vw); max-height: 92dvh; height: fit-content; margin: auto; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--dk-alt); overflow: auto; color: var(--ink); }
#ks-draft .ryp-dialog::backdrop { background: rgba(2, 8, 17, .86); backdrop-filter: blur(7px); }
#ks-draft .ryp-dialog__inner { max-width: none; max-height: none; padding: 0; border: 0; overflow: visible; }
#ks-draft .ryp-dialog__close { position: sticky; top: 0; margin-left: auto; margin-bottom: -44px; z-index: 1; width: 44px; height: 44px; background: #07111f; color: white; border: 1px solid #668098; }
#ks-draft .ryp-dialog__caption { line-height: 1.5; }
#ks-draft .ryp-dialog__img { margin-top: 0; }
@media (max-width: 600px) {
  #ks-draft .ryp-hero__actions { gap: 12px; }
  #ks-draft .ryp-hero__actions .ryp-btn { width: 100%; }
  #ks-draft .ryp-proof { gap: 12px 20px; font-size: 13px; }
  #ks-draft .ryp-book { max-width: min(300px, 84vw); }
  #ks-draft .ryp-footer__bottom ul { flex-wrap: wrap; gap: 14px 20px; }
}

#ryp-form-panel form {display:grid;gap:18px;}
#ryp-form-panel .js_gdpr_wrapper{color:var(--muted);font:400 13px/1.55 var(--body);}
#ryp-form-panel .js_gdpr_wrapper>div{margin-bottom:12px;}
#ryp-form-panel input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);vertical-align:middle;}
#ryp-form-panel .ryp-btn{width:100%;}
#ryp-form-panel .ryp-form__note a{text-decoration:underline;color:var(--teal);}
