/* Nocta use-cases page - shared styling.
   Brand tokens mirror the homepage: cream #FDFBF7, ink #1A1A1A, amber #C4850A.
   Tailwind (CDN) handles the fake-app screens; this file owns the chrome,
   the laptop frame, the approval overlay, the nav dropdown and animations. */

:root {
  --cream: #FDFBF7; --cream-dark: #F7F4EE;
  --ink: #1A1A1A; --ink-light: #4A4A4A; --ink-muted: #8A8A8A;
  --amber: #C4850A; --amber-bg: #FEF9EE;
  --line: rgba(26,26,26,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--cream); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  background: rgba(253,251,247,0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 10px; }
.nav-link { font-size: 14.5px; color: var(--ink-light); transition: color .15s; }
.nav-link:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.yc-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-muted); }
.yc-pill svg { width: 15px; height: 15px; border-radius: 3px; }
.btn-demo {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--cream);
  padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-demo:hover { background: #333; transform: translateY(-1px); }

/* dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; color: var(--ink-light); cursor: pointer; }
.dropdown-toggle:hover { color: var(--ink); }
.dropdown-toggle .chev { width: 12px; height: 12px; transition: transform .2s; }
.dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: -12px;
  min-width: 220px; padding: 6px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-light); }
.dropdown-item:hover { background: var(--cream-dark); color: var(--ink); }
.dropdown-item.active { color: var(--ink); font-weight: 600; background: var(--amber-bg); }
.dropdown-item small { display: block; color: var(--ink-muted); font-size: 12px; font-weight: 400; margin-top: 1px; }

/* ---------- Page head ---------- */
.uc-head { max-width: 1180px; margin: 0 auto; padding: 46px 28px 8px; }
.uc-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.uc-title { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 10px; }
.uc-title .it { font-style: italic; }
.uc-sub { color: var(--ink-light); font-size: 16px; margin-top: 12px; max-width: 560px; line-height: 1.5; }

/* ---------- Layout ---------- */
.uc-layout {
  max-width: 1180px; margin: 0 auto; padding: 26px 28px 60px;
  display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start;
}

/* ---------- Card rail ---------- */
.uc-rail { display: flex; flex-direction: column; gap: 10px; }
.uc-card {
  text-align: left; cursor: pointer; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 16px 17px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.uc-card:hover { border-color: rgba(196,133,10,0.4); box-shadow: 0 6px 22px rgba(0,0,0,0.05); }
.uc-card.active { border-color: var(--amber); background: var(--amber-bg); box-shadow: 0 8px 26px rgba(196,133,10,0.12); }
.uc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.uc-icons { display: flex; align-items: center; }
.uc-icons img { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--line); padding: 3px; margin-right: -6px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.uc-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.uc-time svg { width: 13px; height: 13px; }
.uc-card-title { font-size: 16px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; }

/* ---------- Stage / laptop ---------- */
.uc-stage { position: sticky; top: 84px; min-width: 0; }
.laptop-scaler { width: 100%; min-width: 0; }
@media (max-width: 760px) { .laptop-scaler { overflow: hidden; } }
.laptop { width: 100%; max-width: 860px; margin: 0 auto; }
.laptop-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  background: #eceae4; border-radius: 14px 14px 6px 6px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.14), 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
}
.laptop-base { width: 62%; height: 12px; margin: 0 auto; background: linear-gradient(#dcd9d2,#c9c6bf); border-radius: 0 0 12px 12px; box-shadow: 0 8px 14px rgba(0,0,0,0.10); }
.laptop-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 96px; height: 15px; background: #111; border-radius: 0 0 9px 9px; z-index: 6; }

.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 24px; z-index: 4;
  display: flex; align-items: center; gap: 14px; padding: 0 12px;
  background: rgba(245,243,239,0.92); backdrop-filter: blur(8px);
  font-size: 11px; color: #2c2c2c; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.menubar .mb-apple { font-size: 12px; }
.menubar .mb-app { font-weight: 600; }
.menubar .mb-menu { color: #555; }
.menubar .mb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #444; }
@media (max-width: 640px) { .menubar .mb-menu { display: none; } }

.chrome-bar {
  position: absolute; top: 24px; left: 0; right: 0; height: 40px; z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: #e7e4de; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.traffic .r { background: #ff5f57; } .traffic .y { background: #febc2e; } .traffic .g { background: #28c840; }
.chrome-tab {
  display: inline-flex; align-items: center; gap: 7px; max-width: 230px;
  background: #f6f5f2; border-radius: 8px 8px 0 0; padding: 7px 12px; margin-bottom: -1px;
  font-size: 12px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chrome-tab img { width: 14px; height: 14px; flex: none; }
.chrome-url {
  flex: 1; max-width: 340px; height: 24px; display: flex; align-items: center; gap: 6px;
  background: #f6f5f2; border-radius: 12px; padding: 0 12px; font-size: 11.5px; color: #666;
}
.chrome-url svg { width: 11px; height: 11px; opacity: .6; }
@media (max-width: 640px) { .chrome-url { display: none; } }

.app-area {
  position: absolute; top: 64px; left: 0; right: 0; bottom: 0; z-index: 1;
  background: #fff; overflow: hidden;
  font-size: 12px; color: #1f1f1f;
}
.app-pad { padding: 20px 26px; height: 100%; }

/* ---------- Approval overlay ---------- */
/* Desktop: overlay floats over the mockup (positioned against the sticky stage). */
.overlay { position: absolute; top: 72px; right: 14px; width: min(320px, 58%); z-index: 8; pointer-events: none; }
.ov-card {
  background: rgba(255,255,255,0.96); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px; padding: 13px 14px 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.16), 0 3px 10px rgba(0,0,0,0.06);
  max-height: 440px; overflow-y: auto; pointer-events: auto;
  opacity: 0; transform: translateY(-8px) scale(.98); animation: ovIn .34s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ovIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.ov-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.ov-logo { width: 18px; height: 18px; border-radius: 6px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.ov-name { font-size: 12.5px; font-weight: 600; }
.ov-x { margin-left: auto; color: var(--ink-muted); font-size: 14px; line-height: 1; cursor: pointer; }
.ov-body { font-size: 12.5px; line-height: 1.5; color: var(--ink-light); }
.ov-body b { color: var(--ink); font-weight: 600; }
.ov-detail { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 11.5px; }
.ov-detail h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 4px; font-weight: 600; }
.ov-detail p { color: var(--ink-light); line-height: 1.45; margin-bottom: 8px; }
.ov-detail .em { color: var(--amber); font-weight: 600; }
.ov-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ov-approve {
  flex: 1; background: var(--amber); color: #fff; border: none; cursor: pointer;
  padding: 8px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  transition: background .2s, transform .1s;
}
.ov-approve:hover { background: #a9720a; }
.ov-approve:active { transform: scale(.98); }
.ov-edit { color: var(--ink-muted); font-size: 12.5px; cursor: pointer; padding: 6px 8px; }
.ov-edit:hover { color: var(--ink); }
.ov-working { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 12px; }
.ov-spin { width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--amber); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ov-scrape { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.ov-scrape span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-light); }
.ov-scrape .tick { color: var(--amber); }
.ov-done { display: inline-flex; align-items: center; gap: 6px; color: #128a12; font-size: 12px; font-weight: 500; margin-top: 4px; }

.uc-controls { display: flex; justify-content: center; margin-top: 18px; }
.replay-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 15px; font-size: 13px; font-weight: 500; color: var(--ink-light);
  font-family: inherit; transition: border-color .2s, color .2s;
}
.replay-btn:hover { border-color: var(--ink-muted); color: var(--ink); }
.replay-btn svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.uc-footer { border-top: 1px solid var(--line); margin-top: 30px; }
.uc-footer-in { max-width: 1180px; margin: 0 auto; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.uc-footer .f-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.uc-footer .f-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--ink-muted); }
.uc-footer .f-links a:hover { color: var(--ink); }

/* ---------- Live-demo animation primitives ---------- */
.an { opacity: 0; transform: translateY(5px); transition: opacity .34s ease, transform .34s ease; }
.an.on { opacity: 1; transform: none; }
.loadbar { position: absolute; top: 0; left: 0; height: 2.5px; width: 0; background: var(--amber); z-index: 7; border-radius: 0 2px 2px 0; box-shadow: 0 0 8px rgba(196,133,10,.55); }
.loadbar.go { width: 100%; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.enrich { color: #bdbab2; letter-spacing: .4px; transition: color .3s; }
.enrich.done { color: inherit; letter-spacing: 0; }
.okpill { display:inline-flex; align-items:center; gap:5px; background:#e8f5e9; color:#2e7d32; border-radius:999px; padding:2px 9px; font-size:11px; font-weight:600; }
.pin { position:absolute; width:22px; height:22px; border-radius:50% 50% 50% 3px; background:var(--amber); color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 9px rgba(0,0,0,.22); z-index:2; }
.mfill { height:8px; border-radius:5px; background:#e7e4de; overflow:hidden; }
.mfill > i { display:block; height:100%; width:0; background:#3aa675; border-radius:5px; transition: width .9s cubic-bezier(.2,.7,.3,1); }
.caret::after { content:'|'; margin-left:1px; color:var(--amber); animation: caret .8s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Fake-app helpers (used by injected screens) ---------- */
.fa-h1 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.fa-muted { color: #8a8a8a; }
.fa-row { display: flex; align-items: center; }
.fa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.fa-avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.fa-bar { height: 9px; border-radius: 5px; background: #e7e4de; overflow: hidden; }
.fa-bar > i { display: block; height: 100%; background: #6d64c4; border-radius: 5px; }
.fa-table { width: 100%; border-collapse: collapse; }
.fa-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #9a988f; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #ececec; }
.fa-table td { padding: 7px 8px; border-bottom: 1px solid #f2f2f2; font-size: 12px; }
.fa-check { width: 14px; height: 14px; border: 1.5px solid #c3c0b8; border-radius: 4px; flex: none; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .uc-layout { grid-template-columns: 1fr; gap: 18px; }
  .uc-stage { position: static; }
  .uc-rail { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .uc-card { min-width: 240px; scroll-snap-align: start; }
  .nav-links { gap: 14px; margin-left: 4px; }
  .nav-links > .nav-link { display: none; } /* hide 'Download' text link; keep Use Cases switcher */
  /* Overlay stops floating inside the small mockup and stacks as a full card below it. */
  .overlay { position: static; width: auto; max-width: 440px; margin: 14px auto 0; }
  .ov-card { max-height: none; overflow-y: visible; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; padding: 12px 18px; }
  .yc-pill { display: none; }
  .uc-head, .uc-layout { padding-left: 18px; padding-right: 18px; }
  .app-pad { padding: 14px 16px; }
}
