/* BeforeTheRank: public homepage */

body {
  font-size: 1.0625rem;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--r-md);
  z-index: 50;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-nav {
  display: none;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-join {
  display: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

@media (min-width: 560px) {
  .header-join {
    display: inline-flex;
  }
}

/* Section rhythm */
main > section {
  padding: 72px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
}

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

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.lede {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}

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

/* Sneak Peek CTA — eye-catching animated button */
.btn-peek {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clay) 0%, #c87b4e 50%, var(--clay) 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 18px rgba(176, 96, 58, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: peekPulse 2.5s ease-in-out infinite;
}

.btn-peek:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(176, 96, 58, 0.5);
  color: #fff;
}

.btn-peek::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

@keyframes peekPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(176, 96, 58, 0.35); }
  50% { box-shadow: 0 6px 28px rgba(176, 96, 58, 0.55), 0 0 12px rgba(200, 123, 78, 0.3); }
}

.hero-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
  }
}

/* The tracker sheet: the one bold element on the page */
.sheet {
  position: relative;
  margin: 0;
  padding: 22px 20px 20px 52px;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 rgba(23, 46, 43, 0.04),
    0 18px 40px -24px rgba(23, 46, 43, 0.35);
  transform: rotate(-0.6deg);
  transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
  cursor: default;
}

.sheet:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: var(--teal);
  box-shadow:
    0 0 0 3px rgba(31, 78, 74, 0.10),
    0 0 30px rgba(31, 78, 74, 0.15),
    0 24px 48px -20px rgba(23, 46, 43, 0.45);
}

/* ---------- Hero Sheet Animations ---------- */

/* Tick marks pop in one by one */
.sheet .tick {
  opacity: 0;
  transform: rotate(40deg) translateY(-3px) scale(0);
  animation: tickPop 0.4s ease forwards;
}
.sheet tbody tr:nth-child(1) .tick { animation-delay: 0.6s; }
.sheet tbody tr:nth-child(2) .tick { animation-delay: 1.0s; }
.sheet tbody tr:nth-child(3) .tick { animation-delay: 1.4s; }

@keyframes tickPop {
  0% { opacity: 0; transform: rotate(40deg) translateY(-3px) scale(0); }
  60% { opacity: 1; transform: rotate(40deg) translateY(-3px) scale(1.3); }
  100% { opacity: 1; transform: rotate(40deg) translateY(-3px) scale(1); }
}

/* Numbers count up with a fade-slide */
.sheet tbody .num {
  opacity: 0;
  transform: translateY(8px);
  animation: numSlideIn 0.4s ease forwards;
}
.sheet tbody tr:nth-child(1) .num { animation-delay: 0.7s; }
.sheet tbody tr:nth-child(2) .num { animation-delay: 1.1s; }
.sheet tbody tr:nth-child(3) .num { animation-delay: 1.5s; }
.sheet tbody tr:nth-child(4) .num { animation-delay: 1.9s; }

@keyframes numSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Confidence dots fill in sequentially */
.sheet .dots i {
  opacity: 0;
  transform: scale(0);
  animation: dotFill 0.25s ease forwards;
}
.sheet tbody tr:nth-child(1) .dots i:nth-child(1) { animation-delay: 0.8s; }
.sheet tbody tr:nth-child(1) .dots i:nth-child(2) { animation-delay: 0.9s; }
.sheet tbody tr:nth-child(1) .dots i:nth-child(3) { animation-delay: 1.0s; }
.sheet tbody tr:nth-child(1) .dots i:nth-child(4) { animation-delay: 1.1s; }
.sheet tbody tr:nth-child(1) .dots i:nth-child(5) { animation-delay: 1.2s; }
.sheet tbody tr:nth-child(2) .dots i:nth-child(1) { animation-delay: 1.2s; }
.sheet tbody tr:nth-child(2) .dots i:nth-child(2) { animation-delay: 1.3s; }
.sheet tbody tr:nth-child(2) .dots i:nth-child(3) { animation-delay: 1.4s; }
.sheet tbody tr:nth-child(2) .dots i:nth-child(4) { animation-delay: 1.5s; }
.sheet tbody tr:nth-child(2) .dots i:nth-child(5) { animation-delay: 1.6s; }
.sheet tbody tr:nth-child(3) .dots i:nth-child(1) { animation-delay: 1.6s; }
.sheet tbody tr:nth-child(3) .dots i:nth-child(2) { animation-delay: 1.7s; }
.sheet tbody tr:nth-child(3) .dots i:nth-child(3) { animation-delay: 1.8s; }
.sheet tbody tr:nth-child(3) .dots i:nth-child(4) { animation-delay: 1.9s; }
.sheet tbody tr:nth-child(3) .dots i:nth-child(5) { animation-delay: 2.0s; }
.sheet tbody tr:nth-child(4) .dots i:nth-child(1) { animation-delay: 2.0s; }
.sheet tbody tr:nth-child(4) .dots i:nth-child(2) { animation-delay: 2.1s; }
.sheet tbody tr:nth-child(4) .dots i:nth-child(3) { animation-delay: 2.2s; }
.sheet tbody tr:nth-child(4) .dots i:nth-child(4) { animation-delay: 2.3s; }
.sheet tbody tr:nth-child(4) .dots i:nth-child(5) { animation-delay: 2.4s; }

