/* Ready or Not Dad — component styles. Loaded after tokens.css. Every value comes from a token. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=JetBrains+Mono:wght@500;700;800&display=swap");

/* Paper card: the video's "Beat" card. Chalk paper that hugs its words. */
.ron-card {
  position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  background: var(--card); color: var(--on-card); border-radius: 20px;
  padding: var(--space-3) var(--space-4) var(--space-4); box-shadow: var(--shadow-web);
  font-family: var(--font-display); font-weight: 800;
}
.ron-card--tilt { transform: rotate(-1.5deg); }
.ron-card--badge { padding-left: 56px; }
.ron-card__head { font-size: 36px; line-height: 0.95; letter-spacing: -0.035em; }
.ron-card__stat { font-size: 72px; line-height: 0.9; letter-spacing: -0.05em; }
.ron-card__sub { font-size: 18px; line-height: 1.1; font-weight: 800; }
.ron-card .ron-kicker { color: var(--on-card-alert); }

/* Highlighter: amber sweep under the key word. */
.ron-hl { position: relative; display: inline-block; padding: 0 6px; isolation: isolate; }
.ron-hl::before { content: ""; position: absolute; z-index: -1; left: -2px; right: -2px; top: 42%; bottom: 2%; background: var(--amber); border-radius: var(--radius-sm); }
.ron-hl--full::before { top: 4%; bottom: -8%; }
@media (prefers-reduced-motion: no-preference) {
  .ron-hl--sweep::before { transform-origin: 0 50%; animation: ron-sweep .32s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes ron-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Sticker tag: tucked under a card, one row. */
.ron-tag {
  display: inline-block; background: var(--night); color: var(--chalk);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.1;
  padding: 6px 12px; border-radius: 10px; box-shadow: var(--shadow-tag); white-space: nowrap;
}
.ron-tag--hot { background: var(--amber); color: var(--on-card); }
.ron-tag--alert { background: var(--ember); color: var(--night); }
.ron-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: -10px; padding-left: var(--space-4); position: relative; }

/* Step tile: the dark number tile on a card's corner, or before a list item. */
.ron-step {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--night); color: var(--amber); font-family: var(--font-display); font-weight: 800; font-size: 28px;
  box-shadow: var(--shadow-tag); transform: rotate(-4deg); flex: none;
}
.ron-card--badge > .ron-step { position: absolute; left: -18px; top: -16px; }
.ron-step--alert { background: var(--ember); color: var(--night); }
.ron-step--flat { box-shadow: none; transform: none; width: 28px; height: 28px; border-radius: var(--radius-tile); font-size: 15px; font-family: var(--font-mono); }

/* Kicker: mono uppercase label. */
.ron-kicker { font-family: var(--font-mono); font-weight: 800; font-size: 13px; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-text); }
.ron-chip { display: inline-block; font-family: var(--font-mono); font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ember); color: var(--night); padding: 3px 8px; border-radius: var(--radius-sm); }

/* Caption pill: burned-in captions. The word being said is amber. */
.ron-caption {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 .3em; max-width: 100%;
  background: var(--caption-pill); color: var(--chalk); border-radius: var(--radius-lg);
  padding: 8px 16px; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
}
.ron-caption .is-now { color: var(--amber); }
.ron-caption .is-next { color: rgba(244,239,230,0.5); }

/* Checklist: from the printed handouts. */
.ron-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ron-checks li { display: flex; gap: var(--space-2); align-items: flex-start; font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.4; color: var(--fg); }
.ron-checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border: 2px solid currentColor; border-radius: var(--radius-check); }

/* Button (web addition). */
.ron-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); border: 0; cursor: pointer; text-decoration: none;
  background: var(--amber); color: var(--on-card); font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  box-shadow: 0 4px 0 rgba(0,0,0,0.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ron-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(0,0,0,0.35); }
.ron-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.ron-btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.ron-btn:focus-visible, .ron-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Input (web addition). */
.ron-input {
  min-height: 48px; width: 100%; padding: 0 16px; border-radius: var(--radius-md); border: 2px solid var(--on-card);
  background: #FFFFFF; color: var(--on-card); font-family: var(--font-display); font-weight: 500; font-size: 17px;
}
.ron-input::placeholder { color: #5D6575; }
