/* ============================================================
   ORANO · Phone screen recreations (screens.css)
   Crisp HTML/CSS rebuilds of the app's real screens.
   App's blue accent → monochrome platinum per landing brief.
   Each .screen lives inside .device-screen.
   ============================================================ */

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 18px 16px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  min-height: 0;
}
.screen-head {
  padding: 4px 4px 14px;
}
.screen-kicker {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.screen-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.screen-sub {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 5px;
  line-height: 1.45;
}

/* tiny in-screen badge */
.s-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 9px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.s-badge.platinum { color: var(--platinum); border-color: rgba(216,222,232,0.3); }
.s-badge svg { width: 9px; height: 9px; }

/* in-screen card (only where unavoidable) */
.s-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 12px;
}
.s-card + .s-card { margin-top: 8px; }

/* ── Screen: CAPTURE (home / paste a video) ── */
.sc-capture .input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-3);
}
.sc-capture .input-row .url {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sc-capture .platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.sc-capture .platforms .chip {
  height: 24px;
  font-size: 9.5px;
  padding: 0 9px;
}
.sc-capture .platforms .chip svg { width: 11px; height: 11px; }

/* reel thumbnail (monochrome vertical video) */
.reel {
  position: relative;
  aspect-ratio: 9/16;
  width: 78px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c0c;
  flex-shrink: 0;
}
.reel .bars {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px;
  opacity: 0.5;
}
.reel .bars span {
  flex: 1;
  background: linear-gradient(transparent, var(--text-4));
  border-radius: 2px;
}
.reel .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
}
.reel .play svg { width: 11px; height: 11px; color: var(--text); }

/* ── Screen: SAVING (share confirm / processing) ── */
.sc-saving .ingest {
  display: flex; gap: 10px; align-items: center;
}
.sc-saving .swirl-loader {
  width: 26px; height: 26px;
  flex-shrink: 0;
  position: relative;
}
.sc-saving .swirl-loader::before,
.sc-saving .swirl-loader::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--platinum);
  border-right-color: var(--text-4);
  animation: swirl-spin 2.4s var(--ease) infinite;
}
.sc-saving .swirl-loader::after {
  inset: 6px;
  border-top-color: var(--text-3);
  border-right-color: transparent;
  animation-duration: 1.8s;
  animation-direction: reverse;
}
@keyframes swirl-spin { to { transform: rotate(360deg); } }
.sc-saving .ingest-text { display: flex; flex-direction: column; gap: 2px; }
.sc-saving .saved-card {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.sc-saving .saved-card .s-badge { margin-top: 2px; }
/* transcript lines materializing */
.transcript {
  display: flex; flex-direction: column; gap: 5px; margin-top: 10px;
}
.transcript .line {
  height: 6px; border-radius: 3px;
  background: var(--text-4);
  transform-origin: left;
  animation: line-grow 1.6s var(--ease) infinite;
}
.transcript .line:nth-child(1) { width: 88%; animation-delay: 0s; }
.transcript .line:nth-child(2) { width: 64%; animation-delay: .3s; }
.transcript .line:nth-child(3) { width: 92%; animation-delay: .6s; }
.transcript .line:nth-child(4) { width: 70%; animation-delay: .9s; }
@keyframes line-grow {
  0% { transform: scaleX(0); opacity: 0.3; }
  40% { opacity: 0.7; }
  100% { transform: scaleX(1); opacity: 0.7; }
}

/* ── Screen: SUMMARY (project overview) ── */
.sc-summary .seg {
  display: flex; gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  margin: 4px 0 14px;
}
.sc-summary .seg span {
  flex: 1; text-align: center;
  font-size: 9px; font-weight: 500;
  padding: 5px 4px;
  border-radius: var(--r-pill);
  color: var(--text-3);
}
.sc-summary .seg span.on { background: rgba(255,255,255,0.06); color: var(--text); }
.sc-summary .sum-body {
  font-size: 10.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 8px;
}
.sc-summary .sum-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.sc-summary .sum-tags .s-badge { font-size: 8.5px; height: 16px; padding: 0 6px; }
.sc-summary .takeaways { margin-top: 14px; }
.sc-summary .takeaway {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 0;
}
.sc-summary .takeaway + .takeaway { border-top: 1px solid var(--border-soft); }
.sc-summary .takeaway .num {
  width: 16px; height: 16px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; color: var(--platinum);
  flex-shrink: 0;
}
.sc-summary .takeaway .t {
  font-size: 10px; color: var(--text); line-height: 1.4;
}

/* ── Screen: ACTION PLAN ── */
.sc-action .task {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sc-action .task:last-of-type { border-bottom: 0; }
.sc-action .check {
  width: 15px; height: 15px;
  border: 1px solid var(--text-3);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sc-action .task.done .check {
  background: var(--platinum);
  border-color: var(--platinum);
}
.sc-action .task.done .check svg { width: 9px; height: 9px; color: var(--bg); }
.sc-action .check svg { display: none; }
.sc-action .task.done .check svg { display: block; }
.sc-action .task .label {
  font-size: 10px;
  color: var(--text);
  line-height: 1.3;
}
.sc-action .task.done .label { color: var(--text-3); text-decoration: line-through; }
.sc-action .progress-wrap { margin-top: 14px; }
.sc-action .progress-top {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--text-3);
  margin-bottom: 6px;
}
.sc-action .progress-track {
  height: 2px; border-radius: var(--r-pill);
  background: var(--border);
  overflow: hidden;
}
.sc-action .progress-fill {
  height: 100%;
  background: var(--platinum);
  width: 44%;
  transition: width 1.2s var(--ease);
}

/* ── Screen: CHAT ── */
.sc-chat .thread { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sc-chat .bubble {
  max-width: 82%;
  font-size: 10px;
  line-height: 1.45;
  padding: 8px 11px;
  border-radius: 12px;
}
.sc-chat .bubble.ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.sc-chat .bubble.me {
  align-self: flex-end;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.sc-chat .composer {
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  font-size: 10px;
  color: var(--text-3);
}
.sc-chat .composer .send { color: var(--platinum); margin-left: auto; font-size: 11px; }

/* ── in-screen tab bar (real app icons as <img>) ── */
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  padding: 8px 0 6px;
  margin-top: auto;
  flex-shrink: 0;
}
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 7.5px;
  color: var(--text-4);
}
.tabbar .tab img { width: 16px; height: 16px; opacity: 0.45; transition: opacity var(--d-fast) var(--ease); }
.tabbar .tab .dot { width: 3px; height: 3px; border-radius: 50%; background: transparent; }
.tabbar .tab.on { color: var(--text); }
.tabbar .tab.on img { opacity: 1; }
.tabbar .tab.on .dot { background: var(--text); }

/* ── Real screenshot inside a device frame ── */
.screen-shot {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
}
.screen-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.1) contrast(1.0) brightness(1.04);
}
.screen-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, transparent 9%),
    linear-gradient(0deg, #000 0%, transparent 7%);
}

