@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("./fonts/barlow-condensed-900-italic-latin.woff2") format("woff2");
}

:root {
  --yellow: #FFC617;
  --orange: #F28F1F;
  --pink: #FF6FA3;
  --blue: #3AA7E0;
  --mint: #6FD7B7;
  --ink: #0B0B0B;
  --l2r-ink: #0B0B0B;
  --body-size: 16px;
  --body-lh: 1.5;
  --ink-2: #1A1A1A;
  --paper: #FFFFFF;
  --bone: #F6F6F5;
  --display: "Barlow Condensed", sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --tap: 44px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --app-pad-x: 16px;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--text);
  color: var(--l2r-ink);
  background: var(--bone);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
}
body.ask-open,
body.video-open {
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--ink);
}
.logo__lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  gap: 1px;
}
.logo img {
  display: block;
  height: 34px;
  max-height: 38px;
  width: auto;
  max-width: min(62vw, 248px);
  object-fit: contain;
  object-position: left center;
}
.logo__athome {
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--ink);
  padding-right: 2px;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .logo img {
    height: 30px;
    max-height: 30px;
  }
  .logo__athome {
    font-size: 0.7rem;
  }
}

#app {
  width: 100%;
}
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 16px;
  margin-bottom: 16px;
  max-width: 100%;
}
.eyebrow {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-2deg);
}
h1, h2, h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(34px, 11vw, 64px); }
h2 { font-size: clamp(26px, 8vw, 40px); }
h3 { font-size: clamp(22px, 6vw, 24px); margin-top: 0; }
.muted {
  color: #444;
  line-height: 1.5;
  font-size: 15px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.row .btn { flex: 1 1 auto; min-width: min(100%, 140px); }

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ask-chip {
  font-family: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bone);
  cursor: pointer;
  max-width: 100%;
}
.text-btn {
  background: none;
  border: none;
  padding: 8px 0;
  min-height: var(--tap);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Fill and shadow come from l2r-app.css so disabled reads as off, not faded. */
.btn.is-disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
}

/* —— Full-viewport Watch video overlay (16:9 default, 9:16 Shorts) —— */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  -webkit-tap-highlight-color: transparent;
}
.video-overlay[hidden] { display: none !important; }
.video-overlay__close {
  position: fixed;
  top: max(10px, var(--safe-t));
  right: max(12px, var(--safe-r));
  z-index: 52;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.video-overlay__close:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.video-overlay__stage {
  width: min(100%, calc((100dvh - 96px) * 16 / 9));
  height: min(calc(100dvh - 96px), calc(100vw * 9 / 16));
  max-width: 100%;
  max-height: calc(100dvh - 96px);
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}
.video-overlay.is-portrait .video-overlay__stage {
  width: min(100%, calc((100dvh - 96px) * 9 / 16));
  height: min(calc(100dvh - 96px), calc(100vw * 16 / 9));
  aspect-ratio: 9 / 16;
}
.video-overlay__stage iframe,
.video-overlay__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-overlay__fallback {
  position: relative;
  z-index: 53;
  margin: 12px 16px 0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  max-width: 28rem;
}
.video-overlay__watch {
  position: relative;
  z-index: 53;
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.card p,
.card li,
.how-card__lead {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--l2r-ink);
}

/* —— Ask drawer: near full-screen on phones —— */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  display: grid;
  align-items: stretch;
  padding: 0;
}
.drawer[hidden] { display: none !important; }
/* Full-bleed on a phone: the panel IS the screen, so no rounded corners here.
 * Everything else about it comes from .modal in l2r-app.css. */
.drawer__panel {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.chat {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
  padding-right: 2px;
}
.bubble { overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; }
.bubble.coach { align-self: flex-start; }
.bubble.pending { opacity: 0.7; font-style: italic; }
.drawer__meta {
  margin: 0;
  font-size: 13px;
  color: #444;
  line-height: 1.35;
}
.chat-form {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-form textarea {
  font: inherit;
  font-size: 16px; /* iOS: avoid zoom-on-focus */
  resize: none;
  max-height: 120px;
  line-height: 1.35;
}

.gate-error {
  background: #ffe0e8;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.4;
}
.gate label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
}
.gate code {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 2px 6px;
  word-break: break-all;
}
.gate input {
  margin-top: 8px;
}
.gate .btn + .btn {
  margin-top: 10px;
}
.gate-body {
  padding-top: 4px;
}

@media (min-width: 720px) {
  .drawer {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .drawer__panel {
    width: min(480px, 92vw);
    height: auto;
    max-height: min(85vh, 720px);
    border-radius: 16px;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    padding: 16px;
  }
  .chat {
    min-height: 160px;
    max-height: 40vh;
  }
  .chat-form .btn { width: auto; align-self: flex-end; }
}

@media (max-width: 380px) {
  .ask-btn { font-size: 12px; padding: 10px 10px; }
}