@keyframes dotFill {
  to { opacity: 1; transform: scale(1); }
}

/* Pending label fades in */
.sheet .pending {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 1.8s;
}

/* Mentor note types in */
.sheet-note {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 2.4s;
}

.sheet-note p {
  overflow: hidden;
  white-space: normal;
  border-right: 2px solid var(--clay);
  animation: typeCursor 0.7s step-end infinite 2.4s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes typeCursor {
  0%, 100% { border-right-color: var(--clay); }
  50% { border-right-color: transparent; }
}

/* Row chapter names stagger in */
.sheet tbody th {
  opacity: 0;
  transform: translateX(-10px);
  animation: slideRight 0.35s ease forwards;
}
.sheet tbody tr:nth-child(1) th { animation-delay: 0.3s; }
.sheet tbody tr:nth-child(2) th { animation-delay: 0.6s; }
.sheet tbody tr:nth-child(3) th { animation-delay: 0.9s; }
.sheet tbody tr:nth-child(4) th { animation-delay: 1.2s; }

@keyframes slideRight {
  to { opacity: 1; transform: translateX(0); }
}

.sheet::before {
  /* notebook margin line */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 1.5px;
  background: rgba(176, 96, 58, 0.45);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}

.sheet-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.sheet-count {
  font-size: 0.85rem;
  color: var(--clay);
  font-weight: 600;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sheet-table th,
.sheet-table td {
  padding: 10px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.sheet-table thead th {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding-top: 12px;
}

.sheet-table tbody th {
  font-weight: 500;
  white-space: normal;
}

.sheet-table .is-weak th {
  color: var(--clay);
}

.tick {
  display: inline-block;
  width: 10px;
  height: 16px;
  margin-left: 4px;
  border-right: 2.5px solid var(--sage);
  border-bottom: 2.5px solid var(--sage);
  transform: rotate(40deg) translateY(-3px);
}

.pending {
  font-size: 0.78rem;
  color: var(--clay);
  font-weight: 600;
}

.dots {
  display: inline-flex;
  gap: 3px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
}

.dots[data-level="1"] i:nth-child(-n + 1),
.dots[data-level="2"] i:nth-child(-n + 2),
.dots[data-level="3"] i:nth-child(-n + 3),
.dots[data-level="4"] i:nth-child(-n + 4),
.dots[data-level="5"] i:nth-child(-n + 5) {
  background: var(--teal);
}

.is-weak .dots i {
  border-color: var(--clay);
}

.is-weak .dots[data-level="2"] i:nth-child(-n + 2) {
  background: var(--clay);
}

.sheet-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--clay-tint);
  border-radius: var(--r-md);
}

.note-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 2px;
}

.sheet-note p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .sheet {
    padding-left: 40px;
    transform: none;
  }
  .sheet::before {
    left: 26px;
  }
  .sheet-table th:nth-child(4),
  .sheet-table td:nth-child(4) {
    display: none;
  }
}

/* About */
.about {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-grid {
  display: grid;
  gap: 24px;
}

.about h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  max-width: 18ch;
}