/* ── Screen: iOS share sheet (Stage 1) ──
   Card with video thumb, row of 4 share targets, list of 2 actions,
   Cancel button at bottom. Dark iOS sheet aesthetic. */
.sc-share { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.sc-share .ss-card {
  background: #1c1c1e;
  border-radius: 18px;
  padding: 12px;
}
.sc-share .ss-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #0c0c0c;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.04);
}
.sc-share .ss-thumb .play {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
}
.sc-share .ss-thumb .play svg { width: 14px; height: 14px; color: #fff; margin-left: 2px; }
.sc-share .ss-caption {
  font-size: 9.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  line-height: 1.35;
}
/* horizontal share-target row */
.sc-share .ss-targets {
  display: flex;
  gap: 14px;
  padding: 4px 2px 6px;
  justify-content: flex-start;
}
.sc-share .target {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0; width: 50px;
}
.sc-share .target .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #2c2c2e;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.sc-share .target .icon svg { width: 22px; height: 22px; }
.sc-share .target .icon.orano {
  background: #fff; padding: 8px;
}
.sc-share .target .icon.orano img { width: 26px; height: 26px; }
.sc-share .target .name {
  font-size: 9px; color: rgba(255,255,255,0.7);
  text-align: center; line-height: 1.2;
  max-width: 50px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-share .target .name.hl { color: #fff; font-weight: 600; }
/* actions list */
.sc-share .ss-actions { display: flex; flex-direction: column; gap: 0; }
.sc-share .ss-actions .act {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.92);
}
.sc-share .ss-actions .act:last-child { border-bottom: 0; }
.sc-share .ss-actions .ai {
  width: 24px; height: 24px; border-radius: 7px;
  background: #2c2c2e;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.sc-share .ss-actions .ai svg { width: 14px; height: 14px; }
/* Cancel button */
.sc-share .ss-cancel {
  margin-top: auto;
  text-align: center;
  font-size: 12px; font-weight: 500;
  color: #fff;
  padding: 13px;
  background: #2c2c2e;
  border-radius: 12px;
}

/* ── Screen: CONNECT TO YOUR AGENT (2-col card grid, real brand marks) ── */
.sc-connect {
  padding: 20px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sc-connect .conn-list {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 10px;
}
.sc-connect .conn-head { padding: 8px 4px 22px; }
.sc-connect .conn-list .conn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
}
.sc-connect .conn-code {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.sc-connect .conn-code svg { width: 22px; height: 22px; }
.sc-connect .conn-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-connect .conn-name { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.sc-connect .conn-meta { font-size: 10px; color: var(--text-2); }
.sc-connect .conn-tick {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.sc-connect .conn-tick svg { width: 16px; height: 16px; }
.sc-connect .conn-item:not(:has(.conn-tick svg)) .conn-tick {
  border: 1.5px solid var(--text-4);
  border-radius: 5px;
  width: 14px; height: 14px;
}
