/* The front page's "Learn" part (index.html #learn, try.js): learning with no account, on the page itself. One white
   sheet under "See it learn", whose note points down to it. The amud's lines and words wear the app's own rules (.line, .he, .en, .w in
   style.css); the conversation's are here, the app's look. Everything here is under .learn or .try (the sheet,
   #portal), so nothing else on the site changes. The sheet's data-step says which part shows: ready (the amud open,
   Start), live (learning), over (today's time is used), closed (none to give now), failed (no voice link). */
.learn { position: relative; z-index: 2; padding: 34px 0 8px; }
.front .demo-note a { color: var(--accent-text); font-weight: 600; text-underline-offset: 2px; white-space: nowrap; }
.try-sheet { position: relative; box-sizing: border-box; width: min(1040px, calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)))); margin: 0 auto; padding: 28px 32px 30px; box-shadow: var(--lift); scroll-margin-top: 76px; }
.try-sheet h2 { margin: 14px 0 10px; font: 700 clamp(1.5rem, 4vw, 2.1rem)/1.15 var(--sans); letter-spacing: -0.03em; }
.try-sheet p { max-width: 40em; margin: 0 0 0.8em; }
.try-sheet a:not(.btn) { color: var(--accent-text); text-underline-offset: 2px; }
.try-over, .try-closed, .try-failed { display: none; }
.try[data-step="over"] .try-over, .try[data-step="closed"] .try-closed, .try[data-step="failed"] .try-failed { display: block; }
.try[data-step="over"] .try-work, .try[data-step="closed"] .try-work, .try[data-step="failed"] .try-work { display: none; }
.try:not([data-step="ready"]) .try-head, .try[data-step="live"] .try-points { display: none; }
.try:not([data-step="live"]) .when-live, .try[data-step="live"] .when-ready { display: none; }
.try-points { max-width: 46em; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.try-points li { padding: 9px 0 10px; border-top: 1px solid var(--edge); color: var(--muted); }
.try-points b { color: var(--text); font-weight: 600; }
.try-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.try-sheet .note { min-height: 1.4em; margin: 10px 0 0; }

/* The bar: which amud and Start; while learning, the clock, the chevrusa's state and End */
.try-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--edge); }
.try-pick select { box-sizing: border-box; min-height: 42px; padding: 8px 12px; border: 1px solid var(--edge-strong); border-radius: var(--r); background: var(--card); color: var(--text); font: 600 0.98rem var(--sans); }
.try-pick select:disabled { opacity: 0.6; }
.try-sheet .try-clock { margin: 0 0 0 auto; color: var(--muted); font: 500 0.95rem var(--sans); }
.try-clock b { color: var(--text); font: 700 1.5rem var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.try.try-ending .try-clock b { color: var(--danger); }
.try-sheet .try-state { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font: 500 0.95rem var(--sans); }
.try-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--edge-strong); }
.try[data-agent="listening"] .try-dot { background: #1f9d55; }
.try[data-agent="thinking"] .try-dot { background: #d9941a; }
.try[data-agent="speaking"] .try-dot { background: var(--accent); }
.try-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin-top: 16px; }
.try-amud, .try-talk { display: flex; flex-direction: column; min-width: 0; height: min(58vh, 520px); }
.try-sheet .try-where { margin: 0 0 6px; color: var(--muted); font: 600 0.8rem var(--sans); }
.try-where span:first-child { font: 700 1.05rem var(--hebrew); }
.try-lines { position: relative; flex: 1; min-height: 0; padding: 4px 6px 4px 2px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--edge); border-radius: var(--r); background: var(--daf-paper, var(--card)); }
.try-lines .he { font-size: 1.42rem; line-height: 2; }
.try-lines[hidden] { display: none; }
/* The two looks (the app's own chips: .views in style.css). The Vilna page takes the sheet's whole width, with the
   conversation under it: its letters need the room. */
.try-sheet .try-views { justify-content: flex-start; margin: 0 0 8px; }
.try-page { padding: 8px 9px; }
.try[data-view="page"] .try-cols { grid-template-columns: minmax(0, 1fr); }
.try[data-view="page"] .try-amud { height: min(72vh, 780px); }
.try[data-view="page"] .try-talk { height: min(30vh, 280px); }
.try-log { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; margin: 0; padding: 8px 8px 8px 2px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.try-log:empty::before { content: "The chevrusa will start in a moment."; color: var(--muted); }
.try[data-step="ready"] .try-log:empty::before { content: "Tap Start learning and the chevrusa joins you here. Read the first line out loud, or just ask it something."; }
.try-log li { max-width: 92%; padding: 10px 14px; background: var(--soft); border-radius: 16px 16px 16px 4px; }
.try-log li.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 4px 16px; }
.try-log .who { display: block; margin-bottom: 2px; color: var(--muted); font: 600 0.68rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.try-log li.me .who { color: rgb(255 255 255 / 0.8); }
.try-sheet .try-log p { max-width: none; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 1.02rem/1.55 var(--sans); }

@media (max-width: 760px) {
  .try-sheet { padding: 22px 18px 24px; }
  .try-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .try-amud { height: 38vh; }
  .try[data-view="page"] .try-amud { height: 52vh; }
  .try[data-view="page"] .try-talk { height: 26vh; }
  .try-talk { height: 30vh; }
  .try[data-step="ready"] .try-talk { height: auto; }
  .try-lines .he { font-size: 1.3rem; }
  .try-sheet .try-clock { margin-left: 0; }
  .try .try-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