.about-body {
  display: grid;
  gap: 16px;
  color: var(--ink-soft);
  max-width: 36em;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* What you get */
.include-groups {
  display: grid;
  gap: 40px;
}

.include-group h3 {
  font-size: 1.25rem;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
}

.include-group dl {
  margin: 0;
}

.include-group dl > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.include-group dt {
  font-weight: 600;
  margin-bottom: 4px;
}

.include-group dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .include-groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Steps */
.steps-section {
  background: var(--teal);
  color: #eef3f1;
}

.steps-section .section-head p {
  color: #b9cdc8;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: #e9b597;
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 6px;
}

.steps p {
  color: #c4d6d1;
  font-size: 0.98rem;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Plans */
.plans {
  display: grid;
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.plan.is-featured {
  border: 2px solid var(--teal);
  padding: 27px 23px 23px;
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 3px 10px;
  background: var(--clay);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
}

.plan h3 {
  font-size: 1.3rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
}

.plan-price s {
  color: var(--ink-faint);
  font-size: 1.05rem;
}

.plan-price strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ink);
}

.plan-unit {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan-save {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--sage);
  font-weight: 600;
}

.plan-summary {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.plan .btn {
  margin-top: 24px;
  width: 100%;
}

.plans-foot {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 880px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* Video */
.video-section {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.video-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.video-thumb {
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--teal-tint);
  border: 1px solid var(--line);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(23, 46, 43, 0.82);
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}

.video-thumb:hover .play {
  transform: scale(1.06);
}

.video-thumb .play::after {
  content: "";
  margin-left: 4px;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.video-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--teal);
}

.video-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.video-copy .kicker {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.92rem;
}

.video-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.video-copy p {
  color: var(--ink-soft);
}

@media (min-width: 880px) {
  .video-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
  }
}

/* Resources */
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}

.resource-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.resource-title {
  font-weight: 600;
}

.resource-meta {
  grid-column: 1;
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.resource-subject {
  color: var(--teal);
  font-weight: 500;
}

.resource-list .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (min-width: 760px) {
  .resource-list li {
    grid-template-columns: 1fr 160px 90px auto;
  }
  .resource-meta {
    display: contents;
  }
  .resource-list .btn {
    grid-column: 4;
    grid-row: 1;
  }
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 28px;
}

.faq-grid h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  max-width: 12ch;
}

.faq {
  border-top: 1.5px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.faq details p {
  padding: 0 0 20px;
  color: var(--ink-soft);
  max-width: 40em;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-line {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 28px;
}

.trust-grid h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  max-width: 12ch;
}

.trust-list {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1.5px solid var(--ink);
}

.trust-list > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.trust-list dt {
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-list dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .trust-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.trust-section {
  padding-top: 24px !important;
}

/* Video embed */
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Join page */
.join {
  padding: 40px 0 80px;
}

.join-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.join-side h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  line-height: 1.1;
}

.join-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: j;
  display: grid;
  gap: 16px;
}

.join-steps li {
  counter-increment: j;
  position: relative;
  padding-left: 40px;
  color: var(--ink-soft);
}

.join-steps li::before {
  content: counter(j);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  color: var(--clay);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.join-steps .step-lead {
  color: var(--ink);
}

.join-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (min-width: 640px) {
  .join-card {
    padding: 32px;
  }
}

@media (min-width: 960px) {
  .join-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
  .join-side {
    position: sticky;
    top: 96px;
  }
}

.join-fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}

.join-fieldset legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0;
  margin-bottom: 14px;
}

.join-fieldset .hint {
  margin: -6px 0 14px;
}

.join-fields {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .join-fields {
    grid-template-columns: 1fr 1fr;
  }
  .join-fields .span-2 {
    grid-column: span 2;
  }
}

.optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.phone-input {
  display: flex;
}

.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.phone-input .input {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.plan-pick {
  display: grid;
  gap: 10px;
}

.plan-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.plan-option-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
}

.plan-option-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
}

.plan-option input:checked + .plan-option-body {
  border: 2px solid var(--teal);
  padding: 13px 15px 13px 43px;
  background: var(--teal-tint);
}

.plan-option input:checked + .plan-option-body::before {
  left: 15px;
  border: 5px solid var(--teal);
}

.plan-option input:focus-visible + .plan-option-body {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.plan-option-name {
  font-weight: 600;
}

.plan-option-price {
  font-weight: 600;
}

.plan-option-price s {
  font-weight: 400;
  color: var(--ink-faint);
  margin-right: 2px;
}

.plan-option-unit {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--teal);
}

.join-submit {
  width: 100%;
  margin: 8px 0 12px;
}

#join-error {
  margin-bottom: 8px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.join-done {
  display: grid;
  gap: 16px;
  justify-items: start;
  outline: none;
}

.join-done h2 {
  font-size: 1.7rem;
}

.join-done > p {
  color: var(--ink-soft);
}

.wa-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.02rem;
  background: #1f6f4f;
}

.wa-btn:hover {
  background: #185a40;
}

.msg-preview {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.msg-preview-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.msg-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.9rem/1.55 var(--sans);
  color: var(--ink);
}
